For converting from OMNeT++ .sca
and .vec
format to .json
, I would recommend using opp_scavetool
, which is part of OMNeT++.
For example, running the following command after having run the Veins 5.1 example simulation...
opp_scavetool x examples/veins/results/General-\#0.sca -F JSON -o -
...results in output that contains the following:
{
"module" : "RSUExampleScenario.rsu[0].nic.mac1609_4",
"name" : "SlotsBackoff",
"value" : 38
},
That said, if you are looking to use this output for statistical evaluation or plotting, I would recommend using .csv
over .json
, which allows for a more structured representation of data. This can be done using opp_scavetool
or using more powerful scripts such as the ones in https://github.com/veins/veins_scripts