Page 1
Site Master S331D/S332D Cable and Antenna Analyzer Site Master is the preferred cable and antenna analyzer of wireless providers, contractors and installers. Color display option shown S331D SiteMaster MS2711D Site Master MS2712 Spectrum Master SpectrumMaster MS2712 SiteMaster SpectrumMaster ™ Programming Manual MT8212A Cell Master CellMaster...
Page 2
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.
Table of Contents Programming Overview ........1 Control Byte Summary.
Page 4
Upload Sweep Trace – Control Byte #36 (24h) ......62 Get Options – Control Byte #37 (25h) ........71 Query Power Level –...
Page 5
Set Spectrum Analyzer Marker to Peak – Control Byte #109 (6Dh) ....86 Set Spectrum Analyzer Marker to Center – Control Byte #110 (6Eh) ....86 Set Spectrum Analyzer Attenuation –...
Page 6
Set T1/E1 Receive Input Configuration Options - Control Word (A013h) (Option 50 only) ..101 Set T1/E1 Measurement Duration - Control Word (A014h) (Option 50 only) ....101 Set T1/E1 Data Logging - Control Word (A015h) (Option 50 only) .
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.
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.
Control Byte Summary Control Byte Name 1 (01h) Setup System 2 (02h) Set VNA Frequency 3 (03h) Select Measurement Mode 4 (04h) Set VNA Scale 5 (05h) Set VNA Marker 6 (06h) Set VNA Single Limit 7 (07h) Set DTF Parameters 8 (08h) Set Time/Date 9 (09h)
Page 10
Control Byte Name 42 (2Ah) Power Meter Offset Mode 43 (2Bh) Power Meter Zero Mode Power Meter RMS 44 (2Ch) Averaging On/Off Power Meter Center 45 (2Dh) Frequency and Span 48 (30h) Trigger Sweep 50 (32h) Check Battery Status Set SPA Minimum Sweep 53 (35h) Time 54 (36h)
Page 11
Control Byte Name Set Spectrum Analyzer 106 (6Ah) Resolution Bandwidth Freq Set Spectrum Analyzer 107 (6Bh) Video Bandwidth Freq Set Spectrum Analyzer 108 (6Ch) Sweep Mode Set Spectrum Analyzer 109 (6Dh) Marker to Peak Set Spectrum Analyzer 110 (6Eh) Marker to Center Set Spectrum Analyzer 111 (6Fh) Attenuation...
Page 12
Control Byte Name Set T1/E1 Error Insert A004h Type/Value A005h Set T1/E1 Framing Mode Start and Stop T1/E1 A006h Measurement Insert Error for T1/E1 A007h Measurement A008h Get T1/E1 Pattern Get T1/E1 Frame Sync A009h Status Get T1/E1 Pattern Sync A00Ah Status A00Bh...
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.
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...
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).
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 –...
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”...
Bytes to Follow: 1 byte 1) Serial Port Echo Status 00h = Off 01h = On Site Master Returns: 1 byte 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 –...
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 –...
Store Sweep Trace – Control Byte #16 (10h) 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 1-4) Time/Date Stamp (In long integer format) Operation result: 255 (FFh) Operation Complete Byte...
Page 21
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 (highest byte) 70) Scale Top 71) Scale Top 72) Scale Top (lowest byte) 73) Scale Bottom (highest byte)
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...
Bytes to Follow: 1 byte 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 –...
Page 28
Site Master Mode Data Points (lower byte) Start Frequency (Frequency in Hz) (highest byte) Start Frequency Start Frequency Start Frequency (lowest byte) Stop Frequency (Frequency in Hz) (highest byte) Stop Frequency 10) Stop Frequency 11) Stop Frequency (lowest byte) 12) Scale Start (highest byte) 13) Scale Start 14) Scale Start 15) Scale Start (lowest byte)
bit 5: Channel Power On/Off bit 6: Adjacent Channel Power On/Off bit 7: Not Used 398) Printer Type 399) Current Language (0 = English, 1 = French, 2 = German, 3 = Spanish, 4 = Chinese, 5 = Japanese) 400) LCD Contrast Value (0-255) 401) RTC battery (higher byte) 402) RTC battery (lower byte)
Notes: Battery Voltage in 1/10th of a Volt (e.g. 124 = 12.4 Volts) Temperature in 1/10th of degree Celsius (e.g., 362 = 36.2°C) or degree Fahrenheit (e.g., 934 = 93.4°F), depending on the current measurement unit (Metric or English) selected Read Fail Counter –...
Upload SPA Sweep Trace – Control Byte #26 (1Ah) 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).
bit 5 : Cal On/Off bit 6 : Limit Type ( 0b = Single; 1b = Multiple) bit 7 : Unit of measurement (1b = Metric, 0b = English) 181) Status Byte 4: (LSB) bit 0 - 1 : DTF Windowing Mode bit: 1 0 0 0 - Rectangular (No Windowing) 0 1 - Nominal Side Lobe...
Page 43
Number of Following Bytes (higher byte) Number of Following Bytes (lower byte) Measurement Mode Printer Type Current Language (00h = English, 01h = French, 02h = German, 03h = Spanish, 04h = Chinese, 05h = Japanese) LCD Contrast Value (0-255) Date Format (00h = MM/DD/YYYY, 01h = DD/MM/YYYY, 02h = YYYY/MM/DD) RTC battery...
Page 44
56) Site Master VNA Single Limit (highest byte) 57) Site Master VNA Single Limit 58) Site Master VNA Single Limit 59) Site Master VNA Single Limit (lowest byte) 60) VNA Multiple Limit Segment # (1) 61) VNA Multiple Limit Segment Status (0h = Off, 01h = On ) 62) VNA Multiple Limit Segment Start X (highest byte) 63) VNA Multiple Limit Segment Start X 64) VNA Multiple Limit Segment Start X...
Page 45
156) Cable Loss 157) Cable Loss (lowest byte) 158) Average Cable Loss (highest byte) 159) Average Cable Loss 160) Average Cable Loss 161) Average Cable Loss (lowest byte) 162) Status Byte 1: ( 0b = Off , 1b = On) (LSB) bit 0 : Site Master Marker 1 On/Off bit 1 : Site Master Marker 2 On/Off...
Page 46
bit 7 : Not Used 168) Status Byte 7: (0b = Off, 1b = On) (LSB) bits 0-1: Not Used bit 2: DIST-RL Multiple Limit Segment 1 Status On/Off bit 3: DIST-RL Multiple Limit Segment 2 Status On/Off bit 4: DIST-RL Multiple Limit Segment 3 Status On/Off bit 5: DIST-RL Multiple Limit Segment 4 Status On/Off bit 6: DIST-RL Multiple Limit Segment 5 Status On/Off bit 7: Not Used...
Page 47
45) Spectrum Analyzer Minimum Frequency Step Size 46) Spectrum Analyzer Minimum Frequency Step Size 47) Spectrum Analyzer Minimum Frequency Step Size (lowest byte) 48) Ref Level (highest byte) 49) Ref Level 50) Ref Level 51) Ref Level (lowest byte) 52) Scale per div (highest byte) 53) Scale per div 54) Scale per div 55) Scale per div (lowest byte)
Page 49
bit 4 : SPA Multiple Limit Upper Segment 1 Status On/Off bit 5 : SPA Multiple Limit Upper Segment 1 Beep Level ABOVE/BELOW bit 6 : SPA Multiple Limit Upper Segment 2 Status On/Off bit 7 : SPA Multiple Limit Upper Segment 2 Beep Level ABOVE/BELOW 273) Status Byte 4 : (0b = Off/Beep if data is BELOW line, 1b = On/Beep if data is ABOVE line) (LSB) bit 0 : SPA Multiple Limit Upper Segment 3 Status On/Off...
Page 50
0-1: Trace Math Operation (00b = A only, 01b = A-B, 10b = A+B) bit 2: Max Hold On/Off bit 3: Min Hold On/Off bits 4-7: Not Used 303) Impedance (00h = 50W, 0Ah = 75W Anritsu Adapter, 0Ch = 75W Other Adapter) 304) Impedance Loss (higher byte) 305) Impedance Loss (lower byte)
Page 51
321) Frequency Scale Factor (higher byte) 322) Frequency Scale Factor (lower byte) 323) Frequency Range Minimum 324) Frequency Range Minimum 325) Frequency Range Minimum 326) Frequency Range Minimum (lowest byte) 327) Frequency Range Maximum 328) Frequency Range Maximum 329) Frequency Range Maximum 330) Frequency Range Maximum (lowest byte) 331) Marker Type 332-400) Not Used...
Page 52
51) Power Meter Relative 52) Power Meter Relative 53) Power Meter Relative (lowest byte) 54) Power Meter Status (00h = Off, 01h = On) 55) Power Meter Unit (00h = Watts, 01h = dBm) 56) Power Meter Relative Status (00h = Off, 01h = On) 57) Power Meter Offset Status (00h = Off, 01h = On) 58) Power Meter RMS Averaging Level (00h = Off, 01h = Low, 02h = Medium, 03h = High) 59) Frequency Scale Factor...
Page 53
137) T1 1 User Defined Loop Up (lower byte) 138) T1 2 User Defined Loop Up (higher byte) 139) T1 2 User Defined Loop Up (lower byte) 140) T1 1 User Defined Loop Down (higher byte) 141) T1 1 User Defined Loop Down (lower byte) 142) T1 2 User Defined Loop Down (higher byte) 143) T1 2...
141) E1 1 User Defined Loop Down (lowest byte) 142) E1 2 User Defined Loop Down (highest byte) 143) E1 2 User Defined Loop Down (lowest byte) 144) E1 User Defined Pattern (highest byte) 145) E1 User Defined Pattern 146) E1 User Defined Pattern 147) E1 User Defined Pattern (lowest byte) 148) E1 Bit Error Insert Value (1-1000) (higher byte) 149) E1 Bit Error Insert Value (lower byte)
Select DTF Windowing – Control Byte #31 (1Fh) Description: Select DTF Windowing Methods. DTF windowing allows you to make a trade off between side lobe height and resolution. Bytes to Follow: 1 byte Windowing Method 00h = Rectangular (finest resolution, highest side lobes) 01h = Nominal Side Lobe (balance between resolution and side lobes) 02h = Low Side Lobe 03h = Minimum Side Lobe...
Page 56
Current Instrument Date Format Not Used 5-11) Model Number (7 bytes in ASCII) 12-15) Software Version (4 bytes ASCII) 16) Measurement Mode 17-20) Time/Date (in Long Integer 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 or 517 or 401 or 100)
Page 57
89) Single Limit (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 (highest byte) 96) Multiple Limit Start X 97) Multiple Limit Start X 98) Multiple Limit Start X (lowest byte) 99) Multiple Limit Start Y (higher byte) 100) Multiple Limit Start Y (lower byte)
Page 58
189) Cable Loss 190) Cable Loss (lowest byte) 191) Average Cable Loss (highest byte) 192) Average Cable Loss 193) Average Cable Loss 194) Average Cable Loss (lowest byte) 195) Status Byte 1: ( 0b = Off , 1b = On) (LSB) bit 0 : Marker 1 On/Off bit 1 : Marker 2 On/Off...
Page 59
2. gamma 3. gamma 4. gamma (lowest byte) 5. phase (highest byte) 6. phase 7. phase 8. phase (lowest byte) Notes: return loss = –20* (log(gamma) / log(10)) VSWR = (1+gamma)/(1-gamma) phase compares the reflected to the incident (reference) For Spectrum Analyzer and Transmission Measurement (Option 21) Modes: 57) Start Frequency (highest byte) 58) Start Frequency...
Page 60
90) Frequency Marker 3 (lower byte) 91) Frequency Marker 4 (higher byte) 92) Frequency Marker 4 (lower byte) 93) Frequency Marker 5 (higher byte) 94) Frequency Marker 5 (lower byte) 95) Frequency Marker 6 (higher byte) 96) Frequency Marker 6 (lower byte) 97) Single Limit (highest byte) 98) Single Limit...
Page 61
292) 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 293) Status Byte 2: ( 0b = Off , 1b = On)
Page 62
5: Bias Tee On/Off (Option 10 only) bit 6: Occupied BW Measurement On/Off bit7: Not Used 332) Impedance (00h = 50W, 0Ah = 75W Anritsu Adapter, 0Ch = 75W Other Adapter) 333) Impedance Loss (higher byte) 334) Impedance Loss (lower byte) 173 Value sent as ( value in dBm * 1000 ) + 270,000 174 1 byte in MHz (i.e.
Page 63
335) Frequency Scale Factor (higher byte) 336) Frequency Scale Factor (lower byte) 337) Frequency Range Minimum 338) Frequency Range Minimum 339) Frequency Range Minimum 340) Frequency Range Minimum (lowest byte) 341) Frequency Range Maximum 342) Frequency Range Maximum 343) Frequency Range Maximum 344) Frequency Range Maximum (lowest byte) 345) Linked Trace Number (1-200) 346) Status Byte 9 (0b=Off, 1b=On)
Page 64
1. dBm (highest byte) 2. dBm 3. dBm 4. dBm (lowest byte) For Power Meter Mode (Option 29): 57) Power Meter Mode (00h = Off, 01h = On) 58) Power Meter Unit (00h = dBm, 01h = Watts) 59) Start Frequency (highest byte) 60) Start Frequency 61) Start Frequency...
Page 65
95) Channel Selection (lower byte) 96) Frequency Scale Factor (higher byte) 97) Frequency Scale Factor (lower byte) 98) Frequency Range Minimum 99) Frequency Range Minimum 100) Frequency Range Minimum 101) Frequency Range Minimum (lowest byte) 102) Frequency Range Maximum 103) Frequency Range Maximum 104) Frequency Range Maximum 105) Frequency Range Maximum (lowest byte) 106 –...
Page 66
79) Pattern Sync Status (00h: In Sync, 01h: Out-of-Sync) 80) Carrier Status (00h: In Sync, 01h: Out-of-Sync) 81) Rx Alarms (bit 0: Receiving AIS, bit 1: Receiving RAI, bit 2: Receiving E1 MMF error) 82) BPV Error Count (highest byte) 83) BPV Error Count 84) BPV Error Count 85) BPV Error Count (lowest byte)
656) Vpp or dBdsx (higher byte) 657) Vpp or dBdsx (lower byte) 658) T1 or E1 Receive Frequency (in Hz) 659) T1 or E1 Receive Frequency (in Hz) 660) T1 or E1 Receive Frequency (in Hz) 661) T1 or E1 Receive Frequency (in Hz) (lowest byte) 662 –...
255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Not enough bytes transferred, “B” trace requested to be used in calculations or displayed, but no trace or invalid trace specified 238 (EEh) Time-out Error Upload Sweep Trace – Control Byte #36 (24h) This command is new to the S33xD.
Page 69
67) Frequency Marker 2 (lower byte) 68) Frequency Marker 3 (higher byte) 69) Frequency Marker 3 (lower byte) 70) Frequency Marker 4 (higher byte) 71) Frequency Marker 4 (lower byte) 72) Frequency Marker 5 (higher byte) 73) Frequency Marker 5 (lower byte) 74) Frequency Marker 6 (higher byte) 75) Frequency Marker 6 (lower byte) 76) Single Limit Line Value (highest byte)
Page 70
170) Relative Propagation Velocity (highest byte) 171) Relative Propagation Velocity 172) Relative Propagation Velocity 173) Relative Propagation Velocity (lowest byte) 174) Cable Loss (highest byte) 175) Cable Loss 176) Cable Loss 177) Cable Loss (lowest byte) 178) Average Cable Loss (highest byte) 179) Average Cable Loss 180) Average Cable Loss...
Page 71
188) VNA Signal Standard (lower byte) 189-314) Not Used 315-1354) Sweep Data (130 points * 8 bytes/point= 1040 bytes) 315-2386) (259 points * 8 bytes/point= 2072 bytes) 315-4450) (517 points * 8 bytes/point= 4136 bytes) 8 bytes for each data point 1.
Page 73
254) OCC BW dBc (0-120) 255) Attenuation (highest byte) 256) Attenuation 257) Attenuation 258) Attenuation (lowest byte) 259-274) Antenna Name (16 bytes in ASCII) 275) 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...
Page 74
6: Occupied BW Measurement On/Off bit 7: Not Used 315) Impedance (00h = 50W, 0Ah = 75W Anritsu Adapter, 0Ch = 75W Other Adapter) 239 Value sent as (Value in dBm * 1000 ) + 270,000 240 byte in MHz (i.e. 20 = 20MHz) 241 Index into Standard List (use control byte #89 to retrieve the ASCII string name).
Page 75
316) Impedance Loss (higher byte) 317) Impedance Loss (lower byte) 318) Frequency Scale Factor (higher byte) 319) Frequency Scale Factor (lower byte) 320) Frequency Range Minimum 321) Frequency Range Minimum 322) Frequency Range Minimum 323) Frequency Range Minimum (lowest byte) 324) Frequency Range Maximum 325) Frequency Range Maximum 326) Frequency Range Maximum...
Option 6: “6/” Option 10: “10/” Option 21: “21/” Option 29: “29/” Option 50: “50/” If no options are installed: “None” Query Power Level – Control Byte #39 (27h) Description: Return Power Level at the RF In port. Also returns power meter settings. Bytes to Follow: 0 bytes Site Master Returns: 30 bytes 1) Status Byte # 1(0b = Off, 1b = On)
Power Meter Relative Mode On/Off – Control Byte #41 (29h) Description: Enable or disable Power Meter Relative Mode. Bytes to Follow: 1 byte Relative Mode State 00h = Off 01h = On w/ trigger (use the current power level as a reference power level) Site Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid parameter...
255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid state 238 (EEh) Time-out Error Power Meter Center Freq and Span Setup – Control Byte #45 (2Dh) Description: Sets the center frequency and span frequency for the Power Meter mode. If Option 6 is installed and the frequency converter module is attached, the center frequency should be scaled by the scale factor of the module.
Site Master Returns: 17 bytes 1-2) Battery Status flags ( Refer to Smart Battery Data Spec 5.1.2.1) 3-4) State of Charge (unsigned integer 0 to 100(%)Full) 5-6) Battery Voltage (unsigned integer 0 to 65535 in mV) 7-8) Battery Current (signed integer -32,768 to +32,7687 mA, positive = Charging) 9-10) Battery Average current (signed integer -32,768 to +32,7687 mA, positive = Charging) 11-12)
Bytes to Follow: 0 bytes Site Master Returns: 13 bytes 1-2) Model # (unsigned integer, 14h for Site Master S331D, 15h for Site Master S332D) 3-9) Extended Model # (7 bytes in ASCII) 10-13) Software Version - 4 bytes (ASCII) Enter Remote Mode Immediately –...
1-2) Model # (unsigned integer, 14h for Site Master S331D, 15h for Site Master S332D) 3-9) Extended Model # (7 bytes in ASCII) 10-13) Software Version (4 bytes in ASCII) Write Custom Cable – Control Byte #80 (50h) Description: Write a cable parameter in the custom cable list.
Write Antenna – Control Byte #82 (52h) Description: Receives an antenna to the Site Master via the serial port. An antenna is described with an index into the list (1-10) and an ASCII name that appears in the list on the Site Master. Each antenna can have up to 60 antenna factors.
Read Channel Power – Control Byte #86 (56h) Description: Read the current channel power or the channel power of a stored trace. Send a 0 (zero) following the command to read the current channel power measurement (i.e. the one that is updated as the unit is sweeping).
Send a 0 (zero) following the command to read the current adjacent channel power measurement (i.e. the one that is updated as the unit is sweeping). Send 1-200 to read the channel power associated with a stored trace (use Query Trace Names, #24, to obtain trace numbers). If Option 6 is installed and the frequency converter module is attached, the frequencies should be scaled by the scale factor of the module.
9-12) Low Frequency OCC BW 13-16) High Frequency OCC BW Measure OCC BW dB Down – Control Byte #97 (61h) Description: Measure OCC BW with dB down method. If Option 6 is installed and the frequency converter module is attached, the frequencies should be scaled by the scale factor of the module.
Set Spectrum Analyzer Start/Stop Frequency – Control Byte #99 (63h) Description: Sets the spectrum analyzer start and stop frequencies. If Option 6 is installed and the frequency converter module is attached, the frequencies should be scaled by the scale factor of the module.
Set Spectrum Analyzer Peak Hold – Control Byte #105 (69h) Description: Sets the max hold and min hold settings on the Spectrum Analyzer. Bytes to Follow: 1 byte Peak Hold State 00h – Peak Hold Off 01h – Max Hold On 02h –...
255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid VBW Index 238 (EEh) Time Out Error Set Spectrum Analyzer Sweep Mode – Control Byte #108 (6Ch) Description: Enables or disables the Single Sweep Mode during Spectrum Analyzer mode of operation. Single Sweep Mode activates once the Site Master exits from the remote mode.
Set Spectrum Analyzer Attenuation – Control Byte #111 (6Fh) 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 #143 (8Fh). Description: Sets the attenuation for the Site Master Spectrum Analyzer mode.
Site Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid limit segment, status or value 238 (EEh) Time Out Error Notes: Limit Value depends on the current display mode selected. Return Loss &: Limit should be sent as ( dB * 1000 ) Cable Loss Maximum value sent is 60000 which represents 60.00 dB Minimum value sent is 0 which represents 0.0 dB...
16) Limit Value End X (lowest byte) 17) Limit Value End Y (highest byte) 18) Limit Value End Y 19) Limit Value End Y 20) Limit Value End Y (lowest byte) Site Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid limit segment, status or value 238 (EEh) Time Out Error Set Return Spectrum Analyzer Sweep Time –...
Read Marker Value – Control Byte #117 (75h) Description: Returns the frequency location of the specified marker, and the value at that location. If Option 6 is installed and the frequency converter module is attached, the frequency will be scaled by the scale factor of the module.
Read InstaCal Module ASCII Serial Number – Control Byte #124 (7Ch) Description: Returns the InstaCal Module serial number in ASCII. Bytes to Follow: 1 byte Serial number storage location (01h=main serial, 02h=secondary) Site Master Returns: 8 bytes 1-8) Serial Number, in ASCII Set Site Master Marker (Peak/Valley) –...
Check Spectrum Analyzer External Reference – Control Byte #134 (86h) Description: Checks to see if Spectrum Analyzer external reference is present. If it is, it then checks to see if it is at the correct frequency for PLL locking. Bytes to Follow: 0 bytes Site Master Returns: 1 byte On Success: 00h –...
255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error 238 (EEh) Time-out Error Set Spectrum Analyzer Resolution Bandwidth – Control Byte #141 (8Dh) NOTE: This command is new to the Site Master S33xD models. Use it instead of Control Byte #106 to access the RBW.
Automatic control couples the attenuation to the reference level. Note that setting the attenuation using this command automatically sets the attenuation coupling to “MANUAL”, thereby allowing it to be defined independently of the reference level. Bytes to Follow: 1 byte Attenuation (0 –...
Read ASCII Serial Number – Control Byte #225 (E1h) Description: Reads and returns the Site Master serial number as 8 ASCII bytes. Bytes to Follow: 1 byte Serial number storage location 01h = Main (External) Serial Number, 02h = Secondary (Motherboard) Serial Number 03h = T1/E1 Serial Number Site Master Returns: 8 bytes 1-8) Serial Number (in ASCII)
Clock Source 00h: Internal 01h: External Site Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid clock source 238 (EEh) Time Out Error Set T1/E1 Pattern – Control Word (A003h) Description: Sets the data pattern of T1/E1 measurement mode. Bytes to Follow: 2 bytes Data Pattern 00h: AUTO_DETECT...
255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid error type or value 238 (EEh) Time Out Error Set T1/E1 Framing Mode – Control Word (A005h) Description: Sets the Framing Mode of T1/E1 measurement. Bytes to Follow: 1 byte Framing Mode 00h: Auto T1 Tester Only...
238 (EEh) Time Out Error Get T1/E1 Frame Sync Status – Control Word (A009h) Description: Get the frame sync status of T1 /E1. Bytes to Follow: 0 bytes Site Master Returns: 1 byte Frame Sync Status (00h: Framed; 01h: Unframed) 238 (EEh) Time Out Error Get T1/E1 Pattern Sync Status –...
00h: Off 01h: On Site Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid status or not enough memory 238 (EEh) Time Out Error Read T1/E1 dBdsx - Control Word (A016h) Description: Initiates a voltage measurement on the T1 board and returns the result in dBdsx. The resolution is 0.1 dB and is offset by 350 so that only positive values are returned.
Site Master Returns: 1 byte Status Byte 255 (FFh) Operation Complete Byte Select SPA/Power Meter Signal Standard - Control Word (A103h) Description: Selects a Signal Standard. Use this command for both Spectrum Analyzer and Power Meter modes. See the “Signal Standards” section for a list of standards and their indices. Bytes to Follow: 1 byte Signal Standard - See the “Signal Standards”...
Read External Module Serial Number – Control Word (A202h) Description: Sets the serial number of the attached external converter module (Option 6). For example, serial number 12345678 will be received as: 8,1,2,3,4,5,6,7,8,ff Bytes to Follow: 0 bytes Site Master Returns: 10 bytes Length of Serial Number (8) 2-9) Serial Number 10) 255 (FFh) Operation Complete Byte...
Fail Counter (higher byte) Fail Counter (lower byte) 255 (FFh) Operation Complete Byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Module not attached 238 (EEh) Time Out Error Clear Module Fail Counter – Control Word (A205h) Description: Sets the module lock fail counter to 0. Bytes to Follow: 0 bytes Site Master Returns: 1 byte 255 (FFh) Operation Complete Byte...
Page 112
24) VNA Integration Test - Reserved 25) SPA LO Test - Status (01h: Pass, 00h: Fail, FFh: SPA board not installed) 26) SPA LO Test - Failed data point # 27) SPA LO Test - Failed LO # 28) End of Data (FFh) S331D + Option 29 or S332D (w/o Option 6): 28 bytes Temperature in 1/10th of degree Celsius (e.g., 362 = 36.2°...
Page 113
18) H/W Config - T1E1 COLD ID 19) VNA PLL Lock Failure Test - Status (01h: Pass, 00h: Fail) 20) VNA PLL Lock Failure Test - Failed data point # (Ignore this byte if the Lock Fail Test Status was Pass) 21) VNA PLL Lock Failure Test - Failed PLL # (Ignore this byte if the Lock Fail Test Status was Pass) 22) VNA Integration Test - Status (01h: Pass, 00h: Fail) 23) VNA Integration Test - Failed data point # (Ignore this byte if the Integration Test Status was Pass)
This section contains several sample functions written in C, (and one in Visual Basic) that can be used as references when programming Anritsu Handheld Products. These include functions to set up the comm port, enter and exit remote mode, and set the reference level of the spectrum analyzer.
Page 115
/*********************************************************************/ unsigned char SetSPAScale(unsigned long ReferenceLevel, unsigned long dBScale, BYTE *ResponseBytes) Description: This function implements control byte #101, Set Spectrum Analyzer Scale. analyzer reference level and scale (dB/div). Inputs : RefLevel = reference level value dBScale = scale value NOTE: This function assumes the values have already been checked to fall in the valid range and scaled according to the formulas in the...
Page 116
WriteToPort (SendScalePointer, 9); // Expecting 1 byte back (give the unit 5 seconds to respond): // 0xFF = success // 0xE0 = parameter failure (invalid value) // 0xEE = time-out (insufficient # of bytes received by SPA) if(!ReadFromPort(1, ResponseBytes, 5)) return FAILURE;...
Page 117
/*********************************************************************/ unsigned char ExitRemote(BYTE *ResponseBytes) Description: This function implements control byte #255, Exit Remote Mode. remote mode and resume sweeping. Inputs : ResponseBytes = pointer to an array of bytes at least 1 element long (1 byte is expected in response to the Exit Remote command).
Page 118
/*********************************************************************/ void Get8Bytes(unsigned long parm1, unsigned long parm2, BYTE* ByteData ) Description: This function converts the 2 four byte values to 8 bytes for transmission to the SiteMaster. the first four bytes, parm2 occupies the second 4 bytes. Inputs: parm1 - 4 byte unsigned long integer parm2 - 4 byte unsigned long integer Returns: SUCCESS if the unit is in remote mode...
Page 119
/*********************************************************************/ BOOL OpenCommunications(int ComPort, int ComBaud) Description : This function is to Open the communication port and set the port settings Inputs : int - ComPort entered as a command line argument int - ComBaud The Baud rate for Communication Returns: SUCCESS - If the Communication link was established*/ FAIL - IF there was an error opening the COM Port...
Page 120
/* Set up the COM Ports Input and Output Buffer Syntax - BOOL SetupComm( HANDLE hFile, // handle to communications device DWORD dwInQueue, // size of input buffer DWORD dwOutQueue // size of output buffer PortReady = SetupComm(ComHandle, 5000, 5000); /* Open the existing COM Settings Syntax - BOOL GetCommState(...
Page 121
case ‘3’: CommSettings.BaudRate = CBR_38400; break; case ‘4’: CommSettings.BaudRate = CBR_56000; break; case ‘5’: CommSettings.BaudRate = CBR_115200; // rate - 115200 break; default: CommSettings.BaudRate = CBR_9600; break; // disable null stripping CommSettings.fNull = FALSE; // RTS flow control CommSettings.fRtsControl = RTS_CONTROL_ENABLE; // XON/XOFF in flow control CommSettings.fInX = FALSE;...
Page 122
NOTE: Without Timeout Settings, Reading the COM Port will not work properly*/ // This gives the Timeout value for each bytes received timeout.ReadIntervalTimeout = MAXDWORD; timeout.ReadTotalTimeoutConstant = 0; timeout.ReadTotalTimeoutMultiplier = 0; /* Sets the communication timeouts Syntax - BOOL SetCommTimeouts( HANDLE hFile, LPCOMMTIMEOUTS lpCommTimeouts SetCommTimeouts(ComHandle, &timeout);...
Example in Visual Basic Private Sub cmdSetBaudRateSM_Click() Dim ChangeBaudSerialCmd As Integer Dim BaudRate As Integer Dim strInputBuf As Variant Dim PreviousSettings As String PreviousSettings = commCtrl.Settings ‘Check that we’re in remote and have selected a baud rate If CheckInitialConditions(True, False, True) = False Then GoTo SetSMBaud_err_handler End If ChangeBaudSerialCmd = 197...
Page 124
GoTo SetSMBaud_err_handler End If If Asc(strInputBuf) = 255 Then MsgBox “Set Baud Rate Succesfully” ElseIf Asc(strInputBuf) = 238 Then MsgBox “SiteMaster Timed out” GoTo SetSMBaud_err_handler ElseIf Asc(strInputBuf) = 224 Then MsgBox “Invalid Baud Rate - ERR 224" GoTo SetSMBaud_err_handler Else MsgBox “Invalid Baud Rate - ERR ”...
VNA Signal Standards Index Standard Bluetooth US & Europe Uplink Bluetooth US & Europe Downlink Bluetooth US & Europe Fullband Bluetooth Japan Uplink Bluetooth Japan Downlink Bluetooth Japan Fullband C 450 P Uplink C 450 P Downlink C 450 P Fullband C 450 SA Uplink C 450 SA Downlink C 450 SA Fullband...
Page 130
Index Standard ISM 2 4 GHZ Uplink ISM 2 4 GHZ Downlink ISM 2 4 GHZ Fullband JTACS/NTAC Japan ARIB Uplink JTACS/NTAC Japan ARIB Downlink JTACS/NTAC Japan ARIB Fullband NMT 411 Uplink NMT 411 Downlink NMT 411 Fullband NMT 450 Uplink NMT 450 Downlink NMT 450 Fullband NMT 450 20 kHz CDMA2000 Uplink...
Need help?
Do you have a question about the Site Master S331D and is the answer not in the manual?
Questions and answers