All of lore.kernel.org
 help / color / mirror / Atom feed
* ppp0 interface is not configured
@ 2010-08-17 16:38 Florian Mayer
  2010-08-17 16:45 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Mayer @ 2010-08-17 16:38 UTC (permalink / raw)
  To: ofono

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

Hello all,

we currently test the PPP dialup with a Huawei EM770W modem. We can 
connect with create-context and activate context but the ppp device is 
not configured. connman says that the device is not connected. We use 
connman 0.55 and ofono 0.26.
What did we do wrong? The kernel is 2.6.35~pre5 from Meego 1.1 devel.

Regards
Florian Mayer
Mayer Electronics

# /usr/lib/ofono/test/list-modems
[ /huawei0 ]
    Features = sms gprs cbs net sim
    Powered = 1
    Interfaces = org.ofono.SmsManager org.ofono.DataConnectionManager 
org.ofono.CellBroadcast org.ofono.NetworkRegistration 
org.ofono.SupplementaryServices org.ofono.SimManager
    Online = 1
    Model = EM770W
    Manufacturer = huawei
    Serial = xyz
    Revision = 11.126.10.81.00
    [ org.ofono.SmsManager ]
        UseDeliveryReports = 0
        Bearer = cs-preferred
        ServiceCenterAddress = +491710760000
    [ org.ofono.DataConnectionManager ]
        Powered = 1
        Attached = 1
        PrimaryContexts = /huawei0/primarycontext1
        RoamingAllowed = 1
    [ org.ofono.CellBroadcast ]
        Topics =
        Powered = 1
    [ org.ofono.NetworkRegistration ]
        Status = registered
        Strength = 70
        Name = T-Mobile D
        Operators = /huawei0/operator/26201
        LocationAreaCode = 34591
        Mode = auto
        MobileCountryCode = 262
        CellId = 5950877
        MobileNetworkCode = 01
    [ org.ofono.SupplementaryServices ]
        State = idle
    [ org.ofono.SimManager ]
        SubscriberNumbers =
        LockedPins =
        SubscriberIdentity = xyz
        Present = 1
        PinRequired = none

# /usr/lib/ofono/test/list-contexts
[ /huawei0 ]
    [ /huawei0/primarycontext1 ]
        Username =
        Protocol = ip
        Name = 3G Connection
        Settings = { Interface=ppp0 Netmask=255.255.255.255 
Method=static DomainNameServers=193.254.160.1,10.74.83.22, 
Address=88.128.36.75 }
        Active = 1
        AccessPointName = internet.t-d1.de
        Password =
        Type = internet

# /usr/lib/connman/test/list-networks
....
[ /org/moblin/connman/device/262012020178698 ]
    [ /org/moblin/connman/device/262012020178698/primarycontext1 ]
        Device = /org/moblin/connman/device/262012020178698
        Strength = 70
        Connected = 0
        Name = T-Mobile D

# /usr/lib/connman/test/list-devices
....
[ /org/moblin/connman/device/262012020178698 ]
    Networks = /org/moblin/connman/device/262012020178698/primarycontext1
    Type = cellular
    Name = Cellular
    Powered = 1




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

* ppp0 interface is not configured
@ 2010-08-17 16:41 Florian Mayer
  0 siblings, 0 replies; 5+ messages in thread
From: Florian Mayer @ 2010-08-17 16:41 UTC (permalink / raw)
  To: ofono

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

Hello all,

we currently test the PPP dialup with a Huawei EM770W modem. We can 
connect with create-context and activate context but the ppp device is 
not configured. connman says that the device is not connected. We use 
connman 0.55 and ofono 0.26.
What did we do wrong? The kernel is 2.6.35~pre5 from Meego 1.1 devel.

Regards
Florian Mayer
Mayer Electronics

# /usr/lib/ofono/test/list-modems
[ /huawei0 ]
    Features = sms gprs cbs net sim
    Powered = 1
    Interfaces = org.ofono.SmsManager org.ofono.DataConnectionManager 
