Call from command line (on FSO)

Michael 'Mickey' Lauer mickey at openmoko.org
Wed Nov 19 00:39:51 CET 2008


Am Tuesday 18 November 2008 21:42:16 schrieb Sten Kvamme:
> I tried to call out from the command line (FSO4) but don't make it. Did
> I forget something?
>
> mdbus -s org.freesmartphone.ogsmd \
>   /org/freesmartphone/GSM/Device \
>   org.freesmartphone.Resource.Enable

This will not work, since mdbus will register to the bus and vanish right 
afterwards, meaning the resource will be released immediately (if noone else 
has requested it). Try setting the policy to always-enabled.

> mdbus -s org.freesmartphone.ogsmd \
>   /org/freesmartphone/GSM/Device \
> org.freesmartphone.GSM.Device.SetAntennaPower boolean:true

This is the wrong syntax, s/boolean:true/True/

> mdbus -s org.freesmartphone.ogsmd \
>   /org/freesmartphone/GSM/Device \
>   org.freesmartphone.GSM.Network.Register

Should be ok.

>
> mdbus -s org.freesmartphone.ogsmd \
>   /org/freesmartphone/Phone \
>   org.freesmartphone.Phone.CreateCall \
>   string:0123456789 string:GSM boolean:true

Syntax is wrong (see above), but should work -- although I'd rather use the 
ogsmd subsystem here, in which case it would be:

mdbus -s -org.freesmartphone.ogsmd \
  /org/freesmartphone/GSM/Device \
  org.freesmartphone.GSM.Initiate "+49123456789" "voice"

-- 
:M:



More information about the devel mailing list