Go Down

Topic: Ubuntu Karmic / Duemilanove / Unable to enumerate (Read 4136 times) previous topic - next topic

brummbaer456

Hi folks, I just got an Arduino Duemilanove (Atmega328) in the mail, and am having a helluva time getting it to connect. TIA for your assistance.

Symptoms:
OS: Ubuntu 9.10
Kernel: Linux badger-bait 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
avr-gcc version: 4.3.3
already removed brltty, installed all recommended software.
ran modprobe to load ftdi_sio
Plug the board in to the PC (a laptop, have tried ALL USB ports...), and the TX/RX ports blink quick, then the LED next to the big L below 13 & GND cycles in a blinking pattern (4 quick, pause, 4 quick, pause)

for what it's worth the IDE seems to load fine, run without errors, except that the serial section is greyed out under tools menu....

Here's the best diagnostics i could collect, just ask if i left something out. I've been able to find some other posts by folks with a similar issue, but never what was done to resolve it  :-/

dmesg
[ 1105.821364] usbcore: registered new interface driver usbserial
[ 1105.821388] USB Serial support registered for generic
[ 1105.821420] usbcore: registered new interface driver usbserial_generic
[ 1105.821424] usbserial: USB Serial Driver core
[ 1105.835444] USB Serial support registered for FTDI USB Serial Device
[ 1105.835565] usbcore: registered new interface driver ftdi_sio
[ 1105.835569] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
[ 1124.044083] usb 6-1: new full speed USB device using uhci_hcd and address 3
[ 1124.108094] hub 6-0:1.0: unable to enumerate USB device on port 1

ls /dev/tty*
/dev/tty    /dev/tty19  /dev/tty3   /dev/tty40  /dev/tty51  /dev/tty62
/dev/tty0   /dev/tty2   /dev/tty30  /dev/tty41  /dev/tty52  /dev/tty63
/dev/tty1   /dev/tty20  /dev/tty31  /dev/tty42  /dev/tty53  /dev/tty7
/dev/tty10  /dev/tty21  /dev/tty32  /dev/tty43  /dev/tty54  /dev/tty8
/dev/tty11  /dev/tty22  /dev/tty33  /dev/tty44  /dev/tty55  /dev/tty9
/dev/tty12  /dev/tty23  /dev/tty34  /dev/tty45  /dev/tty56  /dev/ttyS0
/dev/tty13  /dev/tty24  /dev/tty35  /dev/tty46  /dev/tty57  /dev/ttyS1
/dev/tty14  /dev/tty25  /dev/tty36  /dev/tty47  /dev/tty58  /dev/ttyS2
/dev/tty15  /dev/tty26  /dev/tty37  /dev/tty48  /dev/tty59  /dev/ttyS3
/dev/tty16  /dev/tty27  /dev/tty38  /dev/tty49  /dev/tty6
/dev/tty17  /dev/tty28  /dev/tty39  /dev/tty5   /dev/tty60
/dev/tty18  /dev/tty29  /dev/tty4   /dev/tty50  /dev/tty61

^^ notice no /dev/ttyUSB devices...

lsmod
Module                  Size  Used by
ftdi_sio               50276  0
usbserial              36264  1 ftdi_sio
cbc                     3516  236
aes_i586                8124  237
aes_generic            27484  1 aes_i586
ecb                     2524  1
binfmt_misc             8356  1
ppdev                   6688  0
dm_crypt               12928  0
joydev                 10240  0
snd_hda_codec_idt      59844  1
snd_hda_intel          26920  2
snd_hda_codec          75708  2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep               7200  1 snd_hda_codec
snd_pcm_oss            37920  0
snd_mixer_oss          16028  1 snd_pcm_oss
snd_pcm                75296  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
dell_wmi                2564  0
iptable_filter          3100  0
snd_seq_dummy           2656  0
ip_tables              11692  1 iptable_filter
x_tables               16544  1 ip_tables
dell_laptop             8128  0
dcdbas                  7292  1 dell_laptop
uvcvideo               59080  0
videodev               36736  1 uvcvideo
v4l1_compat            14496  2 uvcvideo,videodev
snd_seq_oss            28576  0
lib80211_crypt_tkip     8636  0
snd_seq_midi            6432  0
psmouse                56500  0
serio_raw               5280  0
snd_rawmidi            22208  1 snd_seq_midi
snd_seq_midi_event      6940  2 snd_seq_oss,snd_seq_midi
snd_seq                50224  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              22276  2 snd_pcm,snd_seq
snd_seq_device          6920  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
wl                   1272936  0
lib80211                6432  2 lib80211_crypt_tkip,wl
fglrx                1989532  34
lp                      8964  0
parport                35340  2 ppdev,lp
snd                    59204  16 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               7264  1 snd
snd_page_alloc          9156  2 snd_hda_intel,snd_pcm
usb_storage            52576  0
sky2                   46528  0
intel_agp              27484  0
agpgart                34988  2 fglrx,intel_agp
video                  19380  0
output                  2780  1 video