org.ofono.CellBroadcast org.ofono.NetworkRegistration 
org.ofono.SupplementaryServices org.ofono.SimManager
    Online = 1
    Model = EM770W
    Manufacturer = huawei
    Serial = xyz
    Revision = 11.126.10.81.00
    [ org.ofono.SmsManager ]
        UseDeliveryReports = 0
        Bearer = cs-preferred
        ServiceCenterAddress = +491710760000
    [ org.ofono.DataConnectionManager ]
        Powered = 1
        Attached = 1
        PrimaryContexts = /huawei0/primarycontext1
        RoamingAllowed = 1
    [ org.ofono.CellBroadcast ]
        Topics =
        Powered = 1
    [ org.ofono.NetworkRegistration ]
        Status = registered
        Strength = 70
        Name = T-Mobile D
        Operators = /huawei0/operator/26201
        LocationAreaCode = 34591
        Mode = auto
        MobileCountryCode = 262
        CellId = 5950877
        MobileNetworkCode = 01
    [ org.ofono.SupplementaryServices ]
        State = idle
    [ org.ofono.SimManager ]
        SubscriberNumbers =
        LockedPins =
        SubscriberIdentity = xyz
        Present = 1
        PinRequired = none

# /usr/lib/ofono/test/list-contexts
[ /huawei0 ]
    [ /huawei0/primarycontext1 ]
        Username =
        Protocol = ip
        Name = 3G Connection
        Settings = { Interface=ppp0 Netmask=255.255.255.255 
Method=static DomainNameServers=193.254.160.1,10.74.83.22, 
Address=88.128.36.75 }
        Active = 1
        AccessPointName = internet.t-d1.de
        Password =
        Type = internet

# /usr/lib/connman/test/list-networks
....
[ /org/moblin/connman/device/262012020178698 ]
    [ /org/moblin/connman/device/262012020178698/primarycontext1 ]
        Device = /org/moblin/connman/device/262012020178698
        Strength = 70
        Connected = 0
        Name = T-Mobile D

# /usr/lib/connman/test/list-devices
....
[ /org/moblin/connman/device/262012020178698 ]
    Networks = /org/moblin/connman/device/262012020178698/primarycontext1
    Type = cellular
    Name = Cellular
    Powered = 1




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

* Re: ppp0 interface is not configured
  2010-08-17 16:38 Florian Mayer
@ 2010-08-17 16:45 ` Marcel Holtmann
  2010-08-17 17:24   ` Florian Mayer
  0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2010-08-17 16:45 UTC (permalink / raw)
  To: ofono

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

Hi Florian,

> we currently test the PPP dialup with a Huawei EM770W modem. We can 
> connect with create-context and activate context but the ppp device is 
> not configured. connman says that the device is not connected. We use 
> connman 0.55 and ofono 0.26.
> What did we do wrong? The kernel is 2.6.35~pre5 from Meego 1.1 devel.

I never tested this with the EM777W modem, but with the Huawei modems I
have it works just fine.

Especially if it shows the DataConnectionManager interface since then
you have this properly setup and running.

>     [ org.ofono.DataConnectionManager ]
>         Powered = 1
>         Attached = 1
>         PrimaryContexts = /huawei0/primarycontext1
>         RoamingAllowed = 1
>     [ org.ofono.NetworkRegistration ]
>         Status = registered
>         Strength = 70
>         Name = T-Mobile D
>         Operators = /huawei0/operator/26201
>         LocationAreaCode = 34591
>         Mode = auto
>         MobileCountryCode = 262
>         CellId = 5950877
>         MobileNetworkCode = 01

> # /usr/lib/ofono/test/list-contexts
> [ /huawei0 ]
>     [ /huawei0/primarycontext1 ]
>         Username =
>         Protocol = ip
>         Name = 3G Connection
>         Settings = { Interface=ppp0 Netmask=255.255.255.255 
> Method=static DomainNameServers=193.254.160.1,10.74.83.22, 
> Address=88.128.36.75 }
>         Active = 1
>         AccessPointName = internet.t-d1.de
>         Password =
>         Type = internet

This looks like an active Internet context. How did you activate this
one. Via ConnMan or via activate-context test script. If via the script,
then I think that ConnMan is not picking this up. I think that is a bug
in ConnMan.

What does list-services from ConnMan says? The devices and networks are
actually irrelevant.

Regards

Marcel



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

* Re: ppp0 interface is not configured
  2010-08-17 16:45 ` Marcel Holtmann
@ 2010-08-17 17:24   ` Florian Mayer
  2010-08-17 17:33     ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Mayer @ 2010-08-17 17:24 UTC (permalink / raw)
  To: ofono

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

Marcel Holtmann schrieb:
> Hi Florian,
>
>   
>> we currently test the PPP dialup with a Huawei EM770W modem. We can 
>> connect with create-context and activate context but the ppp device is 
>> not configured. connman says that the device is not connected. We use 
>> connman 0.55 and ofono 0.26.
>> What did we do wrong? The kernel is 2.6.35~pre5 from Meego 1.1 devel.
>>     
>
> I never tested this with the EM777W modem, but with the Huawei modems I
> have it works just fine.
>
> Especially if it shows the DataConnectionManager interface since then
> you have this properly setup and running.
>
>   
>>     [ org.ofono.DataConnectionManager ]
>>         Powered = 1
>>         Attached = 1
>>         PrimaryContexts = /huawei0/primarycontext1
>>         RoamingAllowed = 1
>>     [ org.ofono.NetworkRegistration ]
>>         Status = registered
>>         Strength = 70
>>         Name = T-Mobile D
>>         Operators = /huawei0/operator/26201
>>         LocationAreaCode = 34591
>>         Mode = auto
>>         MobileCountryCode = 262
>>         CellId = 5950877
>>         MobileNetworkCode = 01
>>     
>
>   
>> # /usr/lib/ofono/test/list-contexts
>> [ /huawei0 ]
>>     [ /huawei0/primarycontext1 ]
>>         Username =
>>         Protocol = ip
>>         Name = 3G Connection
>>         Settings = { Interface=ppp0 Netmask=255.255.255.255 
>> Method=static DomainNameServers=193.254.160.1,10.74.83.22, 
>> Address=88.128.36.75 }
>>         Active = 1
>>         AccessPointName = internet.t-d1.de
>>         Password =
>>         Type = internet
>>     
>
> This looks like an active Internet context. How did you activate this
> one. Via ConnMan or via activate-context test script. If via the script,
> then I think that ConnMan is not picking this up. I think that is a bug
> in ConnMan.
>
> What does list-services from ConnMan says? The devices and networks are
> actually irrelevant.
>   
Hello,

thanks for the fast reply.
Yes I activated the context with the ofono activate-context script. I 
tested this method some time ago with connman 0.54 and ofono 0.24. There 
it worked.
Here is the result of connman list-services:
[ /profile/default/cellular_262012020178698_primarycontext1 ]
    AutoConnect = false
    Strength = 74
    Name = T-Mobile D
    SetupRequired = true
    Nameservers = [ ]
    Proxy = { }
    Favorite = false
    Domains.Configuration = [ ]
    State = idle
    IPv4 = { }
    Nameservers.Configuration = [ ]
    Mode = gprs
    Domains = [ ]
    Ethernet = { }
    Roaming = 0
    IPv4.Configuration = { }
    Type = cellular
    Immutable = false
    LoginRequired = false

How can I activate the the service from connman side via command line?
To get it right: each created context in ofono (and in the modem) is a 
service for connman, right?
I have to provide some hardware testing scripts for my customer. They 
want to do it automated.

Regards
Florian

> Regards
>
> Marcel
>
>
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono
>
>   


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

* Re: ppp0 interface is not configured
  2010-08-17 17:24   ` Florian Mayer
@ 2010-08-17 17:33     ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2010-08-17 17:33 UTC (permalink / raw)
  To: ofono

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

Hi Florian,

> >> we currently test the PPP dialup with a Huawei EM770W modem. We can 
> >> connect with create-context and activate context but the ppp device is 
> >> not configured. connman says that the device is not connected. We use 
> >> connman 0.55 and ofono 0.26.
> >> What did we do wrong? The kernel is 2.6.35~pre5 from Meego 1.1 devel.
> >>     
> >
> > I never tested this with the EM777W modem, but with the Huawei modems I
> > have it works just fine.
> >
> > Especially if it shows the DataConnectionManager interface since then
> > you have this properly setup and running.
> >
> >   
> >>     [ org.ofono.DataConnectionManager ]
> >>         Powered = 1
> >>         Attached = 1
> >>         PrimaryContexts = /huawei0/primarycontext1
> >>         RoamingAllowed = 1
> >>     [ org.ofono.NetworkRegistration ]
> >>         Status = registered
> >>         Strength = 70
> >>         Name = T-Mobile D
> >>         Operators = /huawei0/operator/26201
> >>         LocationAreaCode = 34591
> >>         Mode = auto
> >>         MobileCountryCode = 262
> >>         CellId = 5950877
> >>         MobileNetworkCode = 01
> >>     
> >
> >   
> >> # /usr/lib/ofono/test/list-contexts
> >> [ /huawei0 ]
> >>     [ /huawei0/primarycontext1 ]
> >>         Username =
> >>         Protocol = ip
> >>         Name = 3G Connection
> >>         Settings = { Interface=ppp0 Netmask=255.255.255.255 
> >> Method=static DomainNameServers=193.254.160.1,10.74.83.22, 
> >> Address=88.128.36.75 }
> >>         Active = 1
> >>         AccessPointName = internet.t-d1.de
> >>         Password =
> >>         Type = internet
> >>     
> >
> > This looks like an active Internet context. How did you activate this
> > one. Via ConnMan or via activate-context test script. If via the script,
> > then I think that ConnMan is not picking this up. I think that is a bug
> > in ConnMan.
> >
> > What does list-services from ConnMan says? The devices and networks are
> > actually irrelevant.
>
> Yes I activated the context with the ofono activate-context script. I 
> tested this method some time ago with connman 0.54 and ofono 0.24. There 
> it worked.
> Here is the result of connman list-services:
> [ /profile/default/cellular_262012020178698_primarycontext1 ]
>     AutoConnect = false
>     Strength = 74
>     Name = T-Mobile D
>     SetupRequired = true
>     Nameservers = [ ]
>     Proxy = { }
>     Favorite = false
>     Domains.Configuration = [ ]
>     State = idle
>     IPv4 = { }
>     Nameservers.Configuration = [ ]
>     Mode = gprs
>     Domains = [ ]
>     Ethernet = { }
>     Roaming = 0
>     IPv4.Configuration = { }
>     Type = cellular
>     Immutable = false
>     LoginRequired = false
> 
> How can I activate the the service from connman side via command line?
> To get it right: each created context in ofono (and in the modem) is a 
> service for connman, right?
> I have to provide some hardware testing scripts for my customer. They 
> want to do it automated.

I am using "test-connman list" and "test-connman connect ...". Make sure
the APN is set properly, but it can also be set via test-connman script.

Regards

Marcel



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

end of thread, other threads:[~2010-08-17 17:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 16:41 ppp0 interface is not configured Florian Mayer
  -- strict thread matches above, loose matches on Subject: below --
2010-08-17 16:38 Florian Mayer
2010-08-17 16:45 ` Marcel Holtmann
2010-08-17 17:24   ` Florian Mayer
2010-08-17 17:33     ` Marcel Holtmann

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.