Добрый день, пытаюсь подключить рубильник ABB к контроллеру Wirenboard.
Документацию к рубильнику:
https://library.e.abb.com/public/ff5ef30340094bd9802f179430203162/1SCC303015M0201.pdf
Согласно инструкции настройки соединения следующие:
Baud Rate = 9600
Stop Bits = 1
Parity = Even
Address = 1
Дело в том, что я перепробовал буквально все комбинации (Baud rate = 4800, 9600, 19200, 38400; Stop Bits = 1,2; Parity = None, Even, Address = 1 - 255)
Написал скрипт который перебирал все возможные варианты. Во всех прочих вариантах я стабильно получаю:
modbus_client --debug -mrtu -b19200 -peven -s1 /dev/ttyRS485-2 -a1 -t0x04 -r1
Opening /dev/ttyRS485-2 at 19200 bauds (E, 8, 1)
[01][04][00][01][00][01][60][0A]
Waiting for a confirmation…
ERROR Connection timed out: select
ERROR occured!
Но при настройках по умолчанию я получаю разные ответы:
modbus_client --debug -mrtu -b9600 -peven -s1 /dev/ttyRS485-2 -a1 -t0x04 -r1
Opening /dev/ttyRS485-2 at 9600 bauds (E, 8, 1)
[01][04][00][01][00][01][60][0A]
Waiting for a confirmation…
<00><00><00>
ERROR CRC received 0xFF00 != CRC calculated 0x7036
ERROR occured!
modbus_client --debug -mrtu -b9600 -peven -s1 /dev/ttyRS485-2 -a1 -t0x04 -r1
Opening /dev/ttyRS485-2 at 9600 bauds (E, 8, 1)
[01][04][00][01][00][01][60][0A]
Waiting for a confirmation…
ERROR Connection timed out: select
<00>ERROR occured!
modbus_client --debug -mrtu -b9600 -peven -s1 /dev/ttyRS485-2 -a1 -t0x04 -r1
Opening /dev/ttyRS485-2 at 9600 bauds (E, 8, 1)
[01][04][00][01][00][01][60][0A]
Waiting for a confirmation…
ERROR Connection timed out: select
ERROR occured!
modbus_client --debug -mrtu -b9600 -peven -s1 /dev/ttyRS485-2 -a1 -t0x04 -r1
Opening /dev/ttyRS485-2 at 9600 bauds (E, 8, 1)
[01][04][00][01][00][01][60][0A]
Waiting for a confirmation…
ERROR Connection timed out: select
<00><00>ERROR occured!
modbus_client --debug -mrtu -b9600 -peven -s1 /dev/ttyRS485-2 -a1 -t0x04 -r1
Opening /dev/ttyRS485-2 at 9600 bauds (E, 8, 1)
[01][04][00][01][00][01][60][0A]
Waiting for a confirmation…
ERROR Resource temporarily unavailable: read
<00><00><00>ERROR occured!
Не подскажете что еще попробовать?