Documentation
Install
git clone https://github.com/j2534dev/libj2534
cd libj2534 && make && sudo make install
Library
| Call | Description |
|---|---|
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
| Command | Purpose |
|---|---|
j2534 devices | List attached interfaces |
j2534 dtc read|clear | Diagnostic trouble codes |
j2534 can dump | Stream raw CAN to stdout or pcapng |
j2534 flash read|write | Calibration 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.