go-serial
go-serial copied to clipboard
A Go library for dealing with serial ports.
On OpenWRT : error opening port:%!(EXTRA *os.SyscallError=SYS_IOCTL: inappropriate ioctl for device)
Pretty sure this is a go-serial bug (due to TCSETS2 being hard coded ? ) : On OpenWRT, I get error opening port:%!(EXTRA *os.SyscallError=SYS_IOCTL: inappropriate ioctl for device) ... could...
I'm trying to send data with 2 stop bits (Linux/ARMv6 = Raspberry Pi 3 B+, stretch) and I'm positive I'm only getting just one. (Actually scoped timings with my audio...
If I open a serial port with the RTSCTSFlowControl parameter set to true, how can I check the status of CTS?
Similar to open_freebsd.go.
Hello, I tried exactly as the example (example the port name and add function read for recv data). I successfully write Byte array to port but failed to read from...
code: ``` options := serial.OpenOptions{ PortName: "/dev/ttyS1", BaudRate: 9600, DataBits: 8, StopBits: 1, MinimumReadSize: 4, } port, err := serial.Open(options) if err != nil { fmt.Printf("serial.Open: %v\n", err) return }...
Hello! In Linux, when we try to read from port and wait fo data, we have a io.EOF error, and can hande it. Code (simplified): ``` var n int =...
This resolve the high cpu caused by os.OpenFile as described here: https://github.com/golang/go/issues/22099
Hi, You might want to look at https://github.com/golang/go/issues/22099 I am running in the same issue with go-serial.