serialport / node-serialport

Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
https://serialport.io
MIT License
5.76k stars 1k forks source link

new SerialPort re-enables echo on serial port #2845

Open sbendt opened 2 weeks ago

sbendt commented 2 weeks ago

SerialPort Version

12.0.0

Node Version

v22.4.0

Electron Version

No response

Platform

Debian 11.10

Architecture

aarch64

Hardware or chipset of serialport

IMX8 internal

What steps will reproduce the bug?

disabled echo on serial port with: sudo stty -F /dev/ttymxc0 -echo

Started node application with sample content: var port = new SerialPort({ path: this.config.port, baudRate: this.config.baud_rate, dataBits: 8, parity:"none", stopBits:1}, async (error : Error | null) => { ... }

Echo was enabled when application started

What happens?

External system received the bytes it transmitted, causing failure.

What should have happened?

Echo functionality should not be enabled by new SerialPort, or have settings to disable.

Additional information

No response