Thanh Le / bench notes
ROBOTICS · ROBOT HUB · IN PROGRESS

DYNAMIXEL servos (MX-28, AX-12A)

Smart servos on one half-duplex bus, and what their Python SDK really puts on the wire

#robotics#servo#python
Last change2026-11-22: hub page with one STAR write-up

DYNAMIXEL servos (MX-28, AX-12A)

DYNAMIXEL cover: 6 of 6 e-manual packets match All 6 e-manual packet examples match on a fake port, and two SDK bugs fell out of it.

One Goal Position write and its status reply, byte by byte

A DYNAMIXEL is a servo you talk to with packets instead of a PWM pulse. Motor, gearbox, encoder, H-bridge, a small MCU and a serial transceiver sit in one case, and up to 253 of them hang on one half-duplex bus, each with its own ID. You can read back position, load, voltage and temperature, which is exactly what my old thesis robot never had.

I have a few MX-28 and AX-12A. They’re the servos my humanoid model is built around (MX-28 in the legs, AX-12A in the arms), and I’d like to use them for a 3D-printed arm too. The MX-28 is the older “academy” generation: a Maxon coreless motor, a 12-bit magnetic encoder (4096 counts per turn), metal gears, 12 V. With the original firmware it speaks Protocol 1.0, with the MX(2.0) firmware Protocol 2.0 and a different control table. The AX-12A only speaks 1.0.

What I don’t have yet is the USB adapter (a U2D2). A scan with my old Python scripts in August 2025 found no motor, and I never got further on the hardware side. So everything below was measured on my PC: the real ROBOTIS SDK, driven against a fake serial port that records every byte.

The stories

#StoryResultStatus
1 Two bugs in the DynamixelSDK Python package, found with no servo plugged in
A fake serial port under the real SDK: every e-manual example matches, byte stuffing silently doesn't happen, and Bulk Read on Protocol 1.0 crashes
All 6 e-manual packet examples match byte for byte; a write of FF FF FD goes out unstuffed (LEN 9, not 10); GroupBulkRead on Protocol 1.0 raises TypeError Done

Still open

Everything that needs a servo: which firmware my MX-28s run (that decides Protocol 1.0 or 2.0), real round-trip times on the bus with Return Delay 0 and a 1 ms USB latency timer, and whether the profile and PID behave like the e-manual says. I also want to report the two SDK bugs upstream, which I haven’t done yet.