I have an application built on a Q2686 modem wich practically is a TCP server waiting for messages from GPRS and then sending those on serial port, wait for a response and send the response over the gprs again. It acts like a gateway between TCP/IP(with public IP) and serial.
Now my question is … is there a timeout on the GPRS part, if no traffic occurs for a period of time, or something like this? My application reads only 3 times a day, and i’ve seen that the modem is sometimes disconnected from GPRS. Also the traffic is under 50 bytes.
I also made a reconnection mechanism…if a WIP_BEV_IP_DISCONNECTED is received my application closes the bearer, starts a cyclic timer and tries to reconnect…but sometimes it just cannot succeed. If i cut the power supply and reconnect the modem it’s all ok again…
Any advices ?
Thanks in advance.