MODBUS TCP help

Guest #5539170
hello dear forum,

I am trying to MODBUS TCP comunicate STM32 with Mach3

I have read the TCP documents in internet and learned
that first of all Mach3 send a TCP SYN message to the STM32

this time I send a SYN-ACK message to Mach3

after this Mach3 must send a ACK message to STM32

as you can see in the attached picture

the SYN from Mach3 and SYN-ACK from STM32 is there
(192.168.1.2) PC (192.168.1.110) STM32

however ACK from Mach3 is missing and Mach3 reports "conection timeout"

there is a warning from Wireshark yellow coloured

what does this warning say ? what shall I do next ?

thank you
Attached files:
Guest #5539174
The error means there's an acknowlede that's not corresponding to a 
message sent / received before. Thus the ack cannot be interpreted. 
Probably that's the reason why your modbos won't work.
Guest #5549665
hello dear forum,

I finally managed to respond to Mach3 MODBUS TCP SYN message

I have sent a correct SYN ACK message back to Mach3

but this time Mach3 responds with RST message - see picture

what shall I send back to Mach3 in order to finish connection process

thank you
Attached files:

Reply

A question of your own? This thread is over 8 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.