Open jimbojsb opened 9 years ago
Have you tried giving it an absolute path?
port, err := options.Open("/dev/cu.usbmodem14131")
Sorry, yeah, It does have one. I messed that up when transcribing the example (actual path comes from a command line argument)
I haven't used this library in a while. I remember that it has issues with emulated devices from our last conversation (see closed issues). The underlying library has probably been updated since then.
Would you have the time to update libserialport? To get it to build with cgo I also added preprocessor directives on platform-dependent code.
On Jul 9, 2015, at 11:07 AM, Josh Butts notifications@github.com wrote:
Sorry, yeah, It does have one. I messed that up when transcribing the example (actual path comes from a command line argument)
— Reply to this email directly or view it on GitHub.
Given the following simple example of attempting to write to an Arduino Uno:
I get the following output:
My goal is to 1) be able to use 9600 8E1 instead of 8N1 (this go program is a simulator for a real world device that's hard to access, and only speak 8E1), and 2) Ideally completely turn off flow control in an effort to stop the Arduino auto-reboot on connect (less important). I took a look at serial.c but couldn't quite figure out how it'd get into that state, since I think it should be using no flow control at all by default.