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

Support receiving breaks #31

Open
jessebraham opened this issue Feb 7, 2022 · 1 comment
Open

Support receiving breaks #31

jessebraham opened this issue Feb 7, 2022 · 1 comment
Labels
migrated This issue was migrated from GitLab posix This issue is specific to posix systems

Comments

@jessebraham
Copy link
Member

This issue was migrated from GitLab. The original issue can be found here:
https://gitlab.com/susurrus/serialport-rs/-/issues/116

In particular, to be able to set flag PARMRK in c_iflag so that a BREAK is expressed as a sequence of control characters:

When neither IGNBRK nor BRKINT are set, a BREAK
reads as a null byte ('\0'), except when PARMRK is set, in
which case it reads as the sequence \377 \0 \0.

https://man7.org/linux/man-pages/man3/termios.3.html

@jessebraham jessebraham added the migrated This issue was migrated from GitLab label Feb 7, 2022
@jessebraham jessebraham added the posix This issue is specific to posix systems label Mar 4, 2022
@DanielJoyce
Copy link

This a low level serial port library, we shouldn't do anything with the data. If you want to support this, it could go in a layer above.

Trying to wedge protocol support into the serial support is kinda why the serial internals of octoprint are a mess. Let's keep this seperate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migrated This issue was migrated from GitLab posix This issue is specific to posix systems
Projects
None yet
Development

No branches or pull requests

2 participants