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

<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>2009-04-16T19:31:27+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=3427</id>
<entry>
<author><name><![CDATA[Ess]]></name></author>
<updated>2009-04-16T11:10:52+01:00</updated>
<published>2009-04-16T11:10:52+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19616#p19616</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19616#p19616"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19616#p19616"><![CDATA[
I tried setting the value to 1 but it doesnt works  <img src="http://forum.robosavvy.com/images/smilies/icon_mad.gif" alt=":x" title="Mad" /> <br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>int main&#40;void&#41;<br />&#123; <br />  byte bCount,bID, bTxPacketLength,bRxPacketLength;<br />  <br />  PortInitialize&#40;&#41;; //Port In/Out Direction Definition<br />  RS485_RXD; //Set RS485 Direction to Input State.<br />  SerialInitialize&#40;SERIAL_PORT0,1,RX_INTERRUPT&#41;;//RS485 Initializing&#40;RxInterrupt&#41;       HERE!!<br />  SerialInitialize&#40;SERIAL_PORT1,DEFAULT_BAUD_RATE,0&#41;; //RS232 Initializing&#40;None Interrupt&#41;<br />  <br />  gbRxBufferReadPointer = gbRxBufferWritePointer = 0;  //RS485 RxBuffer Clearing.<br /></code></dd></dl> <img src="http://forum.robosavvy.com/images/smilies/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1393">Ess</a> — Thu Apr 16, 2009 11:10 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bullit]]></name></author>
<updated>2009-04-16T04:03:45+01:00</updated>
<published>2009-04-16T04:03:45+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19613#p19613</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19613#p19613"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19613#p19613"><![CDATA[
Set to 1 for 1Mbaud.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=173">Bullit</a> — Thu Apr 16, 2009 4:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2009-04-16T19:31:27+01:00</updated>
<published>2009-04-15T18:26:11+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19612#p19612</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19612#p19612"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19612#p19612"><![CDATA[
Did you test it with the serial cable?<br /><br />It doesn't matter! I misunderstand your problem...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Wed Apr 15, 2009 6:26 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Ess]]></name></author>
<updated>2009-04-15T18:08:44+01:00</updated>
<published>2009-04-15T18:08:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19610#p19610</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19610#p19610"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19610#p19610"><![CDATA[
<blockquote><div><cite>Dewey wrote:</cite><br />Example.c sets the RS232 baud rate to 57600 which is OK.<br /><br />It also sets the RS485 baud rate (the dynamixel bus) to 57600 baud. This is NOT Ok as by default the AX12s are set to 1000000 baud! So you won't be able to talk to them.<br /><br />You can alter either Example.c to 1000000 baud or 'reprogram' the AX12s to 57600 baud.<br /><br />Actually Example.c is full of errors and is best avoided, download the C  code/toolkit developed here by Stuart and Matt. See the libavr/libbiooid topic.<br /><br />Dewey<br /></div></blockquote><br /><br />ok, back to work, and reading the code :<br /><br />SerialInitialize(SERIAL_PORT0,DEFAULT_BAUD_RATE,RX_INTERRUPT);//RS485 Initializing(RxInterrupt)<br /><br />and DEFAULT_BAUD_RATE is 34  at 16Mhz (clock of atmega i supose) for 57600 bps<br /><br />watching the sheet of atmega it says ubrr +1 =fosc(16mhz?) / (16or8or2) * baudrate (57600bps?) <br /><br />i don´t found the prescaler in the code.<br /><br />how it works?? what value should use in ubrr for 1mbps?<br /><br />thanks!!!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1393">Ess</a> — Wed Apr 15, 2009 6:08 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2009-04-02T18:49:44+01:00</updated>
<published>2009-04-02T18:49:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19520#p19520</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19520#p19520"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19520#p19520"><![CDATA[
I think that for the first tests it's easier to use the serial cable to use the example.c, at least until you have more experience with it. <br /><br />The example.c it's no a wonderful way to learn, but it works. There are other <a href="http://robosavvy.com/site/index.php?option=com_openwiki&amp;Itemid=&amp;id=robotis_bioloid" class="postlink">examples/APIs here</a> and <a href="http://www.siempreaprendiendo.es/bioloid/" class="postlink">here</a>. Some of them based on the example.c but more clear.<br /><br />(Spanish)<br />Creo que para las primeras pruebas es más fácil usar el cable serie con el example.c, al menos hasta que tengas más experiencia.<br /><br />El ejemplo.c no es maravilloso modo de aprender, pero funciona. Hay otros ejemplos/APIs. Algunos de ellos basados en el ejemplo.c, pero más claros.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Thu Apr 02, 2009 6:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Ess]]></name></author>
<updated>2009-04-02T18:34:33+01:00</updated>
<published>2009-04-02T18:34:33+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19519#p19519</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19519#p19519"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19519#p19519"><![CDATA[
Thanks!!!! <br /><br />Ok, but i´m with example.c  to see it working (it´s suposed to work <img src="http://forum.robosavvy.com/images/smilies/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" />)<br /><br />its my first attempt, the next is the libbioloid:)<br /><br />Thanks a lot!!!  <br /><br /> <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1393">Ess</a> — Thu Apr 02, 2009 6:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dewey]]></name></author>
<updated>2009-04-02T18:05:19+01:00</updated>
<published>2009-04-02T18:05:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19518#p19518</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19518#p19518"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19518#p19518"><![CDATA[
Example.c sets the RS232 baud rate to 57600 which is OK.<br /><br />It also sets the RS485 baud rate (the dynamixel bus) to 57600 baud. This is NOT Ok as by default the AX12s are set to 1000000 baud! So you won't be able to talk to them.<br /><br />You can alter either Example.c to 1000000 baud or 'reprogram' the AX12s to 57600 baud.<br /><br />Actually Example.c is full of errors and is best avoided, download the C  code/toolkit developed here by Stuart and Matt. See the libavr/libbiooid topic.<br /><br />Dewey<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=616">Dewey</a> — Thu Apr 02, 2009 6:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Ess]]></name></author>
<updated>2009-04-02T11:18:38+01:00</updated>
<published>2009-04-02T11:18:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19516#p19516</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19516#p19516"/>
<title type="html"><![CDATA[example.c problems]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3427&amp;p=19516#p19516"><![CDATA[
Hi! i´m new in this forum and i´m spanish so i apologize for my poor English <img src="http://forum.robosavvy.com/images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" />  (blessed google! <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /> )<br /><br />I am doing my final thesis project with Bioloid (starting)<br /><br />I need to program with c/c++ so i start with example.c, but i have a problem  and i dont find it.<br /><br />This is what i did: (all software for bioloid and drivers installed and runing perfectly)<br /><br />1. installed winavr<br />2. open proyect example<br />3. modify makefile (target &quot;example&quot; source &quot;the route of example.c&quot;)<br />4. compile (no errors, all right)<br />5. run robot terminal (ok, conects)<br />6. enter boot loader (ok)<br />7. load (enter file .hex and transmit, ok)<br />8. go! (the program starts, press any key..)<br />9 pressed key and it starts<br /><br />Ok, now the program dont find any dinamixel (but one is conected, (and is ok, and i tried with others and the conectors) <br /><br />in tx it sends ok but in rx it dont! and says &quot;[Error : Rxd timeout ]<br />this happens with all rx, Len is 00, and dinamixels have a little little torque.<br /><br />the cm5 is connected by an usb to serial adapter. and i try in two computers.<br /><br />I dont know what is happend and i´m stacked with this!<br /><br />Help me please!!!!<br /><br />Thanks a lot!!!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1393">Ess</a> — Thu Apr 02, 2009 11:18 am</p><hr />
]]></content>
</entry>
</feed>