I want to have two wireless XBee modules where module #1 is plugged into a Coridium ARMmite Wireless sku: DEV-08406, where a BASIC program will reside.
How do I send AT commands via RF to module#2 without those AT commands being interpreted by module#1?
To send AT commands to module #2 don’t I need to send +++ to module #2 and wait for an OK.
I don’t want RF module #1 to see the +++ sequence and enter it own command mode.
Do I need to set the command character of Module #1 to some unique character OTHER THEN +++? I could choose ^^^.
Then if I send +++ to module #2, module #1 would not recognize that sequence as the command mode sequence.
You can’t issue remote AT commands in AT mode. You must either switch to API mode ( and lose transparent serial channel ) or have a program on the remote end to execute AT commands on remote Xbee and send results back. Look at my site, there is an article and C code demonstrating this technique.
Felis–Thanks for the response. If I use the CC command and select a new command mode character sequence as ^^^. Then if I just send ASCII text into module #1 and use the sequence +++, module #1 will not recognize this sequence as the command sequence because module #1 is looking for ^^^. However, the +++ characters will be sent out via RF and be received by Module#2, which WILL interpret the +++ as the command mode sequence. And module #2 will enter its command mode.
Then I can send commands to module #2 to get it to respond with I/O data.
In AT firmware, command mode doesn’t work from RF side at all. It’s all on the USART side - 3 pluses and any commands have to enter Xbee from DIN pin and any result gets sent out of DOUT pin.
Which Xbee are you using, BTW? I’m talking about series2.
You can program Xbee to transmit state of it’s pins, it will then run by itself, no MCU necessary. You can see how it can be done here-> http://www.ladyada.net/make/tweetawatt/