serial-rs
serial-rs copied to clipboard
Rust library for interacting with serial ports.
serial-rs use `ioctl::tiocexcl(port.fd) `to set exclusive access to device. https://github.com/dcuddeback/serial-rs/blob/cb28b1439a5653f1777ad11d85d37f2c8074259b/serial-unix/src/tty.rs#L72 Since WSL1 does not support tiocexcl, this will cause rust-rs to not work under WSL1. Whether it is possible to...
This fixes a lot of warnings that occur in the latest edition, we should probably set the edition in the `Cargo.toml` s for the future (should I add that in...
The current read timeout behavior implemented by `serial-windows` differs significantly from the read timeouts of `serial-unix`. On Windows, read calls do not return immediately when bytes are/become available, but instead...
How can I detect the available com ports on *nix and Windows? Is this possible with this crate? I haven't found a function. I can check for com ports in...
I am using `serial-rs` on Linux (both Ubuntu and OpenWRT), so this mostly only applies to `serial-unix`. I use the [Calloop](https://github.com/Smithay/calloop/) event loop for event-driven systems. Under the hood (on...
A timeout of `None` means that operations will block indefinitely. This is similar to what [`std::net::TcpStream`](https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.set_read_timeout) does.
This depends on the PR I sent yesterday (dcuddeback/ioctl-rs#5). With these two, the tests pass.
This pull request contains code that allows setting custom bit rates on Linux, which is very useful for handling strange or proprietary protocols. For this to work, first https://github.com/dcuddeback/termios-rs/pull/8 needs...
Arbitrary baud rates—in particular 460800—are available on macOS using a special IOKit call. Kindly consider a special case ioctl call for them. Here is what pyserial does: ``` IOSSIOSPEED =...