{"id":13741963,"url":"https://github.com/rkollataj/mcba_usb","last_synced_at":"2026-01-18T02:46:40.055Z","repository":{"id":219055748,"uuid":"60900288","full_name":"rkollataj/mcba_usb","owner":"rkollataj","description":"Linux kernel driver for Microchip CAN BUS Analyzer Tool","archived":false,"fork":false,"pushed_at":"2017-07-13T15:19:37.000Z","size":337,"stargazers_count":46,"open_issues_count":2,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-15T12:37:11.390Z","etag":null,"topics":["can","can-bus","microchip","microchip-pic"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rkollataj.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":"2016-06-11T09:35:35.000Z","updated_at":"2024-07-22T04:01:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdb5e699-8b46-46b5-a697-ecf7352aee87","html_url":"https://github.com/rkollataj/mcba_usb","commit_stats":null,"previous_names":["rkollataj/mcba_usb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkollataj%2Fmcba_usb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkollataj%2Fmcba_usb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkollataj%2Fmcba_usb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkollataj%2Fmcba_usb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkollataj","download_url":"https://codeload.github.com/rkollataj/mcba_usb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253158581,"owners_count":21863328,"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","can-bus","microchip","microchip-pic"],"created_at":"2024-08-03T04:01:04.610Z","updated_at":"2026-01-16T17:48:15.486Z","avatar_url":"https://github.com/rkollataj.png","language":"C","funding_links":[],"categories":["Hardware"],"sub_categories":["Others HW"],"readme":"# Linux kernel driver for Microchip CAN BUS Analyzer Tool\n\nThe CAN BUS Analyzer Tool is a simple to use low cost CAN bus monitor which can be used to develop and debug a high speed CAN network. The tool supports CAN 2.0b and ISO11898-2 and a broad range of functions which allow it to be used across various market segments including automotive, industrial, medical and marine. The toolkit comes with all the hardware and software required to connect a CAN network to a PC. The Graphical User Interface makes it easy to quickly observe and interpret bus traffic.\n\n[Product site](http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=APGDT002)\n\nOriginally the tool is supported on Windows environment only. This project adds support for the tool to Linux Kernel (SocketCAN). \n\n**NOTE: Driver is a part of Linux Kernel starting from [4.12](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/can/usb/mcba_usb.c?h=v4.12) version**\n\n## Usage\n### Building and installing\n```\ngit clone https://github.com/rkollataj/mcba_usb.git\ncd mcba_usb\nmake\nsudo make modules_install\nsudo modprobe mcba_usb\n```\n### Basic SocketCAN usage\nTo start SocketCAN interface:\n```\nsudo ip link set can0 type can bitrate 500000\nsudo ip link set can0 up\n```\nTo send CAN frame:\n```\ncansend can0 001#DEADBEEF\ncansend can0 1000001#DEADBEEF\n```\nTo dump CAN frames:\n```\ncandump can0\n```\n\n### Supported bus settings\nThe tool works internally with 40Mhz clock. Following bus speed are supported by default:\n* 20 Kbps\n* 33.3 Kbps\n* 50 Kbps\n* 80 Kbps\n* 83.3 Kbps\n* 100 Kbps\n* 125 Kbps\n* 150 Kbps\n* 175 Kbps\n* 200 Kbps\n* 225 Kbps\n* 250 Kbps\n* 275 Kbps\n* 300 Kbps\n* 500 Kbps\n* 625 Kbps\n* 800 Kbps\n* 1000 Kbps\n\nNote: Bittiming parameters are hardcoded inside device. Only speed can be configured using iproute2 utils.\n\n### Termination\nThe tool supports build in termination. It can be controlled by sysfs. To read current termination status:\n```\ncat /sys/class/net/can0/termination\n```\nTo enable termination:\n```\necho 1 \u003e /sys/class/net/can0/termination\n```\nTo disable termination:\n```\necho 0 \u003e /sys/class/net/can0/termination\n```\nTermination values are stored in device's EEPROM (no need to set it again after device reconnection).\n\n## Known issues\nOfficial Microchip CAN BUS Analyzer firmware v2.3 contains bugs:\n* Too low SPI sychro time (PIC_USB-\u003ePIC_CAN) causes CAN frame to be lost\n* Sending remote frames do not work\n\nAbove issues are fixed in: https://github.com/rkollataj/mcba_firmware\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkollataj%2Fmcba_usb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkollataj%2Fmcba_usb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkollataj%2Fmcba_usb/lists"}