{"id":23943975,"url":"https://github.com/gecko-robotics/serialcomm","last_synced_at":"2026-06-18T15:32:11.673Z","repository":{"id":41255440,"uuid":"508863277","full_name":"gecko-robotics/serialcomm","owner":"gecko-robotics","description":"serial port library","archived":false,"fork":false,"pushed_at":"2025-02-17T23:42:38.000Z","size":362,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-16T15:22:21.738Z","etag":null,"topics":["cpp","serialport"],"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/gecko-robotics.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-29T22:28:51.000Z","updated_at":"2025-02-17T23:42:42.000Z","dependencies_parsed_at":"2022-09-10T07:40:41.620Z","dependency_job_id":"c3586b7f-0e4a-4e35-89b0-a46b79e0244a","html_url":"https://github.com/gecko-robotics/serialcomm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gecko-robotics/serialcomm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gecko-robotics%2Fserialcomm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gecko-robotics%2Fserialcomm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gecko-robotics%2Fserialcomm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gecko-robotics%2Fserialcomm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gecko-robotics","download_url":"https://codeload.github.com/gecko-robotics/serialcomm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gecko-robotics%2Fserialcomm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34497231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","serialport"],"created_at":"2025-01-06T06:16:13.921Z","updated_at":"2026-06-18T15:32:11.648Z","avatar_url":"https://github.com/gecko-robotics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](pics/header.jpg)\n\n![GitHub](https://img.shields.io/github/license/gecko-robotics/serialcomm)\n\n# Serial Communications\n\nA simple serial communications library, that mimic most of the Arduino serial\nsyntax. The goal is to use drivers between Arduino and C++ on linux easier with\nlittle to no rewrite.\n\n## Example\n\n```cpp\n#include \u003cserialcomm/serial.hpp\u003e\n#include \u003cstring\u003e\n#include \u003ciostream\u003e\n\nusing namespace std;\n\nint main() {\n    SerialPort ser;\n    bool ok = ser.open(\"/dev/serial\", B9600);\n\n    uint8_t buffer[3] = {1,2,3,4};\n    int num = ser.write(buffer, sizeof(buffer)); // -1 for error\n    if (num \u003c 0) cout \u003c\u003c \"error\" \u003c\u003c endl;\n    std::string msg(\"hello\");\n    ser.write(msg);\n\n    ser.close();\n\n    return 0\n}\n```\n\n## Todo\n\n- [ ] fix the timeout and blocking\n- [x] determine either: return errors w/error string OR stay with catch/throw on error\n- [x] toggle DTR/RTS pins\n- [x] move i2c code to different library\n\n## Reference\n\n- [mbedded.ninja linux serial ports](https://blog.mbedded.ninja/programming/operating-systems/linux/linux-serial-ports-using-c-cpp/)\n\n# MIT License\n\n**Copyright (c) 2019 Kevin J. Walchko**\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgecko-robotics%2Fserialcomm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgecko-robotics%2Fserialcomm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgecko-robotics%2Fserialcomm/lists"}