<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Reading data from &#x27;&#x2F;run&#x2F;mpa&#x2F;qvio&#x27; using python]]></title><description><![CDATA[<p dir="auto">How can we read data from the pipe /run/mpa/qvio in python</p>
]]></description><link>https://forum.modalai.com/topic/1242/reading-data-from-run-mpa-qvio-using-python</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 08:56:26 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/1242.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Aug 2022 07:00:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reading data from &#x27;&#x2F;run&#x2F;mpa&#x2F;qvio&#x27; using python on Thu, 01 Sep 2022 16:08:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/1019">@Nishkala</a> ,</p>
<p dir="auto">With the warning that I've not yet tried in python but I'm sure it will work <img src="https://forum.modalai.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=r4gp3i66d9g" class="not-responsive emoji emoji-android emoji--wink" title=";)" alt="😉" /></p>
<p dir="auto">This is the source code for our <code>voxl-inspect-qvio</code> tool, and from there we can see it's looking for a pipe <code>QVIO_EXTENDED_LOCATION</code><br />
<a href="https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/clients/voxl-inspect-qvio.c#L51" rel="nofollow ugc">https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/clients/voxl-inspect-qvio.c#L51</a></p>
<p dir="auto">That's defined here:<br />
<a href="https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/common/voxl_qvio_server.h#L64" rel="nofollow ugc">https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/common/voxl_qvio_server.h#L64</a></p>
<p dir="auto">The other place to look for defines is in libmodal-pipe:<br />
<a href="https://gitlab.com/voxl-public/voxl-sdk/core-libs/libmodal-pipe/-/blob/master/library/include" rel="nofollow ugc">https://gitlab.com/voxl-public/voxl-sdk/core-libs/libmodal-pipe/-/blob/master/library/include</a></p>
<p dir="auto">This is where the inspect tool consumes data:<br />
<a href="https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/clients/voxl-inspect-qvio.c#L259" rel="nofollow ugc">https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/clients/voxl-inspect-qvio.c#L259</a></p>
<p dir="auto">Here's where we parse and print the info:<br />
<a href="https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/clients/voxl-inspect-qvio.c#L184" rel="nofollow ugc">https://gitlab.com/voxl-public/voxl-sdk/services/voxl-qvio-server/-/blob/master/clients/voxl-inspect-qvio.c#L184</a></p>
]]></description><link>https://forum.modalai.com/post/5960</link><guid isPermaLink="true">https://forum.modalai.com/post/5960</guid><dc:creator><![CDATA[modaltb]]></dc:creator><pubDate>Thu, 01 Sep 2022 16:08:47 GMT</pubDate></item><item><title><![CDATA[Reply to Reading data from &#x27;&#x2F;run&#x2F;mpa&#x2F;qvio&#x27; using python on Wed, 31 Aug 2022 09:31:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/2">@modaltb</a>, the links provided were insightful</p>
<p dir="auto">Before running a python script similar to the one provided in the <a href="https://stackoverflow.com/questions/39089776/python-read-named-pipe" rel="nofollow ugc">link</a>, I executed the commands</p>
<ol>
<li>'cat run/mpa/qvio/info': I was able to see information pertaining to qvio.</li>
<li>'cat run/mpa/qvio/control': I was able to see the message continuously printed related to 'reset_hard_qvio'</li>
<li>'cat run/mpa/qvio/request': It was blank</li>
</ol>
<p dir="auto">Which pipe should be read to get data in the form of 'vio_data_t'?</p>
]]></description><link>https://forum.modalai.com/post/5920</link><guid isPermaLink="true">https://forum.modalai.com/post/5920</guid><dc:creator><![CDATA[Nishkala]]></dc:creator><pubDate>Wed, 31 Aug 2022 09:31:55 GMT</pubDate></item><item><title><![CDATA[Reply to Reading data from &#x27;&#x2F;run&#x2F;mpa&#x2F;qvio&#x27; using python on Fri, 26 Aug 2022 18:45:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/1019">@Nishkala</a> ,</p>
<p dir="auto">I haven't tried this yet, but it's just a file that you are reading from basically (a named pipe), so something like this may get you reading?  --&gt; <a href="https://stackoverflow.com/questions/39089776/python-read-named-pipe" rel="nofollow ugc">https://stackoverflow.com/questions/39089776/python-read-named-pipe</a></p>
<p dir="auto">In order to parse what you are reading, you will need to use the C headers to see what bytes are what, which is shown here: <a href="https://gitlab.com/voxl-public/voxl-sdk/core-libs/libmodal-pipe/-/blob/master/library/include/modal_pipe_interfaces.h#L880" rel="nofollow ugc">https://gitlab.com/voxl-public/voxl-sdk/core-libs/libmodal-pipe/-/blob/master/library/include/modal_pipe_interfaces.h#L880</a></p>
]]></description><link>https://forum.modalai.com/post/5808</link><guid isPermaLink="true">https://forum.modalai.com/post/5808</guid><dc:creator><![CDATA[modaltb]]></dc:creator><pubDate>Fri, 26 Aug 2022 18:45:37 GMT</pubDate></item></channel></rss>