OLD XBEE SOMETHING SIMPLE
Good evening,
Hope everyone's holiday weekend is great.
I dusted off some old XBee's... they are XBee PRO S1. I have not powered them up in over 14 years.
I used XCTU to initially communicate with them... They seem to work fine.
But when I load the following programs (spin), it illuminates the first LED(25) but does not lite up the next LED(26) (after 1 second). Not sure what I am doing wrong, but it has to be something simple.
Any assistance would be greatly apricated. Thanks
BTW, the GPS/compass/BT robot works great. Time to move on to something else.
Al
zip

11K
Comments
My job (commercial laser tag) involves XBee, but we use API mode (without escapes). I'd be happy to send you some API demo code, but beware that you'll need to write more advanced methods for sending commands or receiving data (in laser tag we have about 35 custom commands in our system. The up-shot is that we can send messages one-to-one, or one-to-all very easily (just by specifying the recipient address).
If you're only going to be one-to-one, you don't need an XBee object. Start by configuring your XBees for transparent mode with each side having the other as the target address. Now you can send single- or multi-byte command -- even from a terminal -- through a generic serial object. Sometimes doing messages in a human-readable format is a great wat to go for low bandwidth apps because the text interface gives you lots of debugging options. The downside is you have to parse and convert text elements to values, but that's not too hard to do (I have a parser object that allows up to 10