mbed serial device name on Linux

17 Sep 2010

On my Ubuntu 9.10 Linux (kernel 2.6.31), the mbed serial device installs itself as /dev/ttyACM0 the first time it is plugged in, but each time it is unplugged and replugged the device number increments by 1 (ttyACM1, ttyACM2, etc.). Does anybody know how to fix this annoying behavior? Preliminary investigation suggests that the problem is that the cdc-acm driver does not receive a hangup message when the mbed is unplugged. Presumably this is a udev problem, which can be remedied by writing a new udev rule. But perhaps someone else has already done this, and I can save myself some trouble.

02 Oct 2010

Did you umount the MBED file system, or right-click on the MBED drive icon and eject the drive, before you unplugged the MBED device?  When I do this, I don't see the behavior you describe.

-Rod