Hi all,
I have some questions hope someone can help with.
In building my app, I ported some sample code from the Data Connection Service test module so that my app can open the data connection.
I have noticed that my app periodically disconnects from the data connection, and I used the DCSHandler to reconnect the data connection.
When I perform the data connection, it sometime tries to connect to the wifiClient which is not configure so it fails after a number of attempts. How can I make it so that it doesn’t try the wifiClient at all, I’m not using it in my app.
Also, why does the data connection disconnect periodically? Is there a setting to tell it to stay connected? Or is it best for it to disconnect? What are best practices when it comes to Data Connection?
Here’s a log of when the app is trying to reconnect the data connection on the wifiClient…
CONSOLE-FX30s.txt (8.0 KB)
Thank in advance!
Regards,
Eddie
Hi Eddie,
Could you please try stopping the wifiService:
app stop wifiService
This will just stop the service until next reboot.
BR,
Chris
Thanks Chris.
I tried your suggestion above but that didn’t stop the periodic data disconnections.
That was with the FX30s 3G model, now I’m testing with the FX30s LTE and I’m seeing different results altogether. I’ll post them in a new topic.
Thanks
Eddie
Hi Eddie,
Could you confirm that the wifi is no longer attempting to connect?
Legato has a built in inactivity timer that disconnects a session if there’s no traffic for 20 seconds. Are you able to confirm if your app has not sent any data before the disconnect?
BR,
Chris
Chris,
The wifi is no longer connecting, but I’m still having issues. First can I ask you, how can I disable the wifiService so that it doesn’t start again after a reboot?
To answer your second question, my app is connected to a server via a socket connection and it is receiving and transmitting data every 11 seconds, so I don’t think it’s triggering the inactivity timer. Although, I would like to incorporate that functionality into my app. Where can I find more info on it?
The issue I’m still seeing is my app is connected and transmitting data as designed, all of a sudden the network registration is lost for about 30 minutes. In the log it show my network registration state handler reporting the registration state as “searching for network”.
Then roughly about 30 minutes the registration state changes again to “Home” and my app reconnects to the server and resumes data transmission at that time.
This is sequence is repeated consistently every 90 minutes. The only exception was this weekend, when after running approximately for two day, it stopped recovering altogether. My app kept running, but the registration state never recovered and stayed “searching for network” until I rebooted it this morning.
I have been searching on the forum for any information or any similar scenario but haven’t found any.
Her is my log. I included only one iteration of when the problem occurs since all the other ones are exactly the same.
Thanks.
Eddie
May 13 16:51:12 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=io_TCP_Thread | FX30S_CellcommComponent.c ioThread_TCP() 679 | Received PING message.
May 13 16:51:12 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=Read_Uart_Thread | FX30S_CellcommComponent.c ioThread() 327 | Received ACK message.
May 13 16:51:24 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=io_TCP_Thread | FX30S_CellcommComponent.c ioThread_TCP() 679 | Received PING message.
May 13 16:51:24 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=Read_Uart_Thread | FX30S_CellcommComponent.c ioThread() 327 | Received ACK message.
May 13 16:52:00 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=main | FX30S_CellcommComponent.c DcsStateHandler() 722 | ‘’ disconnected!
May 13 16:52:00 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=main | FX30S_CellcommComponent.c ConnectData() 164 | A data connection request already exist.
May 13 16:52:01 | modemDaemon[996]/le_pa T=unknown | pa_mrc_qmi.c EventReportHandler() 1349 | Network Registration failed error code 15
May 13 16:52:01 | modemDaemon[996]/modemDaemon T=main | le_mrc.c NetworkRejectIndHandler() 1170 | Network Reject Ind Handler called with RAT.8, mcc. and mnc.
May 13 16:52:03 | modemDaemon[996]/modemDaemon T=main | le_mrc.c SignalStrengthIndHandlerFunc() 686 | Signal Strength Ind Handler called with RAT.4 and ss.-65
May 13 16:52:03 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=main | FX30S_CellcommComponent.c NetRegStateHandler() 782 | searching for network
May 13 16:52:03 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=main | FX30S_CellcommComponent.c NetRegStateHandler() 800 | Registration - Searching for network.
May 13 16:52:05 | dcsDaemon[1819]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDefaultGateway() 568 | Default gateway or interface is empty
…
…
…
May 13 17:20:41 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=main | FX30S_CellcommComponent.c NetRegStateHandler() 782 | registered on its home network
May 13 17:20:41 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=main | FX30S_CellcommComponent.c NetRegStateHandler() 788 | Registration - Home or Roaming.
May 13 17:20:41 | modemDaemon[996]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2084 | called
May 13 17:20:47 | dcsDaemon[1819]/le_pa_dcs T=main | pa_dcs_linux.c AddNameserversToResolvConf() 310 | Set DNS ‘10.177.0.34’ ‘10.177.0.210’
May 13 17:20:47 | dcsDaemon[1819]/le_pa_dcs T=main | pa_dcs_linux.c AddNameserversToResolvConf() 310 | Set DNS ‘fd00:976a::9’ ‘fd00:976a::10’
May 13 17:20:47 | dcsDaemon[1819]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 1318 | DNS configuration is set successfully
May 13 17:20:52 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=main | FX30S_CellcommComponent.c DcsStateHandler() 715 | ‘rmnet_data0’ connected using the technology ‘’!
May 13 17:21:03 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=io_TCP_Thread | FX30S_CellcommComponent.c ioThread_TCP() 679 | Received PING message.
May 13 17:21:03 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=Read_Uart_Thread | FX30S_CellcommComponent.c ioThread() 327 | Received ACK message.
May 13 17:21:14 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=io_TCP_Thread | FX30S_CellcommComponent.c ioThread_TCP() 679 | Received PING message.
May 13 17:21:14 | fx30s_cellcomm[1902]/FX30S_CellcommComponent T=Read_Uart_Thread | FX30S_CellcommComponent.c ioThread() 327 | Received ACK message.
Eddie, Chris
Did you have any luck tracking down the cure for the de-registration issue (and the disabling of Wifi permanently).
We’re developing a new app, 2 years after your post, and are experiencing the same network registration issues. It has the telco’s stumped (happening in two countries with different providers, NZ and Australia)
Running latest firmware, FX30.
Any thoughts appreciated.
Brett
Brett,
It’s been a long time since I reported the problem. We were developing with the FX30-3G at the time and then switched to the FX30-LTE. I don’t recall the problem continuing after that.
The wifiService was resolved when I built my own firmware image, after building the image the wifiService app was gone. I don’t know why.
Hope that helps.
Eddie