by StuartL » Thu May 15, 2008 3:25 pm
by StuartL
Thu May 15, 2008 3:25 pm
Waiting one second between commands doesn't help the buffer overflow problem, it's the rate at which the CM5 is receiving the data that's the problem.
If there's a buffer bug (we had one in our library for a long time without noticing) it could be unpredictable and weird in its symptoms. If they're using a ring buffer, for example, the problem could occur as an off-by-one error on the wrap-around of the ring buffer. Our problem wasn't dissimilar to this, it was a race condition during interrupt handling causing the library to lose track of the byte it was sending for a few machine cycles and ended up retransmitting the whole packet halfway through the original retransmission.
With regard to the USB2Dynamixel, just cascade the Dynamixels like you would normally. The 'bus' is just that, a bus. Therefore if you can provide the current into the connector that your Dynamixels need to operate just daisy chain them as necessary. The 6-way star connector is very useful in this regard.
Waiting one second between commands doesn't help the buffer overflow problem, it's the rate at which the CM5 is receiving the data that's the problem.
If there's a buffer bug (we had one in our library for a long time without noticing) it could be unpredictable and weird in its symptoms. If they're using a ring buffer, for example, the problem could occur as an off-by-one error on the wrap-around of the ring buffer. Our problem wasn't dissimilar to this, it was a race condition during interrupt handling causing the library to lose track of the byte it was sending for a few machine cycles and ended up retransmitting the whole packet halfway through the original retransmission.
With regard to the USB2Dynamixel, just cascade the Dynamixels like you would normally. The 'bus' is just that, a bus. Therefore if you can provide the current into the connector that your Dynamixels need to operate just daisy chain them as necessary. The 6-way star connector is very useful in this regard.