BGS5T running server won't accept connection | Thales IoT Developer Community
July 9, 2019 - 10:33am, 3178 views
Hello,
I have BGS5T on which is running Java server. When module start everything works OK, I can ping it over VPN and make HTTP requests to it. But if for some time there won't be any PING or HTTP request it won't respond. But if I send SMS to this module, it will again respond to HTTP and PING. What could be cause for this and how to solve it besides send SMS to it.
Regards,
Jure
Hi Jure,
Do you have LAN or USB version of the terminal? If LAN, do you have also PPP running between your device and the terminal?
Please also let me know:
-what is the module version (ati1)?
-how long you should not send any ping or http request to see the issue?
-do you use some sleep **** on the module?
-could you please provide arguments you set in Connector.open method and / or SJNET command?
Thanks,
Adam
Hi Adam,
It's USB version.
- ATI1: BGS5 REVISION 01.100 A-REVISION 00.000.18
Time betwen HTTP
- how long you should not send any ping or http request to see the issue: It depends, yestrday it was sometimes after 10 mins, somtimes it's working ok for almost whole day
- do you use some sleep **** on the module?: no
APN parameters are: "em","em","em"
Regards,
Jure
So connection gets established again when SMS is sent out or module makes HTTP request.
Regards,
Jure
Hi Jure,
I ran simple MIDlet that implements TCP server on the module and pritns received data on ASC0. I will leave it over the night without any pinging and without client connected to it. Tomorrow I will check if I will be able to ping it / connect TCP client to it.
Best regards,
Adam
Hi Jure,
unfortunately I cannot reproduce this issue. I tested it on the same FW, however using module on evaluatio board instead of the terminal - in my opinion it should not change anything. I think, it would be worth to focus more on the network side. Obviously I had to test it with other APN than you. In my case it was APN without user and password. Maybe your network introduces some sleep after some time of inactivity. I have one WA idea. Could you implement in your MIDlet feature that will generate network traffic every defined period of time? E.g. you could use NetExtension class to ping some server every 30 minutes or send DNS query. I think it wouldn't increase data usage significantly.
Best regards,
Adam
Hi Adam,
I also contacted the SIM / Network provider and they said that incativity shoulden't happen. But since they offer there services trough whole EU, they probably use networks of country service provider that you are currently located in.
I allready have implemented something simillar. Every few minutes I start HTTP request to retrive cell tower location. This helps as connection is established again, but after some random time it ges droped again.
Thank you for your test, it looks that problem is affterall on service provider side.
Jure
Hi Jure,
no problem. I performed one more test with other SIM card (other network operator) but still could not reproduce this issue. I hope you will be able to find good timings with your WA to minimize possibility of this issue occurence.
Best regards,
Adam