![background image](http://html2.mh-extra.com/html/rands/rta4000/rta4000_user-manual_3161987259.webp)
Serial bus analysis
R&S
®
RTA4000
259
User Manual 1335.7898.02 ─ 08
13.1.5.2
Content and format of the PTT file
Label lists are stored as PTT (protocol translation table) files. The PTT file format is an
extension of the CSV format (comma-separated values). You can edit it with standard
editors, for example, with MS Excel or a text editor.
The PTT file has three types of lines:
●
Comment lines begin with a hash character #. A hash character at any other posi-
tion in the line is treated like a standard character.
●
Command lines begin with a commercial at character @. An @ character at any
other position in the line is treated like a standard character.
●
Standard lines are the lines that not qualify as comment or command lines. They
build the core of the label list.
Command lines
Command lines define the version of the PTT file and the protocol name:
●
@FILE_VERSION: must appear exactly once in the file
●
@PROTOCOL_NAME: must appear at least once in the file. Thus, one file can
contain several label lists for different protocols.
# --- Start of PTT file
@FILE_VERSION = 1.0
@PROTOCOL_NAME = i2c
[... Label list for I2C]
@PROTOCOL_NAME = can
[... Label list for CAN]
# --- End of PTT file
Standard lines
Standard lines define the contents of the label list. The rules for standard lines follow
the csv convention, they are:
●
Values are separated by commas
●
Space characters following a delimiter are ignored
●
Values with a special character (comma, newline, or double quote) must be
enclosed in double quotes
●
Text in double quotes must be escaped by double quote characters
The format of the numeric value is indicated by a suffix. The following formats are sup-
ported:
Format
Suffix
Example
Decimal
<empty>
d
106, DeviceName
106d, DeviceName
Hexadecimal
h
6Ah, DeviceName
or prefix:
0x6A, DeviceName
Basics of protocol analysis