I am trying to connect Mach3 software to STM32 microcontroler with MODBUS TCP
however I couldnot connect to Mach3 yet
at first Mach3 send a SYN message to STM32
then I respond to Mach3 MODBUS TCP SYN message with a ACK/SYN message
this time Mach3 must send an ACK
but Mach3 responds with RST message and gives connection timeout - see picture wireshark picture of ethernet
I suspect that I couldnot send the sequence number and acknowledgement number correctly in my SYN/ACK message
or what else mistake I do ?
do you know a modbus TCP library which I can get some help ?
thank you