<?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=5865" />

<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>2010-05-13T13:44:08+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=5865</id>
<entry>
<author><name><![CDATA[ryann2k1]]></name></author>
<updated>2010-05-13T13:44:08+01:00</updated>
<published>2010-05-13T13:44:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26752#p26752</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26752#p26752"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26752#p26752"><![CDATA[
yep.<br />Thanks a lot guys. Seems i need to read more the manual. <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /><br /><br />btw. After reading and sending data request successfully, I investigated that when requesting the speed data while keep monitoring the speed changes, (every 3 s)only the first coming data is true and the rest is not reliable anymore.<br />Anyone has any idea? the baudrate is set to 115, 2 kbps not I Mbps.<br /><br />cheers,<br /><br /><br />ryann2k1<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=384">ryann2k1</a> — Thu May 13, 2010 1:44 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MikeG]]></name></author>
<updated>2010-04-01T14:45:02+01:00</updated>
<published>2010-04-01T14:45:02+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26180#p26180</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26180#p26180"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26180#p26180"><![CDATA[
I took a look at the 8535 manual last night and it appears that you did not post all your code  <img src="http://forum.robosavvy.com/images/smilies/icon_question.gif" alt=":?:" title="Question" />   There are registers flags that should be initialized like parity and baud rate.<br /><br />I agree will Fritzoid UCSRA.7,  is a flag that gets set when data is ready in the receive buffer.  Anyway,  That's how I understand the UCSRA register works from the manual.<br /><br />This post peaked my interest so I ordered an AVR development board.  Should be here in a few days.  I'll post my findings.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1856">MikeG</a> — Thu Apr 01, 2010 2:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2010-04-01T13:50:29+01:00</updated>
<published>2010-04-01T13:50:29+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26177#p26177</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26177#p26177"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26177#p26177"><![CDATA[
I gave your code another look and this line bothers me...<br /><br />UCSRA.7 = 1; //Reset RXC with 1<br /><br />Try commenting-out this line.  The RXC flag should be reset by the previous instruction which reads the data from the USART receive buffer (assuming it's now empty).  Your code doesn't need to and shouldn't try to set or reset this flag.  Could lead to lost data!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Thu Apr 01, 2010 1:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2010-04-01T13:26:02+01:00</updated>
<published>2010-04-01T13:26:02+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26176#p26176</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26176#p26176"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26176#p26176"><![CDATA[
Hi Ryan,<br /><br />Like Mike said, so far you've shown only shown us the code for a write command.  Let's see your read command.  Also you've shown us the subroutines, but not the calling sequence.  What does main control loop look like?<br /><br />Finally, the AX-12 manual schematic shows the port direction controlled by a single bit.  Yet, your dp_termina() and dp_kirim() are toggling two different bits.  Which port is actually connected to the 74HC04?  Or is your circuit different, i.e. no inverter at all?  We need to know a little more about your hardware setup to be certain the problem isn't in the circuit.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Thu Apr 01, 2010 1:26 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MikeG]]></name></author>
<updated>2010-04-01T00:23:19+01:00</updated>
<published>2010-04-01T00:23:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26169#p26169</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26169#p26169"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26169#p26169"><![CDATA[
Sorry; don't know... probably your receive code is has a bug.  Maybe someone with better AVR skills can help you debug your code.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1856">MikeG</a> — Thu Apr 01, 2010 12:23 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ryann2k1]]></name></author>
<updated>2010-03-30T05:13:42+01:00</updated>
<published>2010-03-30T05:13:42+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26133#p26133</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26133#p26133"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26133#p26133"><![CDATA[
Hi Mike,<br /><br />My program and circuit work fine when sending any command to dynamixel. I can move the motor to a certain position, I can access the led, etc. But the problems occurred when trying to read the data from dynamixel, I just can get the two FF-FF, while the rest is missing.<br /><br />Any suggestion?<br /><br />ryann2k1<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=384">ryann2k1</a> — Tue Mar 30, 2010 5:13 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MikeG]]></name></author>
<updated>2010-03-30T04:49:14+01:00</updated>
<published>2010-03-30T04:49:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26132#p26132</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26132#p26132"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26132#p26132"><![CDATA[
I can't make heads or tails of what you're trying to do.  The instruction is writing a 1 to the status return register?  Why?<br /><br />AX-12 come from the manufacturer set to 1Mbps.  Unless you changed it to 115.2, it's still set to 1M.<br /><br />May I suggest that you try lighting the LED on ID 1?  That's like the Hello World for AX-12s.  If you get the LED to light then you know the connection is good and you can work on capturing the status packet.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1856">MikeG</a> — Tue Mar 30, 2010 4:49 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ryann2k1]]></name></author>
<updated>2010-03-30T03:18:18+01:00</updated>
<published>2010-03-30T03:18:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26128#p26128</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26128#p26128"/>
<title type="html"><![CDATA[communicating with dynamixel]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26128#p26128"><![CDATA[
Hi Mike,<br /><br />I am using the UART signal to Half duplex type selector circuit on AX-12 manual page 7.<br />the programming part :<br />void terima_serial()<br />{<br />while(!UCSRA.7);        //Until RXC = 1<br />datarx [i] =UDR;<br />UCSRA.7 = 1;            //Reset RXC with 1<br />}<br /><br /><br />//reset<br />void reset ()<br />{<br />DDRA = 0xFF;<br />PORTA = 0x00;<br />}<br /><br />//direction port<br />void dp_terima()<br />{<br />DDRA = 0xFF; <br />PORTA = 0x80;<br />}<br /><br />void dp_kirim()<br />{<br />DDRA = 0xFF; <br />PORTA= 0x40;<br />}<br /><br />Function for reading status:<br /><br />void baca_read_only1 ()<br />{<br />    putchar(0xFF);<br />    putchar(0xFF);<br />    putchar(0x01);<br />    putchar(0x04);<br />    putchar(0x03);<br />    putchar(0x10);<br />    putchar(0x01);<br />    putchar(0xE6);<br />}<br /><br />The baudrate setting is 115.2 Kbps with clock from crystal 11,0592 MHz for the microcontroller 8535 and the baudrate of the motor is 115.2 Kbps. should it be set to 1 Mbps?<br />Any idea?<br /><br />Cheers,<br /><br /><br />ryann2k1<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=384">ryann2k1</a> — Tue Mar 30, 2010 3:18 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MikeG]]></name></author>
<updated>2010-03-29T15:06:31+01:00</updated>
<published>2010-03-29T15:06:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26122#p26122</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26122#p26122"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26122#p26122"><![CDATA[
Sounds like you have a bug in your code, an error in your circuit, or possibly a bad... AX or RX-XX?<br /><br />No way to tell from your vague post.<br /><br />Circuit?<br />Source code?<br />Did it ever work?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1856">MikeG</a> — Mon Mar 29, 2010 3:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ryann2k1]]></name></author>
<updated>2010-03-29T04:38:02+01:00</updated>
<published>2010-03-29T04:38:02+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26112#p26112</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26112#p26112"/>
<title type="html"><![CDATA[communicating with dynamixel]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=26112#p26112"><![CDATA[
Hi All,<br />I am working now reading the data from dynamixel. with the same circuits, I managed to send data to the dynamixel, but when reading the data, I hardly can grab the data, only the two FF-FF, then the rest is gone. <br /><br />Any suggestion will be appreciated.<br /><br />Thank you.<br /><br />Cheers,<br /><br />Ryann2k1<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=384">ryann2k1</a> — Mon Mar 29, 2010 4:38 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bullit]]></name></author>
<updated>2010-02-11T16:17:56+01:00</updated>
<published>2010-02-11T16:17:56+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25465#p25465</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25465#p25465"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25465#p25465"><![CDATA[
A very important piece of the packet processing framework needs be to resynchronization.  A state machine that while waiting for new packets eats bytes until it gets the 0xff 0xff indicating the start of a new packet can be a good solution.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=173">Bullit</a> — Thu Feb 11, 2010 4:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MikeG]]></name></author>
<updated>2010-02-11T15:13:04+01:00</updated>
<published>2010-02-11T15:13:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25464#p25464</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25464#p25464"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25464#p25464"><![CDATA[
rikkov the ideal solution is to fix your receive code so it can gracefully recover.  I buffer the received status packets, parse and frame the status packet, discard any bad data, handle the bad data.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1856">MikeG</a> — Thu Feb 11, 2010 3:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rikkov]]></name></author>
<updated>2010-02-11T04:27:42+01:00</updated>
<published>2010-02-11T04:27:42+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25453#p25453</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25453#p25453"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25453#p25453"><![CDATA[
<span style="font-weight: bold">Thanks a lot for the fast reply!!</span><br /><br />I am using a program that we guys wrote,it just keeps writing and reading data to and from dynamixels at 6.9 Hz(for 8 servos).<br /><br />So as you guys suggested I guess I will have to keep flushing things after each write-read cycle.<br /><br />Thanks,<br />Rikkov<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1144">rikkov</a> — Thu Feb 11, 2010 4:27 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bullit]]></name></author>
<updated>2010-02-10T17:42:05+01:00</updated>
<published>2010-02-10T17:42:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25451#p25451</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25451#p25451"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25451#p25451"><![CDATA[
Having worked with most of the different flavors of Robotis servos I can say there is is big difference in communication reliability from TTL to RS485.  The TTL servos are prone to all sorts of communications issues.  Given that we're talking a single ended, unloaded ttl signal that is 1 mhz on an unshielded network near a bunch of motors and in motion we should be surprised it works at all.  The RS485 still has errors but they are considerably more rare.  <br />Rule of thumb: errors happen, clean them up.  <br />As mentioned earlier that's what protocols are for.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=173">Bullit</a> — Wed Feb 10, 2010 5:42 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[billyzelsnack]]></name></author>
<updated>2010-02-10T15:45:01+01:00</updated>
<published>2010-02-10T15:45:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25450#p25450</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25450#p25450"/>
<title type="html"><![CDATA[Trouble with communicating with dynamixels continously]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5865&amp;p=25450#p25450"><![CDATA[
How often are you getting errors? I've been troubled by random errors with my custom interfaces too. I get an error every couple hundred reads.<br /><br />I've dealt with the errors by making my code more robust and to just retry when any errors occur. I also always flush both read and write before a read. In the future I want to make my packet parsing a little smarter so it can detect errors earlier and not rely so much on a timeout.<br /><br />btw. I believe my current timeout is set at 50ms which really is forever, but USB latency really sucks.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=459">billyzelsnack</a> — Wed Feb 10, 2010 3:45 pm</p><hr />
]]></content>
</entry>
</feed>