by Miamicanes » Sun May 27, 2007 9:55 pm
by Miamicanes
Sun May 27, 2007 9:55 pm
Is this a valid instruction packet? It's supposed to turn on Dynamixel #4's LED by writing a '1' to location 0x19:
0xff
0xff
0x04 (address = 4)
0x04 (length = 2 parameters + 2 = 4)
0x03 (instruction = WRITE)
0x19 (LED = register 0x19)
0x01 (new value = 1)
0xD6 (checksum)
checksum calculated by:
~0xff = 0x00
~0xff = 0x00
~0x04 = 0xfb
~0x04 = 0xfb
~0x03 = 0xfc
~0x19 = 0xe6
~0x01 = 0xfe
-------------
sum = 0x4D6
checksum byte thus = D6
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
Is this a valid instruction packet? It's supposed to turn on Dynamixel #4's LED by writing a '1' to location 0x19:
0xff
0xff
0x04 (address = 4)
0x04 (length = 2 parameters + 2 = 4)
0x03 (instruction = WRITE)
0x19 (LED = register 0x19)
0x01 (new value = 1)
0xD6 (checksum)
checksum calculated by:
~0xff = 0x00
~0xff = 0x00
~0x04 = 0xfb
~0x04 = 0xfb
~0x03 = 0xfc
~0x19 = 0xe6
~0x01 = 0xfe
-------------
sum = 0x4D6
checksum byte thus = D6
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