by Pev » Thu Aug 24, 2006 8:39 am
by Pev
Thu Aug 24, 2006 8:39 am
Hi,
I have been investigating the ZigBee port with a view to hijacking the connections and putting a Bluetooth module in it's place. This is what I have found so far.
The Zigbee port appears to run at 57600 baud, 8 bit, 1 stopbit, No Parity and with no flow control as we would probably all expect. The connection has a 8 connections with connection 1 being ground, and 7 and 8 being TX and RX. (Can never remember which way round those 2 are lol). I believe that with teh ZigBee100 plugged in there is the opportunity to reset the port Baud rate but without it it looks like its just 57600.
Firstly, I hooked up a TTL level shifter to the port by tacking the wires in place with a tiny bit of solder and just powered up the CM-5. I got the familiar banner you get in the BCP program play mode out of the Zigbee port. I think started sending data out of the port and all seemed well, although I couldn't quite get my head around the packet format.
Had a lot of trouble getting my incoming packets to trigger the CM-5 remcon RX Data incoming flag so I dropped a line to Robotis.
THey kindly supplied the Zigbee packet format which is
0xFF 0x55 DATA1 ~DATA1 DATA2 ~DATA2
where ~ represents the inverse or compliment of the original value. Thus to send an A (0x41) the packet would be:
0xFF 0x55 0x41 0xBE 0x00 0xFF
This definately triggers the RX Data Incoming flag. However at the present time if I read the data or attempt to use it in a simple If statement to turn on the AUX LED I get the LED turning on then the CM-5 drops out of play mode and I get an ERROR:000A reported by the CM-5.
So some progress that I wanted to share in the hope that there may be some other, clever people out there investigating this and who may have worked around the ERROR:000A issue. I have sent details to Robotis asking for advice. When I hear I'll update the thread.
Pev
Hi,
I have been investigating the ZigBee port with a view to hijacking the connections and putting a Bluetooth module in it's place. This is what I have found so far.
The Zigbee port appears to run at 57600 baud, 8 bit, 1 stopbit, No Parity and with no flow control as we would probably all expect. The connection has a 8 connections with connection 1 being ground, and 7 and 8 being TX and RX. (Can never remember which way round those 2 are lol). I believe that with teh ZigBee100 plugged in there is the opportunity to reset the port Baud rate but without it it looks like its just 57600.
Firstly, I hooked up a TTL level shifter to the port by tacking the wires in place with a tiny bit of solder and just powered up the CM-5. I got the familiar banner you get in the BCP program play mode out of the Zigbee port. I think started sending data out of the port and all seemed well, although I couldn't quite get my head around the packet format.
Had a lot of trouble getting my incoming packets to trigger the CM-5 remcon RX Data incoming flag so I dropped a line to Robotis.
THey kindly supplied the Zigbee packet format which is
0xFF 0x55 DATA1 ~DATA1 DATA2 ~DATA2
where ~ represents the inverse or compliment of the original value. Thus to send an A (0x41) the packet would be:
0xFF 0x55 0x41 0xBE 0x00 0xFF
This definately triggers the RX Data Incoming flag. However at the present time if I read the data or attempt to use it in a simple If statement to turn on the AUX LED I get the LED turning on then the CM-5 drops out of play mode and I get an ERROR:000A reported by the CM-5.
So some progress that I wanted to share in the hope that there may be some other, clever people out there investigating this and who may have worked around the ERROR:000A issue. I have sent details to Robotis asking for advice. When I hear I'll update the thread.
Pev