TCP-IP Over GPRS With Modbus
TCP-IP Over GPRS With Modbus
Report this ad
I am working to a project involving a GSM/GPRS module which role it is to connect clients with
some devices over the internet using TCP-IP and Modbus protocol. Now I am studying the TCP
connecting scheme.
As far as I understood , the GSM network automatically close a TCP connection if there is not
any traffic on it for some time.
I want to detect and maintain TCP connection as reliable as possible. Also to detect half-open
connections.
The connection procedure is as follows: my GSM module acts as a server, so it opens a socket on
port 502 and wait for clients to read data. The client can read data periodically at 3 minutes or
longer.
When a client connects with my module , it requests for some data, the module sends the
requested data and wait for other requests, and keeps the connection open