-->
Page 1 of 1

Modbus TCP incorrect response length

PostPosted: Thu Mar 24, 2022 3:14 pm
by addelichtman
May be this is not the correct place but I give it a try:

Hello can someone please help me with the following:
I want to communicate with a MODBUS TCP client to a ESP8266 ESP01 card.
I use the sketch of http://en.trialcommand.com/blog/esp8266 ... libraries/
This works, however my Modbus TCP client throws an exception
"Incorrect length in response"
This happens when I send "node.writeMultipleRegisters(xx,yy)" the client should respond with an acknowledge, I have the impression that this acknowledge message does not have the correct length.
Might this be a library issue?
Your help is very much appreciated.

If this is not the write place to ask this I apologize please direct me to the correct one, Thanks!
Ad

Re: Modbus TCP incorrect response length

PostPosted: Thu Mar 31, 2022 5:51 am
by rpiloverbd
In the 'references' section of your shared link, there is a link to another article named 'Update ESP8266 Industrial Modbus TCP IP V2.0' have you checked that content along with all the videos inside?

Re: Modbus TCP incorrect response length

PostPosted: Mon Apr 11, 2022 6:24 am
by addelichtman
Hello thank you for answering, I found that my ModbusTCP client had a bug which caused the problem, thanks again for your support, Ad