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

<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>2008-05-27T19:37:55+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=2544</id>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2008-05-27T19:37:55+01:00</updated>
<published>2008-05-27T19:37:55+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16054#p16054</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16054#p16054"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16054#p16054"><![CDATA[
<blockquote><div><cite>limor wrote:</cite><br /><blockquote><div><cite>siempre.aprendiendo wrote:</cite>It's strange... I have never met this problem...<br /><br />I have been doing several test programs to communicate Pocket PC, Windows and Ubuntu with the CM-5, in C/C++, C# and a few tests with Lego NXT and Java. I have used the serial port and the USB2Dynamixel, sometimes &quot;stressing&quot; the communications using &quot;synchronous with different delay times, burst and polling methods...<br /></div></blockquote><br />Hi, please share some of your code <br /> <img src="http://forum.robosavvy.com/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" /></div></blockquote><br /><br />Yes, I will share it, but before I want to do some &quot;cleaning&quot; <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Tue May 27, 2008 7:37 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2008-05-27T16:41:10+01:00</updated>
<published>2008-05-27T16:41:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16052#p16052</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16052#p16052"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16052#p16052"><![CDATA[
<blockquote><div><cite>siempre.aprendiendo wrote:</cite><br />It's strange... I have never met this problem...<br /><br />I have been doing several test programs to communicate Pocket PC, Windows and Ubuntu with the CM-5, in C/C++, C# and a few tests with Lego NXT and Java. I have used the serial port and the USB2Dynamixel, sometimes &quot;stressing&quot; the communications using &quot;synchronous with different delay times, burst and polling methods...<br /></div></blockquote><br />Hi, please share some of your code <br /> <img src="http://forum.robosavvy.com/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Tue May 27, 2008 4:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[sirhoop]]></name></author>
<updated>2008-05-26T09:29:27+01:00</updated>
<published>2008-05-26T09:29:27+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16027#p16027</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16027#p16027"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=16027#p16027"><![CDATA[
The errors occur on every servo.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=993">sirhoop</a> — Mon May 26, 2008 9:29 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-22T16:34:04+01:00</updated>
<published>2008-05-22T16:34:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15951#p15951</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15951#p15951"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15951#p15951"><![CDATA[
Were the errors coming from the same servos each time?  Have you tried disconnecting batches of servos to see if the errors go away?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Thu May 22, 2008 4:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[sirhoop]]></name></author>
<updated>2008-05-22T13:13:26+01:00</updated>
<published>2008-05-22T13:13:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15949#p15949</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15949#p15949"/>
<title type="html"><![CDATA[some tests]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15949#p15949"><![CDATA[
I did some tests to estimate the error rate. What I did was sending 100 commands for every servo. So in the end 1800 command and for every command I wait for the response packages before sending the next one.<br /><br />That test took about 14 seconds, so that the command rate was 128 Hz for the robot and 7 Hz per servo. Pretty bad, I know. But what makes it worse is about 5-6 % of the responsepackages were incomplete.<br /><br />Now I am handling bad response packages by sending the command again, until the responsepackage is ok. It works quite well. <br /><br />Since I don't need response messages for movement, I now use sync write. I allways send a move command to every servo. With sync write I can control the servos with about 53 Hz. The 1800 instruction took only 1.86 seconds.<br /><br />I asked Robotis about the problem of the missing bytes, but did not get an answer yet.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=993">sirhoop</a> — Thu May 22, 2008 1:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-15T15:25:09+01:00</updated>
<published>2008-05-15T15:25:09+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15817#p15817</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15817#p15817"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15817#p15817"><![CDATA[
Waiting one second between commands doesn't help the buffer overflow problem, it's the rate at which the CM5 is receiving the data that's the problem.<br /><br />If there's a buffer bug (we had one in our library for a long time without noticing) it could be unpredictable and weird in its symptoms.  If they're using a ring buffer, for example, the problem could occur as an off-by-one error on the wrap-around of the ring buffer.  Our problem wasn't dissimilar to this, it was a race condition during interrupt handling causing the library to lose track of the byte it was sending for a few machine cycles and ended up retransmitting the whole packet halfway through the original retransmission.<br /><br />With regard to the USB2Dynamixel, just cascade the Dynamixels like you would normally.  The 'bus' is just that, a bus.  Therefore if you can provide the current into the connector that your Dynamixels need to operate just daisy chain them as necessary.  The 6-way star connector is very useful in this regard.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Thu May 15, 2008 3:25 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[sirhoop]]></name></author>
<updated>2008-05-15T13:09:15+01:00</updated>
<published>2008-05-15T13:09:15+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15816#p15816</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15816#p15816"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15816#p15816"><![CDATA[
@ le fatumbi: <br /><br />No it's not the same problem. The problem described in your link concerns missing parameters, and those parameters are missing all the time. It is obviously a bug. But my problem is different. Most of the time it works fine, but sometimes one or two bytes (mostly the first ones) are missing.<br /><br />@StuartL:<br /><br />Yes I also thought of a bufferoverflow, but we waited 1 second between move-commands. So that would be an argument against this thesis. <br /><br />How can I use the USB2Dynamixel to control the whole humanoid, for it has only one ax12-bus-connector. Or is there another possibilty to send command directly from the serialport to the ax12s.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=993">sirhoop</a> — Thu May 15, 2008 1:09 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-15T05:25:29+01:00</updated>
<published>2008-05-15T05:25:29+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15811#p15811</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15811#p15811"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15811#p15811"><![CDATA[
I suspect a buffer is being overrun in the CM-5 when it's translating from the native 1Mbit to 57600 baud serial.  There's not a huge amount you can do about it unless you use the USB2Dynamixel adapter or write your own software to relay the packets.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Thu May 15, 2008 5:25 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[le fatumbi]]></name></author>
<updated>2008-05-14T19:06:01+01:00</updated>
<published>2008-05-14T19:06:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15804#p15804</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15804#p15804"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15804#p15804"><![CDATA[
The same issue is described <a href="http://robotsaustralia.googlepages.com/ax-12dynamixelinformation" class="postlink">there</a>. (They don't use cm5 as gateway).<br /><br />same work-around... (or try with higher number of registers.) ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1012">le fatumbi</a> — Wed May 14, 2008 7:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2008-05-14T19:02:26+01:00</updated>
<published>2008-05-14T19:02:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15803#p15803</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15803#p15803"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15803#p15803"><![CDATA[
It's strange... I have never met this problem...<br /><br />I have been doing several test programs to communicate Pocket PC, Windows and Ubuntu with the CM-5, in C/C++, C# and a few tests with Lego NXT and Java. I have used the serial port and the USB2Dynamixel, sometimes &quot;stressing&quot; the communications using &quot;synchronous with different delay times, burst and polling methods...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Wed May 14, 2008 7:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JavaRN]]></name></author>
<updated>2008-05-14T16:55:44+01:00</updated>
<published>2008-05-14T16:55:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15799#p15799</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15799#p15799"/>
<title type="html"><![CDATA[Communication]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15799#p15799"><![CDATA[
It is the same problem I experienced with the zigbee wireless module I'm still trying to find what is wrong.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=546">JavaRN</a> — Wed May 14, 2008 4:55 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[sirhoop]]></name></author>
<updated>2008-05-14T16:25:21+01:00</updated>
<published>2008-05-14T16:25:21+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15798#p15798</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15798#p15798"/>
<title type="html"><![CDATA[Missing bytes in AX12 response-packages]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2544&amp;p=15798#p15798"><![CDATA[
Hi.<br /><br />I am currently building a communication library for the bioloid, that lets me control it in toss-mode. In toss-mode the cm5 becomes transparent, so I can send real dynamixel-packages to the serial port. It's just like communicating directly to the ax12s. <br /><br />I run the communication at 57600 bps and it's pretty fast. For example when the time from sending a command to completely receiving the response is something like 2.7 ms. I measured these times with an oscilloscope. <br /><br />But building up a complex architecture that could manage response messages for every command I experienced strange errors. Sometimes I'm getting wrong responsepackages even if I wait between commands 1 second. Once again we used the oscillioscope to check for the response messages and we found out that indeed sometimes there are bytes missing in a response message.<br />So let's have a closer look on how such a response should look like.<br />For example if I sent a move command to AX12 with id 0 I should get the following package:<br /><br />FF FF 00 02 00 FD<br /><br />00 - id<br />02 - length<br />00 - error (everything's ok)<br />FD - checksum<br /><br />but sometimes I only get<br /><br />FF 00 02 00 FD or 00 02 00 FD or even FF 02 00 FD<br /><br />I could not find no determinism in when a package is broken. It just happens from time to time. Somebody has described the problem before, but I thought I let you know that we proved it now by measuring the serialport. Does anybody know why that happens or how I can prevent it. <br />We think it's a problem of the CM5. Perhaps it has problems synchronizing the different communication speeds (cm5-pc: 57600 bps, cm5-ax12: 1Mbps).<br /><br />So especially I would like to know if the same problems occur if you are using the USB2Dynamixel?<br /><br /><br />best regards,<br />  Alex<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=993">sirhoop</a> — Wed May 14, 2008 4:25 pm</p><hr />
]]></content>
</entry>
</feed>