I have two xbee pro s2b configured for API usage.
Zigbee Router api firmware version v23A7
Zigbee Coordinator api firmware version v21A7
Settings:
NJ = 0xFF (always allow)
ID = 0 (coordinator decides)
AP = 2 (escaped API mode)
BD = 9600
NB = 0
SB = 1
Both are mounted to a usb explorer on a powered hub. I have written .net code to send data over the serial port to the zigbees; all nodes use the same code so a transmission from the coordinator is the same code as a transmission from the router.
Once the router joins the network, it works ok for a short time (it does sometimes show a watchdog timer reset before joining). If I let it sit idle for 10 or so seconds, it becomes unresponsive to commands. Sending a SH or SL will not get a response. the TX light on the USB board will flash but there will be no response. If I repeat the command every 500 milliseconds or so, it will eventually come back with the answer (somewhere between 3 and 5 seconds of time). 99% of the time there is no modem status response to say something was wrong with the modem; sometimes a watchdog response will come back here.
The coordinator on the other hand is always responsive. Sending an ND will find the Router even if the router is in the non-responsive state.
Here is what I have done for troubleshooting:
Move the xbees
Short range (20 feet)
Mid range (60 feet)
Purchase more xbees to see if I had a bad xbee (I have total of 4 now with usb boards)
Using a different computer
coordinator xbee on my laptop, router on desktop
coordinator xbee on my desktop, router on my laptop
Made different xbees coordinator and router.
Tried using end device api
Added a powered hub in case the problem was a power issue.
I set up a simple ping, send a TX Request from one xbee to the other with a payload of 0x0A, if its received, the receiver responds with TX Request with a payload of 0x0B.
Mind you sending an SL or SH at this point will also be non-responsive so its probably not trying to send the message.
I realize this is really long but I wanted to give as much information as possible. There are couple of real questions here:
- This requires that my ping software gets a notification from xbee and sends a response back over the serial port)
-
if this is interference from wifi or cell thats a real issue
-
It seems to me that the lack of troubleshooting or status data is very problematic