Ticket #688 (closed defect: fixed)
GTA04: "Failed to active PDP context: OK"
| Reported by: | GNUtoo | Owned by: | morphis |
|---|---|---|---|
| Priority: | major | Milestone: | cornucopia-0.12 |
| Component: | cornucopia/general | Version: | 0.11 |
| Keywords: | Cc: |
Description
- I used internet.wind as APN since it's my APN in shr-settings
- I tried connect and also the equivalent in the command line:
root@om-gta04:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.ActivateContext [ERR]: GDBus.Error:org.freesmartphone.InternalError: Failed to active PDP context: OK root@om-gta04:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.GetCredentials ('internet.wind', 'internet', 'internet')
Both fail.
here's the INFO log:
2000-01-02T18:00:30.282653Z [INFO] Gtm601Modem <>: SIM Auth status FREE_SMARTPHONE_GSM_SIM_AUTH_STATUS_READY 2000-01-02T18:00:33.822113Z [INFO] Gtm601Modem <>: Modem Status changed to FSO_GSM_MODEM_STATUS_ALIVE_REGISTERED 2000-01-02T18:01:57.528564Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_OUTGOING 2000-01-02T18:01:58.646331Z [WARN] Gtm601Modem <>: Unexpected length 1 for Gtm601UnderscoreOWANDATA 2000-01-02T18:01:58.650421Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED 2000-01-02T18:06:18.743591Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_OUTGOING 2000-01-02T18:06:19.645693Z [WARN] Gtm601Modem <>: Unexpected length 1 for Gtm601UnderscoreOWANDATA 2000-01-02T18:06:19.651704Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED 2000-01-02T18:08:33.399902Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_OUTGOING 2000-01-02T18:08:34.647795Z [WARN] Gtm601Modem <>: Unexpected length 1 for Gtm601UnderscoreOWANDATA 2000-01-02T18:08:34.650816Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED
I'll reboot and attach a debug log.
Change History
comment:2 Changed 12 months ago by GNUtoo
2012-06-06T19:25:07.652252Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: URC: [ "_OSIGQ: 24,0" ] 2012-06-06T19:25:07.652587Z [DEBUG] Gtm601UnsolicitedResponseHandler : Dispatching AT unsolicited '_OSIGQ', '24,0' 2012-06-06T19:25:07.652801Z [DEBUG] Gtm601Modem <>: Did receive a valid response for Gtm601UnderscoreOSIGQ 2012-06-06T19:25:08.379669Z [DEBUG] Gtm601Modem <>: Created mediator FsoGsmPdpSetCredentials 2012-06-06T19:25:08.380401Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Attemping to write next command to transport; we have 1 commands pending! 2012-06-06T19:25:08.380767Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Wrote '+CGDCONT=1,"IP","internet.wind"'. Waiting (5s) for answer... 2012-06-06T19:25:08.381134Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback called with 35 bytes in buffer 2012-06-06T19:25:08.381378Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback wrote 35 bytes 2012-06-06T19:25:08.392700Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: SRC: "+CGDCONT=1,"IP","internet.wind"" -> [ "OK" ] 2012-06-06T19:25:08.408294Z [DEBUG] Gtm601Modem <>: Created mediator FsoGsmPdpActivateContext 2012-06-06T19:25:08.408752Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_OUTGOING 2012-06-06T19:25:08.427612Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Attemping to write next command to transport; we have 1 commands pending! 2012-06-06T19:25:08.428222Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Wrote '_OWANCALL=1,1,1'. Waiting (5s) for answer... 2012-06-06T19:25:08.428619Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback called with 19 bytes in buffer 2012-06-06T19:25:08.429107Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback wrote 19 bytes 2012-06-06T19:25:08.431823Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: SRC: "_OWANCALL=1,1,1" -> [ "OK" ] 2012-06-06T19:25:09.753326Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Attemping to write next command to transport; we have 1 commands pending! 2012-06-06T19:25:09.753814Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Wrote '_OWANDATA?'. Waiting (5s) for answer... 2012-06-06T19:25:09.754211Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback called with 14 bytes in buffer 2012-06-06T19:25:09.754455Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback wrote 14 bytes 2012-06-06T19:25:09.759429Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: SRC: "_OWANDATA?" -> [ "OK" ] 2012-06-06T19:25:09.759826Z [WARN] Gtm601Modem <>: Unexpected length 1 for Gtm601UnderscoreOWANDATA 2012-06-06T19:25:09.760528Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Attemping to write next command to transport; we have 1 commands pending! 2012-06-06T19:25:09.760833Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: Wrote '_OWANCALL=1,0,1'. Waiting (5s) for answer... 2012-06-06T19:25:09.761199Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback called with 19 bytes in buffer 2012-06-06T19:25:09.761444Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: WriteCallback wrote 19 bytes 2012-06-06T19:25:09.763488Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: SRC: "_OWANCALL=1,0,1" -> [ "OK" ] 2012-06-06T19:25:09.767425Z [INFO] PdpOptionGtm601 <>: PDP Context Status now FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED 2012-06-06T19:25:14.246429Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: URC: [ "+CGEV: ME DEACT IP, 0.0.0.0, 1" ] 2012-06-06T19:25:14.246826Z [DEBUG] Gtm601UnsolicitedResponseHandler : Dispatching AT unsolicited '+CGEV', 'ME DEACT IP, 0.0.0.0, 1' 2012-06-06T19:25:27.598327Z [DEBUG] libfsotransport <Serial /dev/ttyHS_Application@115200 (fd 20)>: URC: [ "_OSIGQ: 26,0" ] 2012-06-06T19:25:27.598785Z [DEBUG] Gtm601UnsolicitedResponseHandler : Dispatching AT unsolicited '_OSIGQ', '26,0' 2012-06-06T19:25:27.599121Z [DEBUG] Gtm601Modem <>: Did receive a valid response for Gtm601UnderscoreOSIGQ
comment:3 Changed 12 months ago by morphis
- Owner changed from mickey to morphis
- Status changed from new to accepted
- Version changed from milestone5.5 to 0.11
- Milestone set to 0.12
comment:4 Changed 11 months ago by morphis
In d613f9e818f49532780234b19068bc1e10799580 I increased the timeout before we send the _OWANDATA command to retrieve the PDP context configuration. In my local test (connected GTA04A4 via USB to my laptop) that worked fine. Can you please verify it's working for you too?
This is only a workaround as there should be a _OWANCALL unsolicited response sent when the PDP context is configured successfully from the modem - but it does not.
Note: See
TracTickets for help on using
tickets.

DEBUG log: