Skip to main content

wheelos dbc tool

Project description

Gen Vehicle Protocol Tool

adbctool is a convinent tool to let you quickly generate a nearly complete code for a new vehicle for Apollo.

You only have to do is to have the dbc file (which is a communication protocol for the car, which is usually made by the vehicle integrated company), and write a less 10 lines config for generate an encode/decode.

How to get vehicle's DBC file

  • opendbc is a project that opens the vehicle dbc protocol.
  • openvehicles is an open car project that contains any vehicle information you want to know.
  • whl-vehicles Apollo vehicle protocols based by opendbc.

Quick start

Install

You can install adbctool by following cmd.

pip3 install adbctool

For local development (editable install):

python -m pip install -U pip setuptools
python -m pip install -e .

Note: parser runs in strict DBC mode by default. Non-standard comment lines such as # ... and // ... are treated as invalid syntax. Use standard DBC comment entries (CM_ ...) in source files.

Example

Generate c++ code based on dbc file.

  • vehicle dbc file : vehicle's dbc file
  • vehicle type: vehicle type
  • sender: the sender of the message, the control protocol template will be used for sender

Generate code using a specific sender name

# adbctool -f <vehicle.dbc> -t <vehicle_type> --sender <sender_name>
adbctool -f test/acura_ilx_2016_nidec.dbc -t acura_ilx --sender ADAS

Or generate code using a list of sender IDs (in hexadecimal)

# adbctool -f <vehicle.dbc> -t <vehicle_type> --sender_list <sender_id_hex>
adbctool -f test/acura_ilx_2016_nidec.dbc -t acura_ilx --sender_list 0x400

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adbctool-0.2.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adbctool-0.2.0-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

Details for the file adbctool-0.2.0.tar.gz.

File metadata

  • Download URL: adbctool-0.2.0.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for adbctool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 40d4632ed2a23d498efe383bb22a72fd0799fe959403c1af693334a411192361
MD5 06313000eaceba908eb1c6945ce3d80f
BLAKE2b-256 70a222248c6c2001ab7733715eeb1112f7dcabdf67cce491ce0199a05fef8910

See more details on using hashes here.

File details

Details for the file adbctool-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: adbctool-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 39.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for adbctool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c9cbd62e7103f412954cb82e7ec78b978a1853855b55f73d34c72f4351fb319
MD5 cd748255c84bf6a66df001add2e6edeb
BLAKE2b-256 f6172f386c558fff6c1a326b3ac143082176203c9cc12361ed630263eec80643

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page