Are you running the Zigbee firmware on the Xbee or something else?
Your code assumes "transparent mode" but the Zigbee firmware on the Xbee doesn't have a transparent mode.
Correction: For S2B
"RF modules that contain the following firmware versions will support Transparent Mode:
20xx (AT coordinator), 22xx (AT router), and 28xx (AT end device)."
Are you running the Zigbee firmware on the Xbee or something else?
Your code assumes "transparent mode" but the Zigbee firmware on the Xbee doesn't have a transparent mode.
Im running it on an arduino. I have 2 xbee pro s2b's with a shield. Ive routed the xbee serials to pis 2 and 3 using cables. This was the setup we used in uni where I first messed with arduino a bit. I am following the same setup and info, but cant get it to work. I have seen that they communicate using xctu so I know they are able to comunicate. Just can't figure out where I am going wrong or what I am missing.
I have actually worked it out. I used a different shield and sent the data via Serial. Worked straight away. So there was something with the previous shield. I think it works, just something I maybe have not understood about it. But it works perfectly now. Time to mess with a few things. Thnk you for helping me out
Forgot to mention. The Equipment, settings and firmware were: -
The Router:
-- equipment --
Board: Arduino UNO R3
Shield: libelium ArduinoXBee v1.1
Adapter/programmer: ICStation XBee USB Adapter
Wireless RF module: XBee pro S2B XBP24BZPIT
--XBee settings--
Family: XBP24BZ7
Functions: ZigBee Router AT
Firmware ver: 22A7