Go Down

Topic: Weird Error opening serial port (Read 581 times) previous topic - next topic

morrowsend

Hi all,
I have been developing in linux using arduino for a while now.  I recently wanted to play with the arduino-tiny project, so I got the tiny2313 working (wouldn't program via serial) and attempted to talk to it through ArduinoISP.  I suddenly had a problem.

Every time I attempt to use my serial port ( /dev/ttyUSB0 ) I get the following error:

Code: [Select]
[color=red]processing.app.SerialException: Error opening serial port '/dev/ttyUSB0'.
at processing.app.Serial.<init>(Serial.java:146)
at processing.app.Serial.<init>(Serial.java:91)
at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:204)
at processing.app.Editor.handleSerial(Editor.java:2390)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:344)
at java.awt.Component.processMouseEvent(Component.java:6200)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5968)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4564)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4390)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4122)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4390)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:171)
at processing.app.Serial.<init>(Serial.java:136)
... 35 more[/color]



I have tried my cable on another machine and it works well.  I have also tried several other FTDI cables on my linux machine and I get the same error. In fact, it also happens when attempting to connect to the normal tty port (/dev/ttyS0).

This is only related to the Arduino IDE, however, because I can use other serial programs such as CuteCom, MoSerial Terminal, and Serial Port Terminal perfectly fine with the same cable.  I Attempted to update to Arduino 0022, and that didn't help (in fact the script to open arduinoint hat package doesn't work at all, I had to copy the script form 0021 into the 0022 folder to even get it to run for some reason, but that's another issue all together.)

The only thing I found about this problem was a post on the old italian arduinoBB from last year: http://translate.google.com/translate?hl=en&sl=it&tl=en&u=http%3A%2F%2Fwww.arduino.cc%2Fcgi-bin%2Fyabb2%2FYaBB.pl%3Fnum%3D1282845169  since it is archived I can't post there.

Any help would be greatly appreciated!

Coding Badly

Quote
Every time I attempt to use my serial port


"Use my serial port"?  Do you mean, "every time I attempt to upload a sketch"?

Go Up