Home/Support/Support Forum/Python Library Not Reading Parameters
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Python Library Not Reading Parameters

0 votes
I'm trying to read the Network ID (ID) of an S3B module using the digi.xbee python library.

I can read transmitted data just find, but when I try to use:
device.get_parameter("ID")
it throws a timeout exception.

CE is set to standard Router [0]
EE is enabled
BD is 115200
AP API mode enabled without escapes [1]
AO API Rx Indicator - 0x90 [0]

You might need more info, but I don't know how to upload a .pro file.

This same device object receives payload data packets just fine from remote devices, but if I try and write to it then it throws this:

Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/digi_xbee-1.1.1-py3.6.egg/digi/xbee/reader.py", line 325, in run
self.__execute_user_callbacks(read_packet, remote)
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/digi_xbee-1.1.1-py3.6.egg/digi/xbee/reader.py", line 559, in __execute_user_callbacks
self.__packet_received(xbee_packet)
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/digi_xbee-1.1.1-py3.6.egg/digi/xbee/reader.py", line 56, in __call__
f(*args, **kwargs)
File "/Users/jacob/Documents/atom_projects/thing1/enterprise/ncd_enterprise.py", line 42, in parse
getattr(self, type)(data[1:], xbee_packet.x64bit_source_addr)
File "/Users/jacob/Documents/atom_projects/thing1/enterprise/ncd_enterprise.py", line 72, in power_up
'source_address': str(source_address)
File "EnterpriseNCD-Example.py", line 18, in my_custom_callback
send_configuration_command()
File "EnterpriseNCD-Example.py", line 29, in send_configuration_command
print(ncdModem.device.get_parameter("ID"))
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/digi_xbee-1.1.1-py3.6.egg/digi/xbee/devices.py", line 1028, in dec_function
return func(self, *args, **kwargs)
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/digi_xbee-1.1.1-py3.6.egg/digi/xbee/devices.py", line 1309, in get_parameter
response = self.send_packet_sync_and_get_response(packet_to_send) # raises TimeoutException
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/digi_xbee-1.1.1-py3.6.egg/digi/xbee/devices.py", line 2423, in send_packet_sync_and_get_response
raise TimeoutException("Response not received in the configured timeout.")
digi.xbee.exception.TimeoutException
asked Jan 16 in 3rd Party Python and API development in other Languages by relay-jake New to the Community (1 point)

Please log in or register to answer this question.

...