I hope this is the right place for this topic.
I am running Linux Mint Victoria, and after swapping the SSD from an old desktop to a newer one, the arduino IDE can't find the USB port for the Arduino board.
I have googled this extensively , and ran as many of the command lines in a terminal to try and resolve my problem.
I've restarted my pc with the Arduiono still plugged in.
I've tried ls /dev/tty*, as well as dmesg | tail -f, and unplugging the bard , then running dmesg | tail -f again to see if there was any difference, but there was not. When I ran ls /dev/tty* ttyS4 is listed but when I try to upload a sketch, I get this:
avrdude: stk500_recv(): programmer is not responding.
What does this mean, exactly? Does it mean that when you unplug/plug your cable in that you're not seeing any new output from dmesg? Or does it mean that you see the same output when you plug it in and unplug it? Or does it mean something else entirely?
Yes the led on the Arduino lights up, and other devices work fine in the same USB port
And just for information
dmesg | grep tty
[ 0.095780] printk: legacy console [tty0] enabled
[ 0.417931] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.441127] 0000:00:16.3: ttyS4 at I/O 0x3060 (irq = 19, base_baud = 115200) is a 16550A
And this:
lsusb
Bus 002 Device 003: ID 0bda:0328 Realtek Semiconductor Corp. USB3.0-CRW
Bus 002 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 004: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 001 Device 003: ID 1bcf:08a0 Sunplus Innovation Technology Inc. Gaming mouse [Philips SPK9304]
Bus 001 Device 002: ID 046a:0023 Cherry GmbH Keyboard
Bus 001 Device 005: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So the Arduino's getting power, and the port works. That pretty much leaves a power only cable (or one with a damaged data line). Could be a bad USB chip/connector on the Arduino too I suppose.
Yes you could be right there, but as I have only got the one , I'll have to get another.
I tried another Arduino Uno, and get this when trying to install bootloader
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
Just ran this with the other Arduino plugged in:
dmesg | grep tty
[ 0.095780] printk: legacy console [tty0] enabled
[ 0.417931] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.441127] 0000:00:16.3: ttyS4 at I/O 0x3060 (irq = 19, base_baud = 115200) is a 16550A
[19138.559053] cdc_acm 1-10.1:1.0: ttyACM0: USB ACM device
[19139.807098] cdc_acm 1-10.1:1.0: ttyACM0: USB ACM device
[19141.869657] cdc_acm 1-10.1:1.0: ttyACM0: USB ACM device
[19148.016027] cdc_acm 1-10.1:1.0: ttyACM0: USB ACM device
And this:
dmesg | tail -f
[19141.869657] cdc_acm 1-10.1:1.0: ttyACM0: USB ACM device
[19142.268577] usb 1-10.1: USB disconnect, device number 9
[19146.472800] usb 1-10.1: new full-speed USB device number 10 using xhci_hcd
[19147.808829] usb 1-10.1: device descriptor read/64, error -32
[19148.007665] usb 1-10.1: New USB device found, idVendor=2341, idProduct=0043, bcdDevice= 0.01
[19148.007677] usb 1-10.1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[19148.007683] usb 1-10.1: Manufacturer: Arduino (www.arduino.cc)
[19148.007688] usb 1-10.1: SerialNumber: 75830333737351B0C0A0
[19148.016027] cdc_acm 1-10.1:1.0: ttyACM0: USB ACM device
[19148.157050] usb 1-10.1: USB disconnect, device number 10
So this Arduino is being recognised , but the IDE doesn't see the port ttyACM0.
Is your username in the group dialout. It needs to be to access the serial port.
Not sure if your error msg means you can't access your serial port though.
My username is in the group dialout, and when I select either ttyS0 or ttyS4 , which is listed when I run
dmesg | grep tty
[ 0.095631] printk: legacy console [tty0] enabled
[ 0.417609] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.440891] 0000:00:16.3: ttyS4 at I/O 0x3060 (irq = 19, base_baud = 115200) is a 16550A
The 16550A is a hardware serial port inside your computer and has nothing to do with Arduinos.
lsusb does not recognise your board, dmesg does not give any reaction when you plug / unplug the board so /dev/ttyS4 is not your board.
Are you sure that the cable that you use is good? Try another cable.
Can you test the board on another computer (friend, family) to make sure that the board is OK; it does not have to run Linux.
I have ordered a new cable to see if that makes any difference.
I tried on another linux, ubuntu, computer, but there was a problem running some of the commands, and after I installed or downloaded the ide file , no ports were listed.
dmesg | tail -f
[ 10.741316] e1000e 0000:00:1f.6 eno1: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[12159.879740] usb 1-10.1: new full-speed USB device number 6 using xhci_hcd
[12159.971595] usb 1-10.1: New USB device found, idVendor=2341, idProduct=0043, bcdDevice= 0.01
[12159.971608] usb 1-10.1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[12159.971614] usb 1-10.1: Manufacturer: Arduino (www.arduino.cc)
[12159.971619] usb 1-10.1: SerialNumber: 75830333737351B0C0A0
[12159.993830] cdc_acm 1-10.1:1.0: ttyACM0: USB ACM device
[12159.993856] usbcore: registered new interface driver cdc_acm
[12159.993858] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[12160.364086] usb 1-10.1: USB disconnect, device number 6
That the arduino is on port? ttyACM0, but yet the ide does not list that port, only ttyS0 and ttyS4