Skip to content

'Unable to decode request' with Modbus rtu over TCP #200

@ccatterina

Description

@ccatterina

Hi,
We use many RS485 to Ethernet converter to read data with Modbus RTU over TCP and I've noticed that with the version 1.3.1 of pymodbus the failure rate has increased. Most of the time i receive Modbus Error: [Input/Output] Modbus Error: [Input/Output] Unable to decode request.

I think is the result of calling socket.recv with the expected length of the response instead of use 1024 when there is noise on the serial line, in fact with 1024 the buffer was cleaned of the residual bytes of noise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions