Protocol Analysis
R&S
®
RTM20xx
152
User Manual 1317.4726.02 ─ 01
The PTT file has three types of lines:
●
Comment lines begin with a hash character #. A hash character at any other position
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 con-
tain 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
Additionally, numeric values may be decimal integer (default) or hexadecimal integer
(with prefix "0x")
# --- Start of PTT file
@FILE_VERSION = 1.0
@PROTOCOL_NAME = i2c
# Following two lines are equal:
7,0x01,Temperature
7,0x01, Temperature
# A comma must be enclosed in double quotes:
7,0x01,"Temperature, Pressure, and Volume"
# A double quote must also be enclosed in double quotes:
7,0x7F,"Highspeed ""Master"" 01"
# Following lines yield the same result:
7,0x11,Pressure
0x7,0x11,Pressure
0x7,17,Pressure
Basics of Protocol Analysis