Giter VIP home page Giter VIP logo

dbcc's Introduction

readme.md

dbcc

DBC converter/compiler

This program turns a DBC file into a number of different formats.

Introduction

dbcc is a program for converting a DBC file primarily into into C code that can serialize and deserialize CAN messages.

Building, Licenses and Dependencies

See the license file for details of the license for this program, it is released under the MIT license. Dependencies, if linked against, may have their own license and their own set of restrictions if built against.

The sources file mpc.c and mpc.h originate from a parser combinator written in C called MPC and are licensed under the 3 Clause BSD license

DBC file specification

For a specification, as I understand it, of the DBC file format, see dbc.md. This is a work in progress.

DBC VIM syntax file

There is a Vim syntax file for DBC files in the project, called dbc.vim

Operation

Consult the manual page for more information about the precise operation of the program.

Bugs / To Do

  • A lot of the DBC file format is not dealt with
    • Special values
    • Timeouts
    • Error frames
    • ...
  • The generated C code has not been tested that much (it is probably incorrect!)
  • Offer a template mechanism so arbitrary code can be populated with messages and signal lists.
  • Make a template converter
  • Read in produced XML file
  • Allow the merging of multiple DBC files
  • Write unit tests to cover the converter and the generated code.
  • Basic sanity checking of the DBC files could be built in.
    • The easiest way to check this is by generating an XML file and verifying it with an XSD file
  • Find more CAN database examples
<style type="text/css">body{margin:40px auto;max-width:850px;line-height:1.6;font-size:16px;color:#444;padding:0 10px}h1,h2,h3{line-height:1.2}</style>

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.