We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to connect to a serial port from Windows Subsystem for Linux, this is not possible.
The code:
c, err := serial.Open(port, serial.WithBaudrate(9600), serial.WithParity(serial.NoParity),serial.WithDataBits(8),serial.WithStopBits(serial.OneStopBit), serial.WithReadTimeout(1000)) defer c.Close() if err != nil { fmt.Print(port+" ") fmt.Println(err) }
gives the error:
/dev/ttyS3 operating system error: inappropriate ioctl for device
If the code is compiled for Windows the connection is possible. Connecting to the serial console from WSL using screen is also possible. Any ideas?
The text was updated successfully, but these errors were encountered:
@marcelb98 I don enough time to investigate it, sorry. But will be glad to accept a PR if you or someone consider to make it.
Sorry, something went wrong.
No branches or pull requests
When I try to connect to a serial port from Windows Subsystem for Linux, this is not possible.
The code:
gives the error:
If the code is compiled for Windows the connection is possible. Connecting to the serial console from WSL using screen is also possible. Any ideas?
The text was updated successfully, but these errors were encountered: