Skip to content

tiemout parameter can not be changed. Always takes 3.0 seconds #1155

@bsense-rius

Description

@bsense-rius

Versions

  • Python: 3.8
  • OS: ubuntu 20.04
  • Pymodbus: 2.5.3
  • Modbus Hardware (if used): SHT20 Temperature Sensor

Pymodbus Specific

  • Server: N/A
  • Client: serial rtu-async

Description

No matter the timeout I set, it always takes 3.0 seconds when the modbus peripheral has an issue.

What were you trying, what has happened, what went wrong, and what did you expect?
The sensor fails from time to time. Most of the time is ok, but sometimes is not processing modbus requests. So we are aware of this issue, but we expected the pymodbus library timeout in the given timeout parameter, But it does not. Always takes 3.0 seconds

Code and Logs

# code and logs here.
loop, client =  AsyncModbusSerialClient(schedulers.ASYNC_IO, port=self.commPort, baudrate=self.commSpeed, method=self.modbusMode, timeout=self.commTimeout, loop=fakeLoop)

# please use the following to format logs when posting them here
import pymodbus
pymodbus.pymodbus_apply_logging_config()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions