How Do I Send AT Commands Via RF To a Second XBee Module??

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.

Is this the magic sauce I am looking for?

Thanks anyone for the guidance. I am a newbie.

Bill

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.

How 'bout this? Will it work.

No.

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.

I plan to use WRL-08742 XBee Pro 60mW Wire Antenna. I have the manual and am studying the various commands.

I understand what you are telling me. What I don’t understand is how to retrieve I/O data from a remote module using the RF link.

How do I get to your site?

felis; I did find your site via your profile.

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/

felis;

I have more questions. Shall I email you directly at general@circuitsathome.com?

Bill

This will work.