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.
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.
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?
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?