03-27-2014 08:21 AM
I used XBee's way back and I had never heard of the terms "explorer" or "coordinator", I just used what I needed to make them work. I've not used one since I started working with LIFA though.
03-27-2014 01:20 PM
no problem, thanks a million for your help anyway.
03-27-2014 07:02 PM
Hi Nathan, quick question. I was playing around with the Xbee's and cant get them to communicate using configuration software at any other baudrate bar 9600. My com ports are set at 9600 also. However i cant get my labview vi to work at 9600. It will work fine at 115200. Im only using LIFA base upoaded to the arduino with no alterations. Can you think of any way i could lower this to 9600? Maybe this would allow my system to work when all baudrates are matching? Thanks.
03-28-2014 03:02 AM
You have to edit the LIFA firmware so that it initiates the Arduino serial interface at the specific baudrate. I think it is in LabVIEWInterface.h (I don't have the files to check at the moment).
03-28-2014 09:20 AM
Would that be here?
#define FIRMWARE_MAJOR 02 |
#define FIRMWARE_MINOR 00
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define DEFAULTBAUDRATE 9600 | // Defines The Default Serial Baud Rate (This must match the baud rate specifid in LabVIEW) |
#else
#define DEFAULTBAUDRATE 115200
#endif
#define MODE_DEFAULT 0 | // Defines Arduino Modes (Currently Not Used) |
#define COMMANDLENGTH 15 | // Defines The Number Of Bytes In A Single LabVIEW Command (This must match the packet size specifid in LabVIEW) |
#define STEPPER_SUPPORT 1 | // Defines Whether The Stepper Library Is Included - Comment This Line To Exclude Stepper Support |
If i remove the
#else
#define DEFAULTBAUDRATE 115200
Do i need to define the "uno " board rather than the two mentioned above?
Thanks.
would that be ok.?
03-28-2014 10:03 AM
It assumes the board is the Arduino Uno so you can change that 115200 to what ever you want. If it's working with 115200, you might be ok leaving it, I've only read from some others on here that they couldn't get it working at 115200 and required lowering it.
03-28-2014 11:10 AM
Ok thanks, ill play around with this and see how i get on.Thanks again.
04-09-2014 12:37 PM
Nathan, i changed the baudrate in the LabViewInterface file and finally got the xbees working . thanks for all your help.
04-17-2014 09:18 AM
hey Nathan.
i have two Xbee s2 modules. i cant get them to work with labview and arduino... can you help me in doing the settings for the coordinator and router. i have read that i need to set up coordinator as API and router as AT. but they doesnt seem to work with the arduino and LABView setup
plzzz help me.
04-17-2014 09:26 AM
hey .. can you help with one router and one coordinator XBEE.. i need to connect them to Labview through LIFA in arduino. i cant get the XBEE to send data.. i manage to send data to the arduino but not to the xbee.
please help