Skip to content

Error opening serial port /dev/ttyACM0: Port not found #1119

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

Open
budryerson opened this issue May 24, 2025 · 0 comments
Open

Error opening serial port /dev/ttyACM0: Port not found #1119

budryerson opened this issue May 24, 2025 · 0 comments

Comments

@budryerson
Copy link

I'm running a fresh install of Ubuntu 25.04 on a RaspberryPi4B with Processing 4.4.4. I cannot get the serial ports to work. Here is a simple sketch:

import processing.serial.*;
Serial myPort;

void setup()
{
  println(Serial.list());
  String portName = Serial.list()[0];
  println(portName);
  myPort = new Serial(this, portName, 9600);
}

void draw()
{
}

Serial.list() appears to work correctly.
Console output:

/dev/ttyACM0
/dev/ttyACM0

I also get the red banner error code:
Error opening serial port /dev/ttyACM0: Port not found

I thought it might have something to do with permissions:

$ ls -l /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 May 24 11:52 /dev/ttyACM0

I am in both the dialout and the tty group.

$ groups budryerson
budryerson : budryerson adm tty dialout cdrom sudo dip plugdev users lpadmin

I've been beating my head against this for days, and I'm not getting anywhere. I turn to you, my friends, for help. Does anybody have any ideas?

Thanks,
Bud Ryerson
San Francisco

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

1 participant