Skip to content

A simple and robust serial communication protocol. It was designed for Arduino but can be used for other purposes (e.g. bluetooth, sockets). This is the Rust implementation.

License

Notifications You must be signed in to change notification settings

araffin/rust-arduino-serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robust Arduino Serial Protocol in Rust

Build Status Build status Crates.io

robust_arduino_serial is a simple and robust serial communication protocol. It was designed to make two arduinos communicate, but can also be useful when you want a computer (e.g. a Raspberry Pi) to communicate with an Arduino.

This repository is part of the Robust Arduino Serial project, main repository: https://github.com/araffin/arduino-robust-serial

Please read the Medium Article to have an overview of this protocol.

Implementations are available in various programming languages:

Using the Crate

Please see Crates.io. You need to add only one line to your Cargo.toml.

Tests

Compile and run the tests:

cargo test

Documentation

Generate the documentation:

cargo doc --open

Examples

Read write in a file

cargo run --example file_read_write test.txt

Serial communication with an Arduino: Arduino Source Code

cargo run --example arduino_serial /dev/ttyACM0

Listen and send orders to the Arduino using threads:

cargo run --example arduino_threads /dev/ttyACM0

About

A simple and robust serial communication protocol. It was designed for Arduino but can be used for other purposes (e.g. bluetooth, sockets). This is the Rust implementation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages