{"id":17602405,"url":"https://github.com/20yyq/serial","last_synced_at":"2026-01-06T12:49:11.455Z","repository":{"id":72939648,"uuid":"603998292","full_name":"20yyq/serial","owner":"20yyq","description":"serial port","archived":false,"fork":false,"pushed_at":"2024-09-23T03:40:29.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-23T11:52:02.231Z","etag":null,"topics":["golang","ioctl","linux","serial","serialport","series","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/20yyq.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}},"created_at":"2023-02-20T05:39:15.000Z","updated_at":"2024-09-23T03:39:17.000Z","dependencies_parsed_at":"2023-12-25T09:41:21.210Z","dependency_job_id":"8312ed24-5188-4ba3-ae56-6ad0da4b6813","html_url":"https://github.com/20yyq/serial","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"a07707ff50497105f69ebc6fcfae5469288a8c46"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fserial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fserial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fserial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fserial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/20yyq","download_url":"https://codeload.github.com/20yyq/serial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229064441,"owners_count":18014534,"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":["golang","ioctl","linux","serial","serialport","series","windows"],"created_at":"2024-10-22T13:08:12.495Z","updated_at":"2026-01-06T12:49:11.426Z","avatar_url":"https://github.com/20yyq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serial\nserial port\n## 简介\n\n项目实现了Linux系统多个架构、Windows系统的串行设备的数据读写功能。并能实现对当前建立连接的设备进行再次重新配置参数进行重新运行。\n\n# 例子\n```go\nfunc main() {\n\tc := serial.Config{Baud: 115200, ReadTime: time.Hour}\n\tconn, err := serial.New(\"COM9\", c)\n\tif err != nil {\n\t\tfmt.Println(\"conn new error:\", err)\n\t\treturn\n\t}\n\tb := make([]byte, 1024)\n\tfor {\n\t\tn, err := conn.Read(b)\n\t\tif err != nil {\n\t\t\tfmt.Println(\"conn.Read error:\", err)\n\t\t\tbreak\n\t\t}\n\t\tfmt.Println(\"Read byte:\", b[:n])\n\t}\n    quit := make(chan os.Signal)\n    signal.Notify(quit, os.Interrupt)\n    \u003c-quit\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20yyq%2Fserial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F20yyq%2Fserial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20yyq%2Fserial/lists"}