Society of Robots - Robot Forum
Software => Software => Topic started by: siempre.aprendiendo on May 21, 2010, 05:16:54 PM
-
I'm trying to write an ATMega2561 monitoring program that "hears" all the communication in the serial connection.
It's for the CM-510 controller (http://support.robotis.com/en/product/auxdevice/controller/cm510_manual.htm) of the Bioloid Premium kit, which use the ATMega2561 to control the AX-12 servos (which includes another AVR microcontroller)
Brief description about the protocol:
Protocol Type Half duplex Asynchronous Serial Communication (8bit,1stop,No Parity)
Link (Physical) TTL Level Multi Drop (daisy chain type Connector)
(Here (http://support.robotis.com/en/product/dynamixel/ax_series/dxl_ax_actuator.htm) more info about the bus protocol)
It should be possible because the CM-510 Robotis firmware includes a monitoring command, but they haven't published the source code.
I have been programming professionally for several years, mainly in C++, but I have very little experience with microcontrollers.
My final goal is to write a program which "hear" all the communications and answer the queries directed to him (id 200, 0xC8).
Could you help me please?
Thanks!
-
There is an excellent tutorial on USART(serial communication) on this website. Go through it. The good thing is the tutorial explains serial communication for AVR. It doesn't specifically answer your requirement, but if you go through and understand it, it should be difficult for you to write a serial monitoring program.
-
Thanks, Pratheek
I have managed to create a toss mode program, and then it's been very simple to create a "device mode" for CM-510.
It already answer queries for the IR sensors :)
Finally I have used the new Robotis libraries.