I have a CX2 with (1) Digi RS232 Adapter and (1) Digi RS485 adapter connected to some serial devices. All Digi RF modules running latest ZB firmware.
Using SCI/RCI commands to the CX2, I send a serial message and expect the end device to reply.
When I configure the serial adapters, which are powered and not sleeping, with a specific extended address, I get a response back almost instantly.
When I use the xbee_autoenum, it can take 20-40 seconds for a response. Everything else being the same.
Here is the YML for the autoenum (indenting problem is just cut and paste issue):
- name: xbee_autoenum
driver: devices.xbee.xbee_devices.xbee_autoenum:XBeeAutoEnum
settings:
xbee_device_manager: xbee_device_manager
discover_rate: 600
devices:
- name: auto_rs485
driver: devices.experimental.xxxxx
settings:
baudrate: 9600
stopbits: 1
parity: “none”
- name: auto_rs232
driver: devices.experimental.xxxxx
settings:
baudrate: 19200
stopbits: 2
parity: “none”
hardwareflowcontrol: “True”
I have custom device drivers that are modeled after the XbeeSerial driver that just format the data in a special manner, nothing else.
Here is the same configuration not using autoenum that provides very fast response back:
- name: RS485
driver: devices.experimental.xxxxxx
settings:
xbee_device_manager: “xbee_device_manager”
extended_address: “00:13:a2:00:40:30:df:72!”
baudrate: 9600
stopbits: 1
parity: “none”
- name: RS232
driver: devices.experimental.xxxxxx
settings:
xbee_device_manager: “xbee_device_manager”
extended_address: “00:13:a2:00:40:62:CE:07!”
baudrate: 19200
stopbits: 2
parity: “none”
hardwareflowcontrol: “True”
I looked at the console during startup and I see that the Xbee DDO settings are the same with autoenum vs explicit configuration.
Any ideas on what is causing the delay coming back from the adapters?