-
Notifications
You must be signed in to change notification settings - Fork 166
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
Rust Vss-Parser (Lesson learn) #595
Comments
Does VSS expect enum to be processed as string ? Following actuator is typed as "string" when in fact it is an enum, and that with no doubt the CAN message is going to be coded on 3 bits. Should the mapping be done in the overlay ? Sending and processing a string is far more expensive than processing an enum, it also leave more error opportunity in application code.
|
What about a pretty name for sensors ? For client application, it would be nice to have a pretty name to display. Ideally in multiple local languages with the option to complete locale from overlay. I have no special opinion on syntax until it is simple to parse, but at least an English version of sensor name to display would be nice to have at main VSS spec level.
|
Some answers: Detection of broken links in generated documentation Would indeed be a good improvement. A pull request checking it as part of CI would be gladly accepted. Added #600 to follow up. Deprecation Described here: https://covesa.github.io/vehicle_signal_specification/rule_set/basics/#deprecation-since-version-21 The COVESA intention is to only do backward incompatible changes in major releases. So if we by any reason wants to rename a signal Units The file https://github.com/COVESA/vehicle_signal_specification/blob/master/spec/units.yaml contains the units used by the tree starting at https://github.com/COVESA/vehicle_signal_specification/blob/master/spec/VehicleSignalSpecification.vspec. To be able to use the tools https://github.com/COVESA/vss-tools you must specify both a *.vspec-file and a unit file. Examples used in CI can be seen in https://github.com/COVESA/vehicle_signal_specification/blob/master/Makefile. And, yes we use style like Single or double quotes We have a recommendation that single quotes shall be used for string literals. But it is not consistently used. In most cases it has no practical consequence - the *.vspec files are based on Yaml and there can be a slight difference in meaning between single and double quotes, but should for most of our usage not matter. Added #599 for follow up. VSS Enum Handling There have been long discussions in COVESA on enums. The official answer is: Pretty names for signals Here I could see two possible approaches for COVESA. One is to just define some keyword (with localization support) to be able to give a user friendly name for signals, the alternative is to actually also define user friendly names. There are ongoing discussions if VSS also need "short names" for signals, as the names of today for some platforms are too long, so it could possibly be related. We see similar requests to add more keywords now and then and we need to come up with a good way to handle coordination of them. It is being discussed as part of COVESA Data Expert Group ( see COVESA/data-expert-group#11 (restricted access)) |
Thank you for your quick response, outside of "virtual signal", you address all my concerns. For COVESA expert group page, either I do not have access or the link is wrong, but I cannot access COVESA/data-expert-group#11 |
Meeting notes:
|
I just push my initial Rust vss-parser https://github.com/redpesk-labs/vss-covesa-rs . My goal it to build something equivalent to what I did for dbc/sockcan https://github.com/redpesk-labs/canbus-rs . Note that this code should remain under "work in progress" for an other couple of weeks.
Here after few lessons learn from my initial experience with vss specifications. Current vss documentation, is quite good. Nevertheless few points could be improved to reduce the initial cost of adaption.
Missing feature for my project: Expect if vss-structure solve this, I did not find how to implement virtual signal. I have 'hardware structured' signals coming from DBC or NMEA2000 that I would like to map them on VSS. I also have signal units that depend on countries (ex: wind-speed in knots for France and in m/s for Finland). I was expecting to find something like:
Virtual signal
The text was updated successfully, but these errors were encountered: