Skip to main content

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

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.1.5.tar.gz (22.5 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.1.5-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: adbctool-0.1.5.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for adbctool-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e699b395a0ed961f685221931d904f6f354f3f4f1437cc00948f33831d37d734
MD5 ed7fa674960c43183c528fb86674c8fe
BLAKE2b-256 5ad810c427cf30c0ed8f59877baae97d51e9002ca83b9d3bb4cb92284bddafce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adbctool-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for adbctool-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 74e465f896bb5c311387903161a2d3db66cc4f890d3742058a4ef72f5059b36b
MD5 d902b6ceea3f3e9e3137c5489f30ea47
BLAKE2b-256 c69a554c5693cdbc8e9ad68fdffeab390067bbf65478947bd5b20248b9f7825b

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