Ofono

From Tizen Wiki
Jump to: navigation, search

OFono is used in Tizen:IVI and as Common shared component too.


OFONO

Here is a sample test to check integration of ofono.

I tested it in fri2 platform ( http://elinux.org/FRI )

Make sure to have ofono test package installed

If using Yocto add them to image :

 IMAGE_INSTALL_append = " ofono ofono-test "

Interesting files are in :

 /usr/lib/ofono/test/
 /usr/sbin/ofonod --version
 1.15


Config file does not need to be changed : /etc/ofono/phonesim.conf



python /usr/lib/ofono/test/list-modems 
[ /mbm_0 ]
    Features = sms stk rat sim 
    Emergency = 0
    Powered = 1
    Lockdown = 0
    Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.SimToolkit org.ofono.RadioSettings org.ofono.SimManager 
    Online = 0
    Model = F5521gw
    Revision = R3B01
    Type = hardware
    Serial = 356200000000000
    Manufacturer = Ericsson
    [ org.ofono.SmartMessaging ]
    [ org.ofono.PushNotification ]
    [ org.ofono.MessageManager ]
        Alphabet = default
        UseDeliveryReports = 0
        Bearer = cs-preferred
        ServiceCenterAddress = +33600000000
    [ org.ofono.SimToolkit ]
        IdleModeIcon = 
        MainMenuTitle = 
        IdleModeText = 
        MainMenu = 
        MainMenuIcon = 
    [ org.ofono.RadioSettings ]
    [ org.ofono.SimManager ]
        Retries = [pin2 = 3] [puk2 = 10] [pin = 2] [puk = 10] 
        MobileCountryCode = 208
        FixedDialing = 0
        SubscriberNumbers = 
        PreferredLanguages = fr 
        BarredDialing = 0
        CardIdentifier = 0000000000000000000
        LockedPins = 
        MobileNetworkCode = 15
        SubscriberIdentity = 000000000000000
        Present = 1
        PinRequired = none

 python /usr/lib/ofono/test/online-modem                    
Setting modem /mbm_0 online...

tel=+33555555555 # adapt with a test number you own
message="$(date)"
python /usr/lib/ofono/test/send-sms "$tel" "$message" 0    


Related :