Launching ofono with SIM800

From ZeroPhone
Revision as of 16:57, 7 January 2018 by Monsieur h (talk | contribs) (Created page with "== adding a new udev rule == <pre>cat /etc/udev/rules.d/00-ofono.rules KERNEL=="ttyAMA0", ENV{OFONO_DRIVER}="sim900"</pre> == starging ofonod in debug mod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

adding a new udev rule

cat /etc/udev/rules.d/00-ofono.rules
KERNEL=="ttyAMA0", ENV{OFONO_DRIVER}="sim900"

starging ofonod in debug mode

./src/ofonod -n -d 'plugins/*'
[...]
ofonod[5102]: plugins/udevng.c:add_serial_device() Device is missing required OFONO_DRIVER property
ofonod[5102]: plugins/udevng.c:create_modem() /sys/devices/platform/soc/20201000.serial/tty/ttyAMA0
ofonod[5102]: plugins/udevng.c:create_modem() driver=sim900
ofonod[5102]: plugins/sim900.c:sim900_probe() 0x1fba88
ofonod[5102]: plugins/dun_gw_bluez5.c:modem_watch() modem: 0x1fba88, added: 1
ofonod[5102]: plugins/hfp_ag_bluez5.c:modem_watch() modem: 0x1fba88, added: 1
ofonod[5102]: plugins/smart-messaging.c:modem_watch() modem: 0x1fba88, added: 1
ofonod[5102]: plugins/push-notification.c:modem_watch() modem: 0x1fba88, added: 1
ofonod[5102]: plugins/hfp_hf_bluez5.c:connect_handler() Registering External Profile handler ...
ofonod[5102]: plugins/bluez5.c:bt_register_profile() Bluetooth: Registering 0000111e-0000-1000-8000-00805f9b34fb (hfp_hf) profile
ofonod[5102]: plugins/bluez5.c:profile_register_cb()

testing detected modems

python2 ./list-modems 
[ /sim900_0 ]
    Features = 
    Emergency = 0
    Powered = 0
    Lockdown = 0
    Interfaces = 
    Online = 0
    Type = hardware

[ /stktest ]
    Features = 
    Emergency = 0
    Powered = 0
    Lockdown = 0
    Interfaces = 
    Online = 0
    Type = test