# Le\_data\_request spend too long time

**URL:** <https://forum.legato.io/t/le-data-request-spend-too-long-time/3786>\
**Category:** Legato Application Framework\
**Created:** [October 18, 2018, 2:19am UTC](https://forum.legato.io/t/le-data-request-spend-too-long-time/3786 "2018-10-18T02:19:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zx\_310](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zx\_310](https://forum.legato.io/u/zx_310)\
**Post date:** [October 18, 2018, 2:19am UTC](https://forum.legato.io/t/le-data-request-spend-too-long-time/3786/1 "2018-10-18T02:19:47Z")

</div>

hi，guys:  
I am a new bee as i said at the last time, i have a problem like this:  
when i use function le\_data\_request(), i founf it cost 8 sceonds to get online, i think 8 seconds is too long。who can tell me why or another method that cost shorter time to get online? thanks!  
log:  
Oct 18 02:07:00 | modemDemo[11333]/demoComponent T=main | demo.c \_demoComponent\_COMPONENT\_INIT() 966 | zxxxxxxxxx Running modemDemo  
Oct 18 02:07:00 | modemDemo[11333]/demoComponent T=main | demo.c \_demoComponent\_COMPONENT\_INIT() 968 | time01:1539828420  
Oct 18 02:07:00 | modemDemo[11333]/demoComponent T=main | demo.c GoOnline() 296 | Requesting the default data connection: 0x10000011.  
Oct 18 02:07:00 | modemDaemon[543]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2040 | called  
Oct 18 02:07:03 | dcsDaemon[535]/dataConnectionService T=main | dcsServer.c SetModemGateway() 1561 | Could not save the default gateway  
Oct 18 02:07:03 | dcsDaemon[535]/dataConnectionService T=main | dcsServer.c AddNameserversToResolvConf() 1239 | Set DNS ‘120.80.80.80’ ‘221.5.88.88’  
Oct 18 02:07:08 | modemDemo[11333]/demoComponent T=main | demo.c ConnectionStateHandler() 919 | Connection State Event: ‘rmnet0’ connected  
Oct 18 02:07:08 | modemDemo[11333]/demoComponent T=main | demo.c ConnectionStateHandler() 930 | time02:1539828428  
Oct 18 02:07:08 | modemDemo[11333]/demoComponent T=main | demo.c ConnectionStateHandler() 931 | -----------------cost:8 seconds  
Oct 18 02:07:08 | modemDemo[11333]/demoComponent T=main | demo.c ConnectionStateHandler() 932 | Data connection: connected.  
Oct 18 02:07:08 | modemDemo[11333]/demoComponent T=main | demo.c TestDataConnectionV4() 384 | Connecting to 119.29.252.252 (zhouxin server)  
Oct 18 02:07:08 | modemDemo[11333]/demoComponent T=main | demo.c TestDataConnectionV4() 395 | ------------Connection to server was successful[14]

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [October 18, 2018, 2:56pm UTC](https://forum.legato.io/t/le-data-request-spend-too-long-time/3786/2 "2018-10-18T14:56:05Z")

</div>

Hi,

Please provide details about your target HW/SW setup:  
**`legato version; cm info`**

It seems that you are using an old version of Legato (16.x).  
Improvements have been made in Data Connection Service of newest versions of Legato (18.x).

If you have WP8548/WP75xx module then I suggest to upgrade it to latest Release 16 firmware:  
[https://source.sierrawireless.com/resources/airprime/software/wpx5xx/wpx5xx-firmware-latest-release/](https://source.sierrawireless.com/resources/airprime/software/wpx5xx/wpx5xx-firmware-latest-release/)

This Release 16 firmware bundles Legato 18.06.1.

Please redo your test with this version.

---

<div class="post-metadata">

**Author:** ![zx\_310](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zx\_310](https://forum.legato.io/u/zx_310)\
**Post date:** [October 22, 2018, 12:48am UTC](https://forum.legato.io/t/le-data-request-spend-too-long-time/3786/3 "2018-10-22T00:48:53Z")

</div>

Tank you, I will have a try。

---

<div class="post-metadata">

**Author:** ![zx\_310](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zx\_310](https://forum.legato.io/u/zx_310)\
**Post date:** [October 22, 2018, 6:23am UTC](https://forum.legato.io/t/le-data-request-spend-too-long-time/3786/4 "2018-10-22T06:23:41Z")

</div>

I hava tried to updated the latest firmware:18.06,but It slao spend 8 seconds to het online, that’s a long time.  
cm info :  
Index: 2  
APN: zhouxin  
PDP Type: IPV4  
Connected: no  
root@swi-mdm9x15:~# cm info  
Device: WP7502  
IMEI: 357851070036814  
IMEISV: 2F  
FSN: P3704500300810  
Firmware Version: SWI9X15Y\_07.13.07.00 92cfd2c jenkins 2018/08/22 19:18:52  
Bootloader Version: SWI9X15Y\_07.13.07.00 92cfd2c jenkins 2018/08/22 19:18:39  
MCU Version: 002.004  
PRI Part Number (PN): 9905317  
PRI Revision: 01.06  
Carrier PRI Name: GENERIC  
Carrier PRI Revision: 001.040\_000  
SKU: 1102734  
Last Reset Cause: Unknown  
Resets Count: Expected: 0 Unexpected: 0  
log:  
Oct 22 06:16:23 | modemDemo[1710]/demoComponent T=main | demo.c \_demoComponent\_COMPONENT\_INIT() 995 | Running modemDemo  
Oct 22 06:16:23 | modemDemo[1710]/demoComponent T=main | demo.c \_demoComponent\_COMPONENT\_INIT() 997 | time01:1540188983  
Oct 22 06:16:23 | modemDemo[1710]/demoComponent T=main | demo.c GoOnline() 315 | Requesting the default data connection: 0x10000001.  
Oct 22 06:16:23 | dcsDaemon[753]/dcsDaemon T=main | dcsServer.c TryStartTechSession() 1517 | Device is attached, ready to start a data session  
Oct 22 06:16:24 | avcDaemon[1046]/avcDaemon T=main | assetData.c RegUpdateTimerHandler() 3262 | RegUpdate timer expired; reporting REG\_UPDATE  
Oct 22 06:16:24 | avcDaemon[1046]/avcDaemon T=main | assetData.c assetData\_RegistrationUpdate() 1946 | unsupported function called.  
Oct 22 06:16:26 | dcsDaemon[753]/le\_pa\_dcs T=main | pa\_dcs\_linux.c AddNameserversToResolvConf() 310 | Set DNS ‘120.80.80.80’ ‘221.5.88.88’  
Oct 22 06:16:26 | dcsDaemon[753]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 1318 | DNS configuration is set successfully  
Oct 22 06:16:31 | modemDemo[1710]/demoComponent T=main | demo.c ConnectionStateHandler() 942 | Connection State Event: ‘rmnet0’ connected  
Oct 22 06:16:31 | modemDemo[1710]/demoComponent T=main | demo.c ConnectionStateHandler() 955 | time02:1540188991  
Oct 22 06:16:31 | modemDemo[1710]/demoComponent T=main | demo.c ConnectionStateHandler() 956 | -----------------cost:8 seconds  
Oct 22 06:16:31 | modemDemo[1710]/demoComponent T=main | demo.c ConnectionStateHandler() 957 | Data connection: connected.

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [December 13, 2018, 4:09pm UTC](https://forum.legato.io/t/le-data-request-spend-too-long-time/3786/5 "2018-12-13T16:09:16Z")

</div>

Hello @zx_310, what’s new about your problem?
