Home/Support/Support Forum/Best way to determine whether a remote XBee is awake?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Best way to determine whether a remote XBee is awake?

0 votes
The details:
Python scripts are run from ConnectPortX2
The remote sleeping nodes are DigiMesh 2.4 drop-in networking adapters (analog, digital I/O, RS-485, etc.) The ConnectPortX2 is the sleep coordinator.

The challenge:
The zigbee.py library installed on the ConnectPortX2 is rather limited. Serial pins on XBee adapters are disabled to make room for more I/O.

The question:
What is the best method to ascertain whether the mesh network is sleeping?

The choices:
1. xbee.ddo_get_param(addr, 'D9')
2. xbee.ddo_get_param(addr, 'SS')
3. N/A since the device is sleeping and will timeout
4. a better approach
asked Sep 8, 2016 in Python by ayoungpe New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

+1 vote
None of these are suggested. Instead use the Sleep status messages on the radio and have your python app look for them.
answered Nov 10, 2016 by mvut Veteran of the Digi Community (12,756 points)
Thanks for the tip.

To clarify, you're advocating for reading the Sleep status ('SS') on the sleep coordinator (ConnectPort X2) which is always awake.  According to the documentation it looks like bit 0 in the SS response indicates whether the mesh network is asleep or awake.
That is 100 % correct.