purejavacomm icon indicating copy to clipboard operation
purejavacomm copied to clipboard

PureJavaSerialPort initializing fails for STM32 Virtual USB COM Port Driver

Open sg26565 opened this issue 7 years ago • 0 comments

PureJavaSerialPort cannot be used with the STM32 Virtual USB COM Port Driver on Windows because the driver does not support the SetCommState function in kernel32.dll and always returns error 87 (ERROR_INVALID_PARAMETER) regardless of the parameters passed to the function.

The open method of jtermios.windows.JTermiosImpl should provide an option to bypass the SetCommState call or to ignore any error generated by this function.

sg26565 avatar Jan 16 '18 19:01 sg26565