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

CSTOPB set for a serial port in OS X 10.6 #9

Open
arsatiki opened this issue Mar 19, 2015 · 0 comments
Open

CSTOPB set for a serial port in OS X 10.6 #9

arsatiki opened this issue Mar 19, 2015 · 0 comments

Comments

@arsatiki
Copy link

My serial port, by default, has one stop bit. After opening it with term.Open, it is set to two.

In shell, stty -a -f /dev/cu.usbserial prints out the following cflags:

cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf

However, once I open the port (with RawMode), CSTOPB seems set. I added a debug print for termios.Tcgetattr(uintptr(t.fd), &attr): 36608. CSTOPB is 1024 on my computer and is therefore set.

I do not understand serial communication enough to figure out whether the issue pops up in the initialization of the port or somewhere else.

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

1 participant