Documentation

Install

git clone https://github.com/j2534dev/libj2534
cd libj2534 && make && sudo make install

Library

CallDescription
j2534_open(dev)Open a pass-thru device by index or serial
j2534_connect(h, proto, flags, baud)Open a protocol channel
j2534_read(h, msg, timeout)Read one message
j2534_write(h, msg)Write one message
j2534_ioctl(h, cmd, in, out)Filters, config, periodic messages

CLI

CommandPurpose
j2534 devicesList attached interfaces
j2534 dtc read|clearDiagnostic trouble codes
j2534 can dumpStream raw CAN to stdout or pcapng
j2534 flash read|writeCalibration blocks with checksum verify

Supported devices

Any DLL/so that implements the J2534-1 04.04 API. Tested: OpenPort 2.0, MongoosePro, DiCE (in J2534 mode), VCM II.