1How to test `serialport-rs` for development. 2 3Without hardware: 4 5 1. Compilation 6 2. `cargo test` 7 8With a single unconnected device: 9 10`cargo run --example hardware_check <DEVICE>` 11 12And when wired in a physical loopback mode: 13 14`cargo run --example hardware_check <DEVICE> --loopback` 15 16With two devices connected to each other: 17 18 * `cargo run --example hardware_check <DEVICE1> --loopback-port <DEVICE2>` 19 * Also `cargo run --example heartbeat <DEVICE1> <BAUD>` in one terminal and 20 `cargo run --example receive_data <DEVICE2> <BAUD>` in another 21 22Can also verify trickier settings (like non-standard baud rates) using serial terminal programs 23like: 24 25 * `screen` (POSIX) 26 * [CoolTerm](http://freeware.the-meiers.org/) (macOS) 27 * [RealTerm](https://sourceforge.net/projects/realterm/) (Windows) 28