<?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=1&amp;t=38" />

<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>2006-08-10T03:41:26+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=1&amp;t=38</id>
<entry>
<author><name><![CDATA[Borting]]></name></author>
<updated>2006-08-10T03:41:26+01:00</updated>
<published>2006-08-10T03:41:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=3021#p3021</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=3021#p3021"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=3021#p3021"><![CDATA[
Hi inaki, <br /><br />Could you send me the source code for your PC -&gt; RCB-1 communications API on C? <br /><br />I need compile it on linux. <br /><br />thanks a lot.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=268">Borting</a> — Thu Aug 10, 2006 3:41 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pandolio]]></name></author>
<updated>2006-07-11T14:33:22+01:00</updated>
<published>2006-07-11T14:33:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=2578#p2578</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=2578#p2578"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=2578#p2578"><![CDATA[
Hi inaki,<br /><br />Could you send me the source code for you first version of the api on C?<br /><br />I could compile it on linux.<br /><br />thanks.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=226">pandolio</a> — Tue Jul 11, 2006 2:33 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[inaki]]></name></author>
<updated>2006-04-29T11:48:13+01:00</updated>
<published>2006-04-29T11:48:13+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=1351#p1351</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=1351#p1351"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=1351#p1351"><![CDATA[
Hello. I am going to release a new version of this library with some improvements and, as I have many requests for this, this time the source code will be included !<br /><br />Please if you have used this library and have found some problem with it please tell me before I release the new version.<br /><br />Also this is the moment to request any special feature you think should be in the library.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=8">inaki</a> — Sat Apr 29, 2006 11:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[inaki]]></name></author>
<updated>2005-04-10T18:21:23+01:00</updated>
<published>2005-04-10T18:21:23+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=164#p164</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=164#p164"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=164#p164"><![CDATA[
I have provided two macros to change and read directly the timeout value from the actual variable used to calculate timeouts. This variable is accessed through the HANDLE returned when calling RCB_Start.<br /><br />In my experiments with high resolution timers I have reached up to 270 readings per second. It seems that the RCB is unable to manage more 'long' commands per second. Or perhaps my library is unable to deliver more than that. I could not reach the theoretical limit of 1300. <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /> <br /><br />I am stll working on it. I have added also some debug information that can be read from the client program to know how much time a command takes or how many retries take place.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=8">inaki</a> — Sun Apr 10, 2005 6:21 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2005-04-10T15:05:00+01:00</updated>
<published>2005-04-10T15:05:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=163#p163</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=163#p163"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=163#p163"><![CDATA[
<blockquote><div><cite>inaki wrote:</cite><br />I am going to add support to configure the timeout. Retries can be configured too. Configuring these parameters per function seems too much. I think <br /><br />Your idea of doing it at RCB_Start  is okay.<br /><br />So, our start function would become as follows:<br /><br />RCB_Start( portNumber, flags, maxTimeout, maxRetries);<br /></div></blockquote><br /><br />On second thought, maybe it's better to pass the two parameters via pointers (ie: by reference not by value) so that the user may be able to change their value later without having to call another RCB_* function.<br />(this may look unclean but it is C after all and maybe we'll wrap the stuff up in some fancy C++ later to protect users from themselves).<br /><br />One scenario of chaning the retries/timeout during the course of a program is in case there are interferences and you want to throttle the connection before giving and error message.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Sun Apr 10, 2005 3:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[javi]]></name></author>
<updated>2005-04-08T22:18:43+01:00</updated>
<published>2005-04-08T22:18:43+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=157#p157</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=157#p157"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=157#p157"><![CDATA[
Hello Iñaki,<br />I tried to use the library from VBS (using a <a href="http://ourworld.compuserve.com/homepages/Guenter_Born/WSHBazaar/WSHDynaCall.htm" class="postlink">wrapper</a> for the dll), but I haven't found a way to get the address of a VBS variable (for the pointers in the function calls), so, would it be possible for you to create an ActiveX object version of the library?<br />Also,  could you post the source code? I have a MC32C84 renesas evaluation board and would like to use it to make the robot autonomous (and it's easier to use code already written than to write my own <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /> )<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=14">javi</a> — Fri Apr 08, 2005 10:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[inaki]]></name></author>
<updated>2005-04-08T19:03:00+01:00</updated>
<published>2005-04-08T19:03:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=156#p156</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=156#p156"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=156#p156"><![CDATA[
The RCB serial line works at 115kbps, so sending a reading command takes about 20us. Receiving data for 12 motors takes about 90us.<br /><br />Apparently the speed of the serial line cannot be changed. There is a couple of commands undocumented so perhaps there is a way to do so. <br />Note that even HeartToHeart does not give a chance to configure the COM port speed.<br /><br />The bad side of using 115kpbs is that some microcontrollers do not work at that speed.<br /><br />The typical delay after sending a command is about 250us. This has been measured on the serial cable using an oscilloscope. The 30us stated by Kondo is wrong.<br /><br />That makes about 750us to complete a command for reading all servos (from both RCB IDs) .<br /><br />So theoretically is possible to get about 1300 readings of all servo positions per second in the best case, according to my tests, if no delay is used. Other commands may take more or less depending on the number of bytes transmited.<br /><br />I am going to add support to configure the timeout. Retries can be configured too. Configuring these parameters per function seems too much. I think <br /><br />Your idea of doing it at RCB_Start  is okay.<br /><br />So, our start function would become as follows:<br /><br />RCB_Start( portNumber, flags, maxTimeout, maxRetries);<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=8">inaki</a> — Fri Apr 08, 2005 7:03 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2005-04-08T15:23:04+01:00</updated>
<published>2005-04-08T15:23:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=155#p155</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=155#p155"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=155#p155"><![CDATA[
Thank you for this fantastic contribution!<br /><br />At what speed can the RCB-1 serial interface work?<br />How do you change the speed?<br />Documentation says that max timeout is 30us, you may have had other experiences?<br />Can you add a per-port global variable, set at startup, that holds both the timeout and number of retries (or any other solution such as including a timeout and retry with every function call)?<br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &quot;krcbdll.h&quot;<br />HANDLE com;<br />BYTE v&#91;12&#93;;<br /><br />// init com1, set com1 max wait to 30us<br />// and max of 4 retries<br />com = RCB_Start&#40;1, 30, 4&#41;; <br /><br />// get all servos positions for RCB1&#91;0&#93;<br />// wait up to 30us for a response, retry 4 times<br />if &#40;!RCB_GetMotorPositions&#40;com, 0, v&#41;&#41;<br />    wxError &#40;&quot;problem with RCB-1..&quot;&#41;;<br /></code></dd></dl><br /><br />Thanks again!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Fri Apr 08, 2005 3:23 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[inaki]]></name></author>
<updated>2005-04-04T22:57:28+01:00</updated>
<published>2005-04-04T22:57:28+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=146#p146</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=146#p146"/>
<title type="html"><![CDATA[Library already available]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=38&amp;p=146#p146"><![CDATA[
My library for controlling your KHR-1 from your own programs is already available at:<br /><br /><!-- m --><a class="postlink" href="http://robosavvy.com/Builders/inaki/krcbdl.zip">http://robosavvy.com/Builders/inaki/krcbdl.zip</a><!-- m --><br /><br />Please send your comments.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=8">inaki</a> — Mon Apr 04, 2005 10:57 pm</p><hr />
]]></content>
</entry>
</feed>