go-serial icon indicating copy to clipboard operation
go-serial copied to clipboard

Error opening serial port: SYS_IOCTL: inappropriate ioctl for device

Open bseishen opened this issue 5 years ago • 1 comments

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

bseishen avatar Jul 23 '19 04:07 bseishen

You need compile this little cpp app. And check output. Then change constants in code: https://github.com/jacobsa/go-serial/blob/15cf729a72d49e837fa047a4142fa6e4d5ab45a1/serial/open_linux.go#L14-L25

Same problem on mips https://github.com/jacobsa/go-serial/issues/27

But @philipgreat fix was very helpful.

AlexxIT avatar May 28 '21 13:05 AlexxIT