All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Query on ppp0 interface for HE910 device
@ 2015-05-29 17:24 Mike Williams
  2015-05-29 18:32 ` Alexey Mednyy
  2015-05-30  0:45 ` Denis Kenzior
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Williams @ 2015-05-29 17:24 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 4133 bytes --]

>Whenever the connman daemon switches from cellular to wifi automatically, ofonod >removes the ppp0 interface.
>On the oterhway round the ofono daemon is not doing the addition of the ppp0 interface.

I can reproduce this on an HE910 I just started testing. Basically,
the ofono cellular service never reappears to connman after connman
disconnects it.

# connmanctl technologies
/net/connman/technology/cellular
 Name = Cellular
 Type = cellular
 Powered = True
 Connected = False
 Tethering = False
/net/connman/technology/ethernet
 Name = Wired
 Type = ethernet
 Powered = True
 Connected = False
 Tethering = False
# connmanctl services
*AR Wired                ethernet_001122edb058_cable
*A  T-Mobile             cellular_310260008772362_context1
# connmanctl disable ethernet
Disabled ethernet
# macb f0028000.ethernet eth0: link down
# connmanctl services
*AR T-Mobile             cellular_310260008772362_context1
# connmanctl enable ethernet
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Enabled ethernet
# macb f0028000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
# connmanctl services
*AR Wired                ethernet_001122edb058_cable
#

The cellular service will never reappear.

ofono debug log:

ofonod[1543]: PPP: lcp: pppcp_process_terminate_ack: current state 4:CLOSING
ofonod[1543]: PPP: lcp: pppcp_generate_event: current state 4:CLOSING
ofonod[1543]: PPP: event: 11 (RTA), action: 802, new_state: 2 (CLOSED)
ofonod[1543]: PPP: lcp: pppcp_this_layer_finished: current state 2:CLOSED
ofonod[1543]: PPP: gatchat/gatppp.c:ppp_enter_phase() 0
ofonod[1543]: PPP: gatchat/gatppp.c:ppp_dead()
ofonod[1543]: drivers/atmodem/gprs-context.c:ppp_disconnect() Reason: 6
ofonod[1543]: Aux: < \r\n+CGEV: ME DEACT IP, "22.226.202.227", 1\r\n
ofonod[1543]: Aux: < \r\n
ofonod[1543]: Aux: < +CGREG: 0\r\n\r\n+CGEV: NW DETACH\r\n
ofonod[1543]: src/gprs.c:ofono_gprs_status_notify() /he910_0 status 0
ofonod[1543]: src/gprs.c:ofono_gprs_detached_notify() /he910_0
ofonod[1543]: Aux: < \r\n
ofonod[1543]: Aux: < +CGREG: 0\r\n\r\n+CREG: 1,"2004","076277F",2\r\n
ofonod[1543]: src/gprs.c:ofono_gprs_status_notify() /he910_0 status 0
ofonod[1543]: src/network.c:ofono_netreg_status_notify() /he910_0
status 1 tech 2
ofonod[1543]: src/gprs.c:netreg_status_changed() 1
ofonod[1543]: Aux: > AT+COPS=3,2\r
ofonod[1543]: Aux: < \r\nOK\r\n
ofonod[1543]: Aux: > AT+COPS?\r
ofonod[1543]: Aux: < \r\n
ofonod[1543]: Aux: < +COPS: 0,2,"310260",2\r\n\r\nOK\r\n
ofonod[1543]: drivers/atmodem/network-registration.c:cops_numeric_cb()
Cops numeric got mcc: 310, mnc: 260
ofonod[1543]: Aux: > AT+CIND?\r
ofonod[1543]: Aux: < \r\n
ofonod[1543]: Aux: < +CIND: 0,3,1,0,0,0,0,0,2\r\n\r\nOK\r\n
ofonod[1543]: Aux: > AT+COPS=3,0\r
ofonod[1543]: Aux: < \r\nOK\r\n
ofonod[1543]: Aux: > AT+COPS?\r
ofonod[1543]: Aux: < \r\n
ofonod[1543]: Aux: < +COPS: 0,0,"T-Mobile",2\r\n\r\nOK\r\n
ofonod[1543]: drivers/atmodem/network-registration.c:cops_cb()
cops_cb: T-Mobile, 310 260 2
ofonod[1543]: src/network.c:current_operator_callback() 0xcb600, 0xd0cb0


Contexts for that modem still appear when when listing them via dbus:
dbus-send --system --print-reply --dest=org.ofono /he910_0
org.ofono.ConnectionManager.GetContexts


method return sender=:1.36 -> dest=:1.48 reply_serial=2
  array [
     struct {
        object path "/he910_0/context1"
        array [
           dict entry(
              string "Name"
              variant                   string "LTE"
           )
           dict entry(
              string "Active"
              variant                   boolean false
           )
           dict entry(
              string "Type"
              variant                   string "internet"
           )
<Truncated>


Manually trying to activate that context fails:
# dbus-send --system --print-reply --dest=org.ofono /he910_0/context1 org.ofono.
ConnectionContext.SetProperty string:Active variant:boolean:true
Error org.ofono.Error.NotAttached: GPRS is not attached


Thanks,
Mike

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Query on ppp0 interface for HE910 device
@ 2015-05-18  8:38 Kallumari
  2015-05-18 14:01 ` Denis Kenzior
  0 siblings, 1 reply; 6+ messages in thread
From: Kallumari @ 2015-05-18  8:38 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Dear Sir,

We are using CONNMAN/OFONO for wireless communication and network management.

Whenever the connman daemon switches from cellular to wifi automatically, ofonod removes the ppp0 interface.
On the oterhway round the ofono daemon is not doing the addition of the ppp0 interface.

I have been manually activating the context for get it right.

I am using HE910 modem with ofono version 1.16.

Regards,
Ram


[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2464 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-30  0:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 17:24 Query on ppp0 interface for HE910 device Mike Williams
2015-05-29 18:32 ` Alexey Mednyy
2015-05-29 19:44   ` Mike Williams
2015-05-30  0:45 ` Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2015-05-18  8:38 Kallumari
2015-05-18 14:01 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.