Skip to content

Can i control if single or multiple Modbus payloads are in a single TCP frame? #128

Description

@StefanR71

Hi,

i'm using the modbus-cli which uses uModbus.

When i'm doing a query for some registers, modbus-cli is grouping this registers and i need perhaps 3 modbus requests. This 3 requests will be put in 2 TCP packets, the first TCP packet has one Modbus payload and the second TCP packet contains the last 2 Modbus payloads.

image

Who is controlling the creation of the TCP packets?

Can i change here something, that each Modbus packet is getting a own TCP packet?

And this is every time the same, ich have every time 2 TCP packets, the first TCP packet has every time one Modbus packet inside and the second TCP packet has all the rest inside, i have seen up to 19 Modbus packets here in my tests.

Best Regards
Stefan

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