I've been using xbee series 1 devices to collect data using python libraries to read up to 4 analog inputs on D0-D3 in transparent mode. The central device is running on a raspberry pi and collects data, averages it out, and sends to data logger web services (like xively, thingspeak, rest services, etc)
Now I would like to do the same but occasionally, based on some data read in, I would like to send a value out to a digital pin on any one of my dozen xbee radios.
Of the examples I see here, they mostly describe one-to-one MYxDL cross communication.
I've read that API mode is best for this. I've been trying the python-xbee libraries on google code but can't come up with a definitive config. (I'm using the new x-ctu, btw, love it).
I can control some LEDs on a digital pin and I can collect the data from the analog inputs but I can't seem to do both reliably. Sometimes it almost works but it seems there's a wait/buffer or something which means the LED pin high/low signals respond in an unreliable way. AND, sometimes the system seems to be waiting forever for the .wait_read_frame() to get a hit.
Is there a definitive approach to configuring for what I would expect is a common use case:
* central coordinator
* a dozen or so endpoints
* central coordinator busy collecting input from all radios (and sending out to data logger web services)
* some data can states can invoke a DIO change on a specific remote radio
Any references or tips would be appreciated.
Thanks,
Chris.