Skip to content
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

Cannot parse dbc files with special symbols, e.g., "°C" as Unit #236

Open
EFeru opened this issue Jan 10, 2022 · 2 comments
Open

Cannot parse dbc files with special symbols, e.g., "°C" as Unit #236

EFeru opened this issue Jan 10, 2022 · 2 comments

Comments

@EFeru
Copy link

EFeru commented Jan 10, 2022

Hi,

Thank you for the great work on this tool!

Maybe it is a minor one, but I thought is good to let you know. As the title says, when I load a dbc file that has special symbols like "°C", the tool is not able to load the dbc file.

It took me quite some time to pin point where the issue was. I had special symbols only in the Unit column, so I am not sure about other places like Comment filelds. Once I replaced with "degC" it worked. Maybe, you guys can check why it does that.
I did create a dbc parser/reader myself in .NET you can find it here and I didn't have this issue. But this tool could be different.

@matthias-mw
Copy link

Hi,

also from my side, thanks for the Tool! I also found a minor "bug" in the dbc-File import.
It bugs if you import "6.10352e-05". Changing it to "6.10352E-05" solves the issus....

Note for other users have possible trouble with the dbc-file:
Start CANdevStudio from the comandline. If the ist an error while importing you will see something like this:
[error] [dbcparser.cpp@66] Parser log 96:37 syntax error, unexpected 'e', expecting <double>.
where 96 ist the line and 37 the colum

@phatpaul
Copy link

phatpaul commented Aug 2, 2024

Yes.
If you want a DBC file to try, here is one that causes the parse error:
https://github.com/canboat/canboat/blob/master/dbc-exporter/pgns.dbc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants