Tracefile Format: What dertermines which version is used?
Posted: Wed 23. Jan 2019, 17:36
I've written a script that will take a .trc file and annotate it based on our custom protocol in order to aid in debugging. I recently received a .trc file from a customer and my script had a hard time parsing it. After looking into it, I noticed that the header was different. Here is the header from the file I received:
And here is the header from a typical .trc that I captured:
I noticed two things. The FILEVERSION was different as was the PCAN-View version. So I downloaded the latest version of PCAN-View v4.2.1.533 and captured a new .trc. Here is the header from that trace:
Digging deeper, I found the PEAK CAN TRC File Format document (https://www.peak-system.com/produktcd/P ... Format.pdf) which states that FILEVERSION 1.1 is for PCAN-View 3 and FILEVERSION 2.0 is for PCAN-View 4.
So why is it that when I'm using two separate version of PCAN-View 4 (v4.2.0.514 and v4.2.1.533) I receive .trc files in version 1.1? My customer has been sending me traces for month from PCAN-View v4.2.1.533 and they have always been in FILEVERSION 1.1. What could have changed that they are now being saved in FILEVERSION 2.0? I don't see any way to control this from within PCAN-View. Does it have to do with the driver or the adapter being used? What am I missing here?
Code: Select all
;$FILEVERSION=2.0
;$STARTTIME=43483.3634219097
;$COLUMNS=N,O,T,I,d,l,D
;
; C:\Projects\BootloaderError.trc
; Start time: 1/18/2019 08:43:19.653.0
; Generated by PCAN-View v4.2.1.533
Code: Select all
;$FILEVERSION=1.1
;$STARTTIME=43487.4708017593
;
; C:\Users\kyle\Workspace\old.trc
;
; Start time: 1/22/2019 11:17:57.272.0
; Generated by PCAN-View v4.2.0.514
Code: Select all
;$FILEVERSION=1.1
;$STARTTIME=43487.4710769676
;
; C:\Users\kyle\Workspace\new.trc
;
; Start time: 1/22/2019 11:18:21.050.0
; Generated by PCAN-View v4.2.1.533
So why is it that when I'm using two separate version of PCAN-View 4 (v4.2.0.514 and v4.2.1.533) I receive .trc files in version 1.1? My customer has been sending me traces for month from PCAN-View v4.2.1.533 and they have always been in FILEVERSION 1.1. What could have changed that they are now being saved in FILEVERSION 2.0? I don't see any way to control this from within PCAN-View. Does it have to do with the driver or the adapter being used? What am I missing here?