Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Raspberry Pi receiving Frames from Waspmote XBee
PostPosted: Wed Jul 03, 2019 3:48 pm 

Joined: Tue Jul 02, 2019 5:53 pm
Posts: 1
Hi every one!

I'm developing a system where waspmotes send frames to a Rasp Pi 3B+ with Arduino shield.

Waspmotes are configured and now I don't see in this tutorial (https://www.cooking-hacks.com/documenta ... -tutorial/) how can I get Frames received and use them to do something like sending to a webservice. How can I get frames from arduino shield and use in Raspberry scope.

Thanks in advance.

Regards.


Top
 Profile  
 
 Post subject: Re: Raspberry Pi receiving Frames from Waspmote XBee
PostPosted: Thu Jul 04, 2019 7:37 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11285
Hi,

If the xbee module is configured with API mode 0, data is received as a serial buffer. You can read the serial buffer and save it in a variable

Code:
//Include ArduPi library
#include "arduPi.h"

char buffer;

void setup(){
  Serial.begin(9600);
  pinMode(led, OUTPUT);
}

void loop(){
  while(Serial.available()){
    buffer = Serial.read();
  }
}

int main (){
  setup();
  while(1){
    loop();
  }
  return (0);
}


Hope this helps.
Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.