Skip to content

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

Description

@arsatiki

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions