New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retaining BA_ and BA_DEF_ in conversions #64
Comments
At the moment there is no complete export to xlsx possible. Your idea to pull definitions out of another dbc-file won't work (at the moment), because the attributes are signal- and frame-specific. |
Ok, so the use case is if you wanna define a new frame(s) in a nicely On Thu, Sep 22, 2016 at 2:55 PM, Eduard Bröcker notifications@github.com
|
Are they DBC specific attributes? If not, then perhaps it would be better to convert to one of the other formats with a CAN-specific editor. PEAK PCAN Symbol Editor (.sym) is freely available. http://www.peak-system.com/produktcd/ (browse to Or maybe one of the KCD tools? https://github.com/julietkilo/kcd I don't know, but it might be worth looking at editor options for the other formats in the mean time. Then again, they may have other conversion issues either direction as well. Good luck. |
No, just to simply store the corresponding PGN and/or SPN (j1939). Thanks for the kcd suggestion...maybe it has a better structure for storing such attributes...I'll check... |
Did you try:
this should take your original.dbc to your target.dbc and only add the frame |
Actually, yeah, that appears to do what I was describing in the second option! The reason it's taken me so long to respond is because my resulting dbc file had a problem in it. What was happening is that although the Signal Attribute (BA_DEF_ SG_) for one of the signals was of type STRING: the actual string value given on the corresponding BA_ attribute definition didn't convert with quotes around it: like there were in the original dbc file before the conversion: One other question: if the xlsx file only has a single frame in it, why do I have to specify the particular frame name? I tried to leave off the frame=yourNewFrame assuming it would know by default that I wanted to merge in the only frame that was in it and I got the error: |
seems you found 2 bugs. for the first one i create a new issue (#65) I have to repoduce the second one before I know whats going wrong here. |
fixed in branch "stableApi" |
I like starting with your xlsx format because it's a lot cleaner with Excel than mucking directly with the dbc files in a text editor. Unfortunately, in the conversions between dbc and xlsx, the definitions such as BA_ and BA_DEF_, etc. are lost.
Is there any way to retain that information? Or at least would it be possible to have an option that pulls them in from a specified dbc perhaps (e.g., canconvert --defs=reference.dbc source.xlsx target.dbc)??
The text was updated successfully, but these errors were encountered: