GPRS roaming- how can I trace problem?


#1

Hello,

I have simcard from foreign county and is in roaming. (GPRS activated), and working on Iphone fine.

When I use “tcp_client” provided with developer studio, I got such traces:

2013/01/10;11:31:31:559;006;ADL;1;Binary header at 002A0000
2013/01/10;11:31:31:559;007;ADL;16;[ADL PORT] subs (002A5715) : 0
2013/01/10;11:31:31:659;001;ADL;16;[ADL PORT] subs (002A733B) : 1
2013/01/10;11:31:31:659;002;ADL;22;[ADL] flash subs 2 : -4
2013/01/10;11:31:31:659;003;ADL;22;Flh Obj 0000 Len : 4
2013/01/10;11:31:31:669;001;ADL;22;Read Flh Obj 0000 (4) : 0
2013/01/10;11:31:31:669;002;ADL;16;[ADL PORT] event : 0 (port 80 ; state 0)
2013/01/10;11:31:31:679;001;ADL;16;[ADL PORT] event : 0 (port 01 ; state 0)
2013/01/10;11:31:31:679;002;ADL;16;[ADL PORT] event : 0 (port 02 ; state 0)
2013/01/10;11:31:31:689;001;ADL;22;Flh Obj 0000 Len : 4
2013/01/10;11:31:31:689;002;ADL;16;[ADL PORT] unsubs (1) : 0
2013/01/10;11:31:31:689;003;ADL;4;Embedded Application : Main
2013/01/10;11:31:31:689;004;ADL;20;[ADL] tmr subs ; id 0 ; hdlr 002AB961 ; val 5 ; cycl 2
2013/01/10;11:31:31:699;001;ADL;4;(CfgGprs) Enter.
2013/01/10;11:31:33:942;001;ADL;4;(cbEvhSim) Enter.
2013/01/10;11:31:34:523;001;ADL;4;(cbEvhSim) Enter.
2013/01/10;11:31:41:423;001;ADL;4;(cbEvhSim) Enter.
2013/01/10;11:31:41:423;002;ADL;4;(cbPollCreg) Enter.
2013/01/10;11:31:41:433;001;ADL;4;(cbPollCreg) Registered on GPRS network.
2013/01/10;11:31:41:443;001;ADL;27;Call subs 002B2A2D : 0
2013/01/10;11:31:41:443;002;ADL;31;[ADL] Gprs subs 002AF0B5 : 0
2013/01/10;11:31:41:443;003;ADL;16;[ADL port] IsAvailable(80) : 1
2013/01/10;11:31:41:453;001;ADL;31;[ADL] Gprs setup 1 : 0
2013/01/10;11:31:41:453;002;ADL;16;[ADL port] IsAvailable(80) : 1
2013/01/10;11:32:31:465;001;ADL;27;Call unsubs 002B2A2D : 0
2013/01/10;11:32:31:465;002;ADL;31;[ADL] GPRS unsubs 002AF0B5 : 0

It has been registered to GPRS and after unsubscribed. How can I see why it has been unsubscribed? And were in code is defined tracelevel: 31;[ADL] GPRS unsubs 002AF0B5 : 0

How can I trace which GPRS settings are wrong?

If I place any other simcard not roaming, I am able to send message to TCP server.

Tom


#2

Hi,

trace “31;[ADL] GPRS unsubs 002AF0B5 : 0” is cominf from ADL for the application when the GPRS bearer is stopped and disconnected because of some reason(low signal,some other network issue).

You can capture the wip debug tarecs in the application,as following :
r = wip_netInitOpts(WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_TRACE, WIP_NET_OPT_DEBUG_PKT_MAXLEN, 1500, // Set the maximum size of the dump here so that the DUMP is complete, and not broken. WIP_NET_OPT_END);

Also capture the following traces :

ADL:ALL
L3RR:3,4
L3SMG:3,4
MMT:27
L3GMM:3,4

On analyzing these traces,GPRS failure cause can be retreived.

Thanks.


#3

Also try ATI trace level 1 - it shows you the actual AT commands & responses…


#4

Have you tried a text search through the source code :question:


#5

Thank you guys for the answer.

Here are the traces filtered to ADL:

2013/01/11;11:31:59:216;001;ADL;22;Flh Obj 0000 Len : 4
2013/01/11;11:31:59:246;001;ADL;16;[ADL PORT] unsubs (1) : 0
2013/01/11;11:31:59:687;001;ADL;4;Embedded Application : Main
2013/01/11;11:31:59:757;001;ADL;20;[ADL] tmr subs ; id 0; hdlr 002AB985; val 5 ; cycl 2
2013/01/11;11:31:59:767;001;ADL;4;(CfgGprs) Enter.
2013/01/11;11:32:01:780;004;ADL;4;(cbEvhSim) Enter.
2013/01/11;11:32:02:811;010;ADL;4;(cbEvhSim) Enter.
2013/01/11;11:32:10:533;004;ADL;4;(cbEvhSim) Enter.
2013/01/11;11:32:10:563;002;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:10:563;003;ADL;20;[ADL] tmr subs ; id 2;hdlr 002A0625;val 20 ; cycl 0
2013/01/11;11:32:10:803;003;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:10:803;004;ADL;20;[ADL] tmr subs ; id 3; hdlr 002A0625;val 20 ; cycl 0
2013/01/11;11:32:12:475;010;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:12:485;001;ADL;20;[ADL] tmr subs ; id 4 ; hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:14:488;004;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:14:498;001;ADL;20;[ADL] tmr subs ; id 5 ; hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:16:491;008;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:16:501;001;ADL;20;[ADL] tmr subs ; id 6 ; hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:18:494;009;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:18:494;010;ADL;20;[ADL] tmr subs ; id 7 ; hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:20:487;001;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:20:487;002;ADL;20;[ADL] tmr subs ; id 8 ; hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:22:490;002;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:22:490;003;ADL;20;[ADL] tmr subs ; id 9 ; hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:24:633;006;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:24:643;001;ADL;20;[ADL] tmr subs ; id 10 ;hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:26:505;005;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:26:516;001;ADL;20;[ADL] tmr subs ; id 11 ;hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:28:518;010;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:28:528;001;ADL;20;[ADL] tmr subs ; id 12 ;hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:30:491;001;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:30:491;002;ADL;20;[ADL] tmr subs ; id 13 ;hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:32:504;008;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:32:504;009;ADL;20;[ADL] tmr subs ; id 14 ;hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:34:497;001;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:34:497;002;ADL;20;[ADL] tmr subs ; id 15 ;hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:36:530;001;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:36:530;002;ADL;20;[ADL] tmr subs ; id 16 ;hdlr 002A0625; val 20;cycl 0
2013/01/11;11:32:38:973;001;ADL;4;(cbPollCreg) Enter.
2013/01/11;11:32:38:983;001;ADL;4;(cbPollCreg) Registered on GPRS network.
2013/01/11;11:32:38:993;001;ADL;1;[GPRS]: open: -> DISCONNECTED
2013/01/11;11:32:39:003;001;ADL;27;Call subs 002B2A51 : 0
2013/01/11;11:32:39:013;001;ADL;31;[ADL] Gprs subs 002AF0D9 : 0
2013/01/11;11:32:39:013;002;ADL;16;[ADL port] IsAvailable(80) : 1
2013/01/11;11:32:39:034;001;ADL;31;[ADL] Gprs setup 1 : 0
2013/01/11;11:32:39:034;002;ADL;1;[GPRS]: start: -> CONNECTING
2013/01/11;11:32:39:044;001;ADL;4;(GPRS info) bearerRet: -27
2013/01/11;11:32:39:154;001;ADL;1;[GPRS]: GPRS CTX (cid=1) found
2013/01/11;11:32:39:164;001;ADL;1;[GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate
2013/01/11;11:32:39:174;001;ADL;16;[ADL port] IsAvailable(80) : 1
2013/01/11;11:33:28:625;008;ADL;1;[GPRS]: GPRS CTX (cid=1) found
2013/01/11;11:33:28:625;009;ADL;1;[GPRS]: GPRS EVENT SETUP/ACTIVATE KO (cid=1): -> DISCONNECTED
2013/01/11;11:33:28:635;001;ADL;1;[WIP]  No more ctx, call adl_gprsUnsubscribe()
2013/01/11;11:33:28:635;002;ADL;27;Call unsubs 002B2A51 : 0
2013/01/11;11:33:28:635;003;ADL;31;[ADL] GPRS unsubs 002AF0D9 : 0

But all traces (also ATI included) I attached as a file. (opened with gedit under ubuntu looks nice and well formated -also pasted here: pastebin.com/ZvMXTzwi (you can toggle text wrapping button) )

Awneil, I have been searching for “GPRS unsubs” string in every souce files, in example folder and in place where developer studio is installed, I couldn’t find such string, maybe it is compiled library?

I think most important part is:

ATI;1;<CR><LF>+CME ERROR: 3<CR><LF>
2013/01/11;11:33:28:615;003;ATI;1;0d 0a 2b 43 4d 45 20 45 52 52 4f 52 3a 20 33 0d 0a
2013/01/11;11:33:28:615;004;ATI;4;17 00 18 00 26 00 00 43 00 80 00 23 00 00 12 00 0d 0a 2b 43 4d 45 20 45 52 52 4f 52 3a 20 33 0d 0a 00 2b 2b fa de fe ca 01 00 00 00 a0 a3
2013/01/11;11:33:28:625;003;ATI;2;Rec I_MMT_SESSION_ACTIVATE_RSP
2013/01/11;11:33:28:625;004;ATI;4;17 00 17 00 04 00 93 40 01 00 03 00
2013/01/11;11:33:28:625;008;ADL;1;[GPRS]: GPRS CTX (cid=1) found
2013/01/11;11:33:28:625;009;ADL;1;[GPRS]: GPRS EVENT SETUP/ACTIVATE KO (cid=1): -> DISCONNECTED
2013/01/11;11:33:28:635;001;ADL;1;[WIP]  No more ctx, call adl_gprsUnsubscribe()
2013/01/11;11:33:28:635;002;ADL;27;Call unsubs 002B2A51 : 0
2013/01/11;11:33:28:635;003;ADL;31;[ADL] GPRS unsubs 002AF0D9 : 0

But it doesn’t say anything to me. I will try now with working simcard, without roaming, and perhaps by comparing 2 different traces we can see where it fails?

Thanks in advance
all_traces_gprs.txt (309 KB)