Site Master is the preferred cable and antenna analyzer of
wireless providers, contractors and installers.
Site Master
™
S331D/S332D
Cable and Antenna Analyzer
MS2712
MS2712
MS2712
SiteMaster
SpectrumMaster
CellMaster
MS2711D
Spectrum Master
S331D
Site Master
SiteMaster
SpectrumMaster
MT8212A
Cell Master
CellMaster
Color display option shown
Programming Manual
WARRANTY
The Anritsu product(s) listed on the title page is (are) warranted against defects in materi
als and workmanship for one year from the date of shipment.
Anritsu’s obligation covers repairing or replacing products which prove to be defective
during the warranty period. Buyers shall prepay transportation charges for equipment re
turned to Anritsu for warranty repairs. Obligation is limited to the original purchaser.
Anritsu is not liable for consequential damages.
LIMITATION OF WARRANTY
The foregoing warranty does not apply to Anritsu connectors that have failed due to nor
mal wear. Also, the warranty does not apply to defects resulting from improper or inade
-
quate maintenance by the Buyer, unauthorized modification or misuse, or operation
outside the environmental specifications of the product. No other warranty is expressed or
implied, and the remedies provided herein are the Buyer’s sole and exclusive remedies.
TRADEMARK ACKNOWLEDGEMENTS
Site Master is a trademark of Anritsu Company.
NOTICE
Anritsu Company has prepared this manual for use by Anritsu Company personnel and
customers as a guide for the proper installation, operation, and maintenance of Anritsu
Company equipment and computer programs. The drawings, specifications, and information contained herein are the property of Anritsu Company, and any unauthorized use or
disclosure of these drawings, specifications, and information is prohibited; they shall not
be reproduced, copied, or used in whole or in part as the basis for manufacture or sale of
the equipment or software programs without the prior written consent of Anritsu Company.
-
UPDATES
Updates to this manual, if any, may be downloaded from the Anritsu internet site at:
http://www.us.anritsu.com.
March 200410580-00100
Copyright ã 2003-2004 Anritsu Co.Revision: B
VNA Signal Standards.....................................123
ivSite Master PM
Programming Overview
NOTE: This programming manual is written exclusively for Anritsu Site Master Models S331D and
S332D. For information on firmware upgrades, contact your local Anritsu Service Center. Commands
listed in this manual are not all backward-compatible with earlier Anritsu models.
General Description
The Site Master must first be set into “remote” mode for communication with a computer. Remote mode differs from normal
repetitive sweep and single-sweep modes. During remote mode, the Site Master suspends normal operations and attends to
the serial port. The front panel display indicates when the Site Master is in remote mode.
Once in remote mode, a series of control bytes and associated data are sent to the Site Master to perform various functions
and activities. The serial port supports virtually all features accessible from the keypad with the exception of the printer. The
printer requires connection to the same 9-pin connector on the Site Master rear panel used for remote communication.
To complete the communication session, send the control byte to exit remote mode and the Site Master will resume normal
operations. You may also exit the remote mode by pressing the ESCAPE/CLEAR key on the Site Master front panel.
Interface Cable Installation
The Site Master is a DTE-type serial device. Communication between the Site Master and a PC is accomplished over a null
modem serial cable provided with the Site Master (Anritsu part number 800-441). Connect the cable to the Serial Interface
connector on the Site Master test connector panel and to the appropriate COM port connector on the PC.
Serial Communication Parameters
The Site Master begins communication at 9600 bps when first powered on. It uses no parity bits, 8 data bits, and 1 stop bit
(N-8-1). No hardware handshaking is used. The Set Baud Rate Control Byte #197 (C5h) serial command can be used to
change the baud rate to 19,200, 38,400, 56,000 or 115,200. An invalid setting returns the rate to 9600.
Communications Error Checking
Since there is no hardware handshaking, byte level error handling must be done by the controlling program. Use the expected
number of response bytes (listed in the control byte description section of this manual) when waiting for feedback from the
Site Master. For data streams going to the Site Master, the “watch dog timer” protects against interrupted transmissions by
aborting a control byte sequence if the inter-byte time limit is exceeded.
Parameter Validation
The Site Master validates input parameters for each control byte sequence. If the input parameters are out of range or invalid,
the Site Master notifies the computer by sending Parameter Error Byte #224 (E0h). The Site Master discards the received
data and waits for the next control byte.
Entering Remote Mode
Send the Enter Remote Mode Byte #69 (45h) to the Site Master to enter remote mode at the end of the current sweep. Send
the Enter Remote Mode Immediately byte #70 (46h) to enter remote mode in the middle of a sweep.
The Site Master serial port buffer is one byte wide. No internal buffer exists, so waiting for the response from the unit is es
sential. If the Site Master is not in remote mode, sending a second byte overwrites the original byte commanding it to enter
remote mode. If control byte #69 is sent, the Site Master will enter remote mode at the end of the current sweep. If control
byte #70 is sent, the unit will enter remote mode as soon as it receives the byte. This means that data stored for the current
sweep may be incomplete. Once a response string is received from the Site Master, the unit is ready to accept additional con
trol bytes.
-
-
Site Master PM1
Exiting Remote Mode
To exit remote mode, send the Exit Remote Control byte #255 (FFh) to the Site Master. The Site Master sends a response
byte of 255 (FFh) then exits remote mode. Remote mode can also be exited by pressing the ESCAPE/CLEAR front panel
key.
Remote Mode Changes to Site Master Operating Parameters
System parameters changed during remote mode remain changed for normal operation after the unit exits remote mode.
However, the changes are not automatically written to the non-volatile EEPROM. Turning off the Site Master power erases
the changed settings.
To retain the changes, the setup must be saved to one of the setup memory locations. Use either the run-time setup location 0,
(which holds the power-on defaults) or one of the nine other setup locations. Control byte #64 (40h) sets the auto-save flag
which commands the Site Master to automatically save the changes to the run-time setup location upon exiting remote mode.
See the Site Master User’s Guide or information in this manual on control byte #18 (12h) for further details.
Write Cycle Limitation of EEPROM
The EEPROM, used to store calibrations, setups and traces has a guaranteed lifetime of at least 100,000 write cycles and an
unlimited number of read cycles. The write cycle limitation is for a specific location. For example, setup #1 can be stored
100,000 times and setup #2 can be stored 100,000 times, etc. Because of this, the Site Master does not automatically store the
changed system parameters to the EEPROM. Be aware of the EEPROM write cycle limitation when programming the Site
Master and keep the number of write cycles to a minimum.
Documentation Conventions
Throughout this manual, the following conventions will be observed:
Numeric Representation
Hexadecimal numbers are represented with the suffix h. For example, the decimal number 255 is represented in hexadecimal
as FFh.
Binary numbers are represented with the suffix b. For example, the decimal number 2 is represented in binary as 10b.
Decimal numbers are represented with the prefix # when referring to a control byte (command byte) and without a prefix or
suffix in all other cases.
Bit Positions
When enumerating bits in a byte, bit 0 will always be the least significant bit (LSB).
Mode References
The term “VNA” in reference to a command denotes Return Loss, SWR, Cable Loss and DTF modes. The term “SPA” in
reference to a command denotes Spectrum Analyzer mode. All other modes are referenced individually.
2Site Master PM
Control Byte Summary
Control Byte
#
1 (01h)Setup SystemSets system status flags and switchesYes
2 (02h)Set VNA FrequencySets Site Master VNA frequency rangeYes
3 (03h)Select Measurement ModeSets current Site Master measurement modeYes
4 (04h)Set VNA ScaleSets Site Master VNA scale valuesYes
5 (05h)Set VNA MarkerSets position and on/off status of Site Master markers in VNA modesYes
6 (06h)Set VNA Single LimitSets position and on/off status of the Site Master single limit in VNA modesYes
7 (07h)Set DTF ParametersSets Distance to Fault parametersYes
8 (08h)Set Time/DateSets time and date of the Site MasterYes
9 (09h)Set Reference NumberSets reference number (trace name) for a sweep traceYes
10 (0Ah)Serial Port Echo On/OffAllows synchronization of Site Master and request from computer for sweep trace Yes
11 (0Bh)VNA Single Sweep On/OffEnables or disables single sweep operation in VNA modesYes
12 (0Ch)Watch-dog Timer On/OffEnables or disables the watch-dog timer—-
13 (0Dh)Sequence SM CalibrationTriggers a calibration stepYes
14 (0Eh)Set Site Master Data Points Sets number of measurement data points for Site Master VNA modesYes
15 (0Fh)Set SM Calibration ModeSets the Site Master calibration mode to OSL Cal (standard) or FlexCalYes
16 (10h)Store Sweep TraceSaves current trace data to EEPROM—-
17 (11h)Recall Sweep TraceSite Master sends the sweep data associated with a trace (obsolete)Yes
18 (12h)Save System SetupSaves system setup parameters to EEPROMYes
19 (13h)Recall System SetupRecalls system setup parameters from EEPROMYes
20 (14h)Query System StatusGets the current system settings (obsolete)—-
21 (15h)Trigger Self-TestTriggers a self test—-
22 (16h)Read Fail CountersReturns the values of the lock-fail and integrator counters—-
24 (18h)Query Trace NamesReturns list of all saved traces—-
25 (19h)Delete Sweep TraceDeletes single or all stored sweep tracesYes
26 (1Ah)Upload SPA Sweep TraceUploads a spectrum analyzer sweep trace to Site Master (obsolete)Yes
27 (1Bh)Query Sweep MemoryQueries Site Master for percentage of memory that is available for trace storage—-
28 (1Ch)Upload VNA Sweep TraceUploads a Site Master VNA mode sweep trace to the Site Master (obsolete)Yes
29 (1Dh)Query System StatusQueries the Site Master for current system settingsYes
54 (36h)Set Trigger PositionSets the trigger position for the SPA when the span is 0Yes
55 (37h)Set Video Trigger LevelSets the trigger level for the SPA in video trigger modeYes
64 (40h)Auto Save Runtime SetupAutomatically save the runtime setup when exiting remote modeYes
69 (45h)Enter Remote Mode
70 (46h)
80 (50h)Write Custom CableWrites Custom Cable data to Site MasterYes
81 (51h)Recall Custom CableRecalls Custom Cable data from Site MasterYes
82 (52h)Write AntennaWrites custom antenna data to the Site Master via the serial portYes
83 (53h)Recall AntennaRecalls custom antenna data from the Site Master via the serial portYes
84 (54h)
85 (55h)Set Channel PowerSets the Channel Power measurement state and the setup parametersYes
86 (56h)Read Channel PowerReads the current channel power or the channel power of a stored traceYes
87 (57h)Set ACPRSets the ACPR measurement state and parametersYes
88 (58h)Read ACPR
89 (59h)
96 (60h)
97 (61h)
98 (62h)Set Bias Tee FunctionSet the Bias Tee function On/Off (Option 10 only)Yes
99 (63h)
100 (64h)
101 (65h)
102 (66h)
103 (67h)
105 (69h)
Power Meter RMS
Averaging On/Off
Power Meter Center
Frequency and Span
Set SPA Minimum Sweep
Time
Enter Remote Mode
Immediately
Set Field Strength
Measurement
Read Signal Standard
Name
Measure OCC BW % of
Power
Measure OCC BW dB
Down
Set Spectrum Analyzer
Start/Stop Frequency
Set Spectrum Analyzer
Center Freq./Span
Set Spectrum Analyzer
Scale
Set Spectrum Analyzer
Marker
Set Spectrum Analyzer
Single Limit
Set Spectrum Analyzer Max
Hold
NameDescription
Sets Power Meter RMS Averaging.Yes
Sets the center frequency and span frequency for the Power Meter modeYes
Sets the min sweep time for the SPA when the span is 0Yes
Enters remote mode at the end of the sweep and returns model number and
firmware version
Enters remote mode immediately and returns model number and firmware
version
Sets the field strength measurement state and the antenna indexYes
Reads the current adjacent channel power or the adjacent channel power of a
stored trace
Returns the signal standard name in EnglishYes
Measures OCC BW with % of Power methodYes
Measures OCC BW with dB down methodYes
Sets the Spectrum Analyzer Start and Stop frequenciesYes
Sets the Spectrum Analyzer center frequency and frequency spanYes
Sets the Spectrum Analyzer reference level and scale valueYes
Sets position and on/off status of a Spectrum Analyzer markerYes
Sets position and on/off status of Spectrum Analyzer single limit lineYes
Enables or disables the Spectrum Analyzer Max Hold featureYes
Watchdog
Timer
—-
—-
Yes
4Site Master PM
Control Byte
#
106 (6Ah)
107 (6Bh)
108 (6Ch)
109 (6Dh)
110 (6Eh)
111 (6Fh)
112 (70h)
113 (71h)
114 (72h)
115 (73h)Set Reference Level OffsetSets the value of the reference level offsetYes
117 (0x75)Read Marker Value
118 (76hSet Sweep AveragingSets the number of sweeps to averageYes
120 (78h)Field InstaCalInitiates an InstaCal calibration—-
124 (7Ch)
129 (81h)
133 (85h)
134 (86h)
136 (88h)Set SPA Preamp StateSets the state of the SPA preampYes
140 (8Ch)Set SPA UnitsSets the scale type (logarithmic or linear) and the unitsYes
141 (8Dh)
142 (8Eh)Set SPA Video BandwidthSets the video BW frequency for the Spectrum AnalyzerYes
143 (8Fh)Set SPA AttenuationSets the attenuation for the Spectrum AnalyzerYes
145 (91h)Set AM/FM DemodSets the AM/FM/SSB Demodulation stateYes
197 (C5h)Set Baud RateSets the serial communication baud rate for this sessionYes
198 (C6h)Set LanguageSets the Site Master display languageYes
208 (D0h)Query TimeQueries the Site Master for the current time in ASCII format—-
221 (DDh)Read Main Serial NumberReturns the Main (External) Serial Number as four bytesYes
255 (FFh)Exit Remote ModeEnds serial communications—-
A001hSet T1 Transmission LevelSets the transmission level of T1 measurement modeYes
A002hSet T1/E1 Clock SourceSets the Clock Source of T1/E1 measurement modeYes
A003hSet T1/E1 PatternSets the data pattern of T1/E1 measurement modeYes
Set Spectrum Analyzer
Resolution Bandwidth Freq
Set Spectrum Analyzer
Video Bandwidth Freq
Set Spectrum Analyzer
Sweep Mode
Set Spectrum Analyzer
Marker to Peak
Set Spectrum Analyzer
Marker to Center
Set Spectrum Analyzer
Attenuation
Set VNA Segmented Limit
Lines
Set Spectrum Analyzer
Multiple Limit
Set Return Spectrum
Analyzer Sweep Time
Read InstaCal Module
ASCII Serial Number
Set Site Master Marker
(Peak/Valley)
Set/Reset SPA External
Reference
Check External SPA
Reference
Set SPA Resolution
Bandwidth
NameDescription
Sets the Spectrum Analyzer resolution BW frequency (obsolete)Yes
Sets the Spectrum Analyzer video BW frequency (obsolete)Yes
Sets the Spectrum Analyzer sweep modeYes
Sets specified marker to peak value of the sweepYes
Sets the center frequency equal to the frequency of the specified markerYes
Sets the attenuation for the Site Master Spectrum Analyzer mode (obsolete)Yes
Sets the position and On/Off status of the segmented limit lines for the VNA
modes
Sets the position and On/Off Status of a limit segment for the SPA modeYes
If this is enabled, the duration of the current sweep (in milliseconds) will be
returned as 4 bytes via the serial port at the end of the sweep
Returns the frequency location of the specified marker, and the value at that
location
Returns the InstaCal Module serial number in ASCIIYes
Sets an individual marker in current measurement mode to either peak
(maximum) signal or valley (minimum) signal
Sets the external reference frequency for the spectrum analyzerYes
Returns the state of the SPA external reference—-
Sets the resolution BW frequency for the Spectrum AnalyzerYes
Watchdog
Timer
Yes
Yes
Yes
Yes
Site Master PM5
Control Byte
#
A004h
A005hSet T1/E1 Framing ModeSets the Framing Mode of T1/E1 measurementYes
A006h
A007h
A008hGet T1/E1 PatternReturns the current pattern for T1 and E1 modes—-
A009h
A00Ah
A00BhGet T1/E1 Carrier StatusReturns the carrier status for T1 and E1 modes—-
A00Ch
A00Dh
A00EhSet E1 Impedance OptionsSets the impedance for the E1 modeYes
A00Fh
A013h
A014h
A015hSet T1/E1 Data LoggingEnables/disables data logging in T1/E1 modesYes
A016hRead T1/E1 dBdsxInitiates a voltage measurement and returns the result in dBdsx—-
A017hRead T1/E1 FrequencyReturns the last T1/E1 frequency measurement result in Hz if available—-
A018hRead T1/E1 Freq CalReturns the current T1/E1 frequency calibration setting—-
A019hSet T1/E1 Frequency CalSets the T1/E1 frequency calibration valueYes
A103h
A201h
A202h
A203h
A204hRead Module Fail CounterReturns the value of the module lock fail counter (Option 6 only)—-
A205hClear Module Fail CounterSets the module lock fail counter to 0 (Option 6 only)—-
A104h
AA30hTrigger SweepCauses the Site Master to perform a sweep if it is in single sweep mode—-
AA15hRemote Self TestTrigger the equivalent of a "key press" selftest.—-
Set T1/E1 Error Insert
Type/Value
Start and Stop T1/E1
Measurement
Insert Error for T1/E1
Measurement
Get T1/E1 Frame Sync
Status
Get T1/E1 Pattern Sync
Status
Get T1/E1 Error Type and
Number
Set T1/E1 Line Coding
Options
Read T1 Volts
Peak-to-Peak
Set T1/E1 Receive Input
Configuration Options
Set T1/E1 Measurement
Duration
Select SPA/Power Meter
Signal Standard
Read External Module
Name
Read External Module
Serial Number
Read External Module
Frequency Range
Select SPA/Power Meter
Channel
NameDescription
Sets the Insertion Error type and the number of errorsYes
Toggles state of T1 and E1 measurements—-
Inserts the error defined into the data flow—-
Returns the current frame sync status for T1 and E1 modes—-
Returns the current pattern sync status for T1 and E1 modes—-
Returns the error type and numbers for T1 and E1 modes—-
Sets line coding options for T1 and E1 modesYes
Returns the Vpp measurement result—-
Sets the Rx input configuration for T1 and E1 modesYes
Sets T1 and E1 measurement durationYes
Selects a Signal StandardYes
Returns the name of the attached external block converter module (Option 6
only)
Returns the serial number of the attached external block converter module
(Option 6 only)
Returns the frequency range of the attached external block converter module
(Option 6 only)
Selects a channel within the range of the currently selected signal standardYes
Watchdog
Timer
—-
—-
—-
NOTES: T1/E1 commands are available with Option 50 only. Power Meter commands are available with
Option 29 only.
6Site Master PM
Control Byte Descriptions
Setup System – Control Byte #1 (01h)
Description: Sets system status flags and switches. The current value of the flags can be obtained by executing command
#29, Query System Setup, and parsing the values from the appropriate bytes. The Site Master acts on the entire byte. So, the
state of each of the bits must be defined every time the command is issued. See control byte #29 (1Dh) response byte 170
(VNA mode) or response bytes 275 and 276 (SPA mode) for current Site Master configuration.
Bytes to Follow: 2 bytes
1) Status Byte 1
bit 0: Fixed CW Mode On/Off (1b = On, 0b = Off)
bit 1: Not Used
bit 2: LCD Back Light On/Off (1b = On, 0b = Off)
bit 3: Measurement Unit Metric/English (0b = English, 1b = Metric)
bits 4-7: Not Used
2) Status Byte 2
bit 0: RBW Coupling (to span) (1b = Auto 0b = Manual)
bit 1: VBW Coupling (to RBW) (1b = Auto 0b = Manual)
bit 2: Not Used
bits 3-4: Amplitude Units (00b = dBm 01b = dBV 10b = dBmV 11b = dBuV)
bits 5-6: Detection Algorithm (00b = Positive Peak 01b = RMS Average 10b = Negative Peak
11b = Sampling Mode)
bit 7: Attenuation Coupling (to ref level) (1b = Auto 0b = Manual)
Set Site Master VNA Frequency – Control Byte #2 (02h)
Description: Sets the Site Master frequency range. Start and stop frequencies are given in terms of 1 Hz steps. (e.g. 1000.3
MHz would be sent as 1000300000 = 1,000,300,000 Hz.)
Valid range is 25 MHz – 4000 MHz.
See control byte #29 (1Dh) response bytes 28 to 35 for current Site Master start and stop frequencies.
Bytes to Follow: 8 bytes
1)Start Frequency (highest byte)
2)Start Frequency
3)Start Frequency
4)Start Frequency (lowest byte)
5)Stop Frequency (highest byte)
6)Stop Frequency
7)Stop Frequency
8)Stop Frequency (lowest byte)
Site Master Returns: 1 byte
1)255 (FFh) Operation Complete Byte
224 (E0h) Parameter Error : Invalid frequency range
238 (EEh) Time-out Error
1Set the Metric/English flag to the proper value before sending distance information.
Site Master PM7
Select Measurement Mode – Control Byte #3 (03h)
Description: Sets the measurement mode of the Site Master. The response byte will not be sent until the mode change is
complete.
See control byte #29 (1Dh) response byte 3 for the current Site Master measurement mode.
Bytes to Follow: 1 byte
1) Measurement Mode
00h: RL Frequency
01h: SWR Frequency
02h: Cable Loss Frequency
10h: RL Distance
11h: SWR Distance
30h: Spectrum Analyzer Mode
31h: Transmission Mode (Option 21 only)
40h: Power Meter Mode (Option 29 only)
60h: T1 Tester Mode (Option 50 only)
70h: E1 Tester Mode (Option 50 only)
Set Site Master VNA Marker – Control Byte #5 (05h)
Description: Sets an individual marker position and status in the current VNA measurement mode. See Control Byte #102 to
set markers in Spectrum Analyzer mode.
The Site Master sets the position of a marker by its relative position on the graph. The lowest position is 0 at the start
frequency (or distance). The highest position is the data point number at the stop frequency (or distance). For example, for a
resolution of 130, the first frequency is at position 0. The last frequency is at 129.
To calculate the data point from a frequency (or distance):
Set Site Master VNA Single Limit – Control Byte #6 (06h)
Description: Sets the position and On/Off status of the Single Limit Line for the VNA modes. See control byte #103 to set
the single limit for spectrum analyzer mode.
The single limit is a single, horizontal line. It can be set to On/Off in any Site Master mode. If Limit Beep is set to ON, the
Site Master will give an error beep when sweep data appears above the limit line in SWR or Return Loss mode, or when
sweep data appears below the limit line in Cable Loss mode.
The single limit and multiple limit types are mutually exclusive. That is, setting the single limit ON automatically turns
multiple limit lines OFF. See control byte #112 (70h) for information about multiple limits. See control byte #29 (1Dh)
response bytes 56-59, and byte 164 for current Site Master configuration.
2This byte is not applicable for markers 5 and 6. It will be ignored by the Site Master.
Site Master PM9
Notes:
Return Loss & Cable Loss:
Limit should be sent as ( dB * 1000 )
Maximum value sent is 60000 which represents 60.00 dB
Minimum value sent is 0 which represents 0.0 dB
SWR:
Limit is in thousandths (of ratio), so it should be sent as ( ratio * 1000 )
Maximum value sent is 65530 which represents 65.53
Minimum value sent is 1000 which represents 1.00
Set DTF Parameter – Control Byte #7 (07h)
Description: Sets Distance to Fault parameters.
Be aware using this control byte. The distance to fault parameters are all inter-related. Consequently, the control byte must
change all of those parameters at the same time to properly set them.
Enter Start and Stop distances in hundred-thousandths of a meter or foot (12.34m would be sent as 1234000).
Relative Propagation Velocity is in hundred-thousandths (a Relative Propagation Velocity of 0.850 will be sent as 85000).
Cable Loss is in hundred-thousandths of dB/m or dB/ft (–0.345 dB/m would be sent as 34500).
See control byte #29 (1Dh) response bytes 130-137 (Distance), 150-157 (Propagation Velocity & Cable Loss) for current Site
Master configuration.
Bytes to Follow: 16 bytes
1) Start Distance (highest byte)
2) Start Distance
3) Start Distance
4) Start Distance (lowest byte)
5) Stop Distance (highest byte)
6) Stop Distance
7) Stop Distance
8) Stop Distance (lowest byte)
9) Relative Propagation Velocity (highest byte)
10) Relative Propagation Velocity
11) Relative Propagation Velocity
12) Relative Propagation Velocity (lowest byte)
13) Cable Loss (highest byte)
14) Cable Loss
15) Cable Loss
16) Cable Loss (lowest byte)
Site Master Returns: 1 byte
1)255 (FFh) Operation Complete Byte
224 (E0h) Parameter Error : Parameter(s) out of range
238 (EEh) Time-out Error
10Site Master PM
Set Time/Date – Control Byte #8 (08h)
Description: Sets the current time and date.
This Time/Date is stamped into all stored sweeps (for users’ reference).
The Site Master stores bytes as ASCII text. Recommended time form is “hh:mm:ss” (hour:minute:sec). Recommended date
format is “mm/dd/yyyy” (month/day/year).
The current time setting can be found by using control byte #33 to recall trace 0 and examining response bytes 31-38.
The current date setting can be found by using control byte #33 to recall trace 0 and examining response bytes 21-30.
Description: Stores a Reference Number with the sweep trace.
The reference number is also known as the trace name. It is any combination of 16 letters, numbers and the characters “-“,
“,”, “.” and “+”. This command stores a trace name with the sweep trace.
The current reference number is found by recalling trace 0 and examining response bytes 39 to 54.
Bytes to Follow: 16 bytes (ASCII text string)
Site Master Returns: 1 byte
Description: Sets the serial port echo mode On/Off.
Serial Port Echo Mode uses the single sweep mode (see control byte #11 (0Bh)). At the end of each sweep cycle, the Site
Master sends a Sweep Complete Byte #192 (C0h) to the serial port.
This mode activates once the Site Master exits from the remote mode. Serial Port Echo status can’t be saved to or recalled
from saved setups. Cycling power resets the Serial port echo status to Off.
The Serial Port Echo Mode allows run-time handshaking between the Site Master and computer by doing the following:
1) Enter remote mode. Set Serial Port Echo Mode On. Exit remote mode.
2) The Site Master sweeps once and then sends the Sweep Complete Byte.
3) After you receive it. Enter remote mode. Recall sweep 0 (last sweep trace in RAM).
4) Exit remote mode. Send Sweep Triggering Byte #48 (30h) and wait for the next sweep cycle.
5) Repeat steps 2-4
Site Master PM11
Bytes to Follow: 1 byte
1) Serial Port Echo Status
00h = Off
01h=On
Site Master Returns: 1 byte
1)255 (FFh) Operation Complete Byte
224 (E0h) Parameter Error : Invalid serial port echo status
238 (EEh) Time-out Error
Site Master VNA Single Sweep Mode On/Off – Control Byte #11 (0Bh)
Description: Enables or disables the Single Sweep Mode during Site Master VNA modes of operation. For Single Sweep
Mode during Spectrum Analyzer mode of operation, see control byte #108 (6Ch). Single Sweep Mode activates once the Site
Master exits from the remote mode.
When the Site Master returns to local mode, the Site Master stops sweeping, waits for either the Run/Hold Key of the Site
Master keypad or triggering byte #48 (30h).
Site Master also checks for the Enter Remote byte #69 (45h) at the end of each sweep. If present in the buffer, Site Master
returns to remote mode.
Bytes to Follow: 1 byte
1) Single Sweep Mode Status
00h = Off
01h=On
Site Master Returns: 1 byte
1)255 (FFh) Operation Complete Byte
224 (E0h) Parameter Error : Invalid single sweep mode status
238 (EEh) Time-out Error
Watch-Dog Timer On/Off – Control Byte #12 (0Ch)
Description: Enables or disables the Watch-dog timer. Default is Disabled.
The Site Master incorporates a watch-dog timer for higher reliability in serial communication. In selected control bytes (see
Control Byte Summary), the Site Master checks for the time interval between each byte received from the computer. If the
time interval exceeds the set time limit (0.5 sec), the Site Master notifies the computer by sending Time-out Byte #238 (EEh).
The Site Master discards the data it just received and then waits for the next control byte sequence.
Sequence Site Master Calibration – Control Byte #13 (0Dh)
Description: Initiates a calibration step. The Site Master must be calibrated to give accurate measurements.
The command sequence must be sent in correct order. i.e. Open -> Short -> Load. You can also abort the calibration by
command – “Abort” before the command - “Load” is sent. Once command - “Load” is sent, calibration is completed, and the
old calibration data is lost.
The unit under test returns #255(FFh) upon receiving the command, and return #240 (F0h) when the calibration of the
connected component is completed, then waits for further commands to complete the whole calibration process.
This command is designed to be executed step by step: open, short, load. Issuing any other command during this command
sequence will cause undesired results.
Bytes to Follow: 1 byte
1) Calibration Step to trigger
01h = Open
02h = Short
03h = Load
04h = Not Used
05h = Abort
Site Master Returns: 2 bytes
1)255 (FFh) Operation Complete Byte
224 (E0h) Error : Invalid Cal Operation or Cal Incomplete
238 (EEh) Time-out Error
2)240 (F0h) Calibration step is completed
Set Site Master Data Points – Control Byte #14 (0Eh)
Description: Set number of measurement data points for Site Master VNA modes.
Bytes to Follow: 1 byte
1) Number of Data Points
00h = 130 Points
01h = 259 Points
02h = 517 Points
Site Master Returns: 1 byte
1)255 (FFh) Operation Complete Byte
224 (E0h) Parameter Error : Invalid number of data points
238 (EEh) Time-out Error
Set Site Master Calibration Mode – Control Byte #15 (0Fh)
Description: Set the Site Master calibration mode to OSL Cal (standard) or FlexCal.
Description: Saves current trace to the next available memory location. Trace name can be set using control byte #9, “Set
Reference Number” before executing this command.
Bytes to Follow: 0 bytes
Site Master Returns: 5 bytes
224 (E0h) Out of memory (Memory full)
238 (EEh) Time-out Error
Recall Sweep Trace – Control Byte #17 (11h)
NOTE: This command exists for backward compatibility with the S33xC models. Features new to the
S33xD models are not available here. To access the new features, use Control Byte #33 (21h). This
command cannot be used with a frequency converter module attached (Option 6 required).
Description: Queries the Site Master for sweep trace data.
Note: Before you can recall a sweep stored in non-volatile memory (trace numbers 1-200) you must build a trace table in the
Site Master’s RAM. Use Control Byte #24 to build the trace table. Since the trace table exists in RAM, Control Byte #24
must be executed every time the Site Master’s power is cycled.
Bytes to Follow: 1 byte
0 = Last sweep trace before entering remote mode (sweep trace in RAM)
1- 200 = Specific saved sweep number (stored sweeps in Flash memory)
Site Master Returns:
1-2) # of following bytes (total length - 2)
3-4)Not Used
5-11)Model Number (7 bytes in ASCII)
12-15)Software Version (4 bytes ASCII)
16) Measurement Mode
3
17-20)Time/Date (in Long Integer4)
21-30)Date in String Format (mm/dd/yyyy)
31-38)Time in String Format (hh:mm:ss)
39-54)Reference number stamp (16 bytes in ASCII)
55-56)# data points (130, 259, 517 or 400)
For all Site Master Modes:
57) Start Frequency
5
(highest byte)
58) Start Frequency
59) Start Frequency
60) Start Frequency (lowest byte)
61) Stop Frequency (highest byte)
62) Stop Frequency
3Refer to Control Byte #3 “Select Measurement Mode” for detailed value.
4Time/Date long integer representation is in seconds since January 1, 1970
5Frequency units are Hz
14Site Master PM
63) Stop Frequency
64) Stop Frequency (lowest byte)
65) Minimum Frequency Step Size (highest byte)
66) Minimum Frequency Step Size
67) Minimum Frequency Step Size
68) Minimum Frequency Step Size (lowest byte)
69) Scale Top
6
(highest byte)
70) Scale Top
71) Scale Top
72) Scale Top (lowest byte)
73) Scale Bottom (highest byte)
74) Scale Bottom
75) Scale Bottom
76) Scale Bottom (lowest byte)
77) Frequency Marker 1
7
(highest byte)
78) Frequency Marker 1 (lowest byte)
79) Frequency Marker 2 (highest byte)
80) Frequency Marker 2 (lowest byte)
81) Frequency Marker 3 (highest byte)
82) Frequency Marker 3 (lowest byte)
83) Frequency Marker 4 (highest byte)
84) Frequency Marker 4 (lowest byte)
85) Frequency Marker 5 (highest byte)
86) Frequency Marker 5 (lowest byte)
87) Frequency Marker 6 (highest byte)
88) Frequency Marker 6 (lowest byte)
89) Single Limit
8
(highest byte)
90) Single Limit
91) Single Limit
92) Single Limit (lowest byte)
93) Multiple Limit Segment # (1)
94) Multiple Limit Segment Status
95) Multiple Limit Start X
9
(highest byte)
96) Multiple Limit Start X
97) Multiple Limit Start X
98) Multiple Limit Start X (lowest byte)
99) Multiple Limit Start Y (highest byte)
100) Multiple Limit Start Y (lowest byte)
101) Multiple Limit End X (highest byte)
102) Multiple Limit End X
103) Multiple Limit End X
104) Multiple Limit End X (lowest byte)
105) Multiple Limit End Y (highest byte)
106) Multiple Limit End Y (lowest byte)
107–162) Repeat bytes 93-106 for segments 2-5
163) Start Distance
10
(highest byte)
6See Control Byte #4 “Set Site Master Scale” for data format
7marker point = (# of data points–1)*(marker freq – start freq)/(stop freq – start freq ) where # of data points can
be found in bytes 55-56, start freq is in bytes 57-60, and stop freq is in bytes 61-64.
8See Control Byte #6 “Set Site Master Single Limit” for data format.
9See Control Byte #112 “Set Site Master Segmented Limit Lines” for data format.
10 Distance data uses units 1/100,000m (or feet)
Site Master PM15
164) Start Distance
165) Start Distance
166) Start Distance (lowest byte)
167) Stop Distance (highest byte)
168) Stop Distance
169) Stop Distance
170) Stop Distance (lowest byte)
171) Distance Marker 1
11
(highest byte)
172) Distance Marker 1 (lowest byte)
173) Distance Marker 2 (highest byte)
174) Distance Marker 2 (lowest byte)
175) Distance Marker 3 (highest byte)
176) Distance Marker 3 (lowest byte)
177) Distance Marker 4 (highest byte)
178) Distance Marker 4 (lowest byte)
179) Distance Marker 5 (highest byte)
180) Distance Marker 5 (lowest byte)
181) Distance Marker 6 (highest byte)
182) Distance Marker 6 (lowest byte)
183) Relative Propagation Velocity
12
(highest byte)
184) Relative Propagation Velocity
185) Relative Propagation Velocity
186) Relative Propagation Velocity (lowest byte)
187) Cable Loss
13
(highest byte)
188) Cable Loss
189) Cable Loss
190) Cable Loss (lowest byte)
191) Status Byte 1: ( 0b = Off , 1b = On)
(LSB)bit 0 : Marker 1 On/Off
bit 1 : Marker 2 On/Off
bit 2 : Marker 3 On/Off
bit 3 : Marker 4 On/Off
bit 4 : Marker 5 On/Off
bit 5 : Marker 6 On/Off
bits 6-7 : Not Used
192) Status Byte 2: (0b = Off, 1b = On)
(LSB)bit 0 : Not Used
bit 1 : Marker 2 Delta On/Off
bit 2 : Marker 3 Delta On/Off
bit 3 : Marker 4 Delta On/Off
bits 4-7 : Not Used
193) Status Byte 3: ( 0b = Off , 1b = On)
(LSB)bit 0 : Single Limit On/Off
bit 1: CW On/Off
bit 2-3 : Not Used
bit 4 : InstaCal On/Off
26 For bits 2 and 0, 00=no limit, 10=single limit, 01=multiple limit, 11=multiple limit.
27 Upper limits always trigger an error beep if data is ABOVE the limit segment, for example, this bit is always 1b.
Site Master PM19
300) Status Byte 5
( 0b = Off/Beep if data is below line, 1b = On/Beep if data is above line)
(LSB)bit 0 : Multiple Limit Upper Segment 3 Status On/Off
bit 1 : Multiple Limit Upper Segment 3 Beep Level ABOVE/BELOW
bit 2 : Multiple Limit Upper Segment 4 Status On/Off
bit 3 : Multiple Limit Upper Segment 4 Beep Level ABOVE/BELOW
bit 4 : Multiple Limit Upper Segment 5 Status On/Off
bit 5 : Multiple Limit Upper Segment 5 Beep Level ABOVE/BELOW
bit 6 : Multiple Limit Lower Segment 1 Status On/Off
bit 7 : Multiple Limit Lower Segment 1 Beep Level ABOVE/BELOW
303) Status Byte 6
(0b = Off/Beep if data is BELOW line, 1b = On/Beep if data is ABOVE line)
(LSB)bit 0 : Multiple Limit Lower Segment 2 Status On/Off
bit 1 : Multiple Limit Lower Segment 2 Beep Level ABOVE/BELOW
bit 2 : Multiple Limit Lower Segment 3 Status On/Off
bit 3 : Multiple Limit Lower Segment 3 Beep Level ABOVE/BELOW
bit 4 : Multiple Limit Lower Segment 4 Status On/Off
bit 5 : Multiple Limit Lower Segment 4 Beep Level ABOVE/BELOW
bit 6 : Multiple Limit Lower Segment 5 Status On/Off
bit 7 : Multiple Limit Lower Segment 5 Beep Level ABOVE/BELOW
304)Status Byte 7
bits 0-6: Number of sweeps to average (1-25, 1 implies no averaging)
bit 7: Not Used
1-2) Number of following bytes (9 bytes for invalid sweep recall)
3-4) Model # (unsigned integer, 14h for Site Master S33xD)
5-11) Extended Model # (7 bytes in ASCII)
Site Master Returns (Invalid sweep location): 1 byte
Description: Saves current system setup parameters to a specific setup store location.
The Site Master saves all parameters described in Query System Status - control byte #29 (1Dh), (except Serial Port Echo
Status) to the specified store location. Store location 0 is the run-time setup of the Site Master. It holds the power-on defaults
of the Site Master.
28 LOWER limits always trigger an error beep if data is BELOW the limit segment, for example, this bit is always 0b.
29 Value sent as ( value in dBm * 1000 ) + 270,000
30 Value sent as ( value in dBm * 1000 ) + 270,000
20Site Master PM
Bytes to Follow: 1 byte
1)Location to save system setup parameters:
0 – 10 for SWR Mode, Return Loss Mode, Cable Loss Mode and DTF Mode
0 – 5 for Spectrum Analyzer Mode, Transmission Mode (Option 21) and Power Meter Mode (Option 29)
0 – 5 for T1/E1 Modes (Option 50)
Description: Recalls system setup parameters from a specific store location. Storage locations depend on the measurement
mode of the current setup. When the current mode is Spectrum Analyzer, Spectrum Analyzer setups (1-5) can be recalled.
When the current mode is one of the Site Master VNA modes (SWR, RL, CL, DTF), one of the 10 VNA mode setups can be
recalled. When the current mode is T1/E1, one of the T1/E1 setups can be recalled (1-5).
The Site Master recalls all parameters described in Query System Status - control byte #29 (1Dh), (except Serial Port Echo
Status) from the specified store location. The recalled setup does not automatically become the power-on runtime setup when
exiting remote.
You may want to save the recalled setup as the run-time setup by saving it to setup location 0 (which holds the power-on
runtime setup). See control byte #18 (12h) for details.
Bytes to Follow: 1 byte
1) Location from which to recall system setup parameters:
0= Run time setup for all measurement modes
1 – 10= Saved setups for Site Master VNA modes SWR, RL, CL, DTF
1 – 5= Saved setups for SPA Mode, Transmission Mode (Option 21) and Power Meter Mode (Option 29)
1 – 5= Saved setups for T1/E1 modes (Option 50)
255= Default setup
Site Master Returns: 1 byte
1)255 (FFh) Operation Complete Byte
224 (E0h) Parameter Error : Invalid store location or no saved setup
238 (EEh) Time-out Error
Query System Status – Control Byte #20 (14h)
NOTE: This command exists for backward compatibility with the S33xC models. Features new to the
S33xD models are not available here. To access the new features, use Control Byte #33 (21h). This
command cannot be used with a frequency converter module attached (Option 6 required).
Description: Queries the Site Master for current system settings.
The current state of the Site Master represents the state after the last successful remote control operation. For example,
change the start frequency to another valid frequency while in remote mode, then execute control byte #20. The new start
frequency will be returned in bytes 4-7, even though no sweep has been performed with that frequency.
Bytes to Follow: 0 bytes
Site Master Returns:434 bytes
1)Measurement Mode
2)Site Master Mode Data Points (higher byte)
31 Refer to Control Byte #3 “Select Measurement Mode” for valid measurement modes.
31
Site Master PM21
3)Site Master Mode Data Points (lower byte)
4)Start Frequency (Frequency in Hz) (highest byte)
5)Start Frequency
6)Start Frequency
7)Start Frequency (lowest byte)
8)Stop Frequency (Frequency in Hz) (highest byte)
9)Stop Frequency
10) Stop Frequency
11) Stop Frequency (lowest byte)
12) Scale Start (highest byte)
32
13) Scale Start
14) Scale Start
15) Scale Start (lowest byte)
16) Scale Stop (highest byte)
17) Scale Stop
18) Scale Stop
19) Scale Stop (lowest byte)
20) Frequency Marker 1 (higher byte)
33
21) Frequency Marker 1(lower byte)
22) Frequency Marker 2 (higher byte)
23) Frequency Marker 2 (lower byte)
24) Frequency Marker 3 (higher byte)
25) Frequency Marker 3 (lower byte)
26) Frequency Marker 4 (higher byte)
27) Frequency Marker 4 (lower byte)
28) Frequency Marker 5 (higher byte)
29) Frequency Marker 5 (lower byte)
30) Frequency Marker 6 (higher byte)
31) Frequency Marker 6 (lower byte)
32) Site Master Single Limit (highest byte)
34
33) Site Master Single Limit
34) Site Master Single Limit
35) Site Master Single Limit (lowest byte)
36) Multiple Limit Segment # (1)
37) Multiple Limit Segment Status (0h = Off, 01h = On )
38) Multiple Limit Segment Start X (highest byte)
35
39) Multiple Limit Segment Start X
40) Multiple Limit Segment Start X
41) Multiple Limit Segment Start X (lowest byte)
42) Multiple Limit Segment Start Y (higher byte)
43) Multiple Limit Segment Start Y (lower byte)
44) Multiple Limit Segment End X (highest byte)
45) Multiple Limit Segment End X
46) Multiple Limit Segment End X
47) Multiple Limit Segment End X (lowest byte)
48) Multiple Limit Segment End Y (higher byte)
49) Multiple Limit Segment End Y (lower byte)
50-105) Repeat bytes 36 – 49 for segments2-5
32 See “Set Site Master Scale” Control Byte #4 for data format.