Tool/software: TI-RTOS
Hi,
I am using TI NDK - ndk_2_25_00_09 and TI RTOS - tirtos_tivac_2_16_01_14 for my DUT which is TM4C1292NCPDT.
i have developed an application for Modbus Slave TCP protocol which is running on top of NDK stack. i have created TCP socket thread for Modbus TCP packets i.e. port number 502 and its opening TCP channel and closing TCP channel when Modbus Client application wants to connect and disconnect respectively.
find the wireshark snapshot.
No 3,4 and 5 - For connection establishment.
No. 6,7,8 and 9 - For disconnect.
Here 192.168.8.2 - Desktop i.e. Modbus TCP client application running system.
192.168.8.4 - is My DUT ( TM4C device) i.e. Modbus Slave TCP application running device.
This is working perfect when the Cient application closes and Disconnect. but when PC power is turned OFF when client application is connected, i will not be able to communicate modbus tcp transaction, whereas i will be able to establish the TCP connection and i will be able to ping properly.
here i found that Modbus TCP socket is not getting closed properly when client application is closed abruptly.
how we can handle this situation for my application? even though client application closed abruptly, my TCP socket needs to be closed after some times or after verifying something.
Regards
Bala