modbus_send only sending 64 bytes
Hello,
I am using libmodbus as an RTU slave. The port is /dev/ttyUSB0 which is a Keyspan USB to 232 converter. The slave works fine until the master sends a request whose response is > 64 bytes.
In modbus_send() I added the following line: printf("ret=%d query_length=%d\n", ret, query_length);
The output: "ret=64 query_length=69"
Message responses of < 64 bytes work fine.
Any suggestions? Is my write buffer really only 64 bytes long?
Here's some verbose output:
Waiting for a message...
<02><10>
[02][10]
Waiting for a message...
<02><10>
[02][10]
Waiting for a message...
<02><03>
[02][03]
ret=64 query_length=69
ERROR Write port/socket failure (-13)
-Pat W.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- libmodbus Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: