modemmanager conflicts with arduino
I have a problem with modemmanager. I have a huawei e3372h usb stick lte and the arduino IDE. When I want to upload a code to arduino ,I get an error (---> port is busy). But when I write in terminal this command: sudo apt-get purge --auto-remove modemmanager ,then I have no more problems as about arduino IDE. But when I want to have internet connection from Huawei E3372H usb stick ,I can't ,because I maybe have to install modemmanager. So,I have this conflict. What should I do to solve this problem/conflict ???
~ Ubuntu 18.04 ~ Arduino IDE 1.8
Thanks!!!
1 Answer
You can try blacklisting the Arduino for modemmanager via udev rules:
- As root, create a new file e.g.
arduino-boards.rulesin /etc/udev/rules.d - Still as root, add the following line to the new file:
ATTRS{idVendor}=="2341", ENV{ID_MM_DEVICE_IGNORE}="1"
- Save the file, and then run:
sudo udevadm control --reload-rules
sudo udevadm trigger
Important: The "idVendor" number is valid only for Arduino boards. You can do the same for any other boards. The device usually advertises its vendor ID on connection in the syslog which you can check e.g. via dmesg.