Hi, guys, I have a question about controlling the Xbee radio.
Now, I have three Xbee modules. One is coordinator. I let the other two communicate with each other and send a final result to the coordinator. Now I need process the final result data and want to shut off the communication for a while until I finish the process.
Can I use Arduino to control the Xbee radio and just switch off the radio for a while?
When I say switch off the radio, I actually mean that they don't send out any information and just wait for the coordinator's order.
Hi,
I suppose you send data continiously to the coordinator.
In my opinion it would be better if the coordinator requests data everytime it needs it, rather than stressing the coordinator and preventing the XBee from sending data.
Example:
Everytime the coordinator microcontroller needs data (or is ready to process new data) you could send a message tho the remote device (for example a "?").
The other device waits for this message and sends data as soon it gets the comand.
It is always better to keep dataflow between devices as low as possible.
However, if I do like to do this, do you have any idea?.
I am thinking to set both of the other two devices as End Devices. So after they do their job, I let them in the sleep mode. This will also save energy.
I am thinking to set both of the other two devices as End Devices. So after they do their job, I let them in the sleep mode. This will also save energy.
If you want them (end devices) to sleep then they will have to control data sending.
do
Sleep
wake up
process data
turn on xbee
transmit data
turn off xbee
set some sort of timer to wake up again later
loop
unless they wake up periodically, announce they are awake to the coordinator and it either sends a request for data or a go back to sleep command. If they receive no reply within x time then back to sleep till next time.