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

<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-06-23T20:57:41+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=3599</id>
<entry>
<author><name><![CDATA[RandomMatt]]></name></author>
<updated>2009-06-23T20:57:41+01:00</updated>
<published>2009-06-23T20:57:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20366#p20366</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20366#p20366"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20366#p20366"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />Yeap, but I really newbee in that, any example about proper use of 'w' and so?<br /></div></blockquote><br /><br />no... just experiment - you cannot ever break anything (*).<br /><br />For example - the AX12 pdf says that memory location 25 is for the LED.<br /><br />so try the 'w' command to write a value of 0 to location 25 of servo 1.<br />and then try writing a value of 1 to location 25 of servo 1.<br /><br />if you use the 'm' command inbetween the above - you should be able to see what going on.<br /><br />The moral is... just try things out, the worst that can happen is very minor (**).<br /><br />--<br /><br />* apart form the motor - if you ask the servo to go past its end stop.<br />** in the most extreme case - say a baud rate change - you'll have to use the bridge command to talk to AX12 bootloader to reset it... but even that is easy.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1296">RandomMatt</a> — Tue Jun 23, 2009 8:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[buhochileno]]></name></author>
<updated>2009-06-23T14:22:56+01:00</updated>
<published>2009-06-23T14:22:56+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20352#p20352</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20352#p20352"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20352#p20352"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />So, if the bioloid_ver115.hex is just another programm it can be converted to a .bin and transfered to the cm-5 using the programmer right? (still trying to understend how the makefile file can do the transformation...<br /><br />avr-objcopy -I ihex -O binary bob.hex bob.bin<br /><br />also... look in common.mk for the magic in the makefile.<br /></div></blockquote><br />Ok, thanks it work perfect.. <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":-)" title="Smile" /><br /><br /><blockquote><div><cite>buhochileno wrote:</cite><br />So, the &quot;supervisor&quot; is just other program that is run it by the bootloader right?, where can I find info about the commands/parameters of the supervisor?<br /><br />It gives you help when it runs <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /> - just press 'h' to get it back again.<br /> the most useful commands are 'g', 'm' and 'w'.<br /></div></blockquote><br /><br />Yeap, but I really newbee in that, any example about proper use of 'w' and so?<br /><br />Mauricio<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1516">buhochileno</a> — Tue Jun 23, 2009 2:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[RandomMatt]]></name></author>
<updated>2009-06-22T16:50:23+01:00</updated>
<published>2009-06-22T16:50:23+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20331#p20331</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20331#p20331"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20331#p20331"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />So, when I use the libbioloid and I have some program at the CM-5 like example.bin and I connect the charger, the batteries are not going to charge?, how do you do that? (external charger removing batteries?)<br />Mauricio<br /></div></blockquote><br /><br />read this:  <!-- m --><a class="postlink" href="http://robosavvy.com/forum/viewtopic.php?p=20167">http://robosavvy.com/forum/viewtopic.php?p=20167</a><!-- m --><br /><br /><br /><blockquote><div><cite>buhochileno wrote:</cite><br />So, if the bioloid_ver115.hex is just another programm it can be converted to a .bin and transfered to the cm-5 using the programmer right? (still trying to understend how the makefile file can do the transformation...<br /></div></blockquote><br /><br />avr-objcopy -I ihex -O binary bob.hex bob.bin<br /><br />also... look in common.mk for the magic in the makefile.<br /><br /><br /><blockquote><div><cite>buhochileno wrote:</cite><br />So, the &quot;supervisor&quot; is just other program that is run it by the bootloader right?, where can I find info about the commands/parameters of the supervisor?<br /></div></blockquote><br /><br />It gives you help when it runs <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /> - just press 'h' to get it back again.<br /> the most useful commands are 'g', 'm' and 'w'.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1296">RandomMatt</a> — Mon Jun 22, 2009 4:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[buhochileno]]></name></author>
<updated>2009-06-22T16:19:30+01:00</updated>
<published>2009-06-22T16:19:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20330#p20330</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20330#p20330"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20330#p20330"><![CDATA[
<blockquote><div><cite>StuartL wrote:</cite><br /><blockquote><div><cite>buhochileno wrote:</cite>Any chance to convert a .bgp to hex or bin to transfer the &quot;humanoid&quot; demo or other included demo files with the programmer?<br /></div></blockquote><br /><br />No, not really.  You could probably do it by hacking around but it's beyond anything we've done.  You would need to hack the Bioloid firmware (e.g. v115) and the BCP into a combined ROM file at the correct offsets (which I have no idea of) and then use the programmer to get them into the application ROM.  For all this hackery you may as well use the BCP.<br /><br /><blockquote class="uncited"><div><br />Please explain me, the bootloader is then a program that reside in the atmel rom?..where can I find info about that bootloader program?, what is the diference with the &quot;supervisor&quot; and by the way, waht IS the &quot;supervisor&quot;, where do you find info to use the supervisor command?..<br /></div></blockquote><br /><br />Ok, inside the ATmega128 (the microcontroller the CM-5 is based on) you have two 'sections' of the ROM.  The way Robotis configure the chip is to use the top section as a non-reprogrammable bootloader.  This is the bit which talks over the serial port (or zigbee) and allows you to program the remainder of the flash (the application section) using Robot Terminal or Matt's programmer.  The BCP also uses this same bootloader to put the Bioloid firmware into the application section (at the start) and the BCP instructions (a highly tokenised instruction set) into the application section (near the end).  The motions are also stored near the end.<br /><br /><blockquote class="uncited"><div><br />I supose then that the CM-5 console (the one that let you do: go 100 1000 and thing like that) is a program that is run by the cm-5 bootloader or the supervisor?, if it is so, how the CM-5 console allow you to have that console and &quot;play&quot; another programm changing to the &quot;play&quot; mode?, really confuse about all that..any good reading?<br /></div></blockquote><br /><br />Forgetting libbioloid and Matt's programmer this is what normally happens when the CM-5 starts up:<br /><br />- The chip self-initialises and starts the bootloader.<br />- The bootloader initialises the serial port and waits for 60ms for any '#' characters to arrive.  If any do arrive it switches into 'bootloader' mode and allows you to erase and program the flash/eeprom.<br />- If the bootloader doesn't detect any input it jumps to the start of flash which is where the application software is placed.<br />- The default application software is the Bioloid firmware, the BCP 'master application' which is contained in the .ROM file.<br />- The Robotis application initialises the serial ports, zigbee and LEDs/buttons and it's THIS firmware which does the battery charging, button interaction and reads the BCP instructions placed higher up the flash by the BCP.<br /><br />When you use libbioloid you replace the contents of the flash with your program.  You have to develop your own LEDs, button interaction, charging algorithm (see other threads, I do not think it safe to use the charging circuit on the CM-5) and motion methods.  In our cases we don't have any precoded motion sequences and all of the motion is dynamically calculated.  This means we don't have any equivalent for the Robotis BCP/Motion Editor.</div></blockquote><br /><br />Ok, so the CM-5 console provided by robotis is just a &quot;program&quot; run it by the bootloader and is able to understend things like &quot;mode play + start = run the tokenized instructions at xxx address...&quot; or &quot;powerOn + D_Button = charge the battery and make the LED blink...&quot;, witch by the way give me a question: So, when I use the libbioloid and I have some program at the CM-5 like example.bin and I connect the charger, the batteries are not going to charge?, how do you do that? (external charger removing batteries?)<br />So, if the bioloid_ver115.hex is just another programm it can be converted to a .bin and transfered to the cm-5 using the programmer right? (still trying to understend how the makefile file can do the transformation...<br /><br />So, the &quot;supervisor&quot; is just other program that is run it by the bootloader right?, where can I find info about the commands/parameters of the supervisor?<br /><br />Thanks.<br /><br />Mauricio<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1516">buhochileno</a> — Mon Jun 22, 2009 4:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2009-06-21T07:51:31+01:00</updated>
<published>2009-06-21T07:51:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20315#p20315</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20315#p20315"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20315#p20315"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />Any chance to convert a .bgp to hex or bin to transfer the &quot;humanoid&quot; demo or other included demo files with the programmer?<br /></div></blockquote><br /><br />No, not really.  You could probably do it by hacking around but it's beyond anything we've done.  You would need to hack the Bioloid firmware (e.g. v115) and the BCP into a combined ROM file at the correct offsets (which I have no idea of) and then use the programmer to get them into the application ROM.  For all this hackery you may as well use the BCP.<br /><br /><blockquote class="uncited"><div><br />Please explain me, the bootloader is then a program that reside in the atmel rom?..where can I find info about that bootloader program?, what is the diference with the &quot;supervisor&quot; and by the way, waht IS the &quot;supervisor&quot;, where do you find info to use the supervisor command?..<br /></div></blockquote><br /><br />Ok, inside the ATmega128 (the microcontroller the CM-5 is based on) you have two 'sections' of the ROM.  The way Robotis configure the chip is to use the top section as a non-reprogrammable bootloader.  This is the bit which talks over the serial port (or zigbee) and allows you to program the remainder of the flash (the application section) using Robot Terminal or Matt's programmer.  The BCP also uses this same bootloader to put the Bioloid firmware into the application section (at the start) and the BCP instructions (a highly tokenised instruction set) into the application section (near the end).  The motions are also stored near the end.<br /><br /><blockquote class="uncited"><div><br />I supose then that the CM-5 console (the one that let you do: go 100 1000 and thing like that) is a program that is run by the cm-5 bootloader or the supervisor?, if it is so, how the CM-5 console allow you to have that console and &quot;play&quot; another programm changing to the &quot;play&quot; mode?, really confuse about all that..any good reading?<br /></div></blockquote><br /><br />Forgetting libbioloid and Matt's programmer this is what normally happens when the CM-5 starts up:<br /><br />- The chip self-initialises and starts the bootloader.<br />- The bootloader initialises the serial port and waits for 60ms for any '#' characters to arrive.  If any do arrive it switches into 'bootloader' mode and allows you to erase and program the flash/eeprom.<br />- If the bootloader doesn't detect any input it jumps to the start of flash which is where the application software is placed.<br />- The default application software is the Bioloid firmware, the BCP 'master application' which is contained in the .ROM file.<br />- The Robotis application initialises the serial ports, zigbee and LEDs/buttons and it's THIS firmware which does the battery charging, button interaction and reads the BCP instructions placed higher up the flash by the BCP.<br /><br />When you use libbioloid you replace the contents of the flash with your program.  You have to develop your own LEDs, button interaction, charging algorithm (see other threads, I do not think it safe to use the charging circuit on the CM-5) and motion methods.  In our cases we don't have any precoded motion sequences and all of the motion is dynamically calculated.  This means we don't have any equivalent for the Robotis BCP/Motion Editor.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Sun Jun 21, 2009 7:51 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[buhochileno]]></name></author>
<updated>2009-06-21T02:24:24+01:00</updated>
<published>2009-06-21T02:24:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20313#p20313</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20313#p20313"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20313#p20313"><![CDATA[
<blockquote><div><cite>StuartL wrote:</cite><br />The libbioloid standard make file should give you a .bin and a .hex for your example.c.  The .hex and .bin contain the same data, just in different formats.  BGP files are tokenised instructions to the Robotis ROM file (their equivalent of .hex or .bin).<br /></div></blockquote><br /><br />Ok, I going to try to figure out how to convert the &quot;Bioloid_Ver115.hex&quot; to a .bin file to be able to restore that file with the programmer to have the original CM-5 typical console and not to have to go to windows to do that...<br />Any chance to convert a .bgp to hex or bin to transfer the &quot;humanoid&quot; demo or other included demo files with the programmer?<br /><br /><blockquote class="uncited"><div><br />The .hex file is just an Intel format .bin file.  There are many utilities to convert between the two.  BCP provided with the Robotis kit converts the .rom file (which is very crudely encrypted) into the binary as it sends it to the robot through the bootloader.<br /></div></blockquote><br /><br /><blockquote class="uncited"><div><br />Robot Terminal converts the .hex file into binary as it sends it to the robot through the bootloader.  We didn't bother with the conversion and instead just use the binary format directly.<br /></div></blockquote><br />Please explain me, the bootloader is then a program that reside in the atmel rom?..where can I find info about that bootloader program?, what is the diference with the &quot;supervisor&quot; and by the way, waht IS the &quot;supervisor&quot;, where do you find info to use the supervisor command?..I supose then that the CM-5 console (the one that let you do: go 100 1000 and thing like that) is a program that is run by the cm-5 bootloader or the supervisor?, if it is so, how the CM-5 console allow you to have that console and &quot;play&quot; another programm changing to the &quot;play&quot; mode?, really confuse about all that..any good reading?<br /><br /><blockquote class="uncited"><div><br />This means that if you download a converter from .hex (or ihex) to binary you can convert the .hex files into binary and vice versa.  You may even notice one in the makefile which we use to do exactly that <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br /></div></blockquote><br />Ok trying to understand the makefile file :-S<br />[quote]Other question: the libbioloid is able to use the zegbee modules in any way?[<br /><br />Yes, I currently use the zigbee module as a direct replacement for the serial port.  You get packet loss on the zigbee which you don't get on the serial port and you need to be aware of that.  libbioloid will automatically transmit the console output on both the zigbee and serial port and will switch to receive from the zigbee instead of the serial port if there's no serial cable plugged in.<br />/quote]<br />That's great...<br /><br />Thanks for your kind help...<br /><br />Mauricio<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1516">buhochileno</a> — Sun Jun 21, 2009 2:24 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2009-06-20T09:04:05+01:00</updated>
<published>2009-06-20T09:04:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20304#p20304</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20304#p20304"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20304#p20304"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />ohhh ok, at least I was not doing something wrong again <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":-)" title="Smile" /> , so what is the &quot;correct&quot; way to restore a software like that one?, restore the CM-5 firmware with the included behaviour program? (no problems in doing that to many times?), or any chance to transfer a .bgp or .hex file like the included one in the bioloid CD's?.<br /></div></blockquote><br /><br />The libbioloid standard make file should give you a .bin and a .hex for your example.c.  The .hex and .bin contain the same data, just in different formats.  BGP files are tokenised instructions to the Robotis ROM file (their equivalent of .hex or .bin).<br /><br /><blockquote class="uncited"><div><br />By the way, I kind of confuse about the .bin and .hex files used by bioloid, any good reading about that? (also confuse about the .bgp ones, but I supose that the behaviour program compile that ones before be transfered...right?)<br /></div></blockquote><br /><br />The .hex file is just an Intel format .bin file.  There are many utilities to convert between the two.  BCP provided with the Robotis kit converts the .rom file (which is very crudely encrypted) into the binary as it sends it to the robot through the bootloader.  Robot Terminal converts the .hex file into binary as it sends it to the robot through the bootloader.  We didn't bother with the conversion and instead just use the binary format directly.<br /><br />This means that if you download a converter from .hex (or ihex) to binary you can convert the .hex files into binary and vice versa.  You may even notice one in the makefile which we use to do exactly that <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br /><br /><blockquote class="uncited"><div><br />Other question: the libbioloid is able to use the zegbee modules in any way?<br /></div></blockquote><br /><br />Yes, I currently use the zigbee module as a direct replacement for the serial port.  You get packet loss on the zigbee which you don't get on the serial port and you need to be aware of that.  libbioloid will automatically transmit the console output on both the zigbee and serial port and will switch to receive from the zigbee instead of the serial port if there's no serial cable plugged in.<br /><br />We're using the PS2 controller for remote control and the zigbee for console output.  In hindsight the reliable data transfer of bluetooth would be preferred but I bought the zigbee modules so that's what we use <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=645">StuartL</a> — Sat Jun 20, 2009 9:04 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[buhochileno]]></name></author>
<updated>2009-06-19T22:02:25+01:00</updated>
<published>2009-06-19T22:02:25+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20295#p20295</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20295#p20295"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20295#p20295"><![CDATA[
<blockquote class="uncited"><div><br />The example.bin completely replaces that software, you have to write what you want it to do <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /></div></blockquote><br />ohhh ok, at least I was not doing something wrong again <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":-)" title="Smile" /> , so what is the &quot;correct&quot; way to restore a software like that one?, restore the CM-5 firmware with the included behaviour program? (no problems in doing that to many times?), or any chance to transfer a .bgp or .hex file like the included one in the bioloid CD's?.<br />By the way, I kind of confuse about the .bin and .hex files used by bioloid, any good reading about that? (also confuse about the .bgp ones, but I supose that the behaviour program compile that ones before be transfered...right?)<br /><br />Other question: the libbioloid is able to use the zegbee modules in any way?<br /><br />Thanks for your kind help...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1516">buhochileno</a> — Fri Jun 19, 2009 10:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2009-06-19T21:06:39+01:00</updated>
<published>2009-06-19T21:06:39+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20293#p20293</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20293#p20293"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20293#p20293"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />no luck, Still not clear to me, yes when I press &quot;#&quot; its rebot the software and with &quot;~&quot; get into the supervisor, but then how I return to the typical CM-5 terminal?, (like the one you enter when no example.bin program was transfered, the one that let you do &quot;go 100 1000&quot;, &quot;scan&quot; and all that?)...<br /></div></blockquote><br /><br />The example.bin completely replaces that software, you have to write what you want it to do <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /><br /><blockquote class="uncited"><div><br />So, if a CM-5 running program is executing &quot;lastchar&quot; I can send a char from any programm to the serial port and is goin gto be readed right?, also the lastchar is a syncronous call right?, I mean that it block the executiong until something is readed from the UART1..?<br /></div></blockquote><br /><br />lastchar() itself is asynchronous but I believe Matt implemented a getchar() or getch() for blocking calls.<br /><br />You probably, though, don't want a blocking call.  There are few occasions where you want to pause your software completely.  You probably at least want to monitor the servo positions for stalls etc.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Fri Jun 19, 2009 9:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[buhochileno]]></name></author>
<updated>2009-06-19T18:40:30+01:00</updated>
<published>2009-06-19T18:40:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20292#p20292</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20292#p20292"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20292#p20292"><![CDATA[
<blockquote class="uncited"><div><br />From the console you can use '#' to put yourself back in the bootloader.  This is part of libbioloid and effectively hooks every byte coming in the console port.  If one of those bytes is '#' it reboots the software (through the bootloader) and if one of those bytes is '~' it reboots the software (through the bootloader) into the supervisor.<br /></div></blockquote><br /> no luck, Still not clear to me, yes when I press &quot;#&quot; its rebot the software and with &quot;~&quot; get into the supervisor, but then how I return to the typical CM-5 terminal?, (like the one you enter when no example.bin program was transfered, the one that let you do &quot;go 100 1000&quot;, &quot;scan&quot; and all that?)...<br /><br /><blockquote class="uncited"><div><br />My second one is about the &quot;lastchar();&quot; instruction in example.c, that instruction running on the CM-5 reads from the UART1 right?, without making any UART1 connection command at the CM-5?, if that is the case, is much more easy to programm than windows...<br /><br />Yes, that checks to see if a character has been received over the console UART.  There are a few similar functions too if you browse the libbioloid source.<br /></div></blockquote><br />So, if a CM-5 running program is executing &quot;lastchar&quot; I can send a char from any programm to the serial port and is goin gto be readed right?, also the lastchar is a syncronous call right?, I mean that it block the executiong until something is readed from the UART1..?<br /><br />Thanks<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1516">buhochileno</a> — Fri Jun 19, 2009 6:40 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2009-06-19T06:49:48+01:00</updated>
<published>2009-06-19T06:49:48+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20277#p20277</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20277#p20277"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20277#p20277"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />Now I have more specific questions:<br /><br />when I run something like this:<br />./programm -t /dev/ttyUSB0 example.bin<br /><br />As you say the program is transfered to the CM-5 and then keep interactive, when I end the console the &quot;exmple.bin&quot; it seems to not let me do nothing more in the CM-5 like change to manage or program modes and manage and play led's stay still as when the example.bin was runnit..How to reset thing?<br /></div></blockquote><br /><br />From the console you can use '#' to put yourself back in the bootloader.  This is part of libbioloid and effectively hooks every byte coming in the console port.  If one of those bytes is '#' it reboots the software (through the bootloader) and if one of those bytes is '~' it reboots the software (through the bootloader) into the supervisor.<br /><br /><blockquote class="uncited"><div><br />My second one is about the &quot;lastchar();&quot; instruction in example.c, that instruction running on the CM-5 reads from the UART1 right?, without making any UART1 connection command at the CM-5?, if that is the case, is much more easy to programm than windows...<br /></div></blockquote><br /><br />Yes, that checks to see if a character has been received over the console UART.  There are a few similar functions too if you browse the libbioloid source.<br /><br /><blockquote class="uncited"><div><br />My last question is more like a sugestion from you:<br />I want to make some basic programms to be at the CM-5 like: move forward, left, right, etc..(like a cerebellum) and put more advanced analisys programs in a more powerfull brain (like my laptop). 1 option is to set the CM-5 in toss mode, in witch I can control the dynamixel bus directly from my C# program in mono/linux...but that option force me to put all the control logic in the laptop right?, I mean I can't mix toss mode instructions and a running program at the CM-5?<br />Second option is to put the basic movements program at the CM-5 and make a simple serial connection from C or C# to send the control data, to do that I can use something like the programmer.c?<br /></div></blockquote><br /><br />The CM-5 is just about powerful enough for full inverse kinematics (google it <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />) but not a lot more.  If all you want to do is predefine motions and get the CM-5 to execute them on instruction from the laptop that's also fine.<br /><br />RandomMatt and I are trying to put all of the intelligence in the CM-5 with the only inputs being a Playstation wireless controller.  This is VERY slowly coming together, with all of the progress being made by RandomMatt <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=645">StuartL</a> — Fri Jun 19, 2009 6:49 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[buhochileno]]></name></author>
<updated>2009-06-18T21:47:35+01:00</updated>
<published>2009-06-18T21:47:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20270#p20270</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20270#p20270"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20270#p20270"><![CDATA[
<blockquote><div><cite>StuartL wrote:</cite><br />Can you work on the quoting?  Use the preview if you have to but it's really hard to spot which parts are questions and which parts are quotes...<br /></div></blockquote><br />ok sure, sorry it was my mistake I press &quot;submit&quot; until a preview...<br /><br /><blockquote><div><cite>StuartL wrote:</cite><br />It sounds like the file transfer isn't working properly.  Try using the '-t' without the filename first and prove that you get a robot console up.<br /><br />If you now press and hold '#' and press reset/mode on the CM-5 you should get to the bootloader.  Try typing 'help' for example.<br /></div></blockquote><br /><br />Yeap, I was doing all wrong, now I get the CM-5 console, to start with I was trying to use my second CM-5 with a servo with a bad ID..fix that I thing start to get better..the example.bit also begin to work on my primary CM-5 witch it have the 1 and 2 servos...<br /><br /><blockquote><div><cite>StuartL wrote:</cite><br />If this works then all you need to do is restart the programmer with '-t' and a .bin filename.  It'll sit there waiting for the CM-5 to respond, if it doesn't seem to then press 'reset' on the CM-5 and the programmer should detect that you're now in the bootloader.<br /><br />RandomMatt: Have I missed anything?<br /></div></blockquote><br /><br />Now I have more specific questions:<br /><br />when I run something like this:<br />./programm -t /dev/ttyUSB0 example.bin<br /><br />As you say the program is transfered to the CM-5 and then keep interactive, when I end the console the &quot;exmple.bin&quot; it seems to not let me do nothing more in the CM-5 like change to manage or program modes and manage and play led's stay still as when the example.bin was runnit..How to reset thing?<br /><br />My second one is about the &quot;lastchar();&quot; instruction in example.c, that instruction running on the CM-5 reads from the UART1 right?, without making any UART1 connection command at the CM-5?, if that is the case, is much more easy to programm than windows...<br /><br />My last question is more like a sugestion from you:<br />I want to make some basic programms to be at the CM-5 like: move forward, left, right, etc..(like a cerebellum) and put more advanced analisys programs in a more powerfull brain (like my laptop). 1 option is to set the CM-5 in toss mode, in witch I can control the dynamixel bus directly from my C# program in mono/linux...but that option force me to put all the control logic in the laptop right?, I mean I can't mix toss mode instructions and a running program at the CM-5?<br />Second option is to put the basic movements program at the CM-5 and make a simple serial connection from C or C# to send the control data, to do that I can use something like the programmer.c?<br /><br />Any other sugestions?<br /><br />Thanks and I apreciate your patience..<br /><br />Mauricio<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1516">buhochileno</a> — Thu Jun 18, 2009 9:47 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2009-06-18T20:56:40+01:00</updated>
<published>2009-06-18T20:56:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20267#p20267</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20267#p20267"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20267#p20267"><![CDATA[
Can you work on the quoting?  Use the preview if you have to but it's really hard to spot which parts are questions and which parts are quotes...<br /><br /><blockquote><div><cite>buhochileno wrote:</cite><br />ok is working, but I'm kind of lost again, with that last command the example.bin is transfered to the cm-5 right? and then I get console like the &quot;robot terminal&quot;?, if that is the case the cm-5 have to be in &quot;managed mode&quot; right?...anyway testing I press &quot;start&quot; when the managed mode was blinking and I get the booting message as the &quot;robot terminal&quot; app, after that I can't write anithing on my keyboard..also none of the &quot;a,s,w,q..&quot; keys seems to work even if the console says to me that the CID of the selected servo is correct...<br />what is the correct procedure to work with this lib/program?, where can I find more info about it?, I read and read the example.c programm but it miss this procedures...<br /></div></blockquote><br /><br />It sounds like the file transfer isn't working properly.  Try using the '-t' without the filename first and prove that you get a robot console up.<br /><br />If you now press and hold '#' and press reset/mode on the CM-5 you should get to the bootloader.  Try typing 'help' for example.<br /><br />If this works then all you need to do is restart the programmer with '-t' and a .bin filename.  It'll sit there waiting for the CM-5 to respond, if it doesn't seem to then press 'reset' on the CM-5 and the programmer should detect that you're now in the bootloader.<br /><br />RandomMatt: Have I missed anything?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Thu Jun 18, 2009 8:56 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2009-06-18T20:51:33+01:00</updated>
<published>2009-06-18T20:51:33+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20266#p20266</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20266#p20266"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20266#p20266"><![CDATA[
<blockquote><div><cite>buhochileno wrote:</cite><br />P.S: by the way, it seems that I subscrbe to the mailing list, but what is the mail to make a post?, suing the same as the one that I subscribe only retirn me a &quot;not valid command..&quot; mail..<br /></div></blockquote><br /><br />It's maillist list name at braincell dot cx.  In this case the mailing list name is 'robots'.<br /><br />Enjoy!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Thu Jun 18, 2009 8:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[buhochileno]]></name></author>
<updated>2009-06-17T21:37:33+01:00</updated>
<published>2009-06-17T21:37:33+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20246#p20246</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20246#p20246"/>
<title type="html"><![CDATA[error: libavr/flash.h: No such file or directory?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3599&amp;p=20246#p20246"><![CDATA[
<blockquote><div><cite>RandomMatt wrote:</cite><br /><span style="font-weight: bold">programming the CM5</span><br /><br />download libcompat as well, and make tools/programmer<br /><br />it is quite simple to use:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>$ ../tools/programmer /dev/ttyUSB0 example.bin</code></dd></dl><br /><br />programs the CM5.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>$ ../tools/programmer -t /dev/ttyUSB0</code></dd></dl><br /><br />allows you to talk to CM5 - press # to reboot it, ~ to enter the supervisor, etc...<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code> ../tools/programmer -t /dev/ttyUSB0 example.bin</code></dd></dl><br />programs it, and then stays running.<br />ok is working, but I'm kind of lost again, with that last command the example.bin is transfered to the cm-5 right? and then I get console like the &quot;robot terminal&quot;?, if that is the case the cm-5 have to be in &quot;managed mode&quot; right?...anyway testing I press &quot;start&quot; when the managed mode was blinking and I get the booting message as the &quot;robot terminal&quot; app, after that I can't write anithing on my keyboard..also none of the &quot;a,s,w,q..&quot; keys seems to work even if the console says to me that the CID of the selected servo is correct...<br />what is the correct procedure to work with this lib/program?, where can I find more info about it?, I read and read the example.c programm but it miss this procedures...<br /><br />Other thing that I don't understend is the way in witch this libs/progs work, specially the libbioloid, the program writed and compiled with avr-gcc then is transfered and it run in the cm-5 right? I ask this becouse after I run the above commads I still able to run the previously loaded program like the humanoid behaviour one...may be that mean that the example.bin was not properly transfer?<br /><br /><span style="font-weight: bold">example</span><br />to move the servos press q, a, w or s.<br />use , and . to switch servos on and off.<br />use g to get the servo positions.<br /><br />the buttons on the CM5 don't do anything useful... but if you press them you'll be able to see on the PC which ones you've pressed.<br /><br />ok<br />---<br /><br />To be honest, you just need to read example.c - but i understand that you need it to pass the &quot;don't waste my time&quot; test first!<br /><br />trust me, I read that code over and over but still don't find all the &quot;setting up&quot; needed steps..<br /><br />Thanks and sorry for all the newbe questions,..<br /><br />Mauricio<br /><br /><span style="font-weight: bold">Mailing list</span><br />I cannot help you - StuartL is your man.<br /></div></blockquote><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1516">buhochileno</a> — Wed Jun 17, 2009 9:37 pm</p><hr />
]]></content>
</entry>
</feed>