-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Modbus Serial port timeout for discontinued address poll #9253
Comments
Tested with Configuration
Result
|
This function is tested |
@binueda please only close this issue after the PR has been merged and you tested with the master branch. Otherwise it might look like the issue no longer exists and the pressure to merge the PR is reduced. ;-) Furthermore, other people experiencing the same issue will think it should work already. Will reopen. :-) |
Got it, will keep it open |
Relevant telegraf.conf:
System info:
Ubuntu, linux , arm64
Steps to reproduce:
--debug log
2021-05-10T19:35:45Z D! [agent] Starting service inputs
2021-05-10T19:35:50Z D! [inputs.modbus] modbus: send 0a 03 10 04 00 02 80 71
<-- First command at 9:35:502021-05-10T19:35:50Z D! [inputs.modbus] modbus: recv 0a 03 04 00 00 00 00 40 f3
2021-05-10T19:35:50Z D! [inputs.modbus] got holding@4100[2]: [0 0 0 0]
2021-05-10T19:35:50Z D! [inputs.modbus] ~CH1 offset 0 with len 4: [0 0 0 0] --> 0
<-- First data received at 9:35:502021-05-10T19:35:50Z D! [inputs.modbus] modbus: send 0a 03 10 6a 00 02 e1 ac
<-- Next Command send at 9:35:502021-05-10T19:35:54Z D! [inputs.modbus] modbus: recv
2021-05-10T19:35:54Z E! [inputs.modbus] Error in plugin: serial: timeout
<-- timeout received after 3 secExpected behavior:
Serial port subsequent command will need a delay from the time data is read.
2021-05-10T19:35:45Z D! [agent] Starting service inputs
2021-05-10T19:35:50Z D! [inputs.modbus] modbus: send 0a 03 10 04 00 02 80 71
<-- First command at 9:35:502021-05-10T19:35:50Z D! [inputs.modbus] modbus: recv 0a 03 04 00 00 00 00 40 f3
2021-05-10T19:35:50Z D! [inputs.modbus] got holding@4100[2]: [0 0 0 0]
2021-05-10T19:35:50Z D! [inputs.modbus] ~CH1 offset 0 with len 4: [0 0 0 0] --> 0
<-- First data received at 9:35:502021-05-10T19:35:51Z D! [inputs.modbus] modbus: send 0a 03 10 6a 00 02 e1 ac
<-- Next Command send at 9:35:512021-05-10T19:35:54Z D! [inputs.modbus] modbus: recv 0a 03 04 00 00 00 00 40 f3
2021-05-10T19:35:54Z E! [inputs.modbus] ~CH2 offset 0 with len 4: [0 0 0 0] --> 0
<-- second data received at 9:35:54Additional info:
Serial poll rate should be greater than 100ms , found in mbpoll
-l # Poll rate in ms, ( > 100, 1000 is default)
Using mbpoll verified command send immediately after the poll completion, generated connection timeout subsequent command respond with data. device may not be ready to receive the next command
The text was updated successfully, but these errors were encountered: