2 releases

0.0.1 Jan 28, 2023
0.0.0 Jan 27, 2023

#20 in #socket-can

MIT/Apache

110KB
1.5K SLoC

jeep CAN bus parsing for Jeep JL and 4xE

jeep is an easy-to-use event handling library for your Jeep. It is designed with safety in mind and is currently read-only for the Jeep's IHS network. There is also no C network support, since even connecting to it poses some risk.

Use at your own risk. There is no warranty. Don't do dumb or illegal stuff with this library. This library is currently a WIP and the API is not yet stable. This project is not affiliated with Jeep or Stellantis.

Requirements

  • Rust toolchain.
  • For development, the rust-analyzer extension for vscode is recommended.

This library is tested to work in WSL-2 along with Raspberry Pi.

Building

To build the library alone, for development, from this directory, run:

$ cargo build

To install all examples, from this directory, run:

$ cargo install --examples --features examples --path .

To view documentation in a browser offline, run:

cargo doc --all-features --open

Examples

The examples folder contains several examples, such as:

  • jeep-alarm that runs a custom command when any doors are opened (such as a silent alarm).
  • jeep-listen that listens to the can bus and parses events in realtime.
  • jeep-converter to parse events from a candump -L style dump into json lines.

Development Notes:

  • This library is an in alpha state and assuredly has errors.
  • See TODO.md for future plans.

(Optional) Features

  • serde - enables serialization of events, frames, and errors.
  • examples - required features for example binaries.
  • embedded-can - enables the embedded_can::Frame trait for our jeep::Frame.
  • socketcan - enables conversion to/from socketcan::CANFrame and the jeep::Listener.

Credits

Dependencies

~1.4–10MB
~93K SLoC