pluggy

Running modprobe may be your problem, and adding the ftdi driver when the default kernel already has it.  It just works, the problems I've had with Ubuntu usually revolve around Java.  Just plugging an arduino into the USB port with raw Ubuntu (7.04 or later) should bring up the /dev/ttyUSB* serial port.  
http://pluggy.is-a-geek.com/index.html

Augie

Was this issue ever resolved? I am having the same problem and have updated all the java packages mentioned on the Arduino Linux page along with everything else. Still the same problem greyed out serial port in the tools menu.

wayoda

Quote

Was this issue ever resolved? I am having the same problem and have updated all the java packages mentioned on the Arduino Linux page along with everything else. Still the same problem greyed out serial port in the tools menu.

If your board (or better the serial port to which it is connected) does not show up in the IDE this is not a problem with the Arduino IDE code.

Try this:
  • Open a console window
  • ls -all /dev/ttyUSB*
  • now plug your arduino in and do it again
  • ls -all /dev/ttyUSB*

The listing should now display one more entry (or it was empty on first try and now shows an entry).

If this is not the case look at the output of 'dmesg'. If there is any trouble with your board there should be an error message on one of the last lines printed to the console.
Eberhard

Augie

After ls -all /dev/ttyUSB* with the arduino unplugged and plugged in:

ls: cannot access /dev/ttyUSB*: No such file or directory

at the end of dmesg

[  421.520081] usb 2-1: new full speed USB device using ohci_hcd and address 2
[  421.700045] usb 2-1: device descriptor read/64, error -62
[  421.985043] usb 2-1: device descriptor read/64, error -62
[  422.248057] usb 2-1: new full speed USB device using ohci_hcd and address 3
[  422.432047] usb 2-1: device descriptor read/64, error -62
[  422.716052] usb 2-1: device descriptor read/64, error -62
[  422.996063] usb 2-1: new full speed USB device using ohci_hcd and address 4
[  423.404059] usb 2-1: device not accepting address 4, error -62
[  423.580053] usb 2-1: new full speed USB device using ohci_hcd and address 5
[  423.989059] usb 2-1: device not accepting address 5, error -62
[  423.989096] hub 2-0:1.0: unable to enumerate USB device on port 1

wayoda

Hi,
Quote

at the end of dmesg
[  421.520081] usb 2-1: new full speed USB device using ohci_hcd and address 2
[  421.700045] usb 2-1: device descriptor read/64, error -62
[  421.985043] usb 2-1: device descriptor read/64, error -62

62 is a timeout caused by the board not answering to the USB host on your computer.

If you can rule out a bad cable, and you have tried this on a different port and/or USB-Hub I'd say the USB2Serial chip on the board is dead.

Eberhard


Azelphur

#6
Aug 17, 2010, 03:57 pm Last Edit: Aug 17, 2010, 03:59 pm by Azelphur Reason: 1
Hi, resurrecting a slightly old thread (sorry) but I have /exactly/ the same problem as the person above, on Ubuntu 10.04 (Karmic)

[  984.280018] usb 2-1: new full speed USB device using ohci_hcd and address 61
[  984.461024] usb 2-1: device descriptor read/64, error -62
[  984.751268] usb 2-1: device descriptor read/64, error -62
[  985.040859] usb 2-1: new full speed USB device using ohci_hcd and address 62
[  985.220015] usb 2-1: device descriptor read/64, error -62
[  985.510054] usb 2-1: device descriptor read/64, error -62
[  985.800593] usb 2-1: new full speed USB device using ohci_hcd and address 63
[  986.221261] usb 2-1: device not accepting address 63, error -62
[  986.400851] usb 2-1: new full speed USB device using ohci_hcd and address 64
[  986.821346] usb 2-1: device not accepting address 64, error -62
[  986.821365] hub 2-0:1.0: unable to enumerate USB device on port 1

Things I have tried...
2 x Arduino Duemilanove (Atmega328)
3 x Different USB cables
7 x Different USB ports (2 Powered Hub, 1 extension cable, 4 directly into the back of the PC)
2 x Different computers (Ubuntu 10.04 Lucid Lynx 64bit, Ubuntu 10.04 Netbook remix) I'll try and get hold of a Windows machine from somewhere and test with that, if I can.
Unplugging all the cables to the Arduino

In the case of both Arduinos, I was able to get off a single flash of the "Blink" example, after this they never mounted properly again (Maybe my PC is bricking Arduinos?)

Getting a successful connection (IE Not unable to enumerate) is very rare. On Arduino #1 I got a successful connection once after the blink upload, and when I tried to upload a modified version of blink (Lower delay time, yay) it failed, I had this in dmesg.

[20619.790378] usb 1-4.4: new full speed USB device using ehci_hcd and address 37
[20619.910505] usb 1-4.4: configuration #1 chosen from 1 choice
[20619.913352] ftdi_sio 1-4.4:1.0: FTDI USB Serial Device converter detected
[20619.913385] usb 1-4.4: Detected FT232RL
[20619.913387] usb 1-4.4: Number of endpoints 2
[20619.913389] usb 1-4.4: Endpoint 1 MaxPacketSize 64
[20619.913391] usb 1-4.4: Endpoint 2 MaxPacketSize 64
[20619.913393] usb 1-4.4: Setting MaxPacketSize 64
[20619.913774] usb 1-4.4: FTDI USB Serial Device converter now attached to ttyUSB0
[21345.454358] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21345.456345] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21345.457339] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21345.458337] ftdi_sio ttyUSB0: urb failed to clear flow control
[21345.459338] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21345.460339] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21345.461338] ftdi_sio ttyUSB0: urb failed to clear flow control
[21345.462338] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21345.463449] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21345.464345] ftdi_sio ttyUSB0: urb failed to clear flow control
[21345.465340] ftdi_sio ttyUSB0: error from flowcontrol urb
[21345.474344] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21345.476340] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21345.477340] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21345.478349] ftdi_sio ttyUSB0: urb failed to clear flow control
[21345.479340] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21345.480340] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21345.481340] ftdi_sio ttyUSB0: urb failed to clear flow control
[21345.482340] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21345.483508] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21345.484351] ftdi_sio ttyUSB0: urb failed to clear flow control
[21345.485345] ftdi_sio ttyUSB0: error from flowcontrol urb
[21353.508034] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21353.510030] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.511027] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.512025] ftdi_sio ttyUSB0: urb failed to clear flow control
[21353.513037] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.514037] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.515032] ftdi_sio ttyUSB0: urb failed to clear flow control
[21353.516031] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.517030] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.518026] ftdi_sio ttyUSB0: urb failed to clear flow control
[21353.519028] ftdi_sio ttyUSB0: error from flowcontrol urb
[21353.551036] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21353.553030] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.554030] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.555030] ftdi_sio ttyUSB0: urb failed to clear flow control
[21353.556031] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.557029] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.558029] ftdi_sio ttyUSB0: urb failed to clear flow control
[21353.564037] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.565031] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.567030] ftdi_sio ttyUSB0: urb failed to clear flow control
[21353.819068] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21353.821053] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.822053] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.823053] ftdi_sio ttyUSB0: urb failed to clear flow control
[21353.824053] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21353.825054] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21353.826052] ftdi_sio ttyUSB0: urb failed to clear flow control
[21359.684568] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21359.685558] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21359.686559] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.113878] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21375.115877] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.116872] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.117872] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.118871] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.119871] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.120871] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.121871] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.122874] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.123875] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.127875] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21375.129872] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.130873] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.131873] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.132874] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.133873] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.134872] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.140874] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.141874] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.143879] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.275898] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[21375.277884] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.278886] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.279884] ftdi_sio ttyUSB0: urb failed to clear flow control
[21375.280885] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21375.281886] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21375.282885] ftdi_sio ttyUSB0: urb failed to clear flow control
[21381.142394] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[21381.143387] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[21381.144386] ftdi_sio ttyUSB0: urb failed to clear flow control
[21395.557871] usb 1-4.4: USB disconnect, address 37
[21395.558061] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[21395.558076] ftdi_sio 1-4.4:1.0: device disconnected

and this appeared at the bottom of the Arduino software

ioctl("TIOCMGET"): Broken pipe
ioctl("TIOCMGET"): Broken pipe
avrdude: stk500_recv(): programmer is not responding
ioctl("TIOCMGET"): Broken pipe

Anyone got any ideas? :)

Go Up