apollo 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 filevehicle type: vehicle typesender: 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adbctool-0.1.6.tar.gz.
File metadata
- Download URL: adbctool-0.1.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21fd666d0e47553eb86ea26fd140c0e694b4491a026fd2da57bd8d63f0ad48a1
|
|
| MD5 |
38e2c658330ceb5420b8be6e3d5f0eeb
|
|
| BLAKE2b-256 |
e62373db46aeac30d838cd029f101ba53aaabcbb03d0ce82cd46651dc6ee5491
|
File details
Details for the file adbctool-0.1.6-py3-none-any.whl.
File metadata
- Download URL: adbctool-0.1.6-py3-none-any.whl
- Upload date:
- Size: 39.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b019af3f2e6ad825faefe3f1dea2fb0769c45c04311abc5f633dd6a41f143a
|
|
| MD5 |
bb8a465f5edc7048f64cb3a92b2c36b9
|
|
| BLAKE2b-256 |
ff74bba504a94176a4a51f9d556142a4d0a184b7c8cf831837d1725f0d99f273
|