<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hello all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I’m using dbus glib binding (glib version: 2.31.1) in my c/c++ applications having dbus-signal handling active.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">When sending a signal using dbus-send from cmd line it does not arrive in my application signal handler.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Here an example:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">dbus-send --system --type=signal /WlanObj com.rexroth.akku.WlanInterface.changed_rssilevel int32:-90<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">dbus-monitor output:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">signal sender=org.freedesktop.DBus -> dest=(null destination) serial=30 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> string ":1.17"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> string ""<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> string ":1.17"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">signal sender=:1.17 -> dest=(null destination) serial=2 path=/WlanObj; interface=com.rexroth.akku.WlanInterface; member=changed_rssilevel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> int32 -90<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">signal sender=org.freedesktop.DBus -> dest=(null destination) serial=31 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> string ":1.17"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> string ":1.17"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> string ""<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">There is also a qt-application running on the system. This application is able to receive the emitted signal from dbus-send. Why does my glib-dbus application not?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I’m using g_dbus_proxy_new_for_bus_sync to connect to the service with G_DBUS_PROXY_FLAGS_NONE.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">When the service /WlanObj itself sends the signal my application does receive it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Can anyone tell me what I’m doing wrong?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Mit freundlichen Grüßen / Best regards
<br>
<br>
<b>Martin Eckert<br>
<br>
</b>E</span><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">ngineering Joining Technolgy DC-AT/EJT-SC
<br>
Tel. +49 7192 22-453 <br>
Fax +49 7192 22-290 </span><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue"><br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue"><a href="mailto:Martin.Eckert@boschrexroth.de"><span lang="DE" style="color:blue;text-decoration:none">Martin.Eckert@boschrexroth.de</span></a></span><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue">
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue"><a href="http://www.boschrexroth.com"><span lang="DE" style="color:blue">www.boschrexroth.com</span></a></span><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue">
<br>
</span><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><br>
Bosch Rexroth AG <br>
Fornsbacher Str. 92 <br>
71540 Murrhardt <br>
GERMANY <br>
<br>
</span><a href="http://www.boschrexroth.com/"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;text-decoration:none"><img border="0" width="158" height="64" style="width:1.6458in;height:.6666in" id="_x0000_i1025" src="https://dc-corp.resource.bosch.com/media/_tech_dc/layout_dc/images_dc/logos_dc/logo_signature.png" alt="BOSCH REXROTH"></span></a><span lang="DE" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"><br>
<br>
Firmensitz: Stuttgart, Registrierung: Amtsgericht Stuttgart HRB 23192 <br>
Vorstand: Rolf Najork (Vorsitzender), Dr. Markus Forschner, Reinhard Schäfer, Dr. Marc Wucherer
<br>
Vorsitzender des Aufsichtsrats: Christoph Kübel<br>
<br>
</span><span lang="DE"><o:p></o:p></span></p>
</div>
</body>
</html>