Giter VIP home page Giter VIP logo

Comments (4)

mguentner avatar mguentner commented on July 18, 2024 1

A lot of opendbc files are broken because they seem to have been edited by hand with some (Windows?) editor.

Example: https://github.com/commaai/opendbc/blob/master/tesla_can.dbc#L101
This line reads

BO_ 14 STW_ANGLHP_STAT: 8 STW\r\SPACE\n

something dos2unix in https://github.com/GENIVI/CANdb/blob/master/src/dbcparser.cpp#L74 would not be able to fix.

I don't think that the opendbc files are good test cases because of that.
Idea: Better create a dedicated repository under GENIVI with dbc files produced by other (reference) tools. You can find a lot of genuine dbc files on GitHub under free licenses by searching for lines that are only produced by Vector tools: https://github.com/search?q=BA_DEF_+SG_++%22GenSigStartValue%22&type=Code

from candb.

collin80 avatar collin80 commented on July 18, 2024

My attempts at testing CANDevStudio ground to a halt because of this. I compiled CDS myself from the master branch pulled just a short while ago. I'm running Ubuntu 20.04.

NO DBC files that I load work at all. Sure, some of them I made myself with my own tools. You could blame me for producing slightly odd files. I'm sure my DBC files are not 100% conformant to the spec. But, Vector tools can load them. More or less official Tesla DBC files do NOT load in CANdevStudio. Official DBC files from Rinehart Motion do not load. Really, nothing that I try loads - I have a lot of DBC files too. ALL of these DBC files load fine elsewhere. I don't think it's fair to blame the DBC files when so many (seemingly ALL) blow up the loader. It seems there's some sort of unique trouble with the DBC loader in CANDevStudio as it accepts nothing while all the other programs I use that have DBC loaders can load these files perfectly fine. So, suspicion has to fall on the loader within CDS and not on the individual DBC files themselves.

Edit: sorry, thought I was commenting on an issue for CDS. Still, it all holds. CANdb is not loading any DBC files for me and I tried several from different sources. None work at all.

from candb.

mguentner avatar mguentner commented on July 18, 2024

@collin80 Even if the issues are resolved, the frame decoder / encoder of CANDevStudio is unfortunately also wrong.
Read this to learn more: GENIVI/CANdevStudio#202

If you need to have a working (FL)OSS solution now, I can suggest https://github.com/eerimoq/cantools - you won't get a fancy UI but all the scripting power of python :)

from candb.

jogo- avatar jogo- commented on July 18, 2024

GENIVI/CANdevStudio#202 Fixed with GENIVI/CANdevStudio#206 in v1.2.1

from candb.

Related Issues (8)

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.