Arduino not detected on USB port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
arduino (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
My original Arduino Uno R3 is detected by the kernel when connected to a USB port:
$ tail -2 /var/log/kern.log
kernel: [ 611.954962] usb 8-1: new full-speed USB device number 5 using uhci_hcd
kernel: [ 612.158006] cdc_acm 8-1:1.0: ttyACM0: USB ACM device
The device is created:
$ ls -la /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Sep 23 14:08 /dev/ttyACM0
I have read/write access to the device (I just rebooted, so the groups are current):
$ groups | grep -o '\bdialout\b'
dialout
I can talk to the device - The following command results in reboot-like activity on the Arduino built-in LEDs:
$ echo ciao > /dev/ttyACM0
At this point, however, I'm not able to use this device with the Arduino IDE:
1. Tools -> Serial Port is grayed out
2. When starting arduino from the command line, there's a RXTX version mismatch:
$ arduino
Stable Library
=======
Native lib Version = RXTX-2.2pre2
Java lib Version = RXTX-2.1-7
WARNING: RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2pre2
3. Trying to upload a program results in the following error message:
processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at java.lang.
The first symbolic link workaround proposed at http://
$ sudo ln -s /dev/ttyACM0 /dev/ttyUSB0
Now I can see /dev/ttyUSB0 in Arduino IDE, and I'm able to upload programs despite the RXTX version mismatch.
The second workaround proposed at the same place did *not* work. After applying it and rebooting:
$ cat /etc/udev/
KERNEL=="ttyACM*", ATTRS{product}
$ ls -l /dev/ttyACM0 /dev/ttyUSB0
ls: cannot access /dev/ttyUSB0: No such file or directory
crw-rw---- 1 root dialout 166, 0 Sep 23 14:22 /dev/ttyACM0
Could it be that it's not recognized as an Arduino device?
$ lsusb | grep --ignore-case arduino || echo none
none
However:
$ sudo lsusb -v | grep --ignore-case arduino || echo none
iManufacturer 1 Arduino (www.arduino.cc)
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: arduino 1:1.0+dfsg-9
ProcVersionSign
Uname: Linux 3.2.0-31-generic x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Sun Sep 23 14:05:30 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:en
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: arduino
UpgradeStatus: No upgrade log present (probably fresh install)
Also, running arduino as root did not help, as suggested elsewhere <http:// blog.markloisea u.com/2012/ 05/install- arduino- ubuntu/>.