https://github.com/araffin/cpp-arduino-serial
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 C++ implementation.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.1%) to scientific vocabulary
Keywords
Repository
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 C++ implementation.
Basic Info
Statistics
- Stars: 18
- Watchers: 3
- Forks: 4
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Robust Arduino Serial Protocol in C++
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:
Dependency
Dependency (libserial):
bash
sudo apt-get install libserial-dev
Examples
To build the two examples, run the build.sh inside the examples/ directory, the binaries will be located in the bin/ folder.
Read write in a file
bash
./file_read_write.x
If you want to use command_parser and serial_reader with a real Arduino, you need to flash it with this code:
Arduino Source Code
Run the command parser to send order to the Arduino (optional: you can run it using rlwrap):
bash
./command_parser.x
Idem for listening to the serial port (for now during 30 seconds, it can be changed in the serialreader.h) ```bash ./serialreader.x ```
Owner
- Name: Antonin RAFFIN
- Login: araffin
- Kind: user
- Location: Munich
- Company: @DLR-RM
- Website: https://araffin.github.io/
- Twitter: araffin2
- Repositories: 21
- Profile: https://github.com/araffin
Research Engineer in Robotics and Machine Learning, with a focus on Reinforcement Learning.
GitHub Events
Total
- Issues event: 2
- Issue comment event: 1
- Push event: 2
- Pull request event: 2
- Create event: 1
Last Year
- Issues event: 2
- Issue comment event: 1
- Push event: 2
- Pull request event: 2
- Create event: 1
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Antonin | a****n@e****r | 19 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 1
- Total pull requests: 1
- Average time to close issues: about 5 hours
- Average time to close pull requests: 5 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: about 5 hours
- Average time to close pull requests: 5 minutes
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- billtubbs (1)
Pull Request Authors
- araffin (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v4 composite