Skip to contentSkip to conversation

ofono+connman he910

DISCUSSION Alexey Mednyy 2 participants 2 messages Mar 12, 2015

lore
Share & tools
lore
#0 lore raw

Is anybody here successfully using connman+ofono with Telit he910 modem?

Seems like connman using .set_online interface in ofono_modem_driver, I've added set_online_ to he910 plugin. And everything works fine. Except after set offline/set online sequence I can't activate gprs context anymore.
Here is log:

Jan  9 14:32:51 yarus-ng daemon.info ofonod[138]: Modem: >
AT+CGDATA="PPP",1\r
Jan  9 14:32:51 yarus-ng daemon.info ofonod[138]: Modem: <
AT+CGDATA="PPP",1\r\r\nNO CARRIER\r\n
Jan  9 14:32:51 yarus-ng daemon.debug ofonod[138]:
drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 0
Jan  9 14:32:51 yarus-ng daemon.info ofonod[138]: Unable to enter data state
Jan  9 14:32:51 yarus-ng daemon.debug ofonod[138]:
src/gprs.c:pri_activate_callback() 0x149318
Jan  9 14:32:51 yarus-ng daemon.debug ofonod[138]:
src/gprs.c:pri_activate_callback() Activating context failed with error:
Unknown error type
Jan  9 14:32:51 yarus-ng daemon.debug connmand[135]:
plugins/ofono.c:set_property_reply() /he910_0 path /he910_0/context1
org.ofono.ConnectionContext.Active
Jan  9 14:32:51 yarus-ng daemon.err connmand[135]: Failed to change

property: /he910_0/context1 org.ofono.ConnectionContext.Active:
org.ofono.Error.Failed Operation failed

AT+CREG? and AT+CGREG? normal answers
so modem registered in network and gprs context attached AT+CGATT=1...

What causes NO CARRIER answer of modem?

If necessary I can provide full log of connman/ofono...

Signature · 2 lines
_________________________________
Best regards, Mednyy Alexey.
#1 lore raw

Hi Alexey,

Quoted 6 lines · Alexey Mednyy

Is anybody here successfully using connman+ofono with Telit he910 modem?

Seems like connman using .set_online interface in ofono_modem_driver, I've added set_online_ to he910 plugin. And everything works fine. Except after set offline/set online sequence I can't activate gprs context anymore.

Why? The earlier firmware HE910 did not have a concept of 'Online'. CFUN=1 triggered full functionality, while CFUN=4 disabled the SIM. So for oFono's purposes, CFUN=4 was a powered down modem.

If the plugin does not provide .set_online, then oFono core assumes the modem only supports Powered = False and { Powered = True, Online = True }. { Powered = True, Online = False } mode is not possible to achieve.

I have no idea if ConnMan supports this setup.

I believe Telit made CFUN=4 only affect the TX/RX circuits in their latest firmware, but my information might be a year or two out of date and my memory may be faulty :)

Quoted 17 lines

Here is log:

Jan  9 14:32:51 yarus-ng daemon.info ofonod[138]: Modem: >
AT+CGDATA="PPP",1\r
Jan  9 14:32:51 yarus-ng daemon.info ofonod[138]: Modem: <
AT+CGDATA="PPP",1\r\r\nNO CARRIER\r\n
Jan  9 14:32:51 yarus-ng daemon.debug ofonod[138]:
drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 0
Jan  9 14:32:51 yarus-ng daemon.info ofonod[138]: Unable to enter data state
Jan  9 14:32:51 yarus-ng daemon.debug ofonod[138]:
src/gprs.c:pri_activate_callback() 0x149318
Jan  9 14:32:51 yarus-ng daemon.debug ofonod[138]:
src/gprs.c:pri_activate_callback() Activating context failed with error:
Unknown error type
Jan  9 14:32:51 yarus-ng daemon.debug connmand[135]:
plugins/ofono.c:set_property_reply() /he910_0 path /he910_0/context1
org.ofono.ConnectionContext.Active
Jan  9 14:32:51 yarus-ng daemon.err connmand[135]: Failed to change
Quoted 7 lines

property: /he910_0/context1 org.ofono.ConnectionContext.Active:
org.ofono.Error.Failed Operation failed

AT+CREG? and AT+CGREG? normal answers
so modem registered in network and gprs context attached AT+CGATT=1...

What causes NO CARRIER answer of modem?

No idea.

Regards,
-Denis