-
Notifications
You must be signed in to change notification settings - Fork 26
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
I tried to generate using following dbc file: #7
Comments
It was taken from comma.ai opendbc: https://github.com/commaai/opendbc/blob/master/toyota_corolla_2017_pt_generated.dbc |
The crate is fairly sensitive to order of the elements and white space. It basically needs to be reordered, some whitespace removed and missing semi-colons need to be added. At least some of the stuff should probably be fixed in can-dbc (e.g. unexpected whitespace). |
I just added the cantools dbc test files as an integration test. There a quite a number of files (23/58) not working right now, fixing those should cover more dbc files. Cantools seems to ignore the order of the elements so it probably make sense to ignore it in this crate as well. |
Just adding that I am trying to load a complete j1939 dbc file and hit parsing errors. I imagine many of the same issues as the failing tests you mention @marcelbuesing. Do you by chance have a good resource on the DBC format to help locate some of the errors? |
Since it's a proprietary format all I can tell you is, you might find what you are looking for when searching Baidu.cn for dbc file format. I think the issues right now are mostly:
So my goal is to finish the migration to nom 6 (nom6 branch) first so there is better error reporting (VerboseError). Help is welcome! |
I took another comma dbc file and arranged some fields around to be more compatible to common understanding about dbc files. However there is something still wrong and I am unable to figure out why decoder does not like this file. At least python cantools were able to parse it.
EDIT: found the issue: |
This particular issue is upstream problem. |
I'll close this for now- |
Originally posted by @andresv in technocreatives/dbc-codegen#7 (comment)
The text was updated successfully, but these errors were encountered: