Ошибка в лог файле, wb mdm2


#1

А это как исправить?
77 72 63 Это три диммера. WB MDM2. Добавлены в контроллер как устройства wb mdm2. Что не верно?

l 23 21:33:42 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:42 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:43 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:43 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:43 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:43 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:44 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:44 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:44 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:44 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:44 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:44 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:45 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:45 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:46 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:46 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:46 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:46 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:46 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:46 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:47 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:47 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:47 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:48 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:48 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:48 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:49 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:49 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:49 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:49 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:50 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:50 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:72: Serial protocol er ror: illegal data value
Jul 23 21:33:50 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:50 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:77: Serial protocol er ror: illegal data value
Jul 23 21:33:51 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 65 of device modbus:63: Serial protocol er ror: illegal data value
Jul 23 21:33:51 wirenboard-AYKBQYRG user.notice serial: ModbusRTU::ReadRegisterR ange(): failed to read 1 holding(s) @ 66 of device modbus:63: Serial protocol er ror: illegal data value
Впишите сюда текст; также, отключить форматирование текста можно, начав строку с 4х пробеловТекст "как есть" (без применения форматирования)


Большой лог файл. wb6
Почините оборудование
#2

Там же написано: Modbus-устройство с адресом 63 отвечает при опросе ошибкой Illegal Data Value. Или проставили неправильный шаблон для устройства, или в самом шаблоне ошибка.

Очень прошу создавать отдельные темы на разные несвязанные вопросы. Спасибо.


#3

содержимое /etc/wb-mqtt-serial.conf пожалуйста сюда выложите. И серийники всех трёх устройства.


#4

серийные 8041713 8041727 8041722

{
“debug”: false,
“ports”: [
{
“path”: “/dev/ttyRS485-1”,
“devices”: [
{
“slave_id”: 86,
“device_type”: “WB-MR6C”
},
{
“slave_id”: 72,
“device_type”: “WB-MDM2”
},
{
“slave_id”: 87,
“device_type”: “WB-MR6C”
},
{
“slave_id”: 107,
“device_type”: “WB-MRGB”
},
{
“slave_id”: 110,
“device_type”: “WB-MRGB”
},
{
“slave_id”: 231,
“device_type”: “WB-MCM16”
}
],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: true
},
{
“path”: “/dev/ttyRS485-2”,
“devices”: [
{
“slave_id”: 83,
“device_type”: “WB-MR6C”
},
{
“slave_id”: 101,
“device_type”: “WB-MR3”
},
{
“slave_id”: 63,
“device_type”: “WB-MDM2”
},
{
“slave_id”: 77,
“device_type”: “WB-MDM2”
}
],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: true
},
{
“path”: “/dev/ttyMOD1”,
“devices”: [],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: false
},
{
“path”: “/dev/ttyMOD2”,
“devices”: [],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: false
},
{
“path”: “/dev/ttyMOD3”,
“devices”: [],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: false
}
]
Впишите сюда текст; также, отключить форматирование текста можно, начав строку с 4х пробелов


#5

Странно. Пришлите пожалуйста серийные номера WB-MDM2 или номер заказа, в котором они куплены.


#6

серийные 8041713 8041727 8041722


#7

Спасибо. Прошу прощения, сразу не понял в чём проблема.
Регистры 65 и 66 поддерживаются с версии прошивки 1.1.0, у вас 1.0.0.

Так что ошибки от девайса по чтению этих регистров - это нормально. Ненормально то, что драйвер wb-mqtt-serial пытается их постоянно читать: он должен прочитать их один раз и навсегда понять, что регистры не поддерживаются.

Скажите пожалуйста, какая у вас версия wb-mqtt-serial ?

dpkg -s wb-mqtt-serial

Обновить можно через apt-get


#8

Linux wirenboard-AYKBQYRG 4.9.22-wb6 #2 SMP Fri Jul 6 13:34:03 UTC 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jul 24 21:24:33 2018 from 192.168.0.21
root@wirenboard-AYKBQYRG:~# dpkg -s wb-mqtt-serial
Package: wb-mqtt-serial
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 948
Maintainer: Evgeny Boger boger@contactless.ru
Architecture: armhf
Version: 1.41.3
Replaces: wb-homa-modbus (<< 1.14.1)
Depends: libc6 (>= 2.4), libgcc1 (>= 1:3.5), libjsoncpp1 (>= 1.7.4), libmosquitto1 (>= 1.0), libmosquittopp1 (>= 1.0), libstdc++6 (>= 6), libwbmqtt0 (>= 1.7), bsdutils
Breaks: wb-homa-modbus (<< 1.14.1), wb-mqtt-confed (<< 1.0.2), wb-mqtt-homeui (<< 1.7)
Conffiles:
/etc/init.d/wb-mqtt-serial 1cfd1f4e29c3502bc6eac8ccbd9986ec
/etc/wb-configs.d/11wb-mqtt-serial 5325e375bc486e31384ed908b8ceae0e
/etc/wb-mqtt-serial.conf.sample c8c1adbf630e6fd7ec871b1b5c4a5e0f
Description: Wiren Board Smart Home MQTT serial protocol driver.


#9

Пишет у меня последняя версия

root@wirenboard-AYKBQYRG:~# apt-get install wb-mqtt-serial
Reading package lists… Done
Building dependency tree
Reading state information… Done
wb-mqtt-serial is already the newest version (1.41.3).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.


#10

Есть ответы?


#11

Вы продублировали вопрос в новую тему, там мой коллега дал ответ: Почините оборудование


Яндекс.Метрика