<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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-IL" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<br>
<br>
I am trying to invoke a DBus method to turn on an LED *assert led group) via DBus with phosphor-dbus-monitor.<br>
<br>
The method’s signature is (can also be done with set-property, but I don’t think phosphor-dbus-monitor supports this type of callback) :<br>
busctl call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/attention_on org.freedesktop.DBus.Properties Set
<b>ssv</b> xyz.openbmc_project.Led.Group Asserted <b>b true<br>
<br>
</b>And in the .yaml file I write:<br>
- name: atten led on<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> description: ><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> 'Turn on attention LED.'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> class: callback<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> callback: method<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> service: xyz.openbmc_project.LED.GroupManager<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> path: /xyz/openbmc_project/led/groups/attention_on<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> interface: org.freedesktop.DBus.Properties<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> method: Set<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> args:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> - value: xyz.openbmc_project.Led.Group<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> type: string<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> - value: Asserted<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> type: string<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> - value: true<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US"> type: boolean<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US">But then I get DBus error:<br>
method call time=172.359041 sender=:1.49 -> destination=xyz.openbmc_project.LED.GroupManager serial=112 path=/xyz/openbmc_project/led/groups/attention_on; interface=org.freedesktop.DBus.Properties; member=Set<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> string "xyz.openbmc_project.Led.Group"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> string "Asserted"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> boolean true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">error time=172.359098 sender=:1.55 -> destination=:1.49 error_name=org.freedesktop.DBus.Error.InvalidSignature reply_serial=112<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> string "Incorrect signature when setting property 'Asserted', expected 'v', got 'b'."<br>
<br>
I have also tried to set ‘type’ in the .yaml to “variant” and also </span>“variant[boolean]”<span lang="EN-US">, but these did not compile.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<br>
Moria</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>