Skip to content

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

Open
@budryerson

Description

@budryerson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions