{"id":15664506,"url":"https://github.com/araffin/cpp-arduino-serial","last_synced_at":"2025-07-11T14:33:51.106Z","repository":{"id":112521622,"uuid":"127765030","full_name":"araffin/cpp-arduino-serial","owner":"araffin","description":"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. ","archived":false,"fork":false,"pushed_at":"2025-05-05T09:10:30.000Z","size":23,"stargazers_count":18,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-06T04:36:21.972Z","etag":null,"topics":["arduino","bluetooth","communication","cpp","protocol","raspberry-pi","serial","sockets"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/araffin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-02T14:09:43.000Z","updated_at":"2025-05-05T09:10:29.000Z","dependencies_parsed_at":"2025-05-06T19:12:35.797Z","dependency_job_id":"c56a6dcf-66b4-49c8-912a-6746dfaf8ca7","html_url":"https://github.com/araffin/cpp-arduino-serial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/araffin/cpp-arduino-serial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araffin%2Fcpp-arduino-serial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araffin%2Fcpp-arduino-serial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araffin%2Fcpp-arduino-serial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araffin%2Fcpp-arduino-serial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/araffin","download_url":"https://codeload.github.com/araffin/cpp-arduino-serial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araffin%2Fcpp-arduino-serial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833278,"owners_count":23670617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","bluetooth","communication","cpp","protocol","raspberry-pi","serial","sockets"],"created_at":"2024-10-03T13:42:53.812Z","updated_at":"2025-07-11T14:33:51.060Z","avatar_url":"https://github.com/araffin.png","language":"C++","readme":"# Robust Arduino Serial Protocol in C++\n\n[![CI](https://github.com/araffin/cpp-arduino-serial/workflows/CI/badge.svg)](https://github.com/araffin/cpp-arduino-serial/actions/workflows/ci.yml)\n\n\n**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.\n\nThis repository is part of the Robust Arduino Serial project, main repository: [https://github.com/araffin/arduino-robust-serial](https://github.com/araffin/arduino-robust-serial)\n\n**Please read the [Medium Article](https://medium.com/@araffin/simple-and-robust-computer-arduino-serial-communication-f91b95596788) to have an overview of this protocol.**\n\nImplementations are available in various programming languages:\n\n- [Arduino](https://github.com/araffin/arduino-robust-serial)\n- [Python](https://github.com/araffin/python-arduino-serial)\n- [C++](https://github.com/araffin/cpp-arduino-serial)\n- [Rust](https://github.com/araffin/rust-arduino-serial)\n\n## Dependency\n\nDependency (libserial):\n```bash\nsudo apt-get install libserial-dev\n```\n\n## Examples\n\nTo build the two examples, run the `build.sh` inside the `examples/` directory, the binaries will be located in the `bin/` folder.\n\nRead write in a file\n```bash\n./file_read_write.x\n```\n\nIf you want to use `command_parser` and `serial_reader` with a real Arduino, you need to flash it with this code:\n[Arduino Source Code](https://github.com/araffin/arduino-robust-serial/tree/master/arduino-board/)\n\nRun the command parser to send order to the Arduino (optional: you can run it using rlwrap):\n```bash\n./command_parser.x\n```\n\nIdem for listening to the serial port (for now during 30 seconds, it can be changed in the serial_reader.h)\n```bash\n./serial_reader.x\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faraffin%2Fcpp-arduino-serial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faraffin%2Fcpp-arduino-serial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faraffin%2Fcpp-arduino-serial/lists"}