Coder Social home page Coder Social logo

canbus's Introduction

Controller Area Network (CAN)

The Controller Area Network, also known as CAN or the CAN Bus, is the infrastructure used for internal networking in modern automobiles. It is controlled through a low level system of controller nodes, each of which broadcast all of their data onto the bus. It is therefore the responsibility of the listener nodes to filter through the noise, and determine what traffic is relevant to their individual needs/purposes.

These nodes communicate with each other in a way that is, for the most part, unreadable and otherwise useless to humans in its raw form. Therefore, a semi-standardized format was developed by Vector GmbH to facilitate interpreting and translating the raw Signal values (from sensors and modules), into human-readable values and units (for gauges and data-loggers).

This is the .dbc format I'll be focusing on in this repository and its accompanying Wiki.

How are .dbc files created?

Every auto manufacturer has their own proprietary "dictionary" which contains the mappings of their platform's specific adjustment factors/offsets, labels, and units, used to translate the raw sensor values into meaningful data points.

Sometimes these dictionaries (or "databases", "documents") are leaked online, or sold by a disgruntled (former) employee. In most cases, however, enthusiasts such as myself spend countless hours, usually in their own cars, reverse-engineering translations to .dbc files.

This is very much a work in progress.


  1. VERSION
  2. NS_: New Symbols
  3. BU_: Board Units
  4. BO_: Messages
  5. SG_: Signals
  6. BA_: Attributes
  7. CM_: Comments
  8. VAL_: Values

Downloadable .dbc files

Vehicle File Name Version Author
BMW E90 bmw-e90.dbc (raw) 2021.6.8 @nberlette
BMW E39 bmw-e39.dbc (raw) 2021.6.6 translated from .kcd by @kmalinich
Mazda (2017) mazda_2017.dbc -- @commaai/opendbc
Lexus RX350 lexus_rx350.dbc -- @commaai/opendbc
Tesla Model 3 tesla_model3.dbc 2020.40.1 @johnmccalla and @onyx-m2 project
OBD2 (universal) obd2.dbc (raw .dbc) 0.0.1 csselectronics.com
J1939 (universal) j1939.dbc (raw .dbc) 7.6 Unknown, from haskell.org

Resources


References

canbus's People

Contributors

nberlette 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.