Talk:Mdbus

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: 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 malingl...)
 
(making a phone call)
Line 11: Line 11:
 
This will not work, since mdbus will register to the bus and vanish right  
 
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  
 
afterwards, meaning the resource will be released immediately (if noone else  
has requested it). Try setting the policy to always-enabled.
+
has requested it). Try setting the policy to always-enabled:
 +
 
 +
<pre>
 +
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage
 +
org.freesmartphone.Usage.SetResourcePolicy "GSM" "enabled"
 +
</pre>
 +
 
  
 
<pre>
 
<pre>

Revision as of 11:52, 24 November 2008

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.ousaged /org/freesmartphone/Usage
org.freesmartphone.Usage.SetResourcePolicy "GSM" "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"