BGS2-E Modem Closing | Telit Cinterion IoT Developer Community
May 12, 2020 - 9:20am, 1751 views
Hello,
As the title suggests I'm using a BGS2-E module to send data, I've recently changed the time period between AT^SISW form 1 minute to 5 minutes which is causing the modem to close, presumably due to inactvity. After the last send the modem responds to a AT^SISI? request that it is state 4 for two minutes then responds with state 6 (closed). The modem ***** to be closed and re-opened prior to the next write command.
Is there a command in the set-up process that I can alter to keep the modem open, or alternatively a "ping" command that sends minimal data but will keep the modem open.
Many thanks
Stephen
Hello,
For the socket connection (if it is being closed on TCP layer) you could see keepalive parameters: TCP_KEEPIDLE, TCP_KEEPCNT and TCP_KEEPINTVL in the AT commands specification. Or maybe it is being closed on the upper layer if there's no new data. Maybe some reconfiguration on the server might be required.
Regards,
Bartłomiej
Hello,
Thanks for you help, I found the section in the AT Commands manual and have tried both
AT^SISS=0,address,"keepidle:600"
and
AT^SISS=0,address,"keepidle":600
both of which return an error.
Any thoughts?
Regards
Stephen
Hello,
These parameters should be added to the address string like AT^SISS=0,address,"sockudp://10.10.0.219:6666;keepidle=600". Please try.
If this does not work, please check the firmware version with 'ATI1'.
Regards,
Bartłomiej
Hello,
I was using the command
"AT^SISS=0,address,"socktcp://chargevision4.com:80"
which worked
I have ammended it to
"AT^SISS=0,address,"socktcp://chargevision4.com:80;keepidle=600"
which gives an error.
The firmware response is
REVISION 01.301
A-REVISION 01.000.04
Is that an olde version?
Regards
Stephen
Hello,
It seems that you have revision 1 module which is quite old (revision 4 is the latest) and not updatable to higher revisions due to hardware changes. And unfortunately in the AT commands specification for revision 1 I can't see these parameters. So that's the reason why it does not work for you.
Regards,
Bartłomiej
Hello,
OK well I guess that's that.
Thanks for all your help Bartłomiej.
Have a nice weekend
Regards
Stephen