Wednesday, November 17, 2010

xbee api library

Finally (thanks to the invaluable help of Jorge Almeida) I managed to port the arduino xbee library to C++. According to the library website (xbee-arduino) the code could depended only on the serial library and on the millis function. The millis were substituted by the "gettimeofday" function, and the serial lib was substituted by our lab serial lib, written by Ricardo Pascoal.
I managed to compose and send an API packet from a computer program as well as receive and parse a package.
Next step is to cleanup the code, and use the new xbee lib in the program that will be responsible for sending/receiving messages to the modems.

Monday, November 15, 2010

Developments update

Currently I am working creating a xbee api library, so I can create a program that easily send and receives messages through a network of xbee modems, being able to address an individual modem, and being able to know who sent a specific message.
There are already some resources regarding such libraries, even one for arduino, which was tested and worked just fine: xbee-arduino library.
Now I have to adapt that code to be able to run in a Linux machine.