Debugging BlueZ dbus proxy objects and signals
<p>I was looking in a way to debug signal coming from BlueZ. Currently I am trying to debug a problem I am facing with a framework (Iotivity) and was looking in a way to debug the proxy dbus objects and its signals.</p>

<p>The problem is that I have a method that is connect to the g-properties-changed signal of a characteristics (GATT) proxy object that should be fired when I receive data from my device. <a href="https://github.com/iotivity/iotivity/blob/1.1-rel/resource/csdk/connectivity/src/bt_le_adapter/linux/client.c#L279" rel="nofollow">This</a> is the line of code that I am talking about. I can see the data coming from the btmon and hcidump tools but that callback never gets called. </p>

<p>So the main question is, is there a tool to debug dbus signals and proxy objects. A tool that I can use to fire a signal or see the signals being fired ?</p>

<p>Here are some logs that might be useful. (BlueZ, Iotivity and hcidump logs)
<a href="http://pastebin.com/FWcRE3Uz" rel="nofollow">http://pastebin.com/FWcRE3Uz</a></p>

<p><strong>Edit:</strong></p>

<p>I got the dbus-monitor to work. After some more reading I understood that there are 2 types of bus and that I had to specify that I wanted the system bus: <code>dbus-monitor --system "type='signal',sender='org.bluez'"</code></p>

<p>The problem now is to find why the method in question is not being fired even though the signal is, as you can see in the log I got from dbus-monitor:</p>

<pre><code>signal sender=:1.5 -&gt; dest=(null destination) serial=273 path=/org/bluez/hci0/dev_C7_6A_A9_0B_DD_5F/service000c/char000f; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.GattCharacteristic1"
   array [
      dict entry(
         string "Value"
         variant             array of bytes [
               d8 c6 45 48 8a 23 f3 c4 9f a2 77 b3 6f 69 63 03 72 65 73 11
            ]
      )
   ]
   array [
   ]
</code></pre>