XBee, SimpleIE and PropC
Hello,
I've been able to use the XBee successfully with SPIN to communicate from the computer to the PropC Activity Board. However, I can't seem to find an example of it working in the C language to use within SimpleIDE. Does anyone have any tips for XBee (Series 1) communication using SimpleIDE and the C language.
Thanks,
J
I've been able to use the XBee successfully with SPIN to communicate from the computer to the PropC Activity Board. However, I can't seem to find an example of it working in the C language to use within SimpleIDE. Does anyone have any tips for XBee (Series 1) communication using SimpleIDE and the C language.
Thanks,
J

Comments
Thanks,
J
Look in this thread for some ideas... http://forums.parallax.com/showthread.php/145335-Issue-with-XBee-AT-command-mode-with-PropGCC-FDS
Not sure if you intend to use AT commands, but this should provide an example of how to communicate to the XBee in C.
dgately
#include "simpletools.h" // Include simpletools int main() // main function { int rx_pin = 0; // XBee DO int tx_pin = 1; // XBee DI int mode = 0; // Unused int baud = 9600; // Default Xbee baud rate serial *xb; // Pointer to text_t structure xb = serial_open(rx_pin, tx_pin, mode, baud); // Open up a serial driver pause(1000); writeLine(xb, "Is this thing on?"); // Look at simpletext.h for all the functions supported. serial_close(xb); // Close the serial driver }