I removed the finale "+ 3" in both send_context_authenticate and
link_conf_cb in drivers/isimodem/gprs-context.c which would account
for filler bytes but they don't seem to be actually put int the
message. This works but I don't know if it is the right fix.
On Fri, Feb 18, 2011 at 1:45 PM, Antoine Reversat <a.reversat(a)gmail.com> wrote:
If I'm not mistaken I might have found what's wrong : it
seems the
subblock length are wrong.
Fro example in GPDS_CONTEXT_CONFIGURE_REQ the second subblock
(GPDS_APN_INFO) contains a length of 0x16 which is 22 bytes. Except
the length is 19 bytes. Is this right or am I missing something ? It
is also the case for GPDS_CONTEXT_AUTH_REQ.
On Fri, Feb 18, 2011 at 11:55 AM, Antoine Reversat <a.reversat(a)gmail.com> wrote:
> This is on an N900 running nitdroid gingerbread with a 2.6.35.9 kernel
> and ofono 0.42
>
> When I do this :
>
> dbus-send --system --print-reply --dest=org.ofono /isimodem/context2
> org.ofono.ConnectionContext.SetProperty string:"Active"
> variant:boolean:true
> I get back : Error org.ofono.Error.Failed: Operation failed
>
> /isimodem/context2 is properly defined for my operator (Fido in canada).
>
> And here's the log ofono gives me :
>
> D/ofono ( 355):
> external/ofono/drivers/isimodem/gprs-context.c:isi_gprs_activate_primary()
> activate: gpds = 0x002c
> D/ofono ( 355): PN_<UNKNOWN> (0xD9): UNKNOWN [id=0x00 utid=0x01 len=12]:
> D/ofono ( 355): * 01 00 00 01 6C 42 04 00 00 2C 04 00
> : .....lB...,..
> D/Tethering( 435): gprs0 is not a tetherable iface, ignoring
> D/ofono ( 355): PN_<UNKNOWN> (0xD9): UNKNOWN [id=0x01 utid=0x01 len=6]:
> D/ofono ( 355): * 01 01 00 00 00 00
> : .......
> D/ofono ( 355): gisi: Unknown error: 0 RESP to 0x54af8 [res=0xD9,
> id=0x01, utid=0x01]
> D/ofono ( 355): PN_GPDS (0x31): GPDS_CONTEXT_ID_CREATE_REQ [id=0x02
> utid=0x05 len=2]:
> D/ofono ( 355): * 05 02 : ...
> D/ofono ( 355): PN_GPDS (0x31): GPDS_CONTEXT_ID_CREATE_RESP
> [id=0x03 utid=0x05 len=4]:
> D/ofono ( 355): * 05 03 00 01 : .....
> D/ofono ( 355): gisi: Unknown error: 0 RESP to 0x521b8 [res=0x31,
> id=0x03, utid=0x05]
> D/ofono ( 355): PN_GPDS (0x31): GPDS_LL_CONFIGURE_REQ [id=0x00
> utid=0x06 len=5]:
> D/ofono ( 355): * 06 00 00 00 02
> : ......
> D/ofono ( 355): PN_GPDS (0x31): GPDS_CONTEXT_ID_CREATE_IND [id=0x04
> utid=0x00 len=3]:
> D/ofono ( 355): * 00 04 00 : ....
> D/ofono ( 355): PN_GPDS (0x31): GPDS_LL_CONFIGURE_RESP [id=0x01
> utid=0x06 len=4]:
> D/ofono ( 355): * 06 01 00 01 : .....
> D/ofono ( 355): gisi: Unknown error: 0 RESP to 0x54af8 [res=0x31,
> id=0x01, utid=0x06]
> D/ofono ( 355): PN_GPDS (0x31): GPDS_CONTEXT_CONFIGURE_REQ [id=0x06
> utid=0x07 len=31]:
> D/ofono ( 355): * 07 06 00 21 00 00 00 02 90 04 00 00 05 16 10
> 69 : ....!...........i
> D/ofono ( 355): * 6E 74 65 72 6E 65 74 2E 66 69 64 6F 2E 63 61
> : nternet.fido.ca
> D/ofono ( 355): PN_GPDS (0x31): GPDS_CONTEXT_CONFIGURE_RESP
> [id=0x07 utid=0x07 len=4]:
> D/ofono ( 355): * 07 07 00 01 : .....
> D/ofono ( 355): gisi: Unknown error: 0 RESP to 0x521b8 [res=0x31,
> id=0x07, utid=0x07]
> D/ofono ( 355): PN_GPDS (0x31): GPDS_CONTEXT_AUTH_REQ [id=0x33
> utid=0x08 len=18]:
> D/ofono ( 355): * 08 33 00 02 0B 0A 04 66 69 64 6F 0C 0A 04 66
> 69 : ..3.....fido...fi
> D/ofono ( 355): * 64 6F : do
> D/ofono ( 355):
> external/ofono/plugins/nokia-gpio.c:phonet_status_cb() Link phonet0
> (3) is down
> D/ofono ( 355):
> external/ofono/plugins/nokia-gpio.c:gpio_power_state_machine()
> (POWER_EVENT_PHONET_LINK_DOWN) @ state POWER_STATE_ON
> D/ofono ( 355):
> external/ofono/plugins/nokia-gpio.c:gpio_power_set_state()
> (POWER_STATE_ON_RESET) at (POWER_STATE_ON)
> D/ofono ( 355):
> external/ofono/plugins/nokia-gpio.c:gpio_power_set_state() Starting
> modem restart timeout
> D/ofono ( 355): external/ofono/plugins/n900.c:n900_power_cb() power
> state POWER_STATE_ON_RESET
> D/ofono ( 355): external/ofono/plugins/n900.c:report_powered() Reset
> D/ofono ( 355): external/ofono/src/modem.c:modem_change_state() old
> state: 3, new state: 0
>
>
> Any ideas or other debug information you need ?
>