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

<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>2007-05-27T22:27:05+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=1403</id>
<entry>
<author><name><![CDATA[JonHylands]]></name></author>
<updated>2007-05-27T22:27:05+01:00</updated>
<published>2007-05-27T22:27:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1403&amp;p=9240#p9240</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1403&amp;p=9240#p9240"/>
<title type="html"><![CDATA[Is this a valid instruction packet?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1403&amp;p=9240#p9240"><![CDATA[
The problem is you don't include the two header bytes in the checksum calculation...<br /><br />So, for turning it on:<br /><br />FF FF 04 04 03 19 01 DA<br /><br />checksum calc:<br /><br />= ~(4 + 4 + 3 + 25 + 1)<br />= ~(37)<br />= 218<br />= 0xDA<br /><br />for turning it off:<br /><br />FF FF 04 04 03 19 00 DB<br /><br />Also, you have to add all the values together, and then do the NOT calculation...<br /><br />- Jon<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=373">JonHylands</a> — Sun May 27, 2007 10:27 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Miamicanes]]></name></author>
<updated>2007-05-27T21:55:14+01:00</updated>
<published>2007-05-27T21:55:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1403&amp;p=9239#p9239</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1403&amp;p=9239#p9239"/>
<title type="html"><![CDATA[Is this a valid instruction packet?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1403&amp;p=9239#p9239"><![CDATA[
Is this a valid instruction packet? It's supposed to turn on Dynamixel #4's LED by writing a '1' to location 0x19:<br /><br />0xff<br />0xff<br />0x04 (address = 4)<br />0x04 (length = 2 parameters + 2 = 4)<br />0x03 (instruction = WRITE)<br />0x19 (LED = register 0x19)<br />0x01 (new value = 1)<br />0xD6 (checksum)<br /><br />checksum calculated by:<br />~0xff = 0x00<br />~0xff = 0x00<br />~0x04 = 0xfb<br />~0x04 = 0xfb<br />~0x03 = 0xfc<br />~0x19 = 0xe6<br />~0x01 = 0xfe<br />-------------<br />sum = 0x4D6<br />checksum byte thus = D6<br /><br /><br />It's not working, and before I start ripping apart the interface circuit, I want to make sure I'm at least sending a valid datagram <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=456">Miamicanes</a> — Sun May 27, 2007 9:55 pm</p><hr />
]]></content>
</entry>
</feed>