Can't connect xbees with ConnectPortX4IA via modbus

Hello!

I’m trying to send frame from a DIGI XBEE®SX 868 DEVELOPMENT KIT to a ConnectPort X4IA. Of course, the xbees are configurated like Standars Router in API mode, and the ConnectPort like a Coordinator. All this steps were donde by using XCTU.

I’m using the modbus protocol to read the data that would come out of the ConnectPort in a KEPServer. The problem appears when I program using the DIGIESP for Python because when I try to compile the following YAML code, these errors appear:

–Code–

devices:

  • name: digimesh_device_manager0
    driver: devices.xbee.xbee_device_manager.digimesh_device_manager:DigiMeshDeviceManager

  • name: XBEEA
    driver: devices.modbus.mbdia_xbee_sensor:MBusXBeeSensor
    settings:
    xbee_device_manager: “digimesh_device_manager0”
    extended_address: “00:13:a2:00:41:77:22:1e!”
    sample_rate_ms: 1000
    power: true
    sleep: false
    raw_value: false
    enable_low_battery: false

  • name: XBEEB
    driver: devices.modbus.mbdia_xbee_sensor:MBusXBeeSensor
    settings:
    xbee_device_manager: “digimesh_device_manager0”
    extended_address: " 00:13:a2:00:41:77:22:43!"
    sample_rate_ms: 1000
    power: true
    sleep: false
    raw_value: false
    enable_low_battery: false

presentations:

  • name: mbus_srv
    driver: presentations.modbus.mbdia_pres:MbDiaPresentation
    settings:
    mapping: “((1,‘XBEEA’),(2,‘XBEEB’))”

–ERRORS–

INFO:AbstractServiceManager:loading ‘DigiMeshDeviceManager’ from ‘devices.xbee.xbee_device_manager.digimesh_device_manager’
INFO:AbstractServiceManager:loading ‘MBusXBeeSensor’ from ‘devices.modbus.mbdia_xbee_sensor’
DEBUG:XBeeDDOParamCache:CACHE MISS param ‘DD’ addr 'None’reason: node not found
Core: Exception during core initialization:
Traceback (most recent call last):
File “C:\Users\XXXX\workspace\bbb\src\core\core_services.py”, line 389, in epoch
File “C:\Users\XXXX\workspace\bbb\src\devices\device_driver_manager.py”, line 55, in init
ERROR:AbstractServiceManager:Exception during dynamic class load: Traceback (most recent call last):
File “C:\Users\XXXX\workspace\bbb\src\common\abstract_service_manager.py”, line 206, in service_load
File “C:\Users\XXXX\workspace\bbb\src\common\classloader.py”, line 64, in classloader
File “C:\Users\XXXX\workspace\bbb\src\devices\modbus\mbdia_xbee_sensor.py”, line 38, in ?
ImportError: No module named modbus.mbdia_block

File “C:\Users\XXXX\workspace\bbb\src\common\abstract_service_manager.py”, line 110, in init
File “C:\Users\XXXX\workspace\bbb\src\settings\settings_base.py”, line 294, in init
File “C:\Users\XXXX\workspace\bbb\src\common\abstract_service_manager.py”, line 126, in apply_settings
File “C:\Users\XXXX\workspace\bbb\src\common\abstract_service_manager.py”, line 158, in _reenumerate_services
File “C:\Users\XXXX\workspace\bbb\src\common\abstract_service_manager.py”, line 210, in service_load
ASMClassLoadError: unable to load ‘devices.modbus.mbdia_xbee_sensor:MBusXBeeSensor’: exceptions.ImportError:No module named modbus.mbdia_block
Core: Fatal exception caught! Halting execution.
Core: Stopping digimesh_device_manager0
Stopping scheduler…done.
Core: Stopping tracing_manager…done.
Core: Threads still running ([, started)>, , , ,
]).
Waiting for them to terminate…
Core: Threads still running ([]).
Waiting for them to terminate…
DEBUG:XBeeDDOParamCache:CACHE STORE: cached ‘DD’ = ‘\x00\x0c\x00\x02’ for ‘None’
Core: Threads still running ([]).
Waiting for them to terminate…
Core: Threads still running ([]).
Waiting for them to terminate…
DEBUG:digimesh_device_manager0:node DH/DL will be forced to [00:13:a2:00:41:4f:a0:d5]!
DEBUG:digimesh_device_manager0:DH/DL forced by repeat broadcast every 10800 seconds
CRITICAL:digimesh_device_manager0:Caught a fatal exception: ‘NoneType’ object has no attribute ‘get_service’
requesting DIA shutdown…
DEBUG:digimesh_device_manager0:Traceback (most recent call last):
File “C:\Users\XXXX\workspace\bbb\src\devices\xbee\xbee_device_manager\digimesh_device_manager.py”, line 230, in initialize_sleep_config
File “C:\Users\XXXX\workspace\bbb\src\devices\xbee\xbee_device_manager\digimesh_device_manager.py”, line 426, in _set_sleep_wake
File “C:\Users\XXXX\workspace\bbb\src\devices\device_base.py”, line 262, in property_set
File “C:\Users\XXXX\workspace\bbb\src\devices\device_base.py”, line 221, in __get_property_channel
File “C:\Users\XXXX\workspace\bbb\src\devices\device_base.py”, line 209, in get_channel_database
AttributeError: ‘NoneType’ object has no attribute ‘get_service’

Exception in thread digimesh_device_manager0:
Traceback (most recent call last):
File “./threading.py”, line 442, in __bootstrap
File “C:\Users\XXXX\workspace\bbb\src\devices\xbee\xbee_device_manager\digimesh_device_manager.py”, line 236, in run
File “C:\Users\XXXX\workspace\bbb\src\devices\xbee\xbee_device_manager\xbee_device_manager.py”, line 725, in run
File “C:\Users\XXXX\workspace\bbb\src\devices\xbee\xbee_device_manager\digimesh_device_manager.py”, line 232, in initialize_sleep_config
File “C:\Users\XXXX\workspace\bbb\src\devices\xbee\xbee_device_manager\xbee_device_manager.py”, line 1588, in _critical_die
AttributeError: ‘NoneType’ object has no attribute ‘request_shutdown’

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

I realize that in the code I am not using the correct driver for the xbee since they are not really XBeeSensor. But I think there is not a modbus driver for the case of the 868 kit.

I am rookie in this world. If someone can help me I would appreciate it very much.

Thank you very much!