Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

How to use Sync Read in C++

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
2 postsPage 1 of 1
2 postsPage 1 of 1

How to use Sync Read in C++

Post by petercohen » Sun Apr 06, 2014 2:09 am

Post by petercohen
Sun Apr 06, 2014 2:09 am

Hello, could anybody please give an example on how to use sync read to read the position of several motors in C++? Thanks.
Hello, could anybody please give an example on how to use sync read to read the position of several motors in C++? Thanks.
petercohen
Savvy Roboteer
Savvy Roboteer
Posts: 58
Joined: Tue Jul 19, 2011 5:19 am

Re: How to use Sync Read in C++

Post by siempre.aprendiendo » Sun Apr 06, 2014 12:40 pm

Post by siempre.aprendiendo
Sun Apr 06, 2014 12:40 pm

Which sync read do you refer to?

There's no sync read in the Dynamixel 1.0 protocol, but Xevel's USB2AX, for example, implements one.

There is a sync read in the Dynamixel 2.0.

Basically you should send the proper hex sequence for the Dynamixel command and read the answers from the Dynamixel devices. At softwaresouls.com you can find simple examples about using Dynamixel commands, like this. Reading asynchronously the answers from the serial port is somewhat tricky if you have not do it before, do you use Windows or Linux?
Which sync read do you refer to?

There's no sync read in the Dynamixel 1.0 protocol, but Xevel's USB2AX, for example, implements one.

There is a sync read in the Dynamixel 2.0.

Basically you should send the proper hex sequence for the Dynamixel command and read the answers from the Dynamixel devices. At softwaresouls.com you can find simple examples about using Dynamixel commands, like this. Reading asynchronously the answers from the serial port is somewhat tricky if you have not do it before, do you use Windows or Linux?
siempre.aprendiendo
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 559
Joined: Wed Aug 08, 2007 9:13 pm
Location: Barcelona


2 postsPage 1 of 1
2 postsPage 1 of 1