nisco1106 / xbee-arduino

Automatically exported from code.google.com/p/xbee-arduino
GNU General Public License v2.0
0 stars 0 forks source link

Remote Analog Sampling Using XBee Radios #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there, I'm new to Arduino and Xbee and I'm having a lot of trouble trying to 
get my system up and running. 

Equipment: 4xXbee S2, 4xArduino Due (seial1 as Arduino-computer comms, serial3 
as XBee-Arduino comms), + XbeeShields, Windows 8

Project: I am trying to make a system where my coordinator sends out a request 
for an Analogue I/O sample (API Frame 0x17) to my 3 routers, the routers are 
connected to an analogue input and should return an API Frame 0x97. 

So far I have managed to get them working on an "Automatic Sample Rate" and 
recieve a continuous stream from an individual router once a connection is 
made, I can read the packet, see the address and payload and everything is 
good. However, this will not work for multiple routers, I need to have my 
coordinator specifically request the packet/number of consecutive samples from 
each router by address. I can achieve this in the X-CTU terminal using specific 
frames (as seen here http://www.digi.com/support/kbase/kbaseresultdetl?id=3522 
) but my weak understanding is holding me back from how to program the 
Coordinator arduino  to get continuous samples from all 3 arduinos. (and 
possibly the router arduinos? though i dont think i should need to)

Ive been doing this for about 1.5months now and have tried a lot of different 
example sketches and my own, but I just can't get my head around the Syntax and 
Protocol to achieve what I want... This is only the equipment setup for my 
project and its taken far more time than I had allowed so im running out fast. 

Any help would be hugely appreciated! 

Thanks

James

Original issue reported on code.google.com by cjhornb...@gmail.com on 7 Apr 2015 at 1:29

GoogleCodeExporter commented 9 years ago
Sorry I thought this was the help Forum, Admin feel free to delete.

Original comment by cjhornb...@gmail.com on 7 Apr 2015 at 3:38