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

<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>2011-01-18T11:33:36+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=6922</id>
<entry>
<author><name><![CDATA[Asiya]]></name></author>
<updated>2011-01-18T11:33:36+01:00</updated>
<published>2011-01-18T11:33:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29841#p29841</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29841#p29841"/>
<title type="html"><![CDATA[Real-Time servo-CM5-Matlab/Simulink Control (need help)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29841#p29841"><![CDATA[
OK I did return the old Firmeware of CM5,<br /><br />but I want to know why do I get warnings while compilling the code in WinAvr?<br /><br />And Why I don't get output in Simulink??<br /><br /><br />Thanks a lot for your help <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=2541">Asiya</a> — Tue Jan 18, 2011 11:33 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Asiya]]></name></author>
<updated>2011-01-18T07:14:02+01:00</updated>
<published>2011-01-18T07:14:02+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29840#p29840</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29840#p29840"/>
<title type="html"><![CDATA[Real-Time servo-CM5-Matlab/Simulink Control (need help)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29840#p29840"><![CDATA[
<blockquote><div><cite>limor wrote:</cite><br />seems like you have errors in the link between the PC and the CM5 unless you were typing random chars on purpose.<br /><br />try to see that your serial cable is intact.<br /><br />The real-time-windows-target mentioned in the IST article refers to a simulink real-time target with modified windows-XP running simulink at super high priority. Not sure this is what you are looking for.<br /><br />If you just want matlab to talk to the robot there are easier ways.<br />there's documentation that comes with usb2dynamixel (probably on support.robotis.com)<br /></div></blockquote><br /><br />Hiii Limor,<br /><br />Actually I need to build a controllerin Simulink to control the Bioloid using Real-Time communication.<br /><br />I did the RT modification if you mean:<br />//////////////////////<br />Real-Time Windows Target version 3.4.0 (C) The MathWorks, Inc. 1994-2009<br />Running on Multiprocessor APIC computer.<br />MATLAB performance = 100.0%<br />Kernel timeslice period = 1 ms<br />////////////////////<br /><br />but now when I tried now to check the serial communication by typing:<br />s = serial('COM1','baudrate',57600)<br />fopen(s)<br />tline = fgets(s)<br /><br /><br />my Bioloid Turned offfffff, and even when I try to charge it, it did't work although the fuse is fine ????<br /><br /><br />What is the problem now??<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2541">Asiya</a> — Tue Jan 18, 2011 7:14 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Asiya]]></name></author>
<updated>2011-01-18T07:08:23+01:00</updated>
<published>2011-01-18T07:08:23+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29839#p29839</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29839#p29839"/>
<title type="html"><![CDATA[Real-Time servo-CM5-Matlab/Simulink Control (need help)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29839#p29839"><![CDATA[
<blockquote><div><cite>Fritzoid wrote:</cite><br />Once you get into the bootloader you'll see the message...<br /><br />System O.K. (CM5 Boot Loader V1.41) <br /><br />Next type &quot;LD&quot; and hit enter (this starts the download).<br /><br />Now go to the Files menu and select Transmit Files.<br /><br />Choose the hex file that you want to transmit using the file selector dialog and it should work.<br /></div></blockquote><br /><br /><br />Thanks a lot<br /><br />I don't have that error while loading now,<br /><br />but I still have an eroe while communicating with Matlab  <img src="http://forum.robosavvy.com/images/smilies/icon_confused.gif" alt=":?" title="Confused" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2541">Asiya</a> — Tue Jan 18, 2011 7:08 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2011-01-18T00:38:24+01:00</updated>
<published>2011-01-18T00:38:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29832#p29832</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29832#p29832"/>
<title type="html"><![CDATA[Real-Time servo-CM5-Matlab/Simulink Control (need help)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29832#p29832"><![CDATA[
seems like you have errors in the link between the PC and the CM5 unless you were typing random chars on purpose.<br /><br />try to see that your serial cable is intact.<br /><br />The real-time-windows-target mentioned in the IST article refers to a simulink real-time target with modified windows-XP running simulink at super high priority. Not sure this is what you are looking for.<br /><br />If you just want matlab to talk to the robot there are easier ways.<br />there's documentation that comes with usb2dynamixel (probably on support.robotis.com)<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Tue Jan 18, 2011 12:38 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2011-01-17T20:12:03+01:00</updated>
<published>2011-01-17T20:12:03+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29828#p29828</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29828#p29828"/>
<title type="html"><![CDATA[Real-Time servo-CM5-Matlab/Simulink Control (need help)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29828#p29828"><![CDATA[
Once you get into the bootloader you'll see the message...<br /><br />System O.K. (CM5 Boot Loader V1.41) <br /><br />Next type &quot;LD&quot; and hit enter (this starts the download).<br /><br />Now go to the Files menu and select Transmit Files.<br /><br />Choose the hex file that you want to transmit using the file selector dialog and it should work.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Mon Jan 17, 2011 8:12 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Asiya]]></name></author>
<updated>2011-01-17T11:53:46+01:00</updated>
<published>2011-01-17T11:53:46+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29820#p29820</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29820#p29820"/>
<title type="html"><![CDATA[Real-Time servo-CM5-Matlab/Simulink Control (need help)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6922&amp;p=29820#p29820"><![CDATA[
<span style="font-weight: bold">Hiii everyone,<br /><br />I'm new with Bioloid &amp; I have question regarding the Real-Time Interface between AX-12 and Simulink discussed here: <br /><!-- m --><a class="postlink" href="http://humanoids.dem.ist.utl.pt/pc_rs232/application_example/overview.html">http://humanoids.dem.ist.utl.pt/pc_rs23 ... rview.html</a><!-- m --><br /><br />However, the problem thatlink for  the sample code (example.c) is broken (try to click on  bioloid software cd): <br /><!-- m --><a class="postlink" href="http://humanoids.dem.ist.utl.pt/pc_rs232/application_example/overview.html">http://humanoids.dem.ist.utl.pt/pc_rs23 ... rview.html</a><!-- m --><br /><br />but I copied the code attached in the Bioloid Manual.<br />However, while compiling it using Programmer notepad, a lot of warning occur:</span><br />////////////////////////////////<br /><br />&gt; &quot;make.exe&quot; all<br /><br />-------- begin --------<br />avr-gcc (WinAVR 20081205) 4.3.2<br />Copyright (C) 2008 Free Software Foundation, Inc.<br />This is free software; see the source for copying conditions.  There is NO<br />warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br /><br /><br />Compiling C: CM5_code.c<br />avr-gcc -c -mmcu=atmega128 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./CM5_code.lst  -std=gnu99 -MMD -MP -MF .dep/CM5_code.o.d CM5_code.c -o CM5_code.o <br />In file included from CM5_code.c:18:<br />c:/winavr-20081205/lib/gcc/../../avr/include/avr/signal.h:36:2: warning: #warning &quot;This header file is obsolete.  Use &lt;avr&gt;.&quot;<br />CM5_code.c: In function 'main':<br />CM5_code.c:224: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:237: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:242: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:243: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:246: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:252: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:258: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:259: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:262: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:263: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:267: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:273: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:274: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:277: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:283: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:284: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:287: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:292: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:293: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:296: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:299: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:305: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:313: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:314: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:317: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:325: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:326: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:329: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:337: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:338: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:341: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:347: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:348: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:349: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c: In function 'RxPacket':<br />CM5_code.c:453: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:461: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:468: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:475: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:483: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c: In function 'PrintBuffer':<br />CM5_code.c:508: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c: In function 'PrintBaudrate':<br />CM5_code.c:519: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:519: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:520: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br />CM5_code.c:521: warning: pointer targets in passing argument 1 of 'TxDString' differ in signedness<br /><br />Linking: CM5_code.elf<br />avr-gcc -mmcu=atmega128 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=CM5_code.o  -std=gnu99 -MMD -MP -MF .dep/CM5_code.elf.d CM5_code.o --output CM5_code.elf -Wl,-Map=CM5_code.map,--cref     -lm<br /><br />Creating load file for Flash: CM5_code.hex<br />avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock CM5_code.elf CM5_code.hex<br /><br />Creating load file for EEPROM: CM5_code.eep<br />avr-objcopy -j .eeprom --set-section-flags=.eeprom=&quot;alloc,load&quot; \<br />--change-section-lma .eeprom=0 --no-change-warnings -O ihex CM5_code.elf CM5_code.eep || exit 0<br /><br />Creating Extended Listing: CM5_code.lss<br />avr-objdump -h -S -z CM5_code.elf &gt; CM5_code.lss<br /><br />Creating Symbol Table: CM5_code.sym<br />avr-nm -n CM5_code.elf &gt; CM5_code.sym<br /><br />Size after:<br />AVR Memory Usage<br />----------------<br />Device: atmega128<br /><br />Program:    2132 bytes (1.6% Full)<br />(.text + .data + .bootloader)<br /><br />Data:        798 bytes (19.5% Full)<br />(.data + .bss + .noinit)<br /><br /><br /><br />-------- end --------<br /><br /><br />&gt; Process Exit Code: 0<br />&gt; Time Taken: 01:39<br /><br /><br />//////////////////////////////<br /><br /><br /> <span style="font-weight: bold">When I tried to load hte hex file using Boot Loader in Robot Terminal I got the following error msg:</span><br /><br />\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\<br />System O.K. (CM5 Boot Loader V1.41)<br />-Ffffffffffffffffffffffff]fffffff<br />-*0@P..//\msxU-X<br />-d<br />-<br />-<br />-t<br />Bad Command. (‘help’ for commands definition)<br />-e<br />Bad Command. (‘help’ for commands definition)<br />-‘r<br />-c<br />-.&amp;W<br />-8P@0?!000_pa00<br />-fwi’<br />-<br />-[Error:RxD Timeout]<br />Bad Command. (‘help’ for commands definition)<br />-<br />-[Errog Header]<br />Bad Command. (‘help’ for commands definition)<br />-<br />-[Error: TxID !=RxID]<br />Bad Command. (‘help’ for commands definition)<br />-<br />-[Error: Wrong Length]<br /><br />Bad Command. (‘help’ for commands definition)<br />-<br />-<br />-[Error: Wrong CheckSum] (LEN:<br />Bad Command. (‘help’ for commands definition)<br />-<br />-RS232: BPS. RS485: BPS.<br /><br />\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\<br /><br /><br /><span style="font-weight: bold">Please I need to kown what is the problem??<br /><br />Regards</span><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2541">Asiya</a> — Mon Jan 17, 2011 11:53 am</p><hr />
]]></content>
</entry>
</feed>