Skip to content
New issue

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

Error opening serial port: SYS_IOCTL: inappropriate ioctl for device #45

Closed
bseishen opened this issue Jul 23, 2019 · 1 comment
Closed

Comments

@bseishen
Copy link

Trying to get this working in Windows Subsystem for Linux. "SYS_IOCTL: inappropriate ioctl for device" when trying to open the port.

@AlexxIT
Copy link

AlexxIT commented May 28, 2021

You need compile this little cpp app. And check output. Then change constants in code:

// Grab the constants with the following little program, to avoid using cgo:
//
// #include <stdio.h>
// #include <stdlib.h>
// #include <linux/termios.h>
//
// int main(int argc, const char **argv) {
// printf("TCSETS2 = 0x%08X\n", TCSETS2);
// printf("BOTHER = 0x%08X\n", BOTHER);
// printf("NCCS = %d\n", NCCS);
// return 0;
// }

Same problem on mips #27

But @philipgreat fix was very helpful.

@bseishen bseishen closed this as completed Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants