Open kimstik opened 9 months ago
Since the system is throwing unexpected requests, it looks like the problem is a little deeper in the stack.
In the code of serialwin32.py file, the GetCommState return code is not checked. But the return of SetCommState is checked and returns 0. Is it appropriate to throw SerialException in this case?
It seems "USB/CDC with unimplemented optional features" issue is know quite long time: SetCommState() returns FALSE GetLastError() returns 31 which is "A device attached to the system is not functioning".
I have my own minimalistic implementation of a USB CDC device stack. It does not implement any optional (as per ACM) class-specific request codes such as GET_LINE_CODING. The caps fields of ACM Functional Descriptor are set to zero accordingly.
There are no visible problems under Linux. Under Win10 it only works with the Bray terminal.
Simple code
hangs with error