ppp0 interface is not configured
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 = 1Hi Florian,
Quoted 5 lines
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.
Quoted 16 lines
[ 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
Quoted 13 lines
# /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 = internetThis 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
Quoted 50 lines · Marcel Holtmann
Hi Florian,
Quoted 6 lines
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.
Quoted 18 lines
[ 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 = 01Quoted 14 lines
# /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
Quoted 8 lines
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
Quoted 11 lines
Regards
Marcel
_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono
Hi Florian,
Quoted 80 lines
Quoted 47 lines
Quoted 6 lines
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.
Quoted 18 lines
[ 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 = 01Quoted 14 lines
# /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 = internetQuoted 7 lines
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
Quoted 5 lines
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