Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Summary of Problem
Not able to open port with stopbits as 1.5
I am currently building a desktop client using electron, where the COM port receives data correctly for values: baudRate: 2400, dataBits: 7, stopBits: 1.5, parity: 'none'
I found from the node-serialport documentation, stopBits Must be one of these: 1 or 2. But, should 1.5 be supported as well? especially for old & slow hardware.
I assume stopbits 1.5 is a valid value(https://en.wikipedia.org/wiki/Serial_port#Stop_bits)
I am still able to read data, when stopbits 1 is used, but is not as consistent when tested with 1.5(tested with pyserial)
Steps and Code to Reproduce the Issue
Package name(s) and version(s)
"serialport": "^6.2.2"
"electron": "~2.0.5"
Node version, Operating System and hardware
Node version: v8.11.3; Operating System: Ubuntu 18.04, Processor: Intel i7
Summary of Problem
When I pass stopbits values as 1.5 with the following options, to open serial port, I get the error:
{ baudRate: "2400", dataBits: "7", stopBits: "1.5", parity: 'none' }Steps and Code to Reproduce the Issue
Create a nodejs/electron application and open a serialport connection with stopbits value as 1.5.