Go Down

Topic: USB error and UBUNTU with arduino duemilanove (Read 848 times) previous topic - next topic

GregBoutis

Hi
I am trying to get the arduino duemilanove to communicate in UBUNTU. I am running Ubuntu 11.04.
I get the following error when trying the blink program:

Binary sketch size: 990 bytes (of a 30720 byte maximum)
processing.app.SerialException: Error opening serial port '/dev/ttyUSB0'.
   at processing.app.Serial.<init>(Serial.java:146)
   at processing.app.Serial.<init>(Serial.java:76)
   at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:75)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
   at processing.app.Sketch.upload(Sketch.java:1603)
   at processing.app.Sketch.exportApplet(Sketch.java:1568)
   at processing.app.Sketch.exportApplet(Sketch.java:1524)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
   at java.lang.Thread.run(Thread.java:679)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
   at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:171)
   at processing.app.Serial.<init>(Serial.java:136)
   ... 9 more
processing.app.debug.RunnerException: Error opening serial port '/dev/ttyUSB0'.
   at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:99)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
   at processing.app.Sketch.upload(Sketch.java:1603)
   at processing.app.Sketch.exportApplet(Sketch.java:1568)
   at processing.app.Sketch.exportApplet(Sketch.java:1524)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
   at java.lang.Thread.run(Thread.java:679)

Tried to reinstall Java; that didnt work.
Tried reinstalling Arduino software; that didnt work.
Nothing is connected to the board at the moment.
Also tried rebooting several times.

lsusb returns:

greg@greg-OptiPlex-GX280:~/Downloads/arduino-0022$ lsusb
Bus 005 Device 007: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 046d:c066 Logitech, Inc.
Bus 003 Device 003: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0634:3111 Micron Technology, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So it seems that it is connected ( Future Technology Devices is the arduino).

Any thoughts?



SurferTim

I installed the Arduino IDE from the Ubuntu repository first. Is that what you did? I recommend that first. Then you should be able to download v1.0.1 from the Arduino website.

The normal reason you cannot open the usb serial port is no permission. In my version (11.10) your user must be a member of the dialout group to open the arduino usb port. To see if you are currently a member of the dialout group, open a terminal and type "groups".

poliveira1978

you might do:

sudo chown -hRv <your username> /dev/ttyUSB0

perhof

Verify that the serial.debug_rate is set to 9600 in ~/.arduino/preferences.txt
If not, close the IDE, change the value in preferences.txt and then start the IDE again.

Go Up