Skip to content
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

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

Open
Lif3line opened this issue Sep 19, 2024 · 0 comments
Open

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

Lif3line opened this issue Sep 19, 2024 · 0 comments

Comments

@Lif3line
Copy link

Lif3line commented Sep 19, 2024

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

@Lif3line Lif3line changed the title Windows 10 No Data From USB Serial Device Windows 10 No Data From UART over USB Device Sep 19, 2024
@Lif3line Lif3line changed the title Windows 10 No Data From UART over USB Device Windows 10 No Data From UART over USB Device (ttyACM) Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant