GithubHelp home page GithubHelp logo

rust_obd's Introduction

Rust OBD

This project is a basic implementation of a program to interact with OBD (On-Board Diagnostics) systems, specifically with ELM327 devices. It provides the ability to connect, send, and interpret OBD commands, with a focus on obtaining information about various car parameters.

Features

  • Connect to an ELM327 device over TCP/IP.
  • Send and interpret basic OBD commands.
  • Display the status and Diagnostic Trouble Codes (DTCs).
  • Asynchronous implementation using Tokio.
  • Extensible command interpretation framework.

Usage

  • Ensure your ELM327 device is accessible at the address specified in the code (192.168.0.10:35000 by default).
  • Run the main Rust application.

Sample output:

Successfully connected to ELM327 device!
ELM327 Version: [version]
Command Name: [command_name], Result: [command_result]

On errors, appropriate error messages will be displayed.

Modules

  • elm327: Contains the Elm327Connection struct which is responsible for establishing a connection to the ELM327 device, sending commands, and reading responses.
  • command: Defines the OBDCommand struct and associated commands and decoding functions. This module contains the logic for encoding OBD-II commands, sending them to the ELM327 device, and decoding the received data.

OBD-II Commands Reference

For a comprehensive list of OBD-II commands (PIDs), you can refer to the Wikipedia page on OBD-II PIDs.

ELM327 OBD-II Reference

PDF AT commands

rust_obd's People

Contributors

geriszter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.