TinyCircuits

General Category => General Discussion => Topic started by: littlejohn on September 28, 2018, 05:18:03 PM

Title: linux code upload and modemmanager
Post by: littlejohn on September 28, 2018, 05:18:03 PM
Another issue I had, just FYI:

I had alot of trouble uploading code to tinyscreen+ on Linux. Half the time it would fail or tell me the port was busy. This is due to ModemManager scoping out any serial ports to see if they are GSM modems. You can fix this by putting a udev rule something like this in /etc/udev/rules.d/77-arduino.rules

# stop modemmanager from checking every serial port for a modem.. it locks up the port
# for a few seconds and interferes with uploading.
#
# arduino
ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1"
# tinyscreen / atmel
ATTRS{idVendor}=="03eb", ENV{ID_MM_DEVICE_IGNORE}="1"

...as described here:
http://starter-kit.nettigo.eu/2015/serial-port-busy-for-avrdude-on-ubuntu-with-arduino-leonardo-eth/
Title: Re: linux code upload and modemmanager
Post by: Crinklaw on October 27, 2018, 06:19:23 AM
Did you find a solution for this? I can't seem to upload the code either.
Title: Re: linux code upload and modemmanager
Post by: littlejohn on October 27, 2018, 09:25:26 PM
Hi, yeah the solution for that specific problem is in my post above...  ;D

What kind of problem are you having exactly?