I upgraded to Ubuntu 16.04 a while ago, and the solution in this thread stopped working. After some testing I got uploading to Sparki to work with the following, and at least for me both were needed:
- I did the solution in this thread (by lb_robotique). Under Ubuntu 16.04 the rules directory is called “rules.d”, but otherwise it works all the same.
[quote=“lb_robotique”]Solution for USB Leonardo (Sparki) on Linux (Ubuntu, …)
The problem is due to new linux, that try to scan tty port to found a modem and if not found it disable serial port.
You can see that by a tail -f /var/log/syslog and plug your sparki.
First is the booloader tty, 6 seconds after it is disconnected and board start in user code, the tty serial is plugged.
without patch, udev start modem detection and modem detection unplug tty.
a) Copy the file under, in root on directory :
/etc/udev/rules/
Filename :
77-modem-managers-arduino-leonardo.rules
b) do in root or make sudo
/etc/init.d/udev restart
c) was made by information found on this great Australian site :
freetronics.com.au/pages/leo … _uploading
d) Sorry for this bad globish , I’m french
.
[code]#
adapted from freetronics by laurent mardi 11/08/2015
#-----------------------------------------------
disable modem manager for usb arduino leonardo
#-----------------------------------------------
new linux version check for modem after plug an usb cdc device
this take time and after disable the cdc serial port.
----------- install ------
in root
copy this file in /etc/udev/rules/77-modem-managers-arduino-leonardo.rules
do : /etc/init.d/udev restart
Sparki ArcBotics : idVendor=27c2, idProduct=0003
ATTRS{idVendor}==“27c2”, ENV{ID_MM_DEVICE_IGNORE}=“1”
leonardo :idVendor=2341, idProduct=8036
ATTRS{idVendor}==“2341”, ENV{ID_MM_DEVICE_IGNORE}=“1”
Freetronics LeoStick :
ATTRS{idVendor}==“26ba”, ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}==“20a0”, ENV{ID_MM_DEVICE_IGNORE}=“1”
[/code][/quote]
AND
- "sudo usermod -a -G dialout " for those usernames that use Sparki. This was based on the guide under “Please Read…” at arduino.cc/en/Guide/Linux#toc6