{"id":16851403,"url":"https://github.com/marcelbuesing/socketcan-isotp","last_synced_at":"2025-10-03T16:34:52.672Z","repository":{"id":36473189,"uuid":"225721051","full_name":"marcelbuesing/socketcan-isotp","owner":"marcelbuesing","description":"ISO-TP socketcan library for Rust","archived":false,"fork":false,"pushed_at":"2024-06-19T12:04:46.000Z","size":62,"stargazers_count":27,"open_issues_count":5,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T20:07:27.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcelbuesing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2019-12-03T21:35:54.000Z","updated_at":"2025-02-13T20:41:23.000Z","dependencies_parsed_at":"2024-10-26T21:15:35.475Z","dependency_job_id":"666b7c95-071c-4a9c-b13a-0470ad50564f","html_url":"https://github.com/marcelbuesing/socketcan-isotp","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":0.06060606060606055,"last_synced_commit":"0b0e677f55c79ee5f94918266b1cfac8c2218d7d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Fsocketcan-isotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Fsocketcan-isotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Fsocketcan-isotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Fsocketcan-isotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelbuesing","download_url":"https://codeload.github.com/marcelbuesing/socketcan-isotp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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":[],"created_at":"2024-10-13T13:28:06.855Z","updated_at":"2025-10-03T16:34:47.637Z","avatar_url":"https://github.com/marcelbuesing.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003ch1\u003e📦✨  socketcan-isotp\u003c/h1\u003e\n\n  \u003cp\u003e\n    \u003cstrong\u003eSocketcan IsoTP Rust crate\u003c/strong\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/marcelbuesing/socketcan-isotp/actions?query=workflow%3ACI\"\u003e\u003cimg alt=\"Build Status\" src=\"https://github.com/marcelbuesing/socketcan-isotp/workflows/CI/badge.svg\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/socketcan-isotp\"\u003e\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/socketcan-isotp.svg\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/socketcan-isotp\"\u003e\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/l/socketcan-isotp/0.1.0\"/\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n  \u003ch3\u003e\n    \u003ca href=\"https://docs.rs/socketcan-isotp\"\u003eDocs\u003c/a\u003e\n  \u003c/h3\u003e\n\n  \u003csub\u003eBuilt with 🦀\u003c/sub\u003e\n\u003c/div\u003e\n\nSocketCAN ISO-TP crate. Based on socketcan-rs and isotp.h.\n\nThe Linux kernel supports using CAN-devices through a\n[network-like API](https://www.kernel.org/doc/Documentation/networking/can.txt).\nThis crate allows easy access to this functionality without having to wrestle\nlibc calls.\n\n[ISO-TP](https://en.wikipedia.org/wiki/ISO_15765-2) or [ISO 15762-2](https://en.wikipedia.org/wiki/ISO_15765-2) allows\nsending data packets that exceed the eight byte of a default CAN frame. A common application of ISO-TP is for example\n[Unified Diagnostic Services (UDS)](https://en.wikipedia.org/wiki/Unified_Diagnostic_Services) used in automotive ECUs for diagnostics.\n\n[can-isotp](https://github.com/hartkopp/can-isotp) is an ISO-TP kernel module that takes\ncare of handling the ISO-TP protocol. Instructions on how the can-isotp kernel module can be build and loaded can be found\nat [https://github.com/hartkopp/can-isotp](https://github.com/hartkopp/can-isotp).\n\n```rust,no_run\nuse socketcan_isotp::{self, IsoTpSocket, StandardId};\n\nfn main() -\u003e Result\u003c(), socketcan_isotp::Error\u003e {\n    let mut tp_socket = IsoTpSocket::open(\n        \"vcan0\",\n        StandardId::new(0x123).expect(\"Invalid src id\"),\n        StandardId::new(0x321).expect(\"Invalid dst id\"),\n    )?;\n\n    let buffer = tp_socket.read()?;\n    println!(\"read {} bytes\", buffer.len());\n\n    for x in buffer {\n        print!(\"{:X?} \", x);\n    }\n\n    println!(\"\");\n\n    Ok(())\n}\n\n```\n\n# Dev Setup\n\nSetup Isotp Kernel Module:\nhttps://github.com/hartkopp/can-isotp\n\nSetup virtual can interface.\n```\nsudo modprobe vcan \u0026\u0026 \\\nsudo ip link add dev vcan0 type vcan \u0026\u0026 \\\nsudo ip link set up vcan0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelbuesing%2Fsocketcan-isotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelbuesing%2Fsocketcan-isotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelbuesing%2Fsocketcan-isotp/lists"}