Access to serial port denied on Linux Mint

Hi,

It was running. My son and I have completed numerous projects. However, it has stopped working.

Connecting the Arduino Uno with a USB lead only. No power supply.

The correct device (Uno) appears in the Tools / Board.
The serial port is also now correct in Tools / Serial Port

We reinstalled everything using "sudo apt-get install --reinstall arduino arduino-core extra-xdg-menus arduino-mk"

We then try to compile the example sketch called Blink.

We have looked into Java and its availability on the machines and we get only help with enabling Java on web browsers. We are using NoScript on the web browsers.

We can compile successfully but when we go to download to the arduino uno we get:


Binary sketch size: 1,056 bytes (of a 32,256 byte maximum)
processing.app.SerialException: Error opening serial port '/dev/ttyUSB0'.
at processing.app.Serial.(Serial.java:178)
at processing.app.Serial.(Serial.java:77)
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:77)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
at processing.app.Sketch.upload(Sketch.java:1671)
at processing.app.Sketch.exportApplet(Sketch.java:1627)
at processing.app.Sketch.exportApplet(Sketch.java:1599)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
at java.lang.Thread.run(Thread.java:745)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:213)
at processing.app.Serial.(Serial.java:163)
... 9 more
processing.app.debug.RunnerException: Error opening serial port '/dev/ttyUSB0'.
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:101)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
at processing.app.Sketch.upload(Sketch.java:1671)
at processing.app.Sketch.exportApplet(Sketch.java:1627)
at processing.app.Sketch.exportApplet(Sketch.java:1599)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
at java.lang.Thread.run(Thread.java:745)


Any ideas ??

Cheers,

Steve

It might be a permission issue. It's too long ago that I had to dig deep into Linux to be of serious help; things have changed a lot.

You can try to add the user to the group that has permissions on /dev/ttyUSB0; I think that that would be preferred. Alternatively you can set the permissions on /dev/ttyUSB0 to 777 (not so preferred); in that case don't forget to remember the current permissions so you can set it back if needed.

With regards to the permission issue, you might be better of in a Linux (Mint) forum; they will more than likely be able to advice on the correct approach for changing them.

Thanks for your reply.

I have found something else.

I've reinstalled after purging and so I know I am using the software package in the Mint 17.2 repositories.

It seems the Arduino package when being used by a non-administrator is creating a lock file in /var/lock that stops the serial port being used ??

I can run the Arduino IDE from the desktop in the administrative account. I have a separate non-administrative account for my son on the same machine. I cannot run the Arduino package from this account.

Help still needed ...

Thanks so far ...

Look at the first answer