AssemblyLine
Member level 1
I managed to establish a TCP IP server using a GSM module Quectel M95.
The poblem I came is that I interogate continously (~2 seconds ,perhaps faster) the server ; the server responds with some data ( less than 10 bytes ) )
after a while the connection is lost;
the PC app I use as the client (the one which sends the request through internet to the m95 module ) does not receive the server's answer anymore, and after a while it says that it can not send the request anymore.
to be able to send again , I have to disconnect and connect again
I think the problem is on the server side; i don t think that the GPRS network would release the connection if there is data flowing through it; my connection get stuck after a while (sometime an hour, sometime 10 minutes; )
the QUESTION : how I (the server) can check the connection and mantain it , without restarting the connection and without any form of heartbeat packet/ping??? ...(because I am a server/slave)
The poblem I came is that I interogate continously (~2 seconds ,perhaps faster) the server ; the server responds with some data ( less than 10 bytes ) )
after a while the connection is lost;
the PC app I use as the client (the one which sends the request through internet to the m95 module ) does not receive the server's answer anymore, and after a while it says that it can not send the request anymore.
to be able to send again , I have to disconnect and connect again
I think the problem is on the server side; i don t think that the GPRS network would release the connection if there is data flowing through it; my connection get stuck after a while (sometime an hour, sometime 10 minutes; )
the QUESTION : how I (the server) can check the connection and mantain it , without restarting the connection and without any form of heartbeat packet/ping??? ...(because I am a server/slave)
Last edited: