<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Marcin Juszkiewicz - dbus</title><link href="https://marcin.juszkiewicz.com.pl/" rel="alternate"/><link href="https://marcin.juszkiewicz.com.pl/tag/dbus/feed/" rel="self"/><id>https://marcin.juszkiewicz.com.pl/</id><updated>2010-02-11T15:15:00+01:00</updated><entry><title>MDBus2 for Maemo5</title><link href="https://marcin.juszkiewicz.com.pl/2010/02/11/mdbus2-for-maemo5/" rel="alternate"/><published>2010-02-11T15:15:00+01:00</published><updated>2010-02-11T15:15:00+01:00</updated><author><name>Marcin Juszkiewicz</name></author><id>tag:marcin.juszkiewicz.com.pl,2010-02-11:/2010/02/11/mdbus2-for-maemo5/</id><summary type="html">&lt;p&gt;During &lt;span class="caps"&gt;FOSDEM&lt;/span&gt; I attended few talks in Openmoko devroom. During one of them Mickey &amp;#8216;mickeyl&amp;#8217; Lauer was using his &amp;#8216;mdbus&amp;#8217; tool to inspect and play with DBus services and methods. As tool looked interesting I decided to try&amp;nbsp;it.&lt;/p&gt;
&lt;p&gt;Same day I played a bit with it on Nokia N900 …&lt;/p&gt;</summary><content type="html">&lt;p&gt;During &lt;span class="caps"&gt;FOSDEM&lt;/span&gt; I attended few talks in Openmoko devroom. During one of them Mickey &amp;#8216;mickeyl&amp;#8217; Lauer was using his &amp;#8216;mdbus&amp;#8217; tool to inspect and play with DBus services and methods. As tool looked interesting I decided to try&amp;nbsp;it.&lt;/p&gt;
&lt;p&gt;Same day I played a bit with it on Nokia N900. Results were nicer then with using &amp;#8220;dbus-monitor&amp;#8221; or &amp;#8220;dbus-send&amp;#8221; but speed was a bit slow (due to Python used). But there was a hope: Mickeyl already started rewriting &amp;#8220;mickeydbus&amp;#8221; in Vala which should give speed&amp;nbsp;boost.&lt;/p&gt;
&lt;p&gt;Yesterday I built &amp;#8220;mickeydbus2&amp;#8221; for Maemo5 using OpenEmbedded (more about it in next posts) and played with it. Few bugs appeared, but I fixed some, Mickeyl did rest and coded few&amp;nbsp;improvements.&lt;/p&gt;
&lt;p&gt;But what this app really do? It has 2 modes basically: listener and method inspector/caller. Example listen&amp;nbsp;session:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Nokia-N900-42-11:~# mdbus2 -sl
[SIGNAL] org.freedesktop.DBus.NameAcquired  /org/freedesktop/DBus  org.freedesktop.DBus
( ":1.928" )
[SIGNAL] com.nokia.mce.signal.tklock_mode_ind  /com/nokia/mce/signal  :1.8
( "locked" )
[SIGNAL] org.freedesktop.Hal.Device.PropertyModified  /org/freedesktop/Hal/devices/platform_slide  :1.12
( 1, [ ( "button.state.value", false, false ) ] )
[SIGNAL] org.freedesktop.Hal.Device.Condition  /org/freedesktop/Hal/devices/platform_slide  :1.12
( "ButtonPressed", "cover" )
[SIGNAL] org.freedesktop.Hal.Device.PropertyModified  /org/freedesktop/Hal/devices/platform_kb_lock  :1.12
( 1, [ ( "button.state.value", false, false ) ] )
[SIGNAL] org.freedesktop.Hal.Device.Condition  /org/freedesktop/Hal/devices/platform_kb_lock  :1.12
( "ButtonPressed", "cover" )
[SIGNAL] com.nokia.mce.signal.tklock_mode_ind  /com/nokia/mce/signal  :1.8
( "unlocked" )
[SIGNAL] com.nokia.mce.signal.system_inactivity_ind  /com/nokia/mce/signal  :1.8
( false )
[SIGNAL] com.nokia.mce.signal.display_status_ind  /com/nokia/mce/signal  :1.8
( "on" )
[SIGNAL] org.freedesktop.Hal.Device.PropertyModified  /org/freedesktop/Hal/devices/bme  :1.12
( 2, [ ( "battery.reporting.current", false, false ), ( "battery.charge_level.percentage", false, false ) ] )
[SIGNAL] org.freedesktop.Hal.Device.PropertyModified  /org/freedesktop/Hal/devices/platform_kb_lock  :1.12
( 1, [ ( "button.state.value", false, false ) ] )
[SIGNAL] org.freedesktop.Hal.Device.Condition  /org/freedesktop/Hal/devices/platform_kb_lock  :1.12
( "ButtonPressed", "cover" )
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Asking for bus and&amp;nbsp;methods:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Nokia-N900-42-11:~# mdbus2 -s org.bluez
/
/com
/com/nokia
/com/nokia/MaemoTelephony
/org
/org/bluez
/org/bluez/899
/org/bluez/899/any
/org/bluez/899/hci0
/org/bluez/899/hci0/dev_00_1D_82_32_0A_22
Nokia-N900-42-11:~# mdbus2 -s org.bluez /com/nokia/MaemoTelephony
[METHOD]    org.freedesktop.DBus.Introspectable.Introspect() -&amp;gt; ( s:none )
[METHOD]    com.nokia.MaemoTelephony.SetCallerId( s:none ) -&amp;gt; ()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And there is also interactive mode with tab&amp;nbsp;completion:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Nokia-N900-42-11:~# mdbus2 -i -s
MDBUS2&amp;gt; org.bluez /com/nokia
/com/nokia                 /com/nokia/MaemoTelephony
MDBUS2&amp;gt; org.bluez /com/nokia/MaemoTelephony
[METHOD]    org.freedesktop.DBus.Introspectable.Introspect() -&amp;gt; ( s:none )
[METHOD]    com.nokia.MaemoTelephony.SetCallerId( s:none ) -&amp;gt; ()
MDBUS2&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How to get it on your N900? Enable &amp;#8220;extras-devel&amp;#8221; repository and install &amp;#8220;mdbus2&amp;#8221; package. Report bugs, send us fixes, ideas,&amp;nbsp;improvements.&lt;/p&gt;</content><category term="dbus"/><category term="maemo"/><category term="n900"/><category term="nokia"/><category term="openmoko"/></entry></feed>