{"id":13435550,"url":"https://github.com/linux-can/socketcand","last_synced_at":"2025-05-16T19:05:15.768Z","repository":{"id":47459510,"uuid":"201102894","full_name":"linux-can/socketcand","owner":"linux-can","description":"Server to access CAN sockets over ASCII protocol","archived":false,"fork":false,"pushed_at":"2025-05-13T07:04:14.000Z","size":367,"stargazers_count":196,"open_issues_count":9,"forks_count":56,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-05-13T07:38:22.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/linux-can.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/BSD-3-Clause","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-08-07T18:05:24.000Z","updated_at":"2025-05-13T07:04:18.000Z","dependencies_parsed_at":"2023-12-06T17:30:12.173Z","dependency_job_id":"5cee3510-76f5-4b28-8ccd-c61089c2e4f4","html_url":"https://github.com/linux-can/socketcand","commit_stats":{"total_commits":209,"total_committers":18,"mean_commits":11.61111111111111,"dds":0.4019138755980861,"last_synced_commit":"23f413c3d558f6bdca479e01c15e78aef8f40841"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-can%2Fsocketcand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-can%2Fsocketcand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-can%2Fsocketcand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-can%2Fsocketcand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux-can","download_url":"https://codeload.github.com/linux-can/socketcand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592368,"owners_count":22097011,"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:00:36.777Z","updated_at":"2025-05-16T19:05:15.762Z","avatar_url":"https://github.com/linux-can.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"socketcand\n==========\n\nSocketcand is a daemon that provides access to CAN interfaces on a machine via a network interface. The communication protocol uses a TCP/IP connection and a specific protocol to transfer CAN frames and control commands. The protocol specification can be found in ./doc/protocol.md.\n\nInstallation\n------------\n\nTo build and run socketcand make sure you have the following tools installed:\n\n* meson\n* gcc or another C compiler\n* a kernel that includes the SocketCAN modules\n* the headers for your kernel version\n* the libconfig with headers (libconfig-dev under debian based systems)\n* the libsocketcan with headers (libsocketcan-dev under debian based systems) is a requirement to configure the interfaces from socketcand\n\nExecute the following commands to configure, build, and install the software:\n\n    $ meson setup -Dlibconfig=true --buildtype=release build\n    $ meson compile -C build\n    $ meson install -C build\n\nService discovery\n-----------------\n\nThe daemon uses a simple UDP beacon mechanism for service discovery. A beacon containing the service name, type and address is sent to the broadcast address (port 42000) at minimum every 3 seconds. A client only has to listen for messages of this type to detect all SocketCAN daemons in the local network.\n\nUsage\n-----\n\n     socketcand [-v | --verbose] [-i interfaces | --interfaces interfaces]\n\t\t[-p port | --port port] [-l interface | --listen interface]\n\t\t[-u name | --afuxname name] [-n | --no-beacon] [-d | --daemon]\n\t\t[-e error_mask | --error-mask error_mask]\n\t\t[-h | --help]\n\n### Description of the options\n* **-v** (activates verbose output to STDOUT)\n* **-i interfaces** (comma separated list of CAN interfaces the daemon shall provide access to e.g. '-i can0,vcan1' - default: vcan0)\n* **-p port** (changes the default port '29536' the daemon is listening at)\n* **-l interface** (changes the default network interface the daemon will bind to - default: eth0)\n* **-u name** (the AF_UNIX socket path - an abstract name is used when the leading '/' is missing. N.B. the AF_UNIX binding will supersede the port/interface settings)\n* **-n** (deactivates the discovery beacon)\n* **-e error_mask** (enable CAN error frames in raw mode providing an hexadecimal error mask, e.g: 0x1FFFFFFF)\n* **-d** (set this flag if you want log to syslog instead of STDOUT)\n* **-h** (prints this message)\n\nLicense\n-------\n\nThe source code is released under either GPL-2.0-only or BSD-3-Clause licenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-can%2Fsocketcand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux-can%2Fsocketcand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-can%2Fsocketcand/lists"}