TXT to TRC converter (Peak)

The TXT to TRC converter converts raw TXT files to TRC (version 1.1 or 2.1) files supported by PEAK PCAN Explorer and other PEAK tools.


Additional input arguments

In addition to the standard input arguments (see Command line interface), the TXT to TRC Converter takes the following argument:

-f, --trace-format={version1,version2}   Which trace version to output, defaults to 2.1

Example output

An input TXT log file containing CAN-bus frames generates an output file as demonstrated by the example below (shows both version 1 (V1) and version 2 (V2)).

V1
;$FILEVERSION=1.1
;$STARTTIME=44908.4306377315
     1)         0.0 Rx        03FF 1  AA
     2)       100.0 Rx        03FF 2  AA AA
     3)       200.0 Rx        03FF 3  AA AA AA
     4)       300.0 Rx        03FF 4  AA AA AA AA
     5)       400.0 Rx        03FF 5  AA AA AA AA AA
     6)       500.0 Rx        03FF 6  AA AA AA AA AA AA
     7)       600.0 Rx        03FF 7  AA AA AA AA AA AA AA
     8)       700.0 Rx        03FF 8  AA AA AA AA AA AA AA AA
V2
;$FILEVERSION=2.1
;$STARTTIME=44908.4306377315
;$COLUMNS=N,O,T,B,I,d,L,D
      1         0.000 DT 1     03FF Rx 1    AA
      2       100.000 DT 1     03FF Rx 2    AA AA
      3       200.000 DT 1     03FF Rx 3    AA AA AA
      4       300.000 DT 1     03FF Rx 4    AA AA AA AA
      5       400.000 DT 1     03FF Rx 5    AA AA AA AA AA
      6       500.000 DT 1     03FF Rx 6    AA AA AA AA AA AA
      7       600.000 DT 1     03FF Rx 7    AA AA AA AA AA AA AA
      8       700.000 DT 1     03FF Rx 8    AA AA AA AA AA AA AA AA

Changelog

# Changelog

All notable changes to this project will be documented in this file.

## [24.10.17]

### Changed

- Versioning schema from SemVer to CalVer
- Default verbosity level changed to 2

### Fixed

- Fix for order of messages with same timestamp
- Fix timestamps when using output format 1, was microseconds instead of milliseconds

## [2.4.0]

### Changed

- Better log file timestamp handling

## [2.2.2]

### Fixed

- Conformity with output format improved

## [2.0.11]

### Changed

- Use channel 1 as default CAN channel

Download

Windows AMD64 / x86-64 (64-bit)

Linux AMD64 / x86-64 (64-bit)

Linux ARM64 (64-bit)