Здравствуйте,
После отключения питания и последующего включения на wb-mge контроллер перестает его видеть. Лечится перезагрузкой сервиса wb-mqtt-serial.
Заметил после обновления на прошивки на 2207, на 2203 такой проблемы не было.
По данным из телеги, проблема не у меня одного.
Добрый день.
К сожалению, мало информации для анализа вашей проблемы. Нужен диагностический архив. Пришлите вывод команды systemctl status wb-mqtt-serial
, когда “контроллер перестает его видеть”. Также пришлите серийный номер модуля.
log_20230916T093126.log (2,2 КБ)
Серийный номер контроллера AOI4KEY4
Логи и диагностику приложил.
Сегодня проблема не воспроизвелась, но она воспроизвелась
16.09.2023 в районе 10 часов утра
и
17.09.2023 в районе 16:50
Серийный номер самого WB-MGE тоже пришлите.
я нашел только
|Firmware Revision:|3015|
Как сам серийник снять с модуля удаленно не знаю.
Физически пока к нему доступа нет.
Покупался по заказу 185832
К сожалению, не вижу данного заказа, а соответственно и состав.
Заказ точно под номером 185832?
Сам модуль доступен в сети? Опишите схему подключения модуля. Напрямую к контроллеру подключен или через маршрутизатор?
Воспроизвожу.
Отключил питание, включил. В логе вижу:
Sep 18 07:48:57 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 1 input(s) @ 7 of device modbus-tcp:55: Serial protocol error: request timed out
Sep 18 07:48:57 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 2 input(s) @ 270 of device modbus-tcp:55: Serial protocol error: request timed out
Sep 18 07:48:58 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 10 input(s) @ 5400 of device modbus-tcp:55: Serial protocol error: request timed out
Sep 18 07:48:58 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 3 coil(s) @ 5000 of device modbus-tcp:55: Serial protocol error: request timed out
Sep 18 07:48:59 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 10 coil(s) @ 5100 of device modbus-tcp:55: Serial protocol error: request timed out
Sep 18 07:48:59 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 10 coil(s) @ 5200 of device modbus-tcp:55: Serial protocol error: request timed out
Sep 18 07:48:59 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [serial device] device modbus-tcp:55 is disconnected
Sep 18 07:49:00 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 10 input(s) @ 2 of device modbus-tcp:41: Serial protocol error: request timed out
Sep 18 07:49:01 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: WARNING: [modbus] failed to read 2 input(s) @ 270 of device modbus-tcp:41: Serial protocol error: request timed out
Sep 18 07:49:01 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [serial device] device modbus-tcp:41 is disconnected
Sep 18 07:49:12 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [modbus] Continuous read enabled [slave_id is 41]
Sep 18 07:49:12 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [modbus] Init: Input 1 set input 1 to 1-wire: setup register <modbus-tcp:41:holding: 275> <-- 0 (0x0)
Sep 18 07:49:12 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [modbus] Init: Input 2 set input2 to 1-wire: setup register <modbus-tcp:41:holding: 276> <-- 0 (0x0)
Sep 18 07:49:12 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [serial device] device modbus-tcp:41 is connected
Sep 18 07:49:12 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [modbus] Continuous read enabled [slave_id is 55]
Sep 18 07:49:12 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [modbus] Init: Input 1 set input 1 to 1-wire: setup register <modbus-tcp:55:holding: 275> <-- 0 (0x0)
Sep 18 07:49:12 wirenboard-AWI3MCGC wb-mqtt-serial[28090]: INFO: [serial device] device modbus-tcp:55 is connected
То есть - соответствует ожидаемому.
Вижу странное:
сен 17 16:11:02 wirenboard-AOI4KEY4 wb-mqtt-serial[29915]: WARNING: [modbus] failed to read 6 coil(s) @ 0 of device modbus:41: Serial protocol error: request and response slave id mismatch
сен 17 16:11:02 wirenboard-AOI4KEY4 wb-mqtt-serial[29915]: WARNING: [modbus] failed to read 4 discrete(s) @ 0 of device modbus:41: Serial protocol error: request and response function code mismatch
То есть некое устройство отвечает вместо шлюза когда он отсутствует?
То есть - в ответ на запрос приходит пакет с другим id.
Mge подключен к контроллеру ко второму порту напрямую.
Сейчас подуль по сети доступен. но подключаюсь к нему через прокибывание порта по SSH.
В указанное время MGE был включен.
Но все равно, такое впечатление что как будто адреса из одной подсети. Опишите пожалуйста адреса интерфейсов и их подсети.
192.168.197.35/24 - eth0 Этот интерфейс смотрит в роутер и через него в интернет
192.168.97.1/24 - eth1 - К этому интерфейсу подключен mge проводом напрямую без каких либо промежуточных устройств
192.168.200.5/24 - tun0 vpn туннель.
Да, надо последить за тем как поднимется интерфейс eth1. Когда mge обесточен eth1 выключен
Как по мне - гораздо лучше перейти на актуальный релиз, 2207 - он и поддерживается до апреля. Попробую на таком же с аналогичной схемой воспроизвести.
поправлюсь.
У меня 2307. Обновлялся летом.
Ага, отлично. Тогда воспроизвожу.
Когда ждать решение?
Аналогичная ситуация - после временных проблем с сетевой связностью между контроллером и mge - wb-mqtt-serial закрывает порт через mge. Лечится только перезапуском wb-mqtt-serial
Также началось с одним из последних релизов - до этого долго не обновлялся, работало как часы…
Куда идти, что делать?
Невозможно же постоянно перезапускать сервис!
Контроллер:
DTS Version
733
HW Revision
7.3.4
Release name
wb-2501
Release suite
stable
MGE:
Module Name: | WB-MGE |
---|---|
Firmware Revision: | 3015 |
Лог wb-mqtt-serial
|05-05-2025 16:06:30.465|WARNING: [serial device] device <192.168.102.113:23> modbus:130 is disconnected|
|---|---|
|05-05-2025 16:06:30.462|WARNING: [serial device] device <192.168.102.113:23> modbus:111 is disconnected|
|05-05-2025 16:06:29.949|ERROR: [serial client] Serial protocol error: <192.168.102.113:23> connect error: Network is unreachable (101)|
|05-05-2025 16:06:29.947|WARNING: <192.168.102.113:23>: closed due to repetitive errors|
|05-05-2025 16:06:29.947|WARNING: <192.168.102.113:23>: closed due to repetitive errors|
|05-05-2025 16:06:29.283|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:28.117|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:26.949|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:26.446|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:25.279|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:24.775|WARNING: [modbus] failed to read 1 input(s) @ 121 of device <192.168.102.113:23> modbus:130: Serial protocol error: request timed out|
|05-05-2025 16:06:24.265|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:23.098|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:22.595|WARNING: [serial device] device <192.168.102.113:23> modbus:152 is disconnected|
|05-05-2025 16:06:22.595|WARNING: [serial device] device <192.168.102.113:23> modbus:152 is disconnected|
|05-05-2025 16:06:22.594|WARNING: [modbus] failed to read 2 input(s) @ 104 of device <192.168.102.113:23> modbus:152: Serial protocol error: request timed out|
|05-05-2025 16:06:21.931|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:21.428|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:20.924|WARNING: [modbus] failed to read 2 holding(s) @ 97 of device <192.168.102.113:23> modbus:152: Serial protocol error: request timed out|
|05-05-2025 16:06:20.260|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:19.757|WARNING: [serial device] device <192.168.102.113:23> modbus:39 is disconnected|
|05-05-2025 16:06:19.754|WARNING: [modbus] failed to read 8 discrete(s) @ 0 of device <192.168.102.113:23> modbus:39: Serial protocol error: request timed out|
|05-05-2025 16:06:19.243|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:18.737|WARNING: [modbus] failed to read 6 coil(s) @ 0 of device <192.168.102.113:23> modbus:39: Serial protocol error: request timed out|
|05-05-2025 16:06:18.737|WARNING: [modbus] failed to read 6 coil(s) @ 0 of device <192.168.102.113:23> modbus:39: Serial protocol error: request timed out|
|05-05-2025 16:06:18.227|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:17.722|WARNING: [modbus] failed to read 4 input(s) @ 121 of device <192.168.102.113:23> modbus:111: Serial protocol error: request timed out|
|05-05-2025 16:06:17.212|WARNING: [serial client] Reading events failed: Serial protocol error: request timed out|
|05-05-2025 16:06:16.709|WARNING: [modbus] failed to read 16 input(s) @ 250 of device <192.168.102.113:23> modbus:39: Serial protocol error: request timed out|