Utility for reading data from a vehicle over OBD-II
Find a file
Robert Sammelson 13b9041511
Add the remaining service $00 PIDs up to $20
Also restructure the code to implement get_dtcs and get_dtc_info by
implementing GetObd2Values on the data types they return. This brings
them in line with every other getter function besides get_vin.
2023-05-21 01:53:12 -04:00
docs Add ELM327 datasheet 2023-05-20 00:27:26 -04:00
examples/basic Add the remaining service $00 PIDs up to $20 2023-05-21 01:53:12 -04:00
src Add the remaining service $00 PIDs up to $20 2023-05-21 01:53:12 -04:00
.gitignore Switch to a library and move main to an example 2023-05-14 23:41:18 -04:00
Cargo.toml Switch to using macros for data retrieval commands 2023-05-20 22:42:57 -04:00
README.md Add README 2023-05-20 00:27:29 -04:00

obd2

This library provides a user-friendly interface to automatically configure an ELM327 OBD-II to UART interface through an FTDI UART to USB interface (the entire setup is easily available online as an OBD-II to USB interface), and then send commands and receive data from a vehicle.

Usage

use obd2::{commands::Obd2DataRetrieval, device::Elm327, Obd2};

fn main() -> Result<(), obd2::Error> {
    let mut device = Obd2::<Elm327>::default();
    println!("VIN: {}", device.get_vin()?);
    Ok(())
}

See the docs for more: https://docs.rs/obd2/