Hi ConnMan experts,
I am recently trying to enable cellular on a customized linux system. I am
using ConnMan and ofono to do this. Unfortunately I am new to both of them.
First, I am not able to fully verify ofono using test script as python 3 is
not supported on the system. I ran the ofono deamon in debug mode, it is
able to register the modem.
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() /dev/ttyACM0 2/2/1 00
(null)
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() /dev/ttyACM1 2/2/1 02
(null)
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() /dev/ttyACM2 2/2/1 04
(null)
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() /dev/ttyACM3 2/2/1 06
(null)
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() /dev/ttyACM4 2/2/1 08
(null)
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() /dev/ttyACM5 2/2/1 0a
(null)
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() /dev/ttyACM6 2/2/1 0c
(null)
ofonod[1385]: ./ofono/plugins/udevng.c:setup_he910() modem=/dev/ttyACM0
aux=/dev/ttyACM3
ofonod[1385]: ./ofono/src/modem.c:set_modem_property() modem 0x137278
property Modem
ofonod[1385]: ./ofono/src/modem.c:set_modem_property() modem 0x137278
property Aux
ofonod[1385]: ./ofono/src/modem.c:ofono_modem_register() 0x137278
ofonod[1385]: ./ofono/plugins/he910.c:he910_probe() 0x137278
ofonod[1385]: ./ofono/src/modem.c:emit_modem_added() 0x137278
ofonod[1385]: ./ofono/src/modem.c:call_modemwatches() 0x137278 added:1
ofonod[1385]: ./ofono/plugins/hfp_ag_bluez5.c:modem_watch() modem:
0x137278, added: 1
ofonod[1385]: ./ofono/plugins/dun_gw_bluez5.c:modem_watch() modem:
0x137278, added: 1
ofonod[1385]: ./ofono/plugins/smart-messaging.c:modem_watch() modem:
0x137278, added: 1
ofonod[1385]: ./ofono/plugins/push-notification.c:modem_watch() modem:
0x137278, added: 1
ofonod[1385]: ./ofono/src/modem.c:ofono_modem_register() state 0, sim 0
ofonod[1385]: ./ofono/plugins/udevng.c:enumerate_devices() remove device
number: 0
If I change the source code a little bit, I can also see network
registrations
ofonod[410]: Aux: < +COPS: 0,0,"AT&T",2\r\n\r\nOK\r\n
ofonod[410]: ./ofono/drivers/atmodem/network-registration.c:cops_cb()
cops_cb: AT&T, 310 410 2
After that, I tried to integrate ConnMan and ofono.
ConnMan is compiled without the --disable-ofono option.
Both connmand and ofonod are running in background.
root 1362 0.0 0.8 4544 2028 ? Ss 00:33 0:00 ofonod
root 1350 0.0 0.7 4524 1972 ? Ss 00:29 0:00
/usr/sbin/connmand -W nl80211 --pidfile /var/run/connmand.pid
But when I tried to use 'connmanctl technologies' to list the techs, I only
saw wifi and ofonod. And the wired part is once modem is created and
registered, even ofonod is disappeared from the list.
root@stone# connmanctl technologies
{ /net/connman/technology/wifi }
[Name] = WiFi
[Type] = wifi
[Powered] = False
[Connected] = False
[Tethering] = False
[1]+ Done ofonod
root@stone# connmanctl technologies
{ /net/connman/technology/wifi }
[Name] = WiFi
[Type] = wifi
[Powered] = False
[Connected] = False
[Tethering] = False
I expect to see "cellular" in the tech list. And then I can enable the
technology and list services. Is my understanding correct?
But why I am seeing ofonod here? Did I miss something?
BTW, my connman is 1.11 and ofono is 1.15.
--
Thanks,
Nanxi
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman