{"id":13438466,"url":"https://github.com/marcelbuesing/tokio-socketcan-bcm","last_synced_at":"2025-04-11T06:56:33.142Z","repository":{"id":57670156,"uuid":"175291183","full_name":"marcelbuesing/tokio-socketcan-bcm","owner":"marcelbuesing","description":"Asynchronous Linux SocketCAN - Broadcast Manager support (BCM) with tokio","archived":false,"fork":false,"pushed_at":"2021-03-05T13:23:44.000Z","size":44,"stargazers_count":8,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T09:05:52.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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}},"created_at":"2019-03-12T20:27:02.000Z","updated_at":"2024-07-31T03:13:14.000Z","dependencies_parsed_at":"2022-09-26T20:40:50.372Z","dependency_job_id":null,"html_url":"https://github.com/marcelbuesing/tokio-socketcan-bcm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Ftokio-socketcan-bcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Ftokio-socketcan-bcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Ftokio-socketcan-bcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelbuesing%2Ftokio-socketcan-bcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelbuesing","download_url":"https://codeload.github.com/marcelbuesing/tokio-socketcan-bcm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358555,"owners_count":21090402,"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-07-31T03:01:05.759Z","updated_at":"2025-04-11T06:56:33.125Z","avatar_url":"https://github.com/marcelbuesing.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries","库"],"sub_categories":["Automotive","汽车 Automotive","汽车"],"readme":"# tokio-socketcan-bcm\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![VERSION](https://img.shields.io/crates/v/tokio-socketcan-bcm.svg)](https://crates.io/crates/tokio-socketcan-bcm)\n[![docs](https://docs.rs/tokio-socketcan-bcm/badge.svg)](https://docs.rs/tokio-socketcan-bcm)\n\n The Broadcast Manager protocol provides a command based configuration\n interface to filter and send (e.g. cyclic) CAN messages in kernel space.\n Filtering messages in kernel space may significantly reduce the load in an application.\n\n A BCM socket is not intended for sending individual CAN frames.\n To send invidiual frames use the [tokio-socketcan](https://crates.io/crates/tokio-socketcan) crate.\n\nThis crate would not have been possible without the [socketcan crate](https://github.com/mbr/socketcan-rs).\n\n# Example\n\n```Rust\nuse std::time;\nuse futures_util::stream::StreamExt;\nuse tokio_socketcan_bcm::{BCMSocket, Id, StandardId};\n\n#[tokio::main]\nasync fn main() {\n    let socket = BCMSocket::open_nb(\"vcan0\").unwrap();\n    let ival = time::Duration::from_millis(0);\n\n    // create a stream of messages that filters by the can frame id 0x123\n    let id = Id::Standard(StandardId::new(0x123).unwrap());\n    let mut can_frame_stream = socket\n        .filter(id, ival, ival)\n        .unwrap();\n\n    while let Some(frame) = can_frame_stream.next().await {\n        println!(\"Frame {:?}\", frame);\n        ()\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelbuesing%2Ftokio-socketcan-bcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelbuesing%2Ftokio-socketcan-bcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelbuesing%2Ftokio-socketcan-bcm/lists"}