Skip to content

Windows 10 No Data From UART over USB Device (ttyACM) #2903

Open
@Lif3line

Description

@Lif3line

SerialPort Version

12.0.0

Node Version

v18.14.2

Electron Version

30.0.1

Platform

Microsoft Windows NT 10.0.19045.0 x64

Architecture

x64

Hardware or chipset of serialport

No response

What steps will reproduce the bug?

  • Open new SerialPort instance for COM port of UART over USB device
  • See no data being read
    • Force read with .read returns null
  • Cross-check code on a standard UART device on a different COM port and data is seen
  • Cross-check with PuTTY for UART over USB device and data is seen
    • Potentially buffered differently; large dump of historical data when opening PuTTY
const port = new SerialPort({
    path: portPath,
    baudRate: 115200,
});

const parser = port.pipe(new ReadlineParser({ delimiter: "\n" }));
parser.on("data", (data) => {
  console.log(data);
}

UART over USB driver (no data seen from SerialPort):
image

Another random UART device driver (works as expected):
image

What happens?

No data events or data available to read

What should have happened?

Data events should be flowing along pipe

Additional information

Only occurs on Windows, same device under Mac or Linux (Ubuntu) works as expected. Shows as a ttyACM device

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