MCPcopy Create free account
hub / github.com/autowp/arduino-canhacker

github.com/autowp/arduino-canhacker @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
46 symbols 59 edges 6 files 0 documented · 0% updated 2y agov1.0.1 · 2017-05-10★ 47512 open issues

Browse by type

Functions 40 Types & classes 6
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CanHacker (lawicel) CAN adapter on Arduino + MCP2515

Use that Library to communicate with MCP2515

Features

Implement communication with CAN bus via MCP2515 by CanHacker (lawicel) protocol.

  • send & receive can frames
  • supports standart (11 bit) & extended (29 bit) frames
  • supports remote frames (RTR)
  • supports filter by ID (mask + code)
  • interface using Stream: ability to work with Serial, SoftwareSerial, Ethernet and other
  • supported can baudrates from 10Kbps up to 1Mbps
  • supported modules with different oscillators (8, 16, 20 MHZ), 16 MHZ is default, use setClock if your oscillator is not 16MHZ
  • support CanHacker (application for Windows)
  • support CANreader (application for Android)

Documentation

English

Русский

Library Installation

  1. Install MCP2515 Library
  2. Download the ZIP file from https://github.com/autowp/arduino-canhacker/archive/master.zip
  3. From the Arduino IDE: Sketch -> Include Library... -> Add .ZIP Library...
  4. Restart the Arduino IDE to see the new "canhacker" library with examples

Testes with Arduino Nano. On Arduino Uno have problem with too long boot period and losing first command

Contributing

Feel free to open issues, create pull requests and other contributions

Core symbols most depended-on inside this repo

Shape

Method 35
Function 5
Class 4
Enum 2

Languages

C++100%

Modules by API surface

CanHacker.cpp35 symbols
CanHacker.h4 symbols
lib.cpp3 symbols
CanHackerLineReader.cpp3 symbols
CanHackerLineReader.h1 symbols

For agents

$ claude mcp add arduino-canhacker \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page