{"id":28551911,"url":"https://github.com/ncrashed/serial-port","last_synced_at":"2026-01-31T02:01:46.761Z","repository":{"id":10902998,"uuid":"13198431","full_name":"NCrashed/serial-port","owner":"NCrashed","description":"Crossplatform library for operating with serial ports in D programming language.","archived":false,"fork":false,"pushed_at":"2017-02-03T14:50:56.000Z","size":739,"stargazers_count":20,"open_issues_count":2,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-03T17:46:57.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NCrashed.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}},"created_at":"2013-09-29T19:26:46.000Z","updated_at":"2025-04-22T18:14:41.000Z","dependencies_parsed_at":"2022-08-29T19:31:30.868Z","dependency_job_id":null,"html_url":"https://github.com/NCrashed/serial-port","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/NCrashed/serial-port","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fserial-port","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fserial-port/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fserial-port/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fserial-port/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NCrashed","download_url":"https://codeload.github.com/NCrashed/serial-port/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NCrashed%2Fserial-port/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28926630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"online","status_checked_at":"2026-01-31T02:00:09.179Z","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":[],"created_at":"2025-06-10T04:07:32.768Z","updated_at":"2026-01-31T02:01:46.742Z","avatar_url":"https://github.com/NCrashed.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"serial-port\n===========\n\nCrossplatform library for operating with serial ports in D programming language. \n[Documentation](http://ncrashed.github.io/serial-port/index.html).\n\n## Compilation\n\nWith [dub](http://code.dlang.org/download):\n```\ndub build\n```\nwith make\n```\nmake\n```\n\nOr, put in your dub.json dependencies:\n```\n\"dependencies\": {\n  \"serial-port\": \"~\u003e1.2\"\n},\n```\n\nTo compile tests with dub:\n```\ndub build --build=unittest --config=unittest\n./serial-port\n```\nwith make\n```\nmake test\n./serial-port\n```\n\nYou should have two serial ports linked to each other (com0com on Windows, socat in linux). For instance, writing to 'COM1' and reading from 'COM2'. \nOn posix you can use [socat](http://linux.die.net/man/1/socat) to create serial port pipe:\n\n```\nsocat /dev/ttyS0,raw,echo=0,crnl /dev/ttyS1,raw,echo=0,crnl\n```\n\n## References\n* [Termios man page](http://linux.die.net/man/3/termios)\n* [librs232] (https://github.com/ynezz/librs232)\n* [D termios header file](https://github.com/D-Programming-Language/druntime/blob/v2.065.0/src/core/sys/linux/termios.d)\n* [Termbits header file](https://github.com/torvalds/linux/blob/9a3c4145af32125c5ee39c0272662b47307a8323/include/uapi/asm-generic/termbits.h)\n* [Some useful socat commands](http://technostuff.blogspot.it/2008/10/some-useful-socat-commands.html)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrashed%2Fserial-port","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncrashed%2Fserial-port","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrashed%2Fserial-port/lists"}