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
Pgn ID and the key to the PgnLibrary hash map #10
Comments
I tried to name Basically, message ID values like Priority and SourceAddress-- variables that would otherwise make the lookup table useless-- get stripped off by PgnLibrary and it's up to the consumer to do the likewise in order to get the correct definition. For example, one j1939.dbc I have calls out message definition I think what needs to happen is to create a Thanks for the report! |
This makes perfect sense now. Thanks for the explanation! |
Howdy!
I was expecting to be able to fetch a message definition via it's declared message id in the dbc file. For example, I have
BO_ 1156 GPS_01: 8 ECIGateway
. The problem is that https://github.com/jmagnuson/canparse/blob/master/src/pgn.rs#L163 determines the key... and this derived key is the only way to access a message definition. Because message definitions get merged based on this derived key, I can't implement a reasonable lookup by name either. Signal definitions can be found, but this differs from my understanding of how things should or could be arranged.Since I'm new to CANbus in general and don't have an entirely clear picture of all the various incarnations of it, I didn't want to submit a PR where I fixed this for myself but it was just radically broken for a more common use case. Perhaps my understanding in general is wildly incorrect, but I'm following along with guides such as this http://socialledge.com/sjsu/index.php/DBC_Format.
What's the principle at work here?
Thanks!
The text was updated successfully, but these errors were encountered: