hardware/can-bus-modules/SKILL.md
CAN Bus interfacing for automotive/industrial networks using MCP2515 over SPI, baud rates, reading OBD-II frames.
npx skillsauth add aeondave/malskill can-bus-modulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Goal: Interface microcontrollers with automotive and industrial Controller Area Networks (CAN) using transceivers to read and spoof packets.
CAN_H and CAN_L analog voltages required by the physical bus).CAN_H and CAN_L twisted pair. Requires 120-ohm termination resistors at both ends of the bus.The CAN bus relies entirely on timing. Connecting with the wrong speed brings down the bus (Error Passive).
0x7DF). Used heavily in standard automotive.0x18DAF100). Often seen in heavy duty (J1939) or specialized sensors.#include <SPI.h>
#include <mcp_can.h>
const int spiCSPin = 10;
MCP_CAN CAN(spiCSPin);
void setup() {
Serial.begin(115200);
// Initialize exactly for 500k baud and 8MHz crystal
while (CAN_OK != CAN.begin(CAN_500KBPS, MCP_8MHz)) {
Serial.println("CAN init fail, retry...");
delay(100);
}
Serial.println("CAN init ok!");
}
void loop() {
long unsigned int rxId;
unsigned char len = 0;
unsigned char rxBuf[8];
if (CAN_MSGAVAIL == CAN.checkReceive()) {
CAN.readMsgBuf(&rxId, &len, rxBuf);
Serial.print("ID: "); Serial.print(rxId, HEX);
Serial.print(" Data: ");
for(int i = 0; i<len; i++) {
Serial.print(rxBuf[i], HEX); Serial.print(" ");
}
Serial.println();
}
}
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.