Skip to content

Serial port not found /dev/ttyACM0 - Linux Mint 17 Qiana #2209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tr2000 opened this issue Jul 25, 2014 · 14 comments
Closed

Serial port not found /dev/ttyACM0 - Linux Mint 17 Qiana #2209

tr2000 opened this issue Jul 25, 2014 · 14 comments

Comments

@tr2000
Copy link

tr2000 commented Jul 25, 2014

Applied latest patch set from Mint and from then on the serial port cannot be found. I've followed previous posts, using each USB port in turn, checked 'groups' membership, and 2 Arduino UNO's, looked at the Windows 8 posts on driver permissions (not directly relevant for Linux), but continue to get the error messages (see below). I've even tried to remove and reinstall Arduino IDE.

I know the serial port is there, because 'chmod 777 /dev/ttyACM0' is successful, and if I send a txt file to that port, the RX LED flashes on the Arduino indicating the virtual port has been created and the Arduino is listening to it.
I now have NO ability to post sketches to my Arduino UNO's.
Errors from IDE during upload below:

processing.app.SerialException: Error opening serial port '/dev/ttyACM0'.
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:744)
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/ttyACM0'.
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:744)

@arndtele
Copy link

hey. have the same problem. did you find a solution?

@PaulStoffregen
Copy link
Contributor

This may be a silly question, but do you have the baud rate set to 14440 or 28880, which aren't standard rates supported by the Linux cdcacm driver?

@tr2000
Copy link
Author

tr2000 commented Nov 13, 2014

Sadly not - it's either in the "too hard" box, or it's something so simple, it's not even worth commenting back - either way, still not working...

On Thursday, 13 November 2014, 18:27, arndtele [email protected] wrote:

hey. have the same problem. did you find a solution?

Reply to this email directly or view it on GitHub.

@arndtele
Copy link

at this time i can say, that it is a problem of the group permissions. when i am using version 1.0.6 of arduino ide and use it as a su the programm works. otherwise as a normal user the programm doesn't works because a open error on /dev/ttyACM0. the device has a group permission RW for group dialout and the user is a member of group dialout.
the next test for me will be: i will change the owner of /dev/ttyACM0 to the user and will report the result.
program arduino1.0.5 doesn't work also using a su.
the computer is intel I5, Mint17_64.

@arndtele
Copy link

changing the ownerchip to the users doesn't bring the wanted efect.

@matthijskooijman
Copy link
Collaborator

Weird problem. If you do something like "cat /dev/ttyACM0" from a terminal, as your non-root user, does that work?

@arndtele
Copy link

the error is very 0 for me at this time. i have made a little sketch which echoes the input on the serial line. a programm sends sequentiell ascii data to /dev/ttyACM0. when i open arduino IDE and there the seriell monitor, i can see the echod data. when i start a programm routine on the IDE the programming fails. the permission of /dev/ttyACM0 is root rw, dialout rw, (660). i think, that it is perhaps a timing problem. but the permissions and the fact that su works, users not make no sense for me at this time.
i try everything on a sencond computer using same mint17_64(amd) with no problems.

@ffissore
Copy link
Contributor

Have you installed the IDE from Mint package manager? If so, is removing it and manually downloading and unzipping 1.5.8 an option [1]? In 1.5.x series, we changed the native serial library.

[1] http://arduino.cc/en/Main/Software#toc3

@arndtele
Copy link

@ffissore: thanks for your advice. i have installed 1.5.8. i could not recognize the problems before. but my sample sketch is using 38400Bd for communication. i did not found it in the serial monitor window. when want to change the serial monitor windows's baudrate the programm hangs until i kill the java task. i will try more the next days and report. thanks

@ffissore
Copy link
Contributor

ffissore commented Dec 1, 2014

@arndtele try making your sketch use a higher baudrate, 57600 for example

@arndtele
Copy link

arndtele commented Dec 1, 2014

@ffissore: trouble. i am using a component which have constant 38400Bd after entering the programming mode.. i am missing this baudrate in the seriell monitor's menue. 1.5.8 works fine.
no failures.

@ffissore
Copy link
Contributor

38400 has been restored with #2485
Download the latest nightly build to try it out http://arduino.cc/en/Main/Software#toc4

@tr2000
Copy link
Author

tr2000 commented Mar 2, 2015

Moved to Ubuntu 14.04 LTS - no problem with this on the same hardware (Arduino IDE now 1:1.0.5+dfsg2-2.).

@matthijskooijman
Copy link
Collaborator

@pgorellana, this issue is solved, why are you posting random advice here? Also, the symlink you suggest should never be needed for the Arduino IDE, it should detect both device names equally. Doing a+rw opens up the permissions for too much people, so I consider that harmful advice. The usermod might make sense, but that depends on the system. Better is to point people at https://www.arduino.cc/en/guide/linux#toc6 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants