GithubHelp home page GithubHelp logo

J1939 Digital Annex to DBC about canmatrix HOT 4 OPEN

mattie47 avatar mattie47 commented on July 1, 2024
J1939 Digital Annex to DBC

from canmatrix.

Comments (4)

ebroecker avatar ebroecker commented on July 1, 2024

Hi @mattie47 ,

I am quite sure, canmatrix cannot do the conversion.
I never ha a DA in my hands, so I'd wounder if this works...

But maybe it's not to hard to implement, if I could get some basic information about this xlsx.
things like column-headers would help a lot

from canmatrix.

mattie47 avatar mattie47 commented on July 1, 2024

Thanks Eduard.

Slide 76, and slide 77 have a couple screenshots of the historic xls 2020 version:
https://www.cybertruckchallenge.org/wp-content/uploads/2022/06/Introduction-to-SAE-J1939-CyberTruck-2022.pdf

I'm not too sure how much can be shared, but I will see if I can provide a sanitised file with just the headers etc.

Worthy of note for https://github.com/nmfta-repo/pretty_j1939 is the author had always intended on trying to make it work with canmatrix (see last section of the readme).

https://github.com/andrewdodd/decoda is another tool which also built on pretty_j1939:
However, if you own a copy of the SAE Digital Annex (link), then this library provides a number of bundled scripts to convert the XLS file to a suitable JSON spec file. The code for these scripts borrows heavliy from the pretty_j1939 library, but it has been adjusted to work in a slightly different way.

from canmatrix.

MatinF avatar MatinF commented on July 1, 2024

We convert the J1939 Digital Annex to DBC format for every new revision, in a legal collaboration with SAE. You can purchase the DBC file here: https://www.csselectronics.com/products/j1939-dbc-file

In my opinion canmatrix is not well suited to handle this as the J1939 DA is filled with various syntax inconsistencies and issues. It's a lot of manual work to ensure the output is right.

from canmatrix.

mattie47 avatar mattie47 commented on July 1, 2024

Yeah it's quite a pain unfortunately. I wish I'd reached out here first to confirm what exact support there currently was, rather than just buying the spreadsheet. Things seem to be a lot simpler when they're in a DBC file for consumption in other tools, rather than the XLS/XLXS directly from SAE.

We had some shifting priorities internally so I haven't had a look at this much further.

A colleague did make a couple minor changes to pretty_j1939 to make it work with the latest DA though, however this was a pretty minimal change, and still requires converting the XLXS to XLS first:

https://github.com/SherifRiad/pretty_j1939

from canmatrix.

Related Issues (20)

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.