-
Notifications
You must be signed in to change notification settings - Fork 407
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
Export value range(min/max) of SG signals to JSON #275
Comments
this is related to #136 - Json export is not yet complete. |
Thanks for your prompt response +1 Was my analysis correct that the "min" and "max" fields have to be added to the signalDict object in cmjson.py or are more changes necessary to achieve the goal? |
read min and max values from json (#275)
@nodermatt please try my pr:
And yes, extending the signal-array would be enough. You can use this pr. It will go upstream. Typically it will take some days to do so. Best Regards, |
add min and max to jsonAll export #275
First of all, thanks for the fantastic tool @ebroecker ! It was extremely helpful for us when we developed an App that needs to handle many different dbc files for various vehicle types.
I've got one question regarding the json extraction option (--jsonExportAll ): Is it possible to extract the valid value range of a CAN message from dbc to JSON also?
We noticed that when converting the below CAN message from dbc we're missing the min and max value defined in square brackets between the "unit" and "factor/offset". There is an issue #126about min/max/default but I wasn't sure if it is related to my question.
I thought I might be able to extend the code in cmjson.py [here]
canmatrix/src/canmatrix/cmjson.py
Line 134 in b115744
canmatrix/src/canmatrix/dbc.py
Line 513 in b115744
Is there a particular reason why the min and max fields aren't exported by default?
The text was updated successfully, but these errors were encountered: