<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=17&amp;t=7619" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2011-12-20T19:27:08+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=7619</id>
<entry>
<author><name><![CDATA[gdo]]></name></author>
<updated>2011-12-20T19:27:08+01:00</updated>
<published>2011-12-20T19:27:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33275#p33275</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33275#p33275"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33275#p33275"><![CDATA[
I think you are right, yes. <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" /><br /><br />I missed this function earlier.<br /><br />Well done !<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2502">gdo</a> — Tue Dec 20, 2011 7:27 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soroush]]></name></author>
<updated>2011-12-20T19:07:36+01:00</updated>
<published>2011-12-20T19:07:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33274#p33274</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33274#p33274"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33274#p33274"><![CDATA[
Thank you gdo<br />I searched source code of rbio, the problem is solved by setting version of board. Just including roboard.h and adding this line:<br /><dl class="codebox"><dt>Code: </dt><dd><code>roboio_SetRBVer&#40;RB_110&#41;;</code></dd></dl><br />I don't know if this is the correct way or not :/<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3032">soroush</a> — Tue Dec 20, 2011 7:07 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gdo]]></name></author>
<updated>2011-12-20T13:31:41+01:00</updated>
<published>2011-12-20T13:31:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33272#p33272</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33272#p33272"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33272#p33272"><![CDATA[
No I do not think there is specific build flags according to roboard version you use.<br /><br />I think it is related to cpu id.<br /><br />In <span style="font-weight: bold">libsrc/common.cpp</span> file from robio sources, can you modify <span style="font-weight: bold">roboio_CheckRBVer</span> function as follow, just to display cpuid in the error message :<br /><dl class="codebox"><dt>Code: </dt><dd><code>RBAPI&#40;bool&#41; roboio_CheckRBVer&#40;void&#41; &#123;  // called only by io_Init&#40;&#41;; the caller must ensure that I/O ports can be accessed by this function<br />        int  cpuid = io_CpuID&#40;&#41;;<br /><br />        switch &#40;roboio_GetRBVer&#40;&#41;&#41;<br />        &#123;<br />            case RB_100b1:<br />            case RB_100b2:<br />            case RB_100b3:<br />            case RB_100:<br />                if &#40;cpuid == CPU_VORTEX86DX_1&#41; return true;<br />                break;<br />            case RB_100RD:<br />            case RB_110:<br />            case RB_050:<br />                if &#40;cpuid == CPU_VORTEX86DX_3&#41; return true;<br />                break;<br />            default:<br />                   err_SetMsg&#40;ERROR_RBVER_UNKNOWN, &quot;unknown RoBoard version&quot;&#41;;<br />                   return false;<br />        &#125; //end switch &#40;ver&#41;<br /><br />           err_SetMsg&#40;ERROR_RBVER_UNMATCH, &quot;unmatched RoBoard version, cpuid=%i&quot;,cpuid&#41;;<br />           return false;<br />    &#125;</code></dd></dl><br /><br />I think you are in the <span style="font-weight: bold">RB_110</span> case but that cpuid does not match <span style="font-weight: bold">CPU_VORTEX86DX_3</span>.<br /><br />gdo<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2502">gdo</a> — Tue Dec 20, 2011 1:31 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soroush]]></name></author>
<updated>2011-12-20T12:17:30+01:00</updated>
<published>2011-12-20T12:17:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33271#p33271</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33271#p33271"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33271#p33271"><![CDATA[
<blockquote><div><cite>gdo wrote:</cite><br />Following the doc, you should add :<br />....<br />And tell me what it gives.<br />gdo<br /></div></blockquote><br /><br />It says:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>Unable to open port<br />unmatched RoBoard version</code></dd></dl><br /><br />I've downloaded the roboIO code for gcc... There was no option for switch between rb110 and rb100 or something else during compilation... is there?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3032">soroush</a> — Tue Dec 20, 2011 12:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gdo]]></name></author>
<updated>2011-12-19T15:57:55+01:00</updated>
<published>2011-12-19T15:57:55+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33256#p33256</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33256#p33256"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33256#p33256"><![CDATA[
Following the doc, you should add :<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>std::cout &lt;&lt; roboio_GetErrMsg&#40;&#41; &lt;&lt; std:endl;</code></dd></dl><br /><br />like that :<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &lt;com&gt; <br />#include &lt;iostream&gt; <br /><br />int main&#40;int argc, char *argv&#91;&#93;&#41; <br />&#123; <br />    if&#40;com1_Init&#40;COM_HDUPLEX&#41;&#41; <br />    &#123; <br />        int i=0; <br />        while&#40;i&lt;1000&#41; <br />        &#123; <br />            com1_Write&#40;0x55&#41;; <br />            ++i; <br />        &#125; <br />        std::cout &lt;&lt; &quot;100 000 bytes has been written to port COM1&quot; &lt;&lt; std::endl; <br />        com1_Close&#40;&#41;; <br />    &#125; <br />    else <br />    &#123; <br />       std::cout &lt;&lt; &quot;Unable to open port&quot; &lt;&lt; std::endl;<br />       std::cout &lt;&lt; roboio_GetErrMsg&#40;&#41; &lt;&lt; std:endl;<br />    &#125; <br />    return 0; <br />&#125;</code></dd></dl><br /><br />And tell me what it gives.<br /><br />gdo<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2502">gdo</a> — Mon Dec 19, 2011 3:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soroush]]></name></author>
<updated>2011-12-19T15:08:31+01:00</updated>
<published>2011-12-19T15:08:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33255#p33255</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33255#p33255"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33255#p33255"><![CDATA[
<blockquote><div><cite>gdo wrote:</cite><br />I do not exactly know how does the RoboIO works but do you have permissions to access to /dev/ttyS* on your roboard ?<br />Did you tried to run your code as root ?<br />gdo<br /></div></blockquote><br /><br />Yes.<br /><br />I changed inittab content to directly login into debian with root user and no password. (don't want to connect a keyboard !!) and after logging with ssh I always do <br /><dl class="codebox"><dt>Code: </dt><dd><code>sudo -i </code></dd></dl><br />and then execute the above code. <br /><br />Note 1: Console redirection is off.<br />Note 2: I also tried COM 4 and COM 3 ... no hope <img src="http://forum.robosavvy.com/images/smilies/icon_neutral.gif" alt=":-|" title="Neutral" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3032">soroush</a> — Mon Dec 19, 2011 3:08 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gdo]]></name></author>
<updated>2011-12-19T13:12:32+01:00</updated>
<published>2011-12-19T13:12:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33251#p33251</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33251#p33251"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33251#p33251"><![CDATA[
Hello,<br /><br />I do not exactly know how does the RoboIO works but do you have permissions to access to /dev/ttyS* on your roboard ?<br />Did you tried to run your code as root ?<br /><br />gdo<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2502">gdo</a> — Mon Dec 19, 2011 1:12 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[soroush]]></name></author>
<updated>2011-12-04T19:22:53+01:00</updated>
<published>2011-12-04T19:22:53+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33086#p33086</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33086#p33086"/>
<title type="html"><![CDATA[Unable to use roboIO library in linux]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7619&amp;p=33086#p33086"><![CDATA[
Hello Everyone, <br /><br />This is my first post on this forum  <img src="http://forum.robosavvy.com/images/smilies/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" />  I'm trying to send / receive data on COM1 (RS232) port of rb-110 board. have tried QSerialDevice and ROBO-IO library, ports are always closed or unable to open them... This is a simple c++ code to write some data on com1:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &lt;com&gt;<br />#include &lt;iostream&gt;<br /><br />int main&#40;int argc, char *argv&#91;&#93;&#41;<br />&#123;<br />    if&#40;com1_Init&#40;COM_HDUPLEX&#41;&#41;<br />    &#123;<br />        int i=0;<br />        while&#40;i&lt;1000&#41;<br />        &#123;<br />            com1_Write&#40;0x55&#41;;<br />            ++i;<br />        &#125;<br />        std::cout &lt;&lt; &quot;100 000 bytes has been written to port COM1&quot; &lt;&lt; std::endl;<br />        com1_Close&#40;&#41;;<br />    &#125;<br />    else<br />    &#123;<br />       std::cout &lt;&lt; &quot;Unable to open port&quot; &lt;&lt; std::endl;<br />    &#125;<br />    return 0;<br />&#125;<br /></code></dd></dl><br /><br />Output is always &quot;Unable to open port&quot;<br /><br />What I'm missing?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3032">soroush</a> — Sun Dec 04, 2011 7:22 pm</p><hr />
]]></content>
</entry>
</feed>