SerialHalfDuplex problem

07 Feb 2012

Hello,

I have a problem with the current mbed version (38) of the SerialHalfDuplex. Version (28) works perfectly, I think the problem starts at version 29.

I am communicating with a few dynamixel MX-28 servos. When I use the old libraries the messages are transmitted and received without a problem.

However, when I use the current version the first byte I receive is the last byte I send. Below is an example of pinging servo number 4.

Quote:

New version

Write: 0xFF 0xFF 0x04 0x02 0x01 0xF8

Read: 0xF8 0xFF 0xFF 0x04 0x02 0x00 0xF9

Old version

Write: 0xFF 0xFF 0x04 0x02 0x01 0xF8

Read: 0xFF 0xFF 0x04 0x02 0x00 0xF9

The speed I am using is 3Mbps. I have not changed anything in the program except updating the mbed library.

Maybe this is related to http://mbed.org/forum/bugs-suggestions/topic/1874/

30 Sep 2012

Has anyone checked this issue? I still face the same problem. You can reproduce by using the latest mbed library version and the code in http://mbed.org/projects/libraries/api/mbed/trunk/SerialHalfDuplex