TCP unexpected message length

24 views
Skip to first unread message

dirtbikersteve

unread,
Jul 14, 2017, 10:46:05 AM7/14/17
to libmodbus
Hey all im trying to talk to a sealevel IO device over modbus TCP. However i'm receiving back an unexpected number of bytes:

[00][01][00][00][00][06][01][02][00][00][00][08]
Waiting for a confirmation...
Message length not corresponding to the computed length (11 != 10)
<00><01><00><00><00><05><00><01><02><01><00>
[14-07-2017 10:41:17] [ERROR] read failed: Invalid data

Now to me the response seems perfectly valid (7 byte header, then the PDU packet). PDU packet containing the the bytes slave ID, data length of 2, then the two data bytes. What is wrong with this response?

dirtbikersteve

unread,
Jul 14, 2017, 10:47:14 AM7/14/17
to libmodbus
According to this site the response is valid as well. http://www.simplymodbus.ca/TCP.htm

dirtbikersteve

unread,
Jul 17, 2017, 10:23:52 AM7/17/17
to libmodbus
Anyone?

Stéphane Raimbault

unread,
Jul 25, 2017, 4:16:55 AM7/25/17
to libm...@googlegroups.com

Le 17 juillet 2017 à 16:23, dirtbikersteve <stevem...@gmail.com> a écrit :
Anyone?

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "libmodbus".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse libmodbus+unsubscribe@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages