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 it. it alway return an error which called "read /dev/tty.usbserial1: interrupted system call". i've tried serveral time but Disappointing results. any suggestions? looking forward to your reply.
I running it on macOS sierra 10.12.6, here is the code:
`import (
"fmt"
"github.com/jacobsa/go-serial/serial"
"log"
"testing"
)
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 it. it alway return an error which called "read /dev/tty.usbserial1: interrupted system call". i've tried serveral time but Disappointing results. any suggestions? looking forward to your reply.
I running it on macOS sierra 10.12.6, here is the code: `import ( "fmt" "github.com/jacobsa/go-serial/serial" "log" "testing" )
func TestSerialData(t *testing.T) { // Set up options. options := serial.OpenOptions{ PortName: "/dev/tty.usbserial1", BaudRate: 19200, DataBits: 8, StopBits: 1, MinimumReadSize: 4, }
}`