Good morning,
When I have only one device connected on modbus RTU than everything works fine.
When three of them are connected (the same devices) through Modbus RTU than my entities are unavalable.
What could be the problem?
Code:
modbus:
- name: hub1
type: serial
method: rtu
port: /dev/ttyUSB0
baudrate: 19200
stopbits: 1
bytesize: 8
parity: N
timeout: 30
delay: 20
retry_on_empty: true
close_comm_on_error: false
retries: 5
sensors:
- name: "inv01 org Work state"
scan_interval: 40
data_type: int16
slave: 6
address: 25288
Code for multiple connections:
modbus:
- name: hub1
type: serial
method: rtu
port: /dev/ttyUSB0
baudrate: 19200
stopbits: 1
bytesize: 8
parity: N
timeout: 10
delay: 5
retry_on_empty: true
close_comm_on_error: false
retries: 5
sensors:
- name: "inv01 org Work state"
scan_interval: 5
data_type: int16
slave: 6
address: 25288
- name: hub2
type: serial
method: rtu
port: /dev/ttyUSB1
baudrate: 19200
stopbits: 1
bytesize: 8
parity: N
timeout: 10
delay: 5
retry_on_empty: true
close_comm_on_error: false
retries: 5
sensors:
- name: "inv02 org Work state"
scan_interval: 5
data_type: int16
slave: 6
address: 25288