Need Basic Help with SimpleIDE for XBee
ricroca
Posts: 2
Hello --
Hope all is well ... I was wondering if someone could advise me on how to get syntax help for the SimpleIDE ... I am an experienced C programmer and want to use the SimpleIDE to write a simple transmitter/receiver pair using the XBee (32405) ... I just need to send a trigger signal from point A to point B about 50 ft away ... I was looking into the XBee UART Loopback.c program but I'm not familiar with the syntax and don't know how to convert it to two simple programs (one to transmit and one to receive) ... I bought two Propeller Activity Boards and two XBee (32405) units ... I tried to use the Full-Duplex Serial example (http://learn.parallax.com/propeller-c-simple-protocols/full-duplex-serial) but don't have the XBee adapter ... I'm thinking I should be able to use another Prop Activity Board instead but I'm not sure how to do that ... I have been using the Arduino Mega ADK for my project and initially thought of just interfacing the XBees with it ... one with an Arduino UNO where the trigger takes place to tramsmit the trigger signal ,,, and one with the Arduino Mega MDK at the receiving end ... I thought the SimpleIDE would be ... well, simple ... and was considering porting from the Arduinos to Prop Activity Boards ... but I'm not sure anymore ... any advice would be greatly appreciated ... Regards, Ric
Hope all is well ... I was wondering if someone could advise me on how to get syntax help for the SimpleIDE ... I am an experienced C programmer and want to use the SimpleIDE to write a simple transmitter/receiver pair using the XBee (32405) ... I just need to send a trigger signal from point A to point B about 50 ft away ... I was looking into the XBee UART Loopback.c program but I'm not familiar with the syntax and don't know how to convert it to two simple programs (one to transmit and one to receive) ... I bought two Propeller Activity Boards and two XBee (32405) units ... I tried to use the Full-Duplex Serial example (http://learn.parallax.com/propeller-c-simple-protocols/full-duplex-serial) but don't have the XBee adapter ... I'm thinking I should be able to use another Prop Activity Board instead but I'm not sure how to do that ... I have been using the Arduino Mega ADK for my project and initially thought of just interfacing the XBees with it ... one with an Arduino UNO where the trigger takes place to tramsmit the trigger signal ,,, and one with the Arduino Mega MDK at the receiving end ... I thought the SimpleIDE would be ... well, simple ... and was considering porting from the Arduinos to Prop Activity Boards ... but I'm not sure anymore ... any advice would be greatly appreciated ... Regards, Ric
Comments
If so, open SimpleIDE Menu -> Help -> Simple Library Reference.
For what it's worth: C syntax is C. C++ syntax is C with C++ extensions to C. Arduino Processing syntax is C++ minus lots of C++ no one uses minus key C elements used by C software professionals.
The Loopback XBee only echoes back what it receives so it doesn't even use the Propeller.
To make a XBee Loopback connect DO to DI along with 3.3V to VCC and Vss to VSS.
This example is in Spin but you can see how to wire it.
http://learn.parallax.com/KickStart/32440
Unfortunately most of the XBee code available is in Spin which is the Propeller's native language outside of Assembly.
I myself think Spin is easier to use than C because it resembles BASIC.
Here is a good XBee text but all the code was written in Spin.
http://www.parallax.com/downloads/getting-started-xbee-rf-modules-text
Here is the code for the text
http://www.parallax.com/downloads/getting-started-xbee-rf-modules-source-code
The text was written long before the Activity Board existed, just so you know.
The Demo Board has been discontinued and the Activity Board doesn't have a VGA connector.
Regards,
Ric
thank you in advance!