-
Notifications
You must be signed in to change notification settings - Fork 30
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
Put CustomProperties not belonging to any specific item (i.e. Message or Node) into a dbc global/root based container #70
Comments
@ChrisFromNI just to be sure. You have something like this: // Attribute Definitions for Nodes // Example usage for specific nodes BA_ "NodeSoftwareVersion" BU_ Node1 "v2.1.3"; How i understand you is that you can see the Value "v2.1.3" when accessing the data for Node1 but you want to see that this is a Node specific value instead of a global value? |
@Uight In addition to what you wrote, you can also have an attribute definition for the network. From my understanding the dbc file describes a hierarchy like Network>Nodes>Messages>Signals. Network attributes look like this in my dbc file (not sure though if that's inside the CAN DBC specifications): // Attribute Definitions for Network BA_DEF_DEF_ "DBName" "DeviceXDatabase"; Those attributes get added to the CustomProperties dictionaries of all nodes. But there is no CustomProperties for the network level (which would equal to the root of DbcParserLib.Dbc). If you add your example lines to my lines and parse that you will get two Nodes with CustomProperties.
My point is that you cannot distinguish the network attributes from the node attributes. For my application I need to get the network attributes only. |
@ChrisFromNI would you expext these network properties to be in a seperate list of customProperties (named network properties) or would it be enough to see if a value of a property was specifically written and is not the default? |
Hi, I think that if no specific BA_ or BU_ is indicated in the DEF_DEF_ properties should be added in a different root based container. Cheers |
…r environment updating with default values
It's merged in the PR, ready to release |
Hi there,
there are dbc files which define global attributes or network attributes, e.g.
When parsed, this attribute is added to all nodes' CustomProperties in Dbc.Nodes. However, each node may have unique Node attributes (defined with
BA_DEF_ BU_
) themselves. Now each node has CustomProperties which may contain Network and Node attributes. If I didn't miss any property/method, there is no way to distinguish between those two.One way to accomplish this would be a CustomProperties property on Dbc root level.
The text was updated successfully, but these errors were encountered: