Ok, seems fine to me :) What is the meaningof ":w" in your example ? Is it a flag to set it as a writable bus ?
If yes, would it be better to let that in the header.json file
which would include your CAN buses settings.
Good work.
On 25/05/2020 20:54, walzert wrote:
Hello Romain,
thank you for your testing and feedback. I'm happy that it worked in a basic way, it was a first proposal and I was not sure if the idea is working properly.
I made some changes based on your ideas, I don't have added all your changes for now, the multi-dbc is a part that is important, but I have to see how to do that in a good way.
I made a external header.json and the example_header.json (as a copy) file which could be edited easily, and I added a parameter for the bus with -b, I not included more can-files.
I put the information for the canbuses in the header-file because I think that are too much parameters for the command line and it is easier to do it in json with an normal editor.
The goal would be to have a interface like:
'' python3 dbc2json.py -i file1.dbc:hs:w file2.dbc:ls ''
Thank you very much
Thomas
-- Romain Forlot - Embedded Engineer - IoT.bzh romain.forlot@xxxxxxx - www.iot.bzh - +33675142438
_._,_._,_
Links:
You receive all messages sent to this group.
View/Reply Online (#8378) |
Reply To Group
| Reply To Sender
|
Mute This Topic
| New Topic
Mute #help
Your Subscription |
Contact Group Owner |
Unsubscribe
[list-automotive-discussions82@xxxxxxxxxxx]
_._,_._,_