Again I need teltonika community help
Since 3 days I try to implement TCP with Windev Language Programming without success, I really did my best :
Check my code (i'ts very simple to understand) :
Every 2 minutes SocketWaitForConnection becomes True when I receive IMEI periodically from FMB001,
Then I read data from channel during 10 secodes maximum and I put the content in Buffer variable and simply I print it in Hexa value,
Finally, I replay to device by wirtting ACK (0x01).
Firstly SYN from device (it's correct).
Then, ACK SYN from program (it's correct).
Then, ACK from device (it's correct).
Then, I received IMEI number. Data Length=17 (it's correct).
Then, my program sent 2 messages (Why ?).
Then, Device sent ACK.
Then, my program sent ACK by programming :
and again my program FIN ACK (it's normal ?).
Finally Device Reset connection :(
Can you help me how can I resolve this problem please ?
Thank you so much,