Добрый день! Решил попробовать модуль WB-MAP6S, но почему то не показывает ток, значение всегда 0. Подключение перепроверил 100 раз.
root@DietPi:~# mbpoll -a 41 -b 9600 -P none -s 2 -t 3 -r 0x141A -c 2 /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
mbpoll 1.0-0 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright © 2015-2019 Pascal JEAN, https://github.com/epsilonrt/mbpoll
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'mbpoll -w' for details.
Protocol configuration: Modbus RTU
Slave configuration...: address = [41]
start reference = 5146, count = 2
Communication.........: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0, 9600-8N2
t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, input register table
-- Polling slave 41... Ctrl-C to stop)
[5146]: 0
[5147]: 0
-- Polling slave 41... Ctrl-C to stop)
[5146]: 0
[5147]: 0
Напряжение показывает нормально:
root@DietPi:~# mbpoll -a 41 -b 9600 -P none -s 2 -t 3 -r 4313 -c 1 -0 /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
mbpoll 1.0-0 - FieldTalk(tm) Modbus(R) Master Simulator
Copyright © 2015-2019 Pascal JEAN, https://github.com/epsilonrt/mbpoll
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'mbpoll -w' for details.
Protocol configuration: Modbus RTU
Slave configuration...: address = [41]
start reference = 4313, count = 1
Communication.........: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0, 9600-8N2
t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, input register table
-- Polling slave 41... Ctrl-C to stop)
Read input register failed: Response not from requested slave
-- Polling slave 41... Ctrl-C to stop)
[4313]: 22747
-- Polling slave 41... Ctrl-C to stop)
[4313]: 22730
Так же пытался настроить в HomeAssistant, но значения все равно 0
- name: "WB Ток нагрузки 1"
slave: 41
address: 5146
scan_interval: 23
input_type: input
data_type: uint32
scale: 0.00000024414