Home/Support/Support Forum/Why does XBee local AIO stop my program from running on the device?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Why does XBee local AIO stop my program from running on the device?

0 votes
I have a second hand ConnectPort 4X H that I have acquired and I am trying to interface a 4-20mA sensor with it. I have been going through the sample programs and am having trouble getting anything with analog input to run. The analog_adapter_sample program fails out ending with ddo_get_param exception. To test I created the dia_translator sample program, which does load and run on the device, and added components until it failed. I can add a XBee Device Manager without problem but when I add a XBee Local AIO the program fails to run and ends on the same "Exception: ddo_get_param: error fetching DDO parameter." error that the analog_adapter_sample does.

Here is the dump for the dpdsrv.py

Launching DIA framework ...

Dia auto-detect of rapid reboot D
ISABLED
Running in environment: digiconne
ct
Device Integration Application Ve
rsion 2.3.1.1
Source settings file: WEB/python/
dia.zip/dia.pyr
Destination settings file: WEB/py
thon/dia.pyr
Core: initial garbage collection
of 0 objects.
Core: post-settings garbage colle
ction of 10 objects.
Core: Starting Tracing Manager...
no config found... using defaults
.
Core: Starting Scheduler...
Core: Starting Channel Manager...
Core: Starting Device Driver Mana
ger...
INFO:AbstractServiceManager:loadi
ng 'Translator' from 'custom_devi
ces.translator'
INFO:AbstractServiceManager:loadi
ng 'XBeeDeviceManager' from 'devi
ces.xbee.xbee_device_manager.xbee
_device_manager'
INFO:AbstractServiceManager:loadi
ng 'XBeeLocalAIO' from 'devices.x
bee.xbee_devices.xbee_local_aio'
DEBUG:XBeeDDOParamCache:CACHE MIS
S param 'DD' addr 'None'reason: n
ode not found
Core: Exception during core initi
alization:
Traceback (most recent call last)
:
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\core\core_services.py", l
ine 389, in epoch
ERROR:localaio0:Settings rejected
/not found: {} {'extended_address
': 'required item not given'}
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\devices\device_driver_man
ager.py", line 55, in __init__
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\common\abstract_service_m
anager.py", line 110, in __init__
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\settings\settings_base.py
", line 294, in __init__
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\common\abstract_service_m
anager.py", line 126, in apply_se
ttings
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\common\abstract_service_m
anager.py", line 160, in _reenume
rate_services
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\common\abstract_service_m
anager.py", line 242, in instance
_new
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\devices\xbee\xbee_devices
\xbee_local_aio.py", line 170, in
__init__
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\devices\xbee\xbee_devices
\xbee_base.py", line 100, in __in
it__
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\devices\device_base.py",
line 102, in __init__
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\settings\settings_base.py
", line 300, in __init__
SettingNotFound: "ERROR: Missing
settings: {'extended_address': 'r
equired item not given'}"
Core: Fatal exception caught! Ha
lting execution.
Core: Stopping xbee_device_manage
r0
Core: Stopping translator0
Stopping scheduler...done.
Core: Stopping tracing_manager...
done.
Core: Threads still running ([<Tr
acingManagerThread(Thread-1, star
ted)>, <Scheduler(Thread-2, start
ed daemon)>, <XBeeDeviceManagerCo
nfiguratorWorker(XBeeDeviceManage
rConfiguratorWorker, started daem
on)>, <ZigBeeDeviceManager(xbee_d
evice_manager0, started daemon)>]
).
Waiting for them to terminate...
Core: Threads still running ([<Zi
gBeeDeviceManager(xbee_device_man
ager0, started daemon)>]).
Waiting for them to terminate...
Exception in thread xbee_device_m
anager0:
Traceback (most recent call last)
:
File "./threading.py", line 442
, in __bootstrap
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\devices\xbee\xbee_device_
manager\xbee_device_manager.py",
line 686, in run
File "C:\Program Files (x86)\Di
gi\python\DevTools-2.3\Dia\Dia_2.
3.1\src\devices\xbee\xbee_device_
manager\zigbee_device_manager.py"
, line 146, in _coordinator_ddo_c
onfig
Exception: ddo_get_param: error f
etching DDO parameter.

Core: All threads stopped.
dia.py is exiting...

I am new to this but have some plans I am looking forward to if I can figure out how to log this data.
asked May 24 in 3rd Party Python and API development in other Languages by sndo9 New to the Community (0 points)

Please log in or register to answer this question.

...