hello to everybody in this forum. this is my first message
I am writing a project involving data streaming from several independent peripheral units (each driven by PIC up) and a central unit (a mac pc).
for practical reasons the fastest way to communicate with several different independent units is RF, so I tried XBEE series 2 modules.
The connection works well and seems realiable, particularly if I need to send one or few bytes IN ONE DIRECTION (eg from the coordinator to one end device or vice versa), and even more reliably if I only send 1 byte. it often stops if I try to send a few hundreds beats!
at the opposite if I send a byte to one unit to request sending one byte each time (thus starting a continuous stream of data), then the all thing stops very shortly.
it is clearly not a problem of speed. I have tried different baud rates (9600 and 115200) and also leaving several milliseconds (up to 50) before sending the byte after the request, but without improvement.
on the other hand, if I disconnect the xbee modules and connect the sockets with just wires the all thing works perfectly and the streaming works indefinitely, indicating that there must be something wrong with my use of the XBEE and not with the rest.
this is the configuration that I have used (with X-CTU):
peripheral xbees: ZNET 2.5 router/end device AT
central unit: ZNET 2.5 coordinator AT
ID PAN = 234 (all modules)
scan = 1FFE (all modules)
DH = 0 (all modules)
DL = FFFF (for coordinator) = 0 (for router/end devices)
baud rate: 115200 or 9600 (results will not change)
parity = 0 (disabled)
packetization timeout = 0 (tried also = 3 but no improvement)
D7 config = 0 (disabled) (tried also = 1 but no improvement)
D6 config = 0 (disabled)
well, in my hope this configuration should be a “transparent transmission”
and the coordinator is supposed to be able to talk to each of the peripheral devices, whereas peripheral devices cannot talk between them.
(actually it should correspond to “point-to-multipoint” transmission…??).
I will be grateful if someone could tell me where I went wrong and suggest some solution.
many thanks
Luciano