C++ application to decode .sym "Variables" into the .trc file
Posted: Wed 11. Dec 2024, 16:49
I am using pcan explorer 6 trace files being generated .trc and I need to convert them to csv(INTO THE CODE SO THAT I CAN PROCESS IT LATER AS I SEE FIT) so the data can be imported into a table along with the "Variables".
I have the symbol file which contains the "Variables".
Could you please guide me on the following:
1. how to do this using C# or C++.
2. MOST IMPORTANTLY: How do I map or decode the symbol file information of the "Variables" from just the trace file ? I want this as I have many trace file, I dont want to generate .csv file for them
( I am aware of the post by Mr. Ms. Snieves: "C# application to convert .trc using .sym file", the solution provided there is not what I am looking for.)
is there a preferred method that will help me decode/map the variables from the symbol file into my existing trace file ?
Any help would be greatly appreciated.
Data: <I borrowed as an example from Mr./Ms. Snieves>
.trc file:
Bus=1,ID=,Type=D,DLC=8,Data=255 210 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 211 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
Bus=1,ID=856,Type=D,DLC=6,Data=37 24 251 119 11 128 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
.sym file:
["857"]
DLC=6
Mux=u16AverageToNothing 1,8 00h
Var=u16ExampleEmpty signed 8,16
I have the symbol file which contains the "Variables".
Could you please guide me on the following:
1. how to do this using C# or C++.
2. MOST IMPORTANTLY: How do I map or decode the symbol file information of the "Variables" from just the trace file ? I want this as I have many trace file, I dont want to generate .csv file for them
( I am aware of the post by Mr. Ms. Snieves: "C# application to convert .trc using .sym file", the solution provided there is not what I am looking for.)
is there a preferred method that will help me decode/map the variables from the symbol file into my existing trace file ?
Any help would be greatly appreciated.
Data: <I borrowed as an example from Mr./Ms. Snieves>
.trc file:
Bus=1,ID=,Type=D,DLC=8,Data=255 210 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 211 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
Bus=1,ID=856,Type=D,DLC=6,Data=37 24 251 119 11 128 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
.sym file:
["857"]
DLC=6
Mux=u16AverageToNothing 1,8 00h
Var=u16ExampleEmpty signed 8,16