Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial Timeout after certain request fails #56

Open
JoyG42 opened this issue Dec 20, 2019 · 2 comments
Open

Serial Timeout after certain request fails #56

JoyG42 opened this issue Dec 20, 2019 · 2 comments

Comments

@JoyG42
Copy link

JoyG42 commented Dec 20, 2019

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'

@nimahkh
Copy link

nimahkh commented Nov 9, 2020

Same here

@ermisp
Copy link

ermisp commented Dec 9, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants