# Issue with Data service

**URL:** <https://mangoh.discourse.group/t/issue-with-data-service/222>\
**Category:** mangOH Green\
**Created:** [September 19, 2016, 11:37am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222 "2016-09-19T11:37:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![niladridm](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/niladridm/32/91_2.png) [@niladridm](https://mangoh.discourse.group/u/niladridm)\
**Post date:** [September 19, 2016, 11:37am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/1 "2016-09-19T11:37:49Z")

</div>

Hi,  
I am using Vodafone postpaid sim (APN : internet) in mangOH, no issue with network registration but data service is not working although data service is active and working good in my cellular mobile.  
below i am sharing cm tool response:  
root@swi-mdm9x15:~# cm radio status  
Power: ON  
Current Network Operator: TATA DOCOMO  
RAT: UMTS network (LE\_MRC\_RAT\_UMTS)  
Status: Registered to a roaming network (LE\_MRC\_REG\_ROAMING)  
Signal: Good signal strength (3)

root@swi-mdm9x15:~# cm radio status  
Power: ON  
Current Network Operator: TATA DOCOMO  
RAT: UMTS network (LE\_MRC\_RAT\_UMTS)  
Status: Registered to a roaming network (LE\_MRC\_REG\_ROAMING)  
Signal: Good signal strength (3)

root@swi-mdm9x15:~# cm data connect  
no response and below is Legato trace  
Sep 19 11:22:42 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Sep 19 11:22:43 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_START\_NETWORK\_INTERFACE\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]  
Sep 19 11:22:43 | Legato | modemDaemon[486]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1686 | Data connection failure Call End provided 7, Code 10  
Sep 19 11:22:43 | Legato | modemDaemon[486]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1697 | Data connection failure Verbose Call End provided Type 6, Verbose 29  
Sep 19 11:22:43 | Legato | modemDaemon[486]/modemDaemon T=main | le\_mdc.c le\_mdc\_StartSession() 797 | Get Connection failure 7, 10, 6, 29  
Sep 19 11:22:57 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Sep 19 11:22:57 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Sep 19 11:22:59 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_START\_NETWORK\_INTERFACE\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]  
Sep 19 11:22:59 | Legato | modemDaemon[486]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1686 | Data connection failure Call End provided 7, Code 10  
Sep 19 11:22:59 | Legato | modemDaemon[486]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1697 | Data connection failure Verbose Call End provided Type 6, Verbose 29  
Sep 19 11:22:59 | Legato | modemDaemon[486]/modemDaemon T=main | le\_mdc.c le\_mdc\_StartSession() 797 | Get Connection failure 7, 10, 6, 29  
Sep 19 11:23:12 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Sep 19 11:23:12 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Sep 19 11:23:13 | Legato | modemDaemon[486]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_START\_NETWORK\_INTERFACE\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]  
Sep 19 11:23:13 | Legato | modemDaemon[486]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1686 | Data connection failure Call End provided 7, Code 10  
Sep 19 11:23:13 | Legato | modemDaemon[486]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1697 | Data connection failure Verbose Call End provided Type 6, Verbose 29  
Sep 19 11:23:13 | Legato | modemDaemon[486]/modemDaemon T=main | le\_mdc.c le\_mdc\_StartSession() 797 | Get Connection failure 7, 10, 6, 29

Please help me to find the issue.

Thanks

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [September 19, 2016, 10:01pm UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/2 "2016-09-19T22:01:59Z")

</div>

Hi Nila,

Seems like there is an authentication failure. Can you confirm whether the SIM allows data roaming?

cheers,  
Ashish

---

<div class="post-metadata">

**Author:** ![niladridm](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/niladridm/32/91_2.png) [@niladridm](https://mangoh.discourse.group/u/niladridm)\
**Post date:** [September 20, 2016, 5:27am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/3 "2016-09-20T05:27:16Z")

</div>

Thanks Ashish. Yes you are correct. This is m2m sim and have private APN. this required CHAP authentication and i have configure the same using cm tool. Now it is working fine.

Thanks  
Niladri

---

<div class="post-metadata">

**Author:** ![niladridm](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/niladridm/32/91_2.png) [@niladridm](https://mangoh.discourse.group/u/niladridm)\
**Post date:** [February 7, 2017, 8:01am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/4 "2017-02-07T08:01:34Z")

</div>

Hi,  
facing an issue with data re-connection. It is happening every now and then. when the data connection break due to poor signal it is not recovering back even though i am trying to reconnect using le\_data\_Request api. below is the log which is repeating. After power cycle it will work good for a while. Please let me know what is the issue

Feb 7 07:37:38 | Legato | dcsDaemon[466]/dataConnectionService T=Data Thread | dcsServer.c TryStartDataSession() 998 | Could not save the default gateway  
Feb 7 07:37:38 | Legato | modemDaemon[469]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Feb 7 07:37:38 | Legato | modemDaemon[469]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Feb 7 07:37:38 | Legato | modemDaemon[469]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Feb 7 07:37:38 | Legato | modemDaemon[469]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Feb 7 07:37:38 | Legato | modemDaemon[469]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
Feb 7 07:37:38 | Legato | dcsDaemon[466]/dataConnectionService T=Data Thread | dcsServer.c AddNameserversToResolvConf() 653 | Set DNS ‘125.22.47.102’ '59.144.144.46’  
Feb 7 07:37:38 | Legato | modemDaemon[469]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 768 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]

---

<div class="post-metadata">

**Author:** ![happytuna](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/happytuna/32/102_2.png) [@happytuna](https://mangoh.discourse.group/u/happytuna)\
**Post date:** [February 7, 2017, 12:56pm UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/5 "2017-02-07T12:56:44Z")

</div>

Hi all,

I have also seen this problem, and the same error messages, very rarely but it has happened, so I’m also interested in the answer, and also I have a more general question which is, apart from using the le\_data\_Request() call, is there any other way of creating (and closing) a data connection ?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [February 8, 2017, 1:29am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/6 "2017-02-08T01:29:13Z")

</div>

Hi Nila,

I’ll have to open a ticket on this item.

Regards,  
Ashish

Hi Happytuna,  
le\_data\_request() call would be your best for creating and closing the data connection.

regards,  
Ashish

---

<div class="post-metadata">

**Author:** ![Raf](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Raf](https://mangoh.discourse.group/u/Raf)\
**Post date:** [May 12, 2017, 3:32am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/7 "2017-05-12T03:32:01Z")

</div>

Hi all,

I too am experiencing the occasional data connection issue.  
They are seemingly random - sometimes after a few minutes, though most often occurs after a number of days.

Firmware Version: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
Framework Version: 16.10.1\_aaeaccf56a618be69da2be9aad4a2a04\_modified  
Linux Version: 3.14.29ltsi-a00e464379\_b0ce579abb #2 PREEMPT Wed Dec 7 20:56:58 PST 2016  
Module: WP85

Unfortunately, I haven’t been able to capture a system log of when the issue first begins but what I do know is that my app releases the data connection but the interface never actually disconnects. When I connect to the system the log is continually updating with the messages as shown below:

```auto
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1690 | Data connection failure Call End provided 45, Code 1
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 2, Verbose 210
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/modemDaemon T=main | le_mdc.c le_mdc_StartSession() 919 | Get Connection failure 45, 1, 2, 210
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_GET_RUNTIME_SETTINGS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]
May 11 06:36:32 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c SetDefaultGateway() 1010 | Default gateway or interface is empty
May 11 06:36:32 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c LoadSelectedTechProfile() 786 | No value set for 'SSID'!
May 11 06:36:32 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c TryStartWifiSession() 1633 | Impossible to use Wifi profile, result -1 (LE_NOT_FOUND)
May 11 06:36:32 | Legato | DBUG | wifiService[633]/daemon T=main | le_wifiClient.c le_wifiClient_Disconnect() 1198 | Disconnect
May 11 06:36:32 | Legato | INFO | modemDaemon[623]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2040 | called
May 11 06:36:32 | Legato | INFO | wifiService[633] | WIFICLIENT_DISCONNECT
May 11 06:36:32 | Legato | =ERR= | wifiService[633] | Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
May 11 06:36:32 | Legato | =ERR= | wifiService[633]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Disconnect() 1041 | WiFi Client Command Failed: (24832)wlan0 WIFICLIENT_DISCONNECT
May 11 06:36:32 | Legato | DBUG | wifiService[633]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Disconnect() 1228 | Sending response to client session 0x27dcc : 4 bytes sent
May 11 06:36:32 | Legato | =ERR= | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c TryStopWifiSession() 1851 | Impossible to disconnect wifi client
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1690 | Data connection failure Call End provided 14, Code 2
May 11 06:36:32 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 3, Verbose 2000
May 11 06:36:35 | Legato | -WRN- | app[5175]/appCtrl T=main | appCtrl.c PrintedAppInfoFile() 744 | No /legato/systems/current/apps/wifiWebAp/info.properties file for app wifiWebAp.
May 11 06:36:37 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
May 11 06:36:37 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1690 | Data connection failure Call End provided 45, Code 1
May 11 06:36:37 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 2, Verbose 210
May 11 06:36:37 | Legato | =ERR= | modemDaemon[623]/modemDaemon T=main | le_mdc.c le_mdc_StartSession() 919 | Get Connection failure 45, 1, 2, 210
May 11 06:36:37 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_GET_RUNTIME_SETTINGS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]
May 11 06:36:37 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c SetDefaultGateway() 1010 | Default gateway or interface is empty
May 11 06:36:37 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c LoadSelectedTechProfile() 786 | No value set for 'SSID'!
May 11 06:36:37 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c TryStartWifiSession() 1633 | Impossible to use Wifi profile, result -1 (LE_NOT_FOUND)
May 11 06:36:37 | Legato | DBUG | wifiService[633]/daemon T=main | le_wifiClient.c le_wifiClient_Disconnect() 1198 | Disconnect
May 11 06:36:37 | Legato | INFO | modemDaemon[623]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2040 | called
May 11 06:36:37 | Legato | INFO | wifiService[633] | WIFICLIENT_DISCONNECT
May 11 06:36:37 | Legato | =ERR= | wifiService[633] | Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
May 11 06:36:37 | Legato | =ERR= | wifiService[633]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Disconnect() 1041 | WiFi Client Command Failed: (24832)wlan0 WIFICLIENT_DISCONNECT
May 11 06:36:37 | Legato | DBUG | wifiService[633]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Disconnect() 1228 | Sending response to client session 0x27dcc : 4 bytes sent
May 11 06:36:37 | Legato | =ERR= | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c TryStopWifiSession() 1851 | Impossible to disconnect wifi client
May 11 06:36:38 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
May 11 06:36:38 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1690 | Data connection failure Call End provided 14, Code 2
May 11 06:36:38 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 3, Verbose 2000
May 11 06:36:42 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
May 11 06:36:42 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1690 | Data connection failure Call End provided 45, Code 1
May 11 06:36:42 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 2, Verbose 210
May 11 06:36:42 | Legato | =ERR= | modemDaemon[623]/modemDaemon T=main | le_mdc.c le_mdc_StartSession() 919 | Get Connection failure 45, 1, 2, 210
May 11 06:36:42 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_GET_RUNTIME_SETTINGS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]
May 11 06:36:42 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c SetDefaultGateway() 1010 | Default gateway or interface is empty
May 11 06:36:42 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c LoadSelectedTechProfile() 786 | No value set for 'SSID'!
May 11 06:36:42 | Legato | -WRN- | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c TryStartWifiSession() 1633 | Impossible to use Wifi profile, result -1 (LE_NOT_FOUND)
May 11 06:36:42 | Legato | DBUG | wifiService[633]/daemon T=main | le_wifiClient.c le_wifiClient_Disconnect() 1198 | Disconnect
May 11 06:36:42 | Legato | INFO | modemDaemon[623]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2040 | called
May 11 06:36:42 | Legato | INFO | wifiService[633] | WIFICLIENT_DISCONNECT
May 11 06:36:42 | Legato | =ERR= | wifiService[633] | Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
May 11 06:36:42 | Legato | =ERR= | wifiService[633]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Disconnect() 1041 | WiFi Client Command Failed: (24832)wlan0 WIFICLIENT_DISCONNECT
May 11 06:36:42 | Legato | DBUG | wifiService[633]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Disconnect() 1228 | Sending response to client session 0x27dcc : 4 bytes sent
May 11 06:36:42 | Legato | =ERR= | dcsDaemon[615]/dataConnectionService T=main | dcsServer.c TryStopWifiSession() 1851 | Impossible to disconnect wifi client
May 11 06:36:43 | Legato | =ERR= | modemDaemon[623]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
May 11 06:36:43 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1690 | Data connection failure Call End provided 14, Code 2
May 11 06:36:43 | Legato | =ERR= | modemDaemon[623]/le_pa T=main | pa_mdc_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 3, Verbose 2000
...and so on

```

My App uses a cellular connection and I’ve explicitly set the technology ranks as follows:

```auto
le_data_SetTechnologyRank(0, LE_DATA_CELLULAR);
le_data_SetTechnologyRank(1, LE_DATA_WIFI);

```

However, from the system logs, it would appear as though the `wifiService` plays a part in the problem. My thought is it that at some point the `dataConnectionService` decides to fall-back and try the WiFi connection (which is not configured) and ends up in the perpetual state as seen in the system logs?

It prevents my app from establishing a data connection from here forth. I’ve tried checking for an active data connection, removing registration handlers and releasing the connection before requesting a new one but that doesn’t seem to work. Restarting the App resolves the issue. Also, stopping the running `wifiService` app causes my app to fault and restart which also resolves the issue.

I’ve tried removing the cellular antenna, SIM card in an attempt to instigate the fall-back to the second rank technology (WiFi) to no avail.

I wasn’t able to find the source code for the `wifiService`. I’ve noticed these occasional system log entries when the system is running without issue:

```auto
May 12 03:21:17 | Legato | INFO | wifiService[558] | WIFICLIENT_DISCONNECT
May 12 03:21:17 | Legato | =ERR= | wifiService[558] | Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
May 12 03:21:17 | Legato | =ERR= | wifiService[558]/daemon T=main | pa_wifi_client_ti.c pa_wifiClient_Disconnect() 1041 | WiFi Client Command Failed: (24832)wlan0 WIFICLIENT_DISCONNECT
May 12 03:21:17 | Legato | DBUG | wifiService[558]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Disconnect() 1228 | Sending response to client session 0x27dcc : 4 bytes sent
May 12 03:21:17 | Legato | =ERR= | dcsDaemon[523]/dataConnectionService T=main | dcsServer.c TryStopWifiSession() 1851 | Impossible to disconnect wifi client
May 12 03:21:18 | Legato | INFO | modemDaemon[527]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2040 | called
May 12 03:21:20 | Legato | =ERR= | modemDaemon[527]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
May 12 03:21:20 | Legato | =ERR= | modemDaemon[527]/le_pa T=main | pa_mdc_qmi.c StartSession() 1690 | Data connection failure Call End provided 45, Code 1
May 12 03:21:20 | Legato | =ERR= | modemDaemon[527]/le_pa T=main | pa_mdc_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 2, Verbose 204

```

Any thoughts on what could be causing this? Perhaps there’s a race conditon when the system is sevicing whatever is causing those system log messages to appear while my app is requesting a connection or is already connected?

Cheers,  
Raf

---

<div class="post-metadata">

**Author:** ![BOB](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@BOB](https://mangoh.discourse.group/u/BOB)\
**Post date:** [June 2, 2017, 9:29am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/8 "2017-06-02T09:29:37Z")

</div>

Hey Raf,  
I am having the same error as ours when I try to connect my module:

May 12 03:21:18 | Legato | INFO | modemDaemon[527]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2040 | called  
May 12 03:21:20 | Legato | =ERR= | modemDaemon[527]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 781 | Sending QMI\_WDS\_START\_NETWORK\_INTERFACE\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]  
May 12 03:21:20 | Legato | =ERR= | modemDaemon[527]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1690 | Data connection failure Call End provided 45, Code 1  
May 12 03:21:20 | Legato | =ERR= | modemDaemon[527]/le\_pa T=main | pa\_mdc\_qmi.c StartSession() 1701 | Data connection failure Verbose Call End provided Type 2, Verbose 204

Did you manage to solve the problem? It was working before but suddenly I am getting this error.  
cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![Raf](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Raf](https://mangoh.discourse.group/u/Raf)\
**Post date:** [June 5, 2017, 2:19am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/9 "2017-06-05T02:19:36Z")

</div>

Hi @BOB.

Is there anything else in your system log occurring before or after those entries you posted? There might some other clues in there.

Some other considerations:

- How often are you attempting the data connections?
- Has anything changed physically in your setup?
- Did the errors start appearing after a change in any software running on the module?
- How long do estimate your system runs (continuously) before you notice these errors?
- How are you powering the mangOH board? Via the DC-in connector (CN1200) or solely via USB? I remember reading of connection issues when powering the module via USB.
- What is the signal strength of your module? - Could be worth checking this periodically and writing to the system log.

As far as solving the problem goes, it’s still a little early to be certain but I haven’t logged a single connection error over the past 6-7 days on my test system.

However, a few things have changed since my last post:

1. Moved from the mangOH board to a custom PCB. Antenna type changed to a right-angle stub penta-band SMA, 0dB gain. Signal strength is still reported as ‘Good’ (3) - no change here.
2. Re-enabled `autosleep` and stopped `devMode`. Module now enters USB-SS mode. Previously I had disabled this.
3. Stopped `wifiService` by setting the config tree parameter `startManual: true`
4. Set the modem PDP context to IPv4 only (was IPv4 and IPv6)

Cheers,  
Raf

---

<div class="post-metadata">

**Author:** ![angus1357](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@angus1357](https://mangoh.discourse.group/u/angus1357)\
**Post date:** [September 17, 2018, 11:55am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/10 "2018-09-17T11:55:49Z")

</div>

> [@Raf](#):
>
> Set the modem PDP context to IPv4 onl

Do you remember what the command for this is? I can find it anywhere and I keep getting the “Default gateway or Interface is empty” message.

---

<div class="post-metadata">

**Author:** ![Raf](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Raf](https://mangoh.discourse.group/u/Raf)\
**Post date:** [September 18, 2018, 1:43am UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/11 "2018-09-18T01:43:17Z")

</div>

Hi @angus1357

The command is `cm data pdp IPV4`

---

<div class="post-metadata">

**Author:** ![Robert\_Mitchell](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@Robert\_Mitchell](https://mangoh.discourse.group/u/Robert_Mitchell)\
**Post date:** [October 11, 2018, 1:00pm UTC](https://mangoh.discourse.group/t/issue-with-data-service/222/12 "2018-10-11T13:00:20Z")

</div>

Thanks for the guidance its really knowledgeable discussion.
