Error message after configuring an XBee DIO adapter

Hi all, i have some problem after configuring my XbeeDioAdapter using Idigi Dia.

Im using a connectPort X4 and i succesfully installed drivers for xbib-r-dev and wall router, even i can see the state change when i press switch 1 to 4 in xbib-r-dev. But when i try with XbeeDioadapter it doesn’t work, i think Dia configuration it fine, but it does not show the states for pin 1 to 4(i configured all pins for the adapter as Inputs).

As you can see, after “Core services started”, it shows me an error message. Please could you explain me what does this error message mean and give me instructions how to solve this issue.

best regards. Camilo


#> python dia.py oli.yml

Determining platform type...Digi Python environment found.

iDigi Device Integration Application Version 1.2.19
Using settings file: oli.yml
Core: initial garbage collection of 0 objects.
Core: post-settings garbage collection of 28 objects.
Starting Scheduler...
Starting Channel Manager...
Starting Device Driver Manager...
XBeeDeviceManager(xbee_device_manager): retrieving node list
XBeeDeviceManager(xbee_device_manager): node '00:13:a2:00:40:2c:80:08!' moved to CONFIGURE state.
XBeeDeviceManagerConfigurator: request to configure node '00:13:a2:00:40:2c:80:08!'
XBeeDeviceManagerConfigurator: worker assigned to '00:13:a2:00:40:2c:80:08!'
Starting Presentation Manager...
XBeeConfigBlockDDO.apply_config: trying SET 'p2' = '0x4' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'PR' = '0x1fff' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'DL' = '\x40\x60\x23\xf6' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'DH' = '\x00\x13\xa2\x00' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'p3' = '0x4' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'IR' = '0x0' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'IC' = '0x90e' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'd8' = '0x3' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'd6' = '0x4' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'd7' = '0x4' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'd4' = '0x4' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'd2' = '0x3' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'd3' = '0x3' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: trying SET 'd1' = '0x3' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockDDO.apply_config: applying changes (AC)
XBeeConfigBlockDDO.apply_config: trying 'SM' = '0x0' to '[00:13:a2:00:40:2c:80:08]!'
XBeeConfigBlockFinalWrite: trying 'WR' to '[00:13:a2:00:40:2c:80:08]!'
XBeeDeviceManager(xbee_device_manager): configuration done for node '00:13:a2:00:40:2c:80:08!' promoting to RUNNING state.
XBeeDIO(pozo11): sample indication received.
Starting Services Manager...
Core services started.
------------------------------------------------------------
XBeeDeviceState.goto_running: exception occured while calling cb > ('DIO11')
Traceback (most recent call last):
  File "C:\Program Files\Digi\DigiPython\Dia\Dia_1.2.19\src\devices\xbee\xbee_device_manager\xbee_device_state.py", line 200, in goto_running
  File "C:\Program Files\Digi\DigiPython\Dia\Dia_1.2.19\src\devices\xbee\xbee_devices\xbee_dio.py", line 472, in running_indication
  File "C:\Program Files\Digi\DigiPython\Dia\Dia_1.2.19\src\devices\xbee\xbee_devices\xbee_dio.py", line 491, in sample_indication
KeyError: 'DIO11'
iDigi_DB(idigi_db): exception while uploading: (125, '')

Hi kmilodrum,

Two things:

  1. You should try a newer version of the iDigi Dia. The 1.2.19 version is very, very old. You can get the newest version by going to www.idigi.com and logging in to the iDigi Developer Cloud. If you don’t have an account register (it’s free and fast). Once in, click on “Resources” from the upper right and install the “Digi ESP for Python” Contained within the Digi ESP for Python is the newest version of the iDigi Dia (version 1.4.14).

  2. If you still have trouble please post your project’s .yml file. I think you’re right, you’ve probably got everything correct but the community can help you best if we’ve got the project file to look at.

Good luck!