{"id":21315422,"url":"https://github.com/20yyq/can-isotp","last_synced_at":"2026-04-22T05:32:20.549Z","repository":{"id":215564795,"uuid":"739197412","full_name":"20yyq/can-isotp","owner":"20yyq","description":"golang network can bus isotp protocol","archived":false,"fork":false,"pushed_at":"2025-01-09T01:13:11.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T10:24:34.373Z","etag":null,"topics":["can","can-bus","golang","iso15765-2","isotp","linux","protocol"],"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":"2024-01-05T02:00:33.000Z","updated_at":"2025-04-14T01:41:40.000Z","dependencies_parsed_at":"2025-01-09T02:24:47.684Z","dependency_job_id":"e22de727-a893-4897-92e1-cacf68bff226","html_url":"https://github.com/20yyq/can-isotp","commit_stats":null,"previous_names":["20yyq/can-isotp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/20yyq/can-isotp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fcan-isotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fcan-isotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fcan-isotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fcan-isotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/20yyq","download_url":"https://codeload.github.com/20yyq/can-isotp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20yyq%2Fcan-isotp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32122715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":["can","can-bus","golang","iso15765-2","isotp","linux","protocol"],"created_at":"2024-11-21T18:19:52.244Z","updated_at":"2026-04-22T05:32:20.534Z","avatar_url":"https://github.com/20yyq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# can-isotp\ngolang network can bus isotp protocol\n\n# 简介\n\n协议借鉴 [Linux Kernel Module for ISO 15765-2:2016](https://github.com/hartkopp/can-isotp.git)\n\n## 例子\n\n```go\nfunc main() {\n\tfmt.Println(\"Start\")\n\tc, err := NewCan(\"can0\")\n\tif err == nil {\n\t\tisotp.Init(c)\n\t\t// 每帧连续帧间隔20毫秒，不限制接收帧数，再无流控帧发送\n\t\tif itp := isotp.IsoTP(isotp.Config{ID: 128, STmin: 0x14, BS: 0x00}, isotp.Config{ID: 384, STmin: 0x14, BS: 0x00}); itp != nil {\n\t\t\tgo func() {\n\t\t\t\tb := make([]byte, 4096)\n\t\t\t\tn, err := itp.Read(b)\n\t\t\t\tfor err == nil {\n\t\t\t\t\tfmt.Println(string(b[:n]))\n\t\t\t\t\tn, err = itp.Read(b)\n\t\t\t\t\tfmt.Println(itp.Write([]byte(code)))\n\t\t\t\t}\n\t\t\t}()\n\t\t}\n\t\t// 每帧连续帧间隔10毫秒接收16帧，然后等待下一帧流控帧\n\t\tif itp := isotp.IsoTP(isotp.Config{ID: 1, STmin: 0x0A, BS: 0x0F}, isotp.Config{ID: 257, STmin: 0x0A, BS: 0x0F}); itp != nil {\n\t\t\tgo func() {\n\t\t\t\tb := make([]byte, 4096)\n\t\t\t\tn, err := itp.Read(b)\n\t\t\t\tfor err != nil {\n\t\t\t\t\tfmt.Println(string(b[:n]))\n\t\t\t\t\tn, err = itp.Read(b)\n\t\t\t\t\tfmt.Println(itp.Write([]byte(`func (c *Can) WriteFrame(frame can.Frame) error {\n\t\t\t\t\t\t_, err := c.rwc.Write(frame.WireFormat())\n\t\t\t\t\t\treturn err\n\t\t\t\t\t}`)))\n\t\t\t\t}\n\t\t\t}()\n\t\t}\n\n\t}\n\tfmt.Println(\"End\", err)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20yyq%2Fcan-isotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F20yyq%2Fcan-isotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20yyq%2Fcan-isotp/lists"}