by Pev » Tue Dec 07, 2010 2:40 pm
by Pev
Tue Dec 07, 2010 2:40 pm
Not sure if anyone has done this yet but just in case anyone is interested I have just connected a Sparkfun BlueSmirf to the comms port on the CM510 and successfully send data to the unit.
The connection to the BlueSmirf is pretty straight forward. The pin allocations for the CM510's comm port are in the user guide that comes with RoboPlus. The comms plug is a little tricky to get hold of. I was lucky, I had a hunt in my scrap box and found an internal USB cable for a Shuttle XPC. One end had the correct plug but it was a 5 pin not a 4 pin. I removed all the metalwork from the housing and with a sharp knife as able to trim the plug to fit.
Having got the plug sorted and hooked up the BlueSmirf I had some trouble getting data to be recognised at the other end.
Firstly, this is a packetised format. The CM510 uses the same data packet format as the CM5, which is well documented (if you need it look for my original Bluetooth hack for the CM5 as that documentation contains the format).
Secondly, the CM510 defaults to expecting IR comms if the Zig110 is not pluged in, regardless of what else is plugged into the port. Thankfully, Robotis have already dealt with this, but unfortunately as my kit is a Bioloid Comprehensive with the Robosavvy upgrade I didn't have much documentation to refer to. Robotis kindly supplied me the answer, which is to set the RC100 Channel to 255 in the task program. This sets the comms port up for 57600 baud serial comms.
Once that was done it was all plain sailing, and my now very ancient BioBluePC program (which I really must update) can send data to the CM510
Hope this is useful
Pev
Not sure if anyone has done this yet but just in case anyone is interested I have just connected a Sparkfun BlueSmirf to the comms port on the CM510 and successfully send data to the unit.
The connection to the BlueSmirf is pretty straight forward. The pin allocations for the CM510's comm port are in the user guide that comes with RoboPlus. The comms plug is a little tricky to get hold of. I was lucky, I had a hunt in my scrap box and found an internal USB cable for a Shuttle XPC. One end had the correct plug but it was a 5 pin not a 4 pin. I removed all the metalwork from the housing and with a sharp knife as able to trim the plug to fit.
Having got the plug sorted and hooked up the BlueSmirf I had some trouble getting data to be recognised at the other end.
Firstly, this is a packetised format. The CM510 uses the same data packet format as the CM5, which is well documented (if you need it look for my original Bluetooth hack for the CM5 as that documentation contains the format).
Secondly, the CM510 defaults to expecting IR comms if the Zig110 is not pluged in, regardless of what else is plugged into the port. Thankfully, Robotis have already dealt with this, but unfortunately as my kit is a Bioloid Comprehensive with the Robosavvy upgrade I didn't have much documentation to refer to. Robotis kindly supplied me the answer, which is to set the RC100 Channel to 255 in the task program. This sets the comms port up for 57600 baud serial comms.
Once that was done it was all plain sailing, and my now very ancient BioBluePC program (which I really must update) can send data to the CM510
Hope this is useful
Pev