-
Notifications
You must be signed in to change notification settings - Fork 48
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
Response timeout of RTU master #86
Comments
Hello @ondrej1024 Here an example https://github.com/GimmickNG/pycopy-modbus/blob/ad38bb74d2da0a4b22c518567bbee44647da7afd/examples/rtu_host_example.py#L34 where show that the default is 120 ms, and you can to change the timeout just changing the Ps1: I don't know if that works in the last version of ModBus lib because I'm using the async version #56 that will be merged soon! Ps2: that example that I linked still is not in the official examples because the PR #56 is not finished yet. But I agree, it is important to put in the docs what is the default timeout for the Master RTU and how to change it. Maybe @brainelectronics can to put that information in the docs when the asyncio version is merged! |
Thanks for your answer. |
Do you know where the default timeout is defined? I checked the source code but couldn't find it. |
After some more digging, eventually I found the code which is responsible for the timeout. It is in file
However, the value of 120 here is not the number of ms but the number of |
Description
I just need an information which I couldn't find in the docs.
What is the default response timeout of the RTU master and how can it be changed ?
Thanks, Ondrej
Reproduction steps
None
MicroPython version
v.1.20
MicroPython board
Raspberry Pico
MicroPython Modbus version
None
Relevant log output
No response
User code
No response
Additional informations
No response
The text was updated successfully, but these errors were encountered: