Hi all,
I'm trying to use connman (1.18) in conjunction with ofono (1.6) to get
gprs connection.
For the moment, I can etablish PPP connection with ofono, I enable the
modem, set it online and activate data context. When the ppp0 iface is
created, I can use ifconfig to set ip address/mask and set the new default
route, etc. to use the ppp0 iface.
Then, my goal is to use connman for the management of ethernet and other
iface. When I launch connman, it detects correctly the ethernet link and I
can use it. However, the cellular link is detected but not entirely:
dbus-send --system --dest=net.connman --print-reply /
net.connman.Manager.GetTechnologies
method return sender=:1.0 -> dest=:1.11 reply_serial=2
array [
struct {
object path "/net/connman/technology/cellular"
array [
dict entry(
string "Name"
variant string "Cellular"
)
dict entry(
string "Type"
variant string "cellular"
)
dict entry(
string "Powered"
variant boolean true
)
dict entry(
string "Connected"
variant boolean false
)
dict entry(
string "Tethering"
variant boolean false
)
]
}
struct {
object path "/net/connman/technology/ethernet"
array [
dict entry(
string "Name"
variant string "Wired"
)
dict entry(
string "Type"
variant string "ethernet"
)
dict entry(
string "Powered"
variant boolean true
)
dict entry(
string "Connected"
variant boolean true
)
dict entry(
string "Tethering"
variant boolean false
)
]
}
]
Even if I activate manually context with ofono, the connected value of the
cellular doesn't change.
This is the common log when I activate the context:
ofonod[592]: drivers/atmodem/gprs-context.c:at_gprs_activate_primary() cid 1
ofonod[592]: drivers/atmodem/gprs-context.c:at_cgdcont_cb() ok 1
ofonod[592]: drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 1
ofonod[592]: drivers/atmodem/gprs-context.c:setup_ppp()
connmand[573]: src/rtnl.c:rtnl_message() buf 0xbe9cfb88 len 232
connmand[573]: src/rtnl.c:rtnl_message() NEWLINK len 232 type 16 flags
0x0000 seq 0 pid 0
connmand[573]: src/ipconfig.c:__connman_ipconfig_newlink() index 5
connmand[573]: ppp0 {create} index 5 type 65534 <NONE>
connmand[573]: ppp0 {update} flags 4240 <DOWN>
connmand[573]: ppp0 {newlink} index 5 operstate 2 <DOWN>
connmand[573]: src/detect.c:detect_newlink() type 65534 index 5
ofonod[592]: drivers/atmodem/gprs-context.c:ppp_connect()
ofonod[592]: IP: 10.126.160.160
ofonod[592]: DNS: 195.186.216.33, 195.186.152.33
ofonod[592]: src/gprs.c:pri_activate_callback() 0x1b0c00
connmand[573]: src/rtnl.c:rtnl_message() buf 0xbe9cfb88 len 232
connmand[573]: src/rtnl.c:rtnl_message() NEWLINK len 232 type 16 flags
0x0000 seq 0 pid 0
connmand[573]: src/ipconfig.c:__connman_ipconfig_newlink() index 5
connmand[573]: ppp0 {newlink} index 5 operstate 2 <DOWN>
connmand[573]: src/detect.c:detect_newlink() type 65534 index 5
connmand[573]: src/rtnl.c:rtnl_message() buf 0xbe9cfb88 len 236
connmand[573]: src/rtnl.c:rtnl_message() NEWLINK len 236 type 16 flags
0x0000 seq 0 pid 0
connmand[573]: src/ipconfig.c:__connman_ipconfig_newlink() index 5
connmand[573]: ppp0 {update} flags 69841 <UP,RUNNING,LOWER_UP>
connmand[573]: src/ipconfig.c:__connman_ipconfig_lower_up() ipconfig ipv4
(nil) ipv6 (nil)
connmand[573]: ppp0 {newlink} index 5 operstate 0 <UNKNOWN>
connmand[573]: src/detect.c:detect_newlink() type 65534 index 5
connmand[573]: plugins/ofono.c:context_changed() context_path
/telit_gl865_0/context1
connmand[573]: plugins/ofono.c:context_changed() /telit_gl865_0 Settings
connmand[573]: plugins/ofono.c:extract_ipv4_settings() Interface ppp0
connmand[573]: plugins/ofono.c:extract_ipv4_settings() index 5
connmand[573]: plugins/ofono.c:extract_ipv4_settings() Method static
connmand[573]: plugins/ofono.c:extract_ipv4_settings() Address
10.126.160.160
connmand[573]: plugins/ofono.c:extract_ipv4_settings() Netmask
255.255.255.255
connmand[573]: plugins/ofono.c:extract_ipv4_settings() Nameservers
195.186.216.33 195.186.152.33
ofonod[592]: plugins/udev.c:udev_event() subsystem net add
connmand[573]: plugins/ofono.c:context_changed() context_path
/telit_gl865_0/context1
ofonod[592]: plugins/udev.c:udev_event() subsystem net finished
connmand[573]: plugins/ofono.c:context_changed() /telit_gl865_0 Active 1
connmand[573]: plugins/ofono.c:set_connected() /telit_gl865_0
connmand[573]: src/service.c:connman_service_lookup_from_network() network
(nil)
ofonod[592]: plugins/udevng.c:check_modem_list()
But my ifconfig looks like this:
eth0 Link encap:Ethernet HWaddr 00:0C:C6:77:6D:3A
inet addr:172.16.0.113 Bcast:172.16.0.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14469 errors:0 dropped:0 overruns:0 frame:0
TX packets:1489 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1003351 (979.8 KiB) TX bytes:506248 (494.3 KiB)
lo Link encap:Local Loopback
[..]
ppp0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Any idea ?
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman