Cross platform J2534-2 implimentation for Macchina M2 Under the dash
THIS REPOSITORY IS NOW ARCHIVED, PLEASE SEE MACCHINA-J2534 FOR AN IMPROVED DRIVER THAT WORKS ON BOTH THE MACCHINA A0 AND M2!
Repo overview
Driver
Code to generate the following targets:
- J2534 DLL for windows
- J2534 so for Linux and OSX
J2534Common
J2534 common library for OpenVehicleDiag and this driver
M2_FIRMWARE
This contains code that gets uploaded to the M2 Module
Compiling and installing
Driver
Rust MUST be installed You can install it here
Windows
- Create the directory
C:\Program Files (x86)\macchina\passthru\
- Open the driver folder
- In macchina.reg file, replace the COM-PORT attribute value with whatever COM Port the M2 Unit shows up as
- run build.bat
Linux and OSX
- Create the directory
~/.passthru/
- Open the driver folder
- In macchina.json file, replace the COM-PORT attribute value with whatever COM Port the M2 Unit shows up as
- Run build.sh
M2 Firmware
Arduino IDE Must be installed
- Open M2_FIRMWARE folder within Arduino IDE
- Select the Macchina M2 SAM Board as a target, go here to learn how to install the build target
- Upload the sketch to the M2 module