modbus icon indicating copy to clipboard operation
modbus copied to clipboard

Serial Timeout after certain request fails

Open JoyG42 opened this issue 4 years ago • 2 comments

When I use got timeout very frequent but didn't have any issue with modbuspoll

Please correct me if I'm doing any mistake, FOR MODBUSPOLL: /data/modpoll/modpoll/linux_arm-eabihf/modpoll -b 115200 -p none -m rtu -a 1 -r 618 -c 13 -t 3 -o 0.1 -l 200 /dev/ttyUSB_HRT

FOR GOBURROW=> MODBUS_RTU handler1 := modbus.NewRTUClientHandler("/dev/ttyUSB_HRT") handler1.BaudRate = 115200 handler1.DataBits = 8 handler1.Parity = "N" handler1.StopBits = 1 handler1.SlaveId = 1 handler1.Timeout = 100 * time.Millisecond

Result While Status Reading Register 334 :=== [0 0 0 0] Result While Status Reading Register 335 :=== [0 0 0 0] Result While Status Reading Register 336 :=== [0 0 0 0] Result While Status Reading Register 337 :=== [0 0 0 0] Result While Status Reading Register 338 :=== [0 0 0 0] Result While Status Reading Register 339 :=== [0 0 0 0] Result While Status Reading Register 340 :=== [0 0 0 0] Result While Status Reading Register 341 :=== [0 0 0 0] Result While Status Reading Register 342 :=== [0 0 0 0] Result While Status Reading Register 343 :=== [0 0 0 0] Result While Status Reading Register 344 :=== [0 0 0 0] Error While Status Reading Register 345 :== serial: timeout Error While Status Reading Register 346 :== serial: timeout Error While Status Reading Register 347 :== modbus: exception '2' (illegal data address), function '6'

JoyG42 avatar Dec 20 '19 14:12 JoyG42

Same here

nimahkh avatar Nov 09 '20 08:11 nimahkh

hello, can you post your "sudo dmesg" so we can see if the kernel has any weird behaviour related to this?

ermisp avatar Dec 09 '20 10:12 ermisp