{"id":13435567,"url":"https://github.com/craigpeacock/CAN-Examples","last_synced_at":"2025-03-18T11:31:36.902Z","repository":{"id":121719684,"uuid":"231168011","full_name":"craigpeacock/CAN-Examples","owner":"craigpeacock","description":"Example C code for CAN Sockets on Linux","archived":false,"fork":false,"pushed_at":"2022-09-18T10:22:44.000Z","size":23,"stargazers_count":117,"open_issues_count":1,"forks_count":66,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T04:51:23.571Z","etag":null,"topics":["can-bus","linux","socketcan"],"latest_commit_sha":null,"homepage":"https://www.beyondlogic.org/example-c-socketcan-code/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craigpeacock.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}},"created_at":"2020-01-01T02:38:33.000Z","updated_at":"2025-02-04T18:13:29.000Z","dependencies_parsed_at":"2024-01-24T15:11:15.977Z","dependency_job_id":null,"html_url":"https://github.com/craigpeacock/CAN-Examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FCAN-Examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FCAN-Examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FCAN-Examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FCAN-Examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigpeacock","download_url":"https://codeload.github.com/craigpeacock/CAN-Examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244211032,"owners_count":20416572,"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":["can-bus","linux","socketcan"],"created_at":"2024-07-31T03:00:36.938Z","updated_at":"2025-03-18T11:31:31.892Z","avatar_url":"https://github.com/craigpeacock.png","language":"C","readme":"# CAN-Examples\nExample C code for SocketCAN on Linux\n\n* Based on documentation at: https://www.kernel.org/doc/Documentation/networking/can.txt\n* A simplified tutorial can be found at: https://www.beyondlogic.org/example-c-socketcan-code/\n* Hardcoded to use the vcan0 virtual CAN device.\n\nTo install VCAN0:\n```\n$ ip link add dev vcan0 type vcan\n```\nUse gcc to build examples:\n```\n$ gcc cantransmit.c -o cantransmit\n\n$ gcc canreceive.c -o canreceive\n\n$ gcc canfilter.c -o canfilter\n```\n","funding_links":[],"categories":["C","Utils"],"sub_categories":["Examples"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigpeacock%2FCAN-Examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigpeacock%2FCAN-Examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigpeacock%2FCAN-Examples/lists"}