Back to Smartcitizen.me

Can no longer open the serial port

The serial port is a good way to see what’s going on, and originally whilst I faffed around with the wifi settings I was able to see device status reports, but I no longer can. Anyone on the team tell me how I might be able to get it back?

Debian Sid 3.12.9-1 with Arduino 1:1.0.5+dfsg2-1

dmesg tells me

[15415.876107] usb 1-1: new full-speed USB device number 2 using uhci_hcd
[15416.256116] usb 1-1: New USB device found, idVendor=1b4f, idProduct=9208
[15416.256122] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[15416.256126] usb 1-1: Product: LilyPadUSB
[15416.256128] usb 1-1: Manufacturer: SparkFun
[15416.268492] input: SparkFun LilyPadUSB as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.2/input/input20
[15416.268767] hid-generic 0003:1B4F:9208.0003: input,hidraw2: USB HID v1.01 Mouse [SparkFun LilyPadUSB ] on usb-0000:00:1d.0-1/input2
[15416.588532] cdc_acm 1-1:1.0: This device cannot do calls on its own. It is not a modem.
[15416.588608] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[15416.591303] usbcore: registered new interface driver cdc_acm
[15416.591306] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

But when I try and open the port with the Arduino IDE I get:

processing.app.SerialException: Error opening serial port ‘/dev/ttyACM0’.
at processing.app.Serial.(Serial.java:178)
at processing.app.Serial.(Serial.java:92)
at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:207)
at processing.app.Editor.handleSerial(Editor.java:2481)
at processing.app.Editor$17.actionPerformed(Editor.java:665)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:213)
at processing.app.Serial.(Serial.java:163)
… 42 more

Hi Cie,

Are you still experimenting problem with the serial port ?

I don’t have a Debian to try, so it’s a bit difficult to identify the problem to me.
Have you tried to reinstall the drivers ?
Also just to be sure the SCK is working fine… have you tried with another computer / OS ?

Alex, you can delete this thread. This is a Debian problem, nothing to do with the SCK which works just fine on a WIndows machine

ok. I keep the thread open as I think is good to share your experience here on the forum, this might be helpful for other Debian users. Keep us updated if you find a solution !