From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: <rauc-bounces@pengutronix.de> From: "Stahl, Michael" <mstahl@moba.de> Date: Tue, 3 Aug 2021 10:57:47 +0000 Message-ID: <AM9PR09MB4756BB53803B285E7885CB46DBF09@AM9PR09MB4756.eurprd09.prod.outlook.com> References: <AM9PR09MB47567FC83E0FE16AEC4BB2F0DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com>, <OF278C4D67.A285721B-ONC1258725.003E2C50-C1258725.0040418D@JUMO.DE>, <AM9PR09MB47563BB4F309DDD51814BF72DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com> <AM9PR09MB4756411B8C78CCE0C6E9E898DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com>, <OF49D2616A.4F2E6473-ONC1258725.004A6743-C1258725.004ACA74@JUMO.DE> <AM9PR09MB47565A139DBA7695DFA7C3A7DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com>, <OFED8DCEE2.1D888448-ONC1258725.0050FDA1-C1258725.0051D69F@JUMO.DE> <AM9PR09MB475641FB562F9ED5417F0C0CDBF09@AM9PR09MB4756.eurprd09.prod.outlook.com>, <OF2EA75551.5934A3EE-ONC1258726.00235C12-C1258726.00237EEF@JUMO.DE>, <AM9PR09MB4756881E4E1213CB37FF98B8DBF09@AM9PR09MB4756.eurprd09.prod.outlook.com> In-Reply-To: <AM9PR09MB4756881E4E1213CB37FF98B8DBF09@AM9PR09MB4756.eurprd09.prod.outlook.com> Content-Language: de-DE MIME-Version: 1.0 Subject: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: Re: Antwort: D-Bus control Qt List-Id: RAUC Project - Discussion List <rauc.pengutronix.de> List-Unsubscribe: <http://metis.pengutronix.de/cgi-bin/mailman/options/rauc>, <mailto:rauc-request@pengutronix.de?subject=unsubscribe> List-Archive: <http://metis.pengutronix.de/cgi-bin/mailman/private/rauc/> List-Post: <mailto:rauc@pengutronix.de> List-Help: <mailto:rauc-request@pengutronix.de?subject=help> List-Subscribe: <http://metis.pengutronix.de/cgi-bin/mailman/listinfo/rauc>, <mailto:rauc-request@pengutronix.de?subject=subscribe> Content-Type: multipart/mixed; boundary="===============1795267209==" Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" <rauc-bounces@pengutronix.de> To: "Eugen.Wiens@JUMO.net" <Eugen.Wiens@JUMO.net> Cc: RAUC <rauc-bounces@pengutronix.de>, "RAUC@pengutronix.de" <RAUC@pengutronix.de> --===============1795267209== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_" --_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I found the issue You have to connect to the systemBus not to the sessionBus! if (QDBusConnection::systemBus().connect("de.pengutronix.rauc", = //Service "/", //Path "org.freedesktop.DBus.Properties", //Inter= face "PropertiesChanged", this, SLOT(propertyChanged(const QString& , const QMap<QString, Q= Variant>& , const QStringList& ))= )) { qDebug() << "PropertiesChanged signal connected successfully to slo= t"; } else { qDebug() << "PropertiesChanged signal connection was not successful= "; } Now I my function propertyChanged is called every time the property changes= . If you use ________________________________ Von: RAUC <rauc-bounces@pengutronix.de> im Auftrag von Stahl, Michael <msta= hl@moba.de> Gesendet: Dienstag, 3. August 2021 10:27 An: Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net> Cc: RAUC <rauc-bounces@pengutronix.de>; RAUC@pengutronix.de <RAUC@pengutron= ix.de> Betreff: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: Re: Antwort: D-Bus c= ontrol Qt Hi Euen, I know but I am stucking. I am polling the propery "Operation". Just when i= t changes from "idle" to "installing" I subscribe the PropertiesChanged sig= nal but without success. I tried several connect strings but all without su= ccess. if (QDBusConnection::sessionBus().connect("de.pengutronix.rauc", "/", "org.freedesktop.DBus.Properties", "PropertiesChanged", this, SLOT(propertyChanged(const QString& , const QMap<QString, Q= Variant>& , const QStringList& ))= )) { qDebug() << "PropertiesChanged signal connected successfully to slot"; } else { qDebug() << "PropertiesChanged signal connection was not successful"; } Please can you tell me how to subcribe the PropertiesChanged signal? ________________________________ Von: Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net> Gesendet: Dienstag, 3. August 2021 08:27 An: Stahl, Michael <mstahl@moba.de> Cc: RAUC@pengutronix.de <RAUC@pengutronix.de>; RAUC <rauc-bounces@pengutron= ix.de> Betreff: Antwort: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: D-Bus contr= ol Qt Hi Michael, you can connect to a property change on dbus level. That is the way we do i= t. "RAUC" <rauc-bounces@pengutronix.de> schrieb am 03.08.2021 08:21:32: > Von: "Stahl, Michael" <mstahl@moba.de> > An: "Eugen.Wiens@JUMO.net" <Eugen.Wiens@JUMO.net> > Kopie: "RAUC" <rauc-bounces@pengutronix.de>, "RAUC@pengutronix.de" > <RAUC@pengutronix.de> > Datum: 03.08.2021 08:21 > Betreff: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: D-Bus control Q= t > Gesendet von: "RAUC" <rauc-bounces@pengutronix.de> > > Hi Eugen, > > thanks again. I implemented the signal and now I get the signal that > the update is finished. > But thats the only signal that rauc is provided, isn't it? To get > the progress I have to poll the property, or are there general > signals on the dbus that I can connect to? > > Do you read the property "Progress" like > QDBusInterface iface( "de.pengutronix.rauc", > "/", > "de.pengutronix.rauc.Installer", > QDBusConnection::systemBus() ); > QVariant property =3D iface.property("Progress"); > MyProgress parameterProgress; > property.value<QDBusArgument>() >> parameterProgress; > > or did you use another possibility? > If I use the above I get a message five times and the marshaled data ( > m_Progress, m_Message, ..) are always empty. > QDBusArgument: read from a write-only object > > Von: Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net> > Gesendet: Montag, 2. August 2021 16:53 > An: Stahl, Michael <mstahl@moba.de> > Cc: RAUC@pengutronix.de <RAUC@pengutronix.de>; RAUC <rauc- > bounces@pengutronix.de> > Betreff: Antwort: Re: [RAUC] Antwort: Re: Antwort: D-Bus control Qt > > Hi Michael, > > "RAUC" <rauc-bounces@pengutronix.de> schrieb am 02.08.2021 16:29:18: > > > Von: "Stahl, Michael" <mstahl@moba.de> > > An: "Eugen.Wiens@JUMO.net" <Eugen.Wiens@JUMO.net> > > Kopie: RAUC <rauc-bounces@pengutronix.de>, "RAUC@pengutronix.de" > > <RAUC@pengutronix.de> > > Datum: 02.08.2021 16:29 > > Betreff: Re: [RAUC] Antwort: Re: Antwort: D-Bus control Qt > > Gesendet von: "RAUC" <rauc-bounces@pengutronix.de> > > > > Okay, thanks a lot. > > > > A last question. Is it correct that I have to poll the "Progress" > > property or is there any signal system where I can subcribe to get a > > notification at every change of progress status? > > We are using a dbus signal. You can connect to it with Qt. > > Best regards, > Eugen > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte > Informationen beinhalten und ist ausschlie?lich f?r die im Verteiler > genannten Personen bestimmt. Das unerlaubte Kopieren sowie die > unbefugte Weitergabe dieser Mail sind nicht gestattet. Bitte > benachrichtigen Sie uns gegebenenfalls telefonisch oder mit Antwort- > Mail, falls Sie nicht der richtige Adressat dieser E-Mail sind. > Bitte l?schen Sie diese Nachricht und alle Anh?nge dazu unverz? > glich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine > rechtlich bindende Vereinbarung. > > Kommanditgesellschaft: JUMO GmbH & Co. KG, Sitz: 36039 Fulda, > Amtsgericht Fulda HRA 302, Pers?nlich haftende Gesellschafterin: M. > K. JUCHHEIM GmbH, Sitz: 36039 Fulda, Amtsgericht Fulda HRB 17, > Gesch?ftsf?hrer: Dipl.-Ing. Bernhard Juchheim, Dipl.-Kfm. Michael > Juchheim, Dipl.-Ing. Dimitrios Charisiadis > Ust.-Id.-Nr.: DE 112411234_______________________________________________ > RAUC mailing list Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen = beinhalten und ist ausschlie?lich f?r die im Verteiler genannten Personen b= estimmt. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail= sind nicht gestattet. Bitte benachrichtigen Sie uns gegebenenfalls telefon= isch oder mit Antwort-Mail, falls Sie nicht der richtige Adressat dieser E-= Mail sind. Bitte l?schen Sie diese Nachricht und alle Anh?nge dazu unverz?g= lich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine rechtlich b= indende Vereinbarung. Kommanditgesellschaft: JUMO GmbH & Co. KG, Sitz: 36039 Fulda, Amtsgericht F= ulda HRA 302, Pers?nlich haftende Gesellschafterin: M. K. JUCHHEIM GmbH, Si= tz: 36039 Fulda, Amtsgericht Fulda HRB 17, Gesch?ftsf?hrer: Dipl.-Ing. Bern= hard Juchheim, Dipl.-Kfm. Michael Juchheim, Dipl.-Ing. Dimitrios Charisiadi= s Ust.-Id.-Nr.: DE 112411234 --_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo= ttom:0;} </style> </head> <body dir=3D"ltr"> <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size= : 12pt; color: rgb(0, 0, 0);"> I found the issue </div> <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size= : 12pt; color: rgb(0, 0, 0);"> <br> </div> <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size= : 12pt; color: rgb(0, 0, 0);"> You have to connect to the systemBus not to the sessionBus!</div> <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size= : 12pt; color: rgb(0, 0, 0);"> <br> </div> <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size= : 12pt; color: rgb(0, 0, 0);"> <span style=3D"color:#c0c0c0"></span><span style=3D"color:#808000">if</span= ><span style=3D"color:#c0c0c0"> </span>(<span style=3D"color:#800080">QDBusConnection</span>::<span style= =3D"color:#00677c">systemBus</span>().<span style=3D"color:#00677c">connect= </span>(<span style=3D"color:#008000">"de.pengutronix.rauc"</span= >, &nb= sp; <sp= an style=3D"color:#c0c0c0"> </span><span style=3D"color:#008000">//Service</span> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> &n= bsp; </span><span style=3D"color:#00800= 0">"/"</span>,<span style=3D"color:#c0c0c0"> =  = ; </span><span style=3D"color: rgb(0, 128, 0); font-family: calibri= , arial, helvetica, sans-serif; font-size: 12pt; background-color: rgba(0, = 0, 0, 0);">//Path</span></pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> &n= bsp; </span><span style=3D"color:#= 008000">"org.freedesktop.DBus.Properties"</span>,<span style=3D"c= olor:#c0c0c0"> </span><span style=3D"color: rgb(0, 128, 0); font-famil= y: calibri, arial, helvetica, sans-serif; font-size: 12pt; background-color= : rgba(0, 0, 0, 0);">//Interface</span></pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> &n= bsp; </span><span style=3D"color:#= 008000">"PropertiesChanged"</span>,</pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> &n= bsp; </span><span style=3D"color:#= 808000">this</span>,</pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> &n= bsp; </span><span style=3D"color:#= 808000">SLOT</span>(propertyChanged(<span style=3D"color:#808000">const</sp= an><span style=3D"color:#c0c0c0"> </span><span style=3D"color:#800080"= >QString</span>&<span style=3D"color:#c0c0c0"> </span>,</pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> &n= bsp; &= nbsp; </span><span style=3D"color:= #808000">const</span><span style=3D"color:#c0c0c0"> </span><span style= =3D"color:#800080">QMap</span><<span style=3D"color:#800080">QString</sp= an>,<span style=3D"color:#c0c0c0"> </span><span style=3D"color:#800080= ">QVariant</span>>&<span style=3D"color:#c0c0c0"> </span>,</pre= > <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> &n= bsp; &= nbsp; </span><span style=3D"color:= #808000">const</span><span style=3D"color:#c0c0c0"> </span><span style= =3D"color:#800080">QStringList</span>&<span style=3D"color:#c0c0c0">&nb= sp;</span>))))<span style=3D"color:#c0c0c0"> </span>{</pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><br></pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> </span><span style=3D"color:#000080">qDebug<= /span>()<span style=3D"color:#c0c0c0"> </span><<<span style=3D"c= olor:#c0c0c0"> </span><span style=3D"color:#008000">"PropertiesCh= anged</span><span style=3D"color:#c0c0c0"> </span><span style=3D"color= :#008000">signal</span><span style=3D"color:#c0c0c0"> </span><span sty= le=3D"color:#008000">connected</span><span style=3D"color:#c0c0c0"> </= span><span style=3D"color:#008000">successfully</span><span style=3D"color:= #c0c0c0"> </span><span style=3D"color:#008000">to</span><span style=3D= "color:#c0c0c0"> </span><span style=3D"color:#008000">slot"</span= >;</pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> </span>}<span style=3D"color:#c0c0c0"> = </span><span style=3D"color:#808000">else</span><span style=3D"color:#c0c0c= 0"> </span>{</pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> </span><span style=3D"color:#000080">qDebug<= /span>()<span style=3D"color:#c0c0c0"> </span><<<span style=3D"c= olor:#c0c0c0"> </span><span style=3D"color:#008000">"PropertiesCh= anged</span><span style=3D"color:#c0c0c0"> </span><span style=3D"color= :#008000">signal</span><span style=3D"color:#c0c0c0"> </span><span sty= le=3D"color:#008000">connection</span><span style=3D"color:#c0c0c0"> <= /span><span style=3D"color:#008000">was</span><span style=3D"color:#c0c0c0"= > </span><span style=3D"color:#008000">not</span><span style=3D"color:= #c0c0c0"> </span><span style=3D"color:#008000">successful"</span>= ;</pre> <pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c= 0"> </span>}</pre> <br> </div> <div> <div id=3D"appendonsend"></div> <div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p= t; color:rgb(0,0,0)"> Now I my function propertyChanged is called every time the property changes= .</div> <div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p= t; color:rgb(0,0,0)"> <br> </div> <div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p= t; color:rgb(0,0,0)"> If you use </div> <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" co= lor=3D"#000000" style=3D"font-size:11pt"><b>Von:</b> RAUC <rauc-bounces@= pengutronix.de> im Auftrag von Stahl, Michael <mstahl@moba.de><br> <b>Gesendet:</b> Dienstag, 3. August 2021 10:27<br> <b>An:</b> Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net><br> <b>Cc:</b> RAUC <rauc-bounces@pengutronix.de>; RAUC@pengutronix.de &l= t;RAUC@pengutronix.de><br> <b>Betreff:</b> Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: Re: Antwort: = D-Bus control Qt</font> <div> </div> </div> <div dir=3D"ltr"> <div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser= if; font-size:12pt; color:rgb(0,0,0)">Hi Euen,</span></div> <div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser= if; font-size:12pt; color:rgb(0,0,0)"><br> </span></div> <div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser= if; font-size:12pt; color:rgb(0,0,0)">I know but I am stucking. I am pollin= g the propery "Operation". Just when it changes from "idle&q= uot; to "installing" I subscribe the PropertiesChanged signal but without success. I tried several connect strings but all without succe= ss. </span></div> <div style=3D""><br> </div> <div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser= if; font-size:12pt; color:rgb(0,0,0)"><br> </span></div> <div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser= if; font-size:12pt; color:rgb(128,128,0)">if</span><span style=3D"font-fami= ly:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(192,192,19= 2)"> </span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-= size:12pt">(QDBusConnection::sessionBus().connect(</span><span style=3D"fon= t-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,12= 8,0)">"de.pengutronix.rauc"</span><span style=3D"font-family:Cali= bri,Arial,Helvetica,sans-serif; font-size:12pt">,</span><br> </div> <div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p= t"> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0"> &nb= sp; </span><span st= yle=3D"color:#008000">"/"</span>,</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0"> &nb= sp; </span><span st= yle=3D"color:#008000">"org.freedesktop.DBus.Properties"</span>,</= pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0"> &nb= sp; </span><span st= yle=3D"color:#008000">"PropertiesChanged"</span>,</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0"> &nb= sp; </span><span st= yle=3D"color:#808000">this</span>,</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0"> &nb= sp; </span><span st= yle=3D"color:#808000">SLOT</span>(propertyChanged(<span style=3D"color:#808= 000">const</span><span style=3D"color:#c0c0c0"> </span>QString&<sp= an style=3D"color:#c0c0c0"> </span>,</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0"> &nb= sp; &= nbsp; </span><span s= tyle=3D"color:#808000">const</span><span style=3D"color:#c0c0c0"> </sp= an>QMap<QString,<span style=3D"color:#c0c0c0"> </span>QVariant>&= amp;<span style=3D"color:#c0c0c0"> </span>,</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0">  = ; &nb= sp; </span><s= pan style=3D"color:#808000">const</span><span style=3D"color:#c0c0c0"> = ;</span>QStringList&<span style=3D"color:#c0c0c0"> </span>))))<spa= n style=3D"color:#c0c0c0"> </span></pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px">{</pre> <pre style=3D"margin-top:0px; margin-bottom:0px"><font color=3D"#c0c0c0"> = </font>qDebug()<span style=3D"color:rgb(192,192,192)"> </span><&l= t;<span style=3D"color:rgb(192,192,192)"> </span><span style=3D"color:= rgb(0,128,0)">"PropertiesChanged</span><span style=3D"color:rgb(192,19= 2,192)"> </span><span style=3D"color:rgb(0,128,0)">signal</span><span = style=3D"color:rgb(192,192,192)"> </span><span style=3D"color:rgb(0,12= 8,0)">connected</span><span style=3D"color:rgb(192,192,192)"> </span><= span style=3D"color:rgb(0,128,0)">successfully</span><span style=3D"color:r= gb(192,192,192)"> </span><span style=3D"color:rgb(0,128,0)">to</span><= span style=3D"color:rgb(192,192,192)"> </span><span style=3D"color:rgb= (0,128,0)">slot"</span>;</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px">}<span s= tyle=3D"color:#c0c0c0"> </span><span style=3D"color:#808000">else</spa= n><span style=3D"color:#c0c0c0"> </span>{</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st= yle=3D"color:#c0c0c0"> </span>qDebug()<span style=3D"colo= r:#c0c0c0"> </span><<<span style=3D"color:#c0c0c0"> </span>= <span style=3D"color:#008000">"PropertiesChanged</span><span style=3D"= color:#c0c0c0"> </span><span style=3D"color:#008000">signal</span><spa= n style=3D"color:#c0c0c0"> </span><span style=3D"color:#008000">connec= tion</span><span style=3D"color:#c0c0c0"> </span><span style=3D"color:= #008000">was</span><span style=3D"color:#c0c0c0"> </span><span style= =3D"color:#008000">not</span><span style=3D"color:#c0c0c0"> </span><sp= an style=3D"color:#008000">successful"</span>;</pre> <pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px">}</pre> <br> </div> <div> <div id=3D"x_appendonsend"></div> <div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p= t; color:rgb(0,0,0)"> Please can you tell me how to subcribe the PropertiesChanged signal?</div> <div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p= t; color:rgb(0,0,0)"> <br> </div> <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%"> <div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" = color=3D"#000000" style=3D"font-size:11pt"><b>Von:</b> Eugen.Wiens@JUMO.net= <Eugen.Wiens@JUMO.net><br> <b>Gesendet:</b> Dienstag, 3. August 2021 08:27<br> <b>An:</b> Stahl, Michael <mstahl@moba.de><br> <b>Cc:</b> RAUC@pengutronix.de <RAUC@pengutronix.de>; RAUC <rauc-b= ounces@pengutronix.de><br> <b>Betreff:</b> Antwort: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: D-Bu= s control Qt</font> <div> </div> </div> <div><font size=3D"2" face=3D"sans-serif">Hi Michael,</font><br> <br> <font size=3D"2" face=3D"sans-serif">you can connect to a property change o= n dbus level. That is the way we do it.</font><br> <br> <br> <tt><font size=3D"2">"RAUC" <rauc-bounces@pengutronix.de> s= chrieb am 03.08.2021 08:21:32:<br> <br> > Von: "Stahl, Michael" <mstahl@moba.de></font></tt><br> <tt><font size=3D"2">> An: "Eugen.Wiens@JUMO.net" <Eugen.Wi= ens@JUMO.net></font></tt><br> <tt><font size=3D"2">> Kopie: "RAUC" <rauc-bounces@pengutro= nix.de>, "RAUC@pengutronix.de" <br> > <RAUC@pengutronix.de></font></tt><br> <tt><font size=3D"2">> Datum: 03.08.2021 08:21</font></tt><br> <tt><font size=3D"2">> Betreff: Re: [RAUC] Antwort: Re: Antwort: R= e: Antwort: D-Bus control Qt</font></tt><br> <tt><font size=3D"2">> Gesendet von: "RAUC" <rauc-bounces@p= engutronix.de></font></tt><br> <tt><font size=3D"2">> <br> > Hi Eugen,</font></tt><br> <tt><font size=3D"2">> <br> > thanks again. I implemented the signal and now I get the signal that<b= r> > the update is finished.</font></tt><br> <tt><font size=3D"2">> But thats the only signal that rauc is provided, = isn't it? To get <br> > the progress I have to poll the property, or are there general <br> > signals on the dbus that I can connect to?</font></tt><br> <tt><font size=3D"2">> <br> > Do you read the property "Progress" like </font></tt><br> <tt><font size=3D"2">> QDBusInterface iface( "de.pengutronix.rauc&q= uot;, </font></tt><br> <tt><font size=3D"2">> = "/",</font></tt><br> <tt><font size=3D"2">> = "de.pengutronix.rauc.Installer",</font></tt><br> <tt><font size=3D"2">> = QDBusConnection::systemBus() );</font></tt><br> <tt><font size=3D"2">> QVariant property =3D iface.property("Progre= ss");</font></tt><br> <tt><font size=3D"2">> MyProgress parameterProgress;</font></tt><br> <tt><font size=3D"2">> property.value<QDBusArgument>() >> pa= rameterProgress;</font></tt><br> <tt><font size=3D"2">> <br> > or did you use another possibility?</font></tt><br> <tt><font size=3D"2">> If I use the above I get a message five times and= the marshaled data (<br> > m_Progress, m_Message, ..) are always empty.</font></tt><br> <tt><font size=3D"2">> QDBusArgument: read from a write-only object<br> </font></tt><br> <tt><font size=3D"2">> <br> > Von: Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net><br> > Gesendet: Montag, 2. August 2021 16:53<br> > An: Stahl, Michael <mstahl@moba.de><br> > Cc: RAUC@pengutronix.de <RAUC@pengutronix.de>; RAUC <rauc-<br= > > bounces@pengutronix.de><br> > Betreff: Antwort: Re: [RAUC] Antwort: Re: Antwort: D-Bus control Qt </= font></tt><br> <tt><font size=3D"2">> </font></tt><br> <tt><font size=3D"2">> Hi Michael,<br> > <br> > "RAUC" <rauc-bounces@pengutronix.de> schrieb am 02.08.= 2021 16:29:18:<br> > <br> > > Von: "Stahl, Michael" <mstahl@moba.de><br> > > An: "Eugen.Wiens@JUMO.net" <Eugen.Wiens@JUMO.net>= <br> > > Kopie: RAUC <rauc-bounces@pengutronix.de>, "RAUC@pengu= tronix.de" <br> > > <RAUC@pengutronix.de><br> > > Datum: 02.08.2021 16:29<br> > > Betreff: Re: [RAUC] Antwort: Re: Antwort: D-Bus contr= ol Qt<br> > > Gesendet von: "RAUC" <rauc-bounces@pengutronix.de>= ;<br> > > <br> > > Okay, thanks a lot.<br> > > <br> > > A last question. Is it correct that I have to poll the "Prog= ress" <br> > > property or is there any signal system where I can subcribe to ge= t a<br> > > notification at every change of progress status?<br> > <br> > We are using a dbus signal. You can connect to it with Qt.<br> > <br> > Best regards,<br> > Eugen </font></tt><br> <tt><font size=3D"2">> Diese E-Mail kann vertrauliche und/oder rechtlich= gesch?tzte <br> > Informationen beinhalten und ist ausschlie?lich f?r die im Verteiler<b= r> > genannten Personen bestimmt. Das unerlaubte Kopieren sowie die <br> > unbefugte Weitergabe dieser Mail sind nicht gestattet. Bitte <br> > benachrichtigen Sie uns gegebenenfalls telefonisch oder mit Antwort-<b= r> > Mail, falls Sie nicht der richtige Adressat dieser E-Mail sind. <br> > Bitte l?schen Sie diese Nachricht und alle Anh?nge dazu unverz?<br> > glich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine <br> > rechtlich bindende Vereinbarung.<br> > <br> > Kommanditgesellschaft: JUMO GmbH & Co. KG, Sitz: 36039 Fulda, <br> > Amtsgericht Fulda HRA 302, Pers?nlich haftende Gesellschafterin: M. <b= r> > K. JUCHHEIM GmbH, Sitz: 36039 Fulda, Amtsgericht Fulda HRB 17, <br> > Gesch?ftsf?hrer: Dipl.-Ing. Bernhard Juchheim, Dipl.-Kfm. Michael <br> > Juchheim, Dipl.-Ing. Dimitrios Charisiadis<br> > Ust.-Id.-Nr.: DE 112411234____________________________________________= ___<br> > RAUC mailing list<br> </font></tt><font face=3D"sans-serif"> <p style=3D"margin-top: 0px; margin-bottom: 0px;"><font size=3D"2" face=3D"= sans-serif">Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte In= formationen beinhalten und ist ausschlie?lich f?r die im Verteiler genannte= n Personen bestimmt. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet. Bitte ben= achrichtigen Sie uns gegebenenfalls telefonisch oder mit Antwort-Mail, fall= s Sie nicht der richtige Adressat dieser E-Mail sind. Bitte l?schen Sie die= se Nachricht und alle Anh?nge dazu unverz?glich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine re= chtlich bindende Vereinbarung.<br> <br> Kommanditgesellschaft: JUMO GmbH & Co. KG, Sitz: 36039 Fulda, Amtsgeric= ht Fulda HRA 302, Pers?nlich haftende Gesellschafterin: M. K. JUCHHEIM GmbH= , Sitz: 36039 Fulda, Amtsgericht Fulda HRB 17, Gesch?ftsf?hrer: Dipl.-Ing. = Bernhard Juchheim, Dipl.-Kfm. Michael Juchheim, Dipl.-Ing. Dimitrios Charisiadis<br> Ust.-Id.-Nr.: DE 112411234</font></p> </font></div> </div> </div> </div> </body> </html> --_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_-- --===============1795267209== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ RAUC mailing list --===============1795267209==--