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

Add higher baud rates to Unix termios #6781

Closed
vicuna opened this Issue Feb 16, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

commented Feb 16, 2015

Original bug ID: 6781
Reporter: berke.durak
Status: closed (set by @damiendoligez on 2015-02-24T20:53:03Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.01.0
Fixed in version: 4.02.2+dev / +rc1
Category: otherlibs

Bug description

Current version of otherlibs/unix/termios.c only goes up to 230400. I'm working on a project where we need 460800 and 921600.

Steps to reproduce

None

Additional information

Under Linux, /usr/include/bits/termios.h gives definitions up to B4000000.

Many devices use USB-to-serial converters to provide USB connectivity and use these higher speeds.

As a workaround, users can write a C stub to provide the extra settings.

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

commented Feb 24, 2015

Comment author: @damiendoligez

Done in 4.02 branch (rev 15864).

@vicuna vicuna closed this Feb 24, 2015

GreenArchon added a commit to GHGSat/lwt that referenced this issue Mar 21, 2019

unix_termios_conversion: Support for higher baud rates.
This makes Lwt_unix.tcsetattr/tcgetattr compatible with the
corresponding Unix library functions at higher baudrates.

See ocaml/ocaml#6781 for details.

GreenArchon added a commit to GHGSat/lwt that referenced this issue Mar 21, 2019

unix_termios_conversion: Support for higher baud rates.
This makes Lwt_unix.tcsetattr/tcgetattr compatible with the
corresponding Unix library functions at higher baudrates.

See ocaml/ocaml#6781 for details.

aantron added a commit to ocsigen/lwt that referenced this issue Mar 21, 2019

unix_termios_conversion: Support for higher baud rates. (#678)
This makes Lwt_unix.tcsetattr/tcgetattr compatible with the
corresponding Unix library functions at higher baudrates.

See ocaml/ocaml#6781 for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.