mbed-os/TESTS/usb_device/serial
Filip Jagodzinski 07ffcb4269 Tests: USB: Fix USB reconnect tests for Win hosts 2019-02-22 10:53:20 -06:00
..
README.md Tests: USB: Add tests for CDC class. 2019-02-22 10:53:20 -06:00
main.cpp Tests: USB: Fix USB reconnect tests for Win hosts 2019-02-22 10:53:20 -06:00

README.md

udev rules for Mbed USB CDC device

Before running tests-usb_device-serial test suite on Debian-based Linux distros, make sure to update the udev rules as follows:

sudo tee /etc/udev/rules.d/99-ttyacms.rules >/dev/null <<EOF
ATTRS{idVendor}=="1f00" ATTRS{idProduct}=="2013", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1f00" ATTRS{idProduct}=="2012", ENV{ID_MM_DEVICE_IGNORE}="1"
EOF
sudo udevadm control --reload-rules

This will prevent the ModemManager daemon from automatically opening the port and sending the AT commands, which it does for every new /dev/ttyACM device registered in system.