serial-rs icon indicating copy to clipboard operation
serial-rs copied to clipboard

Rust library for interacting with serial ports.

Results 26 serial-rs issues
Sort by recently updated
recently updated
newest added

Hi, this useful crate is used in projects like `linux-embedded-hal` and others. Hence I stumbled upon it :) There has however not been any activity for years now and there...

From the example on the home page: https://github.com/dcuddeback/serial-rs/tree/master/serial rustc -V --> rustc 1.72.1 ``` Compiling rust_serial v0.1.0 (C:\Users\r\GitHub\rust_serial) error: use of deprecated `try` macro --> src\main.rs:18:5 | 18 | /...

For the `std::io::Write` implementation on `TTYPort`, a `*const` ptr is cast to `*mut`: https://github.com/dcuddeback/serial-rs/blob/cb28b1439a5653f1777ad11d85d37f2c8074259b/serial-unix/src/tty.rs#L149 This is unnecessary, as [`libc::write`](https://docs.rs/libc/0.2.146/libc/fn.write.html) takes `buf: *const c_void`, so `buf.as_ptr() as *const c_void` would work...

Lib read Implementation receives Bytes based on the Length and not on Capacity. Receiving Bytes must be smaller or equal to Bytes send. Added read_to_end, to use same Buffer for...

Everything is working fine, but the strange thing is that I can't receive \x11 bytes of data. The data I receive is [EF, AA, 01, 00, 01, 01, 00, 00,...

This function set_timeout() seems to be required? If I want to set it to not timeout how should I set it?