Talk:Mdbus

From Openmoko

Revision as of 10:12, 19 November 2008 by Joejoe (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I like tutorials, but I have not found proper place to highlight interesting tutorials:

making a phone call

(from discussion of Sten Kvamme and Michael 'Mickey' Lauer at devel malinglist)

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
mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device \
 org.freesmartphone.GSM.Network.Register
mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/Phone \
 org.freesmartphone.Phone.CreateCall string:0123456789 \
 string:GSM boolean:True

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"
Personal tools

I like tutorials, but I have not found proper place to highlight interesting tutorials:

making a phone call

(from discussion of Sten Kvamme and Michael 'Mickey' Lauer at devel malinglist)

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
mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device \
 org.freesmartphone.GSM.Network.Register
mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/Phone \
 org.freesmartphone.Phone.CreateCall string:0123456789 \
 string:GSM boolean:True

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"