Site Master ™ S331D/S332D Cable and Antenna Analyzer Site Master is the preferred cable and antenna analyzer of wireless providers, contractors and installers.
WARRANTY The Anritsu product(s) listed on the title page is (are) warranted against defects in materials 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 returned to Anritsu for warranty repairs. Obligation is limited to the original purchaser. Anritsu is not liable for consequential damages.
Table of Contents Programming Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Control Byte Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Control Byte Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Setup System – Control Byte #1 (01h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Set Site Master VNA Frequency – Control Byte #2 (02h) . . . . . . . . . . . . . . . . .
Upload Sweep Trace – Control Byte #36 (24h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Get Options – Control Byte #37 (25h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Query Power Level – Control Byte #39 (27h) (Option 29 only) . . . . . . . . . . . . . . . . . . . . . . 72 Set Power Meter Units – Control Byte #40 (28h) (Option 29 only) . . . . . . . . . . . . . . . . . . . . 72 Power Meter Relative Mode On/Off – Control Byte #41 (29h) (Option 29 only) . . .
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 – Control Byte #111 (6Fh) . . . . . . . . . . . . . . . . . . . . . . 87 Set Site Master VNA Segmented Limit Lines – Control Byte #112 (70h) . . . . . . . . . . . . . . . . . 87 Set Spectrum Analyzer Multiple Limit – Control Byte #113 (71h) . . . . . . . . . . . . .
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) . . . . . . . . . . . . . . . . . . . 101 Read T1/E1 dBdsx - Control Word (A016h) (Option 50 only) . . . . . . . . . . . . . . . . . . . . . . 102 Read T1/E1 Frequency - Control Word (A017h) (Option 50 only) . . . . . . . . . . . . . . . . .
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.
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.
Control Byte Summary Control Byte # Name Description Watchdog Timer 1 (01h) Setup System Sets system status flags and switches Yes 2 (02h) Set VNA Frequency Sets Site Master VNA frequency range Yes 3 (03h) Select Measurement Mode Sets current Site Master measurement mode Yes 4 (04h) Set VNA Scale Sets Site Master VNA scale values Yes 5 (05h) Set VNA Marker Sets position and on/off status of Site Master markers in VNA modes Yes 6 (06h) Set VNA Single Limit Sets position and on/off s
Control Byte # 4 Name Watchdog Timer Description 42 (2Ah) Power Meter Offset Mode Enables or disables Power Meter offset Yes 43 (2Bh) Power Meter Zero Mode Enables or disables Power Meter zeroing mode Yes 44 (2Ch) Power Meter RMS Averaging On/Off Sets Power Meter RMS Averaging.
Control Byte # Name 106 (6Ah) Set Spectrum Analyzer Resolution Bandwidth Freq Sets the Spectrum Analyzer resolution BW frequency (obsolete) Yes 107 (6Bh) Set Spectrum Analyzer Video Bandwidth Freq Sets the Spectrum Analyzer video BW frequency (obsolete) Yes 108 (6Ch) Set Spectrum Analyzer Sweep Mode Sets the Spectrum Analyzer sweep mode Yes 109 (6Dh) Set Spectrum Analyzer Marker to Peak Sets specified marker to peak value of the sweep Yes 110 (6Eh) Set Spectrum Analyzer Marker to Center
Control Byte # Name Watchdog Timer Description A004h Set T1/E1 Error Insert Type/Value Sets the Insertion Error type and the number of errors Yes A005h Set T1/E1 Framing Mode Sets the Framing Mode of T1/E1 measurement Yes A006h Start and Stop T1/E1 Measurement Toggles state of T1 and E1 measurements —- A007h Insert Error for T1/E1 Measurement Inserts the error defined into the data flow —- A008h Get T1/E1 Pattern Returns the current pattern for T1 and E1 modes —- A009h Get T1/E1 Fra
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.
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).
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.
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.
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).
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.
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.
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 Top6 (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 17 (highest byte) 78) Frequency Marker 1 (lowest byte) 79) Frequency Marker 2 (highest byte) 80) Fr
164) 165) 166) 167) 168) 169) 170) 171) 172) 173) 174) 175) 176) 177) 178) 179) 180) 181) 182) 183) 184) 185) 186) 187) 188) 189) 190) 191) Start Distance Start Distance Start Distance (lowest byte) Stop Distance (highest byte) Stop Distance Stop Distance Stop Distance (lowest byte) Distance Marker 111 (highest byte) Distance Marker 1 (lowest byte) Distance Marker 2 (highest byte) Distance Marker 2 (lowest byte) Distance Marker 3 (highest byte) Distance Marker 3 (lowest byte) Distance Marker 4 (highest byt
bit 7 : Unit of Measurement (1b = Metric, 0b = English) 194) Status Byte 4: (LSB) bit 0 - 1 : DTF Windowing Mode bit: 1 0 | | 0 0 - Rectangular (No Windowing) 0 1 - Nominal Side Lobe 1 0 - Low Side Lobe 1 1 - Minimum Side Lobe bits 2 – 7 : Not Used 195-228) Not Used 229-1268) Sweep Data (130 points * 8 bytes/point = 1040 bytes) 229-2300) Sweep Data (259 points * 8 bytes/point = 2072 bytes) 229-4364) Sweep Data (517 points * 8 bytes/point = 4136 bytes) 8 bytes for each data point 1. gamma15 MSB 2. gamma 3.
77) Ref Level18 (highest byte) 78) Ref Level 79) Ref Level 80) Ref Level (lowest byte) 81) Scale per div19 (highest byte) 82) Scale per div 83) Scale per div 84) Scale per div (lowest byte) 85) Frequency Marker 120 (highest byte) 86) Frequency Marker 1 (lowest byte) 87) Frequency Marker 2 (highest byte) 88) Frequency Marker 2 (lowest byte) 89) Frequency Marker 3 (highest byte) 90) Frequency Marker 3 (lowest byte) 91) Frequency Marker 4 (highest byte) 92) Frequency Marker 4 (lowest byte) 93) Frequency Marker
266) VBW Setting (Frequency in Hz) 267) VBW Setting (Frequency in Hz) 268) VBW Setting (Frequency in Hz) (lowest byte) 269) OCC BW Method (0b if % of power, 1b = dB down) 270) OCC BW % Value23 (highest byte) 271) OCC BW % Value 272) OCC BW % Value 273) OCC BW % Value (lowest byte) 274) OCC BW dBc 24(highest byte) 275) OCC BW dBc 276) OCC BW dBc 277) OCC BW dBc (lowest byte) 278) Attenuation25 (highest byte) 279) Attenuation 280) Attenuation 281) Attenuation (lowest byte) 282-297)Antenna Name(16 bytes in ASC
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 : Multip
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) Site Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error : Invalid store location 238 (EEh) Time-out Error Recall System Setup – Control Byte #19 (13h) Description: Recalls system setup parameters from a speci
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
106) 107) 108) 109) 110) 111) 112) 113) 114) 115) 116) 117) 118) 119) 120) 121) 122) 123) 124) 125) 126) 127) 128) 129) 130) 131) 132) 133) 134) 135) 136) 137) 138) 139) 140) 141) 142) 143) 144) 145) 146) 147) 148) 149) 150) 151) Start Distance (highest byte)36 Start Distance Start Distance Start Distance (lowest byte) Stop Distance (highest byte) Stop Distance Stop Distance Stop Distance (lowest byte) Distance Marker 1 (higher byte)37 Distance Marker 1 (lower byte) Distance Marker 2 (higher byte) Distance
152) Spectrum Analyzer Minimum Frequency Step Size (highest byte) 153) Spectrum Analyzer Minimum Frequency Step Size 154) Spectrum Analyzer Minimum Frequency Step Size 155) Spectrum Analyzer Minimum Frequency Step Size (lowest byte) 156) Ref Level (highest byte)41 157) Ref Level 158) Ref Level 159) Ref Level (lowest byte) 160) Scale per div (highest byte)42 161) Scale per div 162) Scale per div 163) Scale per div (lowest byte) 164) Spectrum Analyzer Frequency Marker 1 (higher byte)43 165) Spectrum Analyzer
340) RBW Setting (highest byte)47 341) RBW Setting 342) RBW Setting 343) RBW Setting (lowest byte) 344) VBW Setting (highest byte)48 345) VBW Setting 346) VBW Setting 347) VBW Setting (lowest byte) 348) OCC BW Method49 349) OCC BW % Value (highest byte)50 350) OCC BW % Value 351) OCC BW % Value 352) OCC BW % Value (lowest byte) 353) OCC BW dBc (highest byte)51 354) OCC BW dBc 355) OCC BW dBc 356) OCC BW dBc (lowest byte) 357) Attenuation (highest byte)52 358) Attenuation 359) Attenuation 360) Attenuation (l
bits 6 - 7 : Not Used 249) Status Byte 4: (0b = Off, 1b = On) (LSB) bit 0 : Not Used bit 1 : Spectrum Analyzer Mode Marker 2 Delta On/Off bit 2 : Spectrum Analyzer Mode Marker 3 Delta On/Off bit 3 : Spectrum Analyzer Mode Marker 4 Delta On/Off bits 4-7: Not Used 250) Status Byte 5: ( 0b = Off , 1b = On) (LSB) bit 0 : Site Master Limit Type (0b = Single, 1b = Multiple) bit 1 : Site Master Limit Beep ON/OFF bit 2 : FREQ-SWR Multiple Limit Segment 1 Status On/Off bit 3 : FREQ-SWR Multiple Limit Segment 2 Statu
256) 257) 394) 395) 396) 397) bit 5 : SPA Multiple Limit Upper Segment 1 Beep Level ABOVE/BELOW53 bit 6 : SPA Multiple Limit Upper Segment 2 Status On/Off bit 7 : SPA Multiple Limit Upper Segment 2 Beep Level ABOVE/BELOW Status Byte 11 : (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 bit 1 : SPA Multiple Limit Upper Segment 3 Beep Level ABOVE/BELOW bit 2 : SPA Multiple Limit Upper Segment 4 Status On/Off bit 3 :
bit 5: Channel Power On/Off bit 6: Adjacent Channel Power On/Off bit 7: Not Used 398) Printer Type55 399) Current Language (0 = English, 1 = French, 2 = German, 3 = Spanish, 4 = Chinese, 5 = Japanese) 400) LCD Contrast Value (0-255) 401) RTC battery 56(higher byte) 402) RTC battery (lower byte) 403) PC board revision 57(higher byte) 404) PC board revision (lower byte) 405) Reference Level Offset58 (highest byte) 406) Reference Level Offset 407) Reference Level Offset 408) Reference Level Offset (lowest 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 – Control Byte #22 (16h) Description: Reads the Fail Counter. Values are integer numbers of failures.
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). Description: Uploads a spectrum analyzer sweep trace to Site Master. For data formats, refer to the footnotes listed beside the return bytes.
71) Marker 2 (lower byte) 72) Marker 3 (higher byte) 73) Marker 3 (lower byte) 74) Marker 4 (higher byte) 75) Marker 4 (lower byte) 76) Marker 5 (higher byte) 77) Marker 5 (lower byte) 78) Marker 6 (higher byte) 79) Marker 6 (lower byte) 80) Single Limit64 (highest byte) 81) Single Limit 82) Single Limit 83) Single Limit (lowest byte) 84) Multiple Upper Limit 1 Start X (Frequency in Hz) (highest byte) 85) Multiple Upper Limit 1 Start X (Frequency in Hz) 86) Multiple Upper Limit 1 Start X (Frequency in Hz) 8
262) Attenuation 263) Attenuation 264) Attenuation (lowest byte) 265-280) Antenna Name (16 bytes in ASCII) 281) 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 282) 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 283) Status Byte 3: (0b
288) Reference Level Offset68 (highest byte) 289) Reference Level Offset 290) Reference Level Offset 291) Reference Level Offset (lowest byte) 292-321) Not Used 322-1921) Sweep Data (400 points * 4 bytes/point = 1600 bytes) 4 bytes for each data point 1. dBm69 (highest byte) 2. dBm 3. dBm 4.
48) Stop Frequency (highest byte) 49) Stop Frequency 50) Stop Frequency 51) Stop Frequency (lowest byte) 52) Minimum Frequency Step Size (highest byte) 53) Minimum Frequency Step Size 54) Minimum Frequency Step Size 55) Minimum Frequency Step Size (lowest byte) 56) Scale Top (highest byte)72 57) Scale Top 58) Scale Top 59) Scale Top (lowest byte) 60) Scale Bottom (highest byte) 61) Scale Bottom 62) Scale Bottom 63) Scale Bottom (lowest byte) 64) Frequency Marker 1 (higher byte)73 65) Frequency Marker 1 (low
Start Distance (highest byte)76 Start Distance Start Distance Start Distance (lowest byte) Stop Distance (highest byte) Stop Distance Stop Distance Stop Distance (lowest byte) Distance Marker 1 (higher byte)77 Distance Marker 1 (lower byte) Distance Marker 2 (higher byte) Distance Marker 2 (lower byte) Distance Marker 3 (higher byte) Distance Marker 3 (lower byte) Distance Marker 4 (higher byte) Distance Marker 4 (lower byte) Distance Marker 5 (higher byte) Distance Marker 5 (lower byte) Distance Marker 6 (
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 1 0 - Low Side Lobe 1 1 - Minimum Side Lobe bits 2 – 7 : Not Used 182-215) Not Used 216-1255) Sweep Data (130 points * 8 bytes/point= 1040 bytes) 216-2287) (259 points * 8 bytes/point= 2072 bytes) 216-4351) (517 points * 8 bytes/point= 4136 bytes) 8 bytes for e
1) 2) 3) 4) 5) Number of Following Bytes (higher byte) Number of Following Bytes (lower byte) Measurement Mode83 Printer Type84 Current Language (00h = English, 01h = French, 02h = German, 03h = Spanish, 04h = Chinese, 05h = Japanese) 6) LCD Contrast Value (0-255) 7) Date Format (00h = MM/DD/YYYY, 01h = DD/MM/YYYY, 02h = YYYY/MM/DD) 8) RTC battery 85 (higher byte) 9) RTC battery (lower byte) 10) PC Board Revision 86 (higher byte) 11) PC Board Revision (lower byte) 12-25) Not Used For Site Master VNA Modes:
56) Site Master VNA Single Limit (highest byte)89 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)90 63) VNA Multiple Limit Segment Start X 64) VNA Multiple Limit Segment Start X 65) VNA Multiple Limit Segment Start X (lowest byte) 66) VNA Multiple Limit Segment Start Y (higher byte) 67) VNA Mult
156) 157) 158) 159) 160) 161) 162) 163) 164) 165) 166) 167) 95 Cable Loss Cable Loss (lowest byte) Average Cable Loss95 (highest byte) Average Cable Loss Average Cable Loss Average Cable Loss (lowest byte) Status Byte 1: ( 0b = Off , 1b = On) (LSB) bit 0 : Site Master Marker 1 On/Off bit 1 : Site Master Marker 2 On/Off bit 2 : Site Master Marker 3 On/Off bit 3 : Site Master Marker 4 On/Off bit 4 : Site Master Marker 5 On/Off bit 5 : Site Master Marker 6 On/Off bits 6- 7 : Not Used Status Byte 2: (0b
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 169) Status Byte 8: (LSB) bits 0 - 1 : DTF Windowing Mode bit: 1 0 | | 0 0 - Rectangular (No Windowing) 0 1 - Nominal Side Lobe 1 0 - Low Side L
45) 46) 47) 48) 49) 50) 51) 52) 53) 54) 55) 56) 57) 58) 59) 60) 61) 62) 63) 64) 65) 66) 67) 68) 69) 70) 71) 72) 73) 74) 75) 76) 77) 78) 79) 80) 81) 82) 83) 84) 85) 86) Spectrum Analyzer Minimum Frequency Step Size Spectrum Analyzer Minimum Frequency Step Size Spectrum Analyzer Minimum Frequency Step Size (lowest byte) Ref Level (highest byte)98 Ref Level Ref Level Ref Level (lowest byte) Scale per div (highest byte)99 Scale per div Scale per div Scale per div (lowest byte) Spectrum Analyzer Frequency Marke
87) SPA Multiple Upper Limit 1 End Y (Power Level) (lowest byte) 88-231) SPA Multiple Upper Limits 2-5, SA Multiple Lower Limits 1-5 (see bytes 72-87 for format) 232) RBW Setting (highest byte)106 233) RBW Setting 234) RBW Setting 235) RBW Setting (lowest byte) 236) VBW Setting (highest byte)107 237) VBW Setting 238) VBW Setting 239) VBW Setting (lowest byte) 240) OCC BW Method108 241) OCC BW % Value (highest byte)109 242) OCC BW % Value 243) OCC BW % Value 244) OCC BW % Value (lowest byte) 245) OCC BW dBc
273) 274) 275) 276) 277) 278) 279) 280) 281) 282) 283) 284) 285) bit 4 : SPA Multiple Limit Upper Segment 1 Status On/Off bit 5 : SPA Multiple Limit Upper Segment 1 Beep Level ABOVE/BELOW111 bit 6 : SPA Multiple Limit Upper Segment 2 Status On/Off bit 7 : SPA Multiple Limit Upper Segment 2 Beep Level ABOVE/BELOW 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 bit 1 : SPA Multiple Limit Upper Segment
286) 287) 288) 289) 290) 291) 292) 293) 294) 295) 296) 297) 298) 299) 300) 301) 302) 303) 304) 305) 306) 307) 308) 309) 310) 311) 312) 313) 314) 315) 316) 317) 318) 319) 320) Trigger Type117 Interference Analysis Frequency118 (highest byte) Interference Analysis Frequency Interference Analysis Frequency Interference Analysis Frequency (lowest byte) Trigger Position (0 – 100%) Min Sweep Time (in ms) (highest byte) Min Sweep Time (in ms) Min Sweep Time (in ms) Min Sweep Time (in ms) (lowest byte) Video Trig
321) Frequency Scale Factor124 (higher byte) 322) Frequency Scale Factor (lower byte) 323) Frequency Range Minimum125 (highest byte) 324) Frequency Range Minimum 325) Frequency Range Minimum 326) Frequency Range Minimum (lowest byte) 327) Frequency Range Maximum126 (highest byte) 328) Frequency Range Maximum 329) Frequency Range Maximum 330) Frequency Range Maximum (lowest byte) 331) Marker Type127 332-400) Not Used For Power Meter Mode (Option 29): 26) Power Meter Start Freq128 (highest byte) 27) Power Met
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 Factor135 (higher byte) 60) Frequency Scale Factor (lower byte) 61) Frequency Range Minimum136 (highest byte) 62) Frequen
137) T1 1st User Defined Loop Up (lower byte) 138) T1 2nd User Defined Loop Up (higher byte) 139) T1 2nd User Defined Loop Up (lower byte) 140) T1 1st User Defined Loop Down (higher byte) 141) T1 1st User Defined Loop Down (lower byte) 142) T1 2nd User Defined Loop Down (higher byte) 143) T1 2nd User Defined Loop Down (lower byte) 144) T1 User Defined Pattern (highest byte) 145) T1 User Defined Pattern 146) T1 User Defined Pattern 147) T1 User Defined Pattern (lowest Byte) 148) T1 Bit Error Insert Value (1-
141) E1 1st User Defined Loop Down (lowest byte) 142) E1 2nd User Defined Loop Down (highest byte) 143) E1 2nd 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) 150) E1 Frame Error Insert Value (1-1000) (higher byte) 151) E1 Frame Error Insert Value (lower byte) 152) E1 BPV Error I
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.
3) Current Instrument Date Format143 4) Not Used 5-11) Model Number (7 bytes in ASCII) 12-15) Software Version (4 bytes ASCII) 16) Measurement Mode144 17-20) Time/Date (in Long Integer145) 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) For all Site Master VNA Modes : 57) Start Frequency146 (highest byte) 58) Start Frequency 59) Start Frequency 60) Start Frequency (lowest
89) Single Limit149 (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 X150 (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) 101) Multiple Limit End X (highest byte) 102) Multiple Limit End X 103) Multiple Limit End X 104) Multiple Limit End X (low
189) 190) 191) 192) 193) 194) 195) Cable Loss Cable Loss (lowest byte) Average Cable Loss155 (highest byte) Average Cable Loss Average Cable Loss Average Cable Loss (lowest byte) 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 196) Status Byte 2: (0b = Off, 1b = On) (LSB) bit 0 : Marker 2 Delta On/Off bit 1 : Marker 3 Delta On/Off bit 2 : Marker 4 De
2. gamma 3. gamma 4. gamma (lowest byte) 5. phase158 (highest byte) 6. phase 7. phase 8.
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 Limit163 (highest byte) 98) Single Limit 99) Single Limit 100) Single Limit (lowest byte) 101) Multiple Upper Limit 1 Start X164 (highest byte) 102) Multiple Upper Limit 1 Start X 103) Multiple Upper Limit 1 Start X 104) Multiple Upper Limit 1 St
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) (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 bit 4 : Pre Amp Mode (0b = Manual, 1b = Auto) bit 5 : Pre Amp Status On/Off bit 6 : Dynamic Attenuation On/Off bit 7: Reserved 294) Status Byte 3:
bit 7: Not Used 299) Reference Level Offset 173(highest byte) 300) Reference Level Offset 301) Reference Level Offset 302) Reference Level Offset (lowest byte) 303) External Reference Frequency 174 304) Signal Standard175 (highest byte) 305) Signal Standard (lowest byte) 306) Channel Selection176 (highest byte) 307) Channel Selection (lowest byte) 308) Interference Analysis Cellular Standard177 309) Interference Analysis Estimated Bandwidth (highest byte) 310) Interference Analysis Estimated Bandwidth 311)
Frequency Scale Factor182 (higher byte) Frequency Scale Factor (lower byte) Frequency Range Minimum183 (highest byte) Frequency Range Minimum Frequency Range Minimum Frequency Range Minimum (lowest byte) Frequency Range Maximum184 (highest byte) Frequency Range Maximum Frequency Range Maximum Frequency Range Maximum (lowest byte) Linked Trace Number (1-200) Status Byte 9 (0b=Off, 1b=On) (LSB) bit 0 : C/I Measurement On/Off bits 1-3 : C/I Carrier Trace/Signal Type185 bits 4-7 : Not Used 347) C/I Calculated P
1. dBm194 (highest byte) 2. dBm 3. dBm 4.
95) Channel Selection (lower byte) 96) Frequency Scale Factor201 (higher byte) 97) Frequency Scale Factor (lower byte) 98) Frequency Range Minimum202 (highest byte) 99) Frequency Range Minimum 100) Frequency Range Minimum 101) Frequency Range Minimum (lowest byte) 102) Frequency Range Maximum203 (highest byte) 103) Frequency Range Maximum 104) Frequency Range Maximum 105) Frequency Range Maximum (lowest byte) 106 – 150) Not Used 151) Power Meter Reading204 (highest byte) 152) Power Meter Reading 153) Power
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) 86) CRC Error Count (highest byte) 87) CRC Error Count 88) CRC Error Count 89) CRC Error Count (lowest byte) 90) Frame Error Count (highest byte) 91) Frame Error Count 92) Frame Error Count 93) Frame Erro
656) Vpp or dBdsx209 (higher byte) 657) Vpp or dBdsx (lower byte) 658) T1 or E1 Receive Frequency (in Hz)210 (highest byte) 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 – 750) Not Used Site Master Returns (For invalid sweeps/empty stored sweep locations): 11 bytes 1-2) Number of following bytes (9 bytes for invalid sweep recall) 3) Current Instrument Date Format211 4) Model # (unsigned integer, 14h for Site Master m
1) 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. Use it, instead of Control Bytes #26 and #28, to access the new features. Description: Uploads a sweep trace to the Site Master.
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)216 77) Single Limit Line Value 78) Single Limit Line Value 79) Single Limit Line Value (lowest byte) 80) Multiple Limit Segment # (1) 81) Mul
170) 171) 172) 173) 174) 175) 176) 177) 178) 179) 180) 181) 182) 183) 184) 185) 186) 187) Relative Propagation Velocity (highest byte)220 Relative Propagation Velocity Relative Propagation Velocity Relative Propagation Velocity (lowest byte) Cable Loss (highest byte)221 Cable Loss Cable Loss Cable Loss (lowest byte) Average Cable Loss222 (highest byte) Average Cable Loss Average Cable Loss Average Cable Loss (lowest byte) Status Byte 1: ( 0b = Off , 1b = On) (LSB) bit 0 : Marker 1 On/Off bit 1 : Marke
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. Gamma224 (highest byte) 2. Gamma 3. Gamma 4. Gamma (lowest byte) 5. Phase225 (highest byte) 6. Phase 7. Phase 8.
66) Scale per div 67) Scale per div (lowest byte) 68) Marker 1232 (higher byte) 69) Marker 1 (lower byte) 70) Marker 2 (higher byte) 71) Marker 2 (lower byte) 72) Marker 3 (higher byte) 73) Marker 3 (lower byte) 74) Marker 4 (higher byte) 75) Marker 4 (lower byte) 76) Marker 5 (higher byte) 77) Marker 5 (lower byte) 78) Marker 6 (higher byte) 79) Marker 6 (lower byte) 80) Single Limit233 (highest byte) 81) Single Limit 82) Single Limit 83) Single Limit (lowest byte) 84) Multiple Upper Limit 1 Start X234 (hi
254) OCC BW dBc (0-120) 255) Attenuation238 (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 bit 4 : Marker 5 On/Off bit 5 : Marker 6 On/Off bits 6-7: Not Used 276) 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
bit 6 : Multiple Limit Lower Segment 5 Status On/Off bit 7 : Multiple Limit Lower Segment 5 Beep Level ABOVE/BELOW 281) Status Byte 7 (LSB) bits 0-6: Number of Sweeps to Average (1-25, 1 implies averaging OFF) bit 7 : Not Used 282) Reference Level Offset239 (highest byte) 283) Reference Level Offset 284) Reference Level Offset 285) Reference Level Offset (lowest byte) 286) External Reference Frequency240 287) Signal Standard241 (higher byte) 288) Signal Standard (lower byte) 289) Channel Selection242 (highe
Impedance Loss247 (higher byte) Impedance Loss (lower byte) Frequency Scale Factor248 (higher byte) Frequency Scale Factor (lower byte) Frequency Range Minimum249 (highest byte) Frequency Range Minimum Frequency Range Minimum Frequency Range Minimum (lowest byte) Frequency Range Maximum250 (highest byte) Frequency Range Maximum Frequency Range Maximum Frequency Range Maximum (lowest byte) Linked Trace Number (1-200) Status Byte 9 (0b=Off, 1b=On) (LSB) bit 0 : C/I Measurement On/Off bits 1-3 : C/I Carrier Tr
3. dBm 4. dBm (lowest byte) For T1/E1 Modes (Option 50): 44) Receive Input (00h: Terminate, 01h: Bridged, 02h: Monitor) 45) Framing Mode259 46) Line Coding (01h: B8ZS, 02h: AMI, 03h: HDB3) 47) Tx Level (Valid for T1 Only) (01h: 0 dB, 02h: -7.
86) E Bit Error Count (E1 Only) 87) E Bit Error Count (E1 Only) 88) E Bit Error Count (E1 Only) (lowest byte) 89) Errored Seconds (highest byte) 90) Errored Seconds 91) Errored Seconds 92) Errored Seconds (lowest byte) 93) Bit Count (highest byte) 94) Bit Count 95) Bit Count 96) Bit Count (lowest byte) 97) Bit Errors (highest byte) 98) Bit Errors 99) Bit Errors 100) Bit Errors (lowest byte) 101) User Defined Pattern (convert to binary for pattern) (highest byte) 102) User Defined Pattern 103) User Defined P
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) (Option 29 only) Description: Return Power Level at the RF In port. Also returns power meter settings.
Power Meter Relative Mode On/Off – Control Byte #41 (29h) (Option 29 only) Description: Enable or disable Power Meter Relative Mode.
1) 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) (Option 29 only) 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. If the module is not attached, the center frequency is sent in Hz.
Site Master Returns: 17 bytes 1-2) Battery Status flags ( Refer to Smart Battery Data Spec 5.1.2.
224 (E0h) Parameter Error: Invalid trigger level 238 (EEh) Time-out Error Automatically Save Runtime Setup – Control Byte #64 (40h) Description: Automatically save the runtime setup when exiting remote mode. This flag must be set once per power cycle of the Site Master. It returns to its default value when the unit is turned off. The default value is (0), DO NOT automatically save the runtime setup.
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. Each antenna factor has an associated frequency and value. These are specified one at a time. Frequencies are sent in Hz, scaled by the scale factor. The value of the antenna factor should be sent as (value * 100).
5) 6) Antenna Factor (higher byte) Antenna Factor (lower byte) Set Field Strength Measurement – Control Byte #84 (54h) Description: Sets the state of the measurement (ON or OFF) and the antenna index for the field strength measurement. Antennas 1-10 are custom antennas. Antennas 11-15 are standard antennas. The standard antennas are: 11. Anritsu # 2000-1030 (MAXRAD MPA1750 - 1710-1880 MHz) 12. Anritsu # 2000-1031 (MAXRAD MPA1850 - 1850-1990 MHz) 13. Anritsu # 2000-1032 (MAXRAD MPA2450 - 2400-2483.
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 1-200 to read the channel power associated with a stored trace (use Query Trace Names, #24, to obtain trace numbers).
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. If the module is not attached, frequencies are sent in Hz.
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. If the module is not attached, frequencies are sent in Hz. Use Control Word A203 to determine whether a module is attached and the appropriate scale factor.
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. If the module is not attached, the frequencies are sent in Hz. Use Control Word A203 to determine whether a module is attached and the appropriate scale factor.
3) 4) 5) 6) 7) 8) Ref Level Ref Level (lowest byte) dB/div (highest byte) dB/div dB/div dB/div (lowest byte) Site Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid scale 238 (EEh) Time Out Error Notes: Ref Level is sent as the (Ref Level * 1000) + 270,000 (0 dBm = 270,000, 20 dBm = 290000, -120 dBm = 150,000) Scale should be sent as (dBm * 1000) (e.g., -12.
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 1) Peak Hold State 00h – Peak Hold Off 01h – Max Hold On 02h – Min Hold On Site Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid state 238 (EEh) Time Out Error Set Spectrum Analyzer Resolution Bandwidth – Control Byte #106 (6Ah) NOTE: This command exists for backward compatibility with the S33xC models.
1) 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. For Single Sweep Mode during Site Master VNA modes of operation see control byte #11 (0Bh).
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. Send a value of 255 (FFh) to enable dynamic attenuation. Automatic control couples the attenuation to the reference level.
Site Master Returns: 1 byte 1) 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.
16) 17) 18) 19) 20) Limit Value End X (lowest byte) Limit Value End Y 273(highest byte) Limit Value End Y Limit Value End Y Limit Value End Y (lowest byte) Site Master Returns: 1 byte 1) 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 – Control Byte #114 (72h) Description: If this is enabled, the duration of the current sweep (in milliseconds) will be returned as 4 bytes via the serial por
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. If the module is not attached, the frequency is sent in Hz. Use Control Word A203 to determine whether a module is attached and the appropriate scale factor.
Read InstaCal Module ASCII Serial Number – Control Byte #124 (7Ch) Description: Returns the InstaCal Module serial number in ASCII. Bytes to Follow: 1 byte 1) 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) – Control Byte #129 (81h) Description: Sets an individual marker in current measurement mode to either peak (maximum) signal or valley (minimum) signal.
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: 1) 00h – Reference present and at the correct frequency (PLL functioning) 01h – Reference is not present 02h – Reference is present, but internal PLL and external frequency do not match up.
1) 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. Description: Sets the resolution BW frequency for the Spectrum Analyzer.
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.
Set Baud Rate – Control Byte #197 (C5h) Description: Set baud rate for this session. An invalid setting returns the baud rate to 9600. Bytes to Follow: 1 byte 1) Baud Rate Index 00h = 9600 baud 01h = 19200 baud 02h = 38400 baud 03h = 56000 baud 04h = 115200 baud Site Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid baud rate index 238 (EEh) Time Out Error Set Language – Control Byte #198 (C6h) Description: Set the Site Master display language.
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 1) 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) Exit Remote Mode – Control Byte #255 (FFh) Description: Site Master exits remote mode.
1) Clock Source 00h: Internal 01h: External Site Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid clock source 238 (EEh) Time Out Error Set T1/E1 Pattern – Control Word (A003h) (Option 50 only) Description: Sets the data pattern of T1/E1 measurement mode. Bytes to Follow: 2 bytes 1) Data Pattern 00h: AUTO_DETECT 01h: PRBS_9 02h: PRBS_11 03h: PRBS_15 04h: PRBS_20 (O.151) 05h: PRBS_20 (O.
1) 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) (Option 50 only) Description: Sets the Framing Mode of T1/E1 measurement.
or 1) 238 (EEh) Time Out Error Get T1/E1 Frame Sync Status – Control Word (A009h) (Option 50 only) Description: Get the frame sync status of T1 /E1. Bytes to Follow: 0 bytes Site Master Returns: 1 byte 1) Frame Sync Status (00h: Framed; 01h: Unframed) or 1) 238 (EEh) Time Out Error Get T1/E1 Pattern Sync Status – Control Word (A00Ah) (Option 50 only) Description: Get the pattern sync status of T1/ E1.
12) CRC (lower byte) T1: 13) 14) 15) 16) E1: 13) 14) 15) 16) 17) 18) or 1) Errored Seconds (highest byte) Errored Seconds Errored Seconds Errored Seconds (lowest byte) E Bits (higher byte) E Bits (lower byte) Errored Seconds (highest byte) Errored Seconds Errored Seconds Errored Seconds (lowest byte) 238 (EEh) Time Out Error Set T1/E1 Line Coding Options – Control Word (A00Dh) (Option 50 only) Description: Sets the line coding options of T1/E1 measurement mode.
Bytes to Follow: 0 bytes Site Master Returns: 3 bytes 1) 2) 3) Volts peak-to-peak (higher byte) Volts peak-to-peak (lower byte) 255 (FFh) Operation Complete Byte 238 (EEh) Time-out Error Set T1/E1 Receive Input Configuration Options - Control Word (A013h) (Option 50 only) Description: Sets the Rx Input Configuration for the T1/E1 modes.
00h: Off 01h: On Site Master Returns: 1 byte 1) 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) (Option 50 only) 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. For example, –5.0 dB will be reported as 300. Results less than –20 dB are not accurate to 0.
Site Master Returns: 1 byte 1) 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 1) Signal Standard - See the “Signal Standards” section for a list of standards and their indices.
Read External Module Serial Number – Control Word (A202h) (Option 6 only) Description: Sets the serial number of the attached external converter module (Option 6).
1) 2) 3) or 1) 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) (Option 6 only) Description: Sets the module lock fail counter to 0.
24) 25) 26) 27) 28) VNA Integration Test - Reserved SPA LO Test - Status (01h: Pass, 00h: Fail, FFh: SPA board not installed) SPA LO Test - Failed data point # SPA LO Test - Failed LO # End of Data (FFh) S331D + Option 29 or S332D (w/o Option 6): 28 bytes 1) Temperature in 1/10th of degree Celsius (e.g., 362 = 36.2° C) (higher byte) 2) Temperature in 1/10th of degree Celsius (e.g., 362 = 36.
18) 19) 20) 21) 22) 23) 24) 25) 26) 27) 28) 29) 30) 31) 32) 33) H/W Config - T1E1 COLD ID VNA PLL Lock Failure Test - Status (01h: Pass, 00h: Fail) VNA PLL Lock Failure Test - Failed data point # (Ignore this byte if the Lock Fail Test Status was Pass) VNA PLL Lock Failure Test - Failed PLL # (Ignore this byte if the Lock Fail Test Status was Pass) VNA Integration Test - Status (01h: Pass, 00h: Fail) VNA Integration Test - Failed data point # (Ignore this byte if the Integration Test Status was Pass) VNA I
Programming Examples 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.
/*********************************************************************/ /* 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).
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; } else { if ( *ResponseBytes != 0xFF ) { return FAILURE; } else { return SUCCESS; } } } /* SetSPAScale */ 110 Site Master PM
/*********************************************************************/ /* unsigned char ExitRemote(BYTE *ResponseBytes) */ /* Description: This function implements control byte #255, Exit */ /* Remote Mode. /* remote mode and resume sweeping. */ ResponseBytes = pointer to an array of bytes at */ /* least 1 element long (1 byte is expected in */ /* response to the Exit Remote command).
/*********************************************************************/ /* 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.
/*********************************************************************/ /* 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 */ /************************
OPEN_EXISTING, 0, // no overlapped I/O NULL); // null template /* 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( HANDLE hFile, // handle to communications device LPDCB lpDCB // pointer to device-control block // structure ); */ PortRe
case ‘3’: CommSettings.BaudRate = CBR_38400; // rate - 38400 break; case ‘4’: CommSettings.BaudRate = CBR_56000; // rate - 56000 break; case ‘5’: CommSettings.BaudRate = CBR_115200; // rate - 115200 break; default: CommSettings.BaudRate = CBR_9600; //Default - 9600 break; } // disable null stripping CommSettings.fNull = FALSE; // RTS flow control CommSettings.fRtsControl = RTS_CONTROL_ENABLE; // XON/XOFF in flow control CommSettings.fInX = FALSE; // XON/XOFF out flow control CommSettings.
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.
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.
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 ” + CStr(Asc(strInputBuf)) GoTo SetSMBaud_err_handler End If Exit Sub SetSMBaud_err_handler: commCtrl.
Parameter Definitions Parameter # of bytes Step Example / Description Frequency 4 bytes unsigned 1 Hz 1000.3 MHz = 1000300000 Scale (RL, CL) 2 bytes unsigned 1 / 1000 dB 51.3 dB = 51300 (SWR) 2 bytes unsigned 1 / 1000 (ratio) 65.53 = 65530 Limit (RL, CL) 2 bytes unsigned 1 / 1000 dB 51.3 dB = 51300 (SWR) 2 bytes unsigned 1 / 1000 (ratio) 65.53 = 65530 Markers (frequency and distance marker) 2 bytes unsigned 1 sweep point Marker values are given in relative position of the graph.
Spectrum Analyzer Signal Standards Index Standard Center Span Valid Channels 00h AMPS / EIA 553 - Uplink 859000000 70000000 1-799, 990-1023 01h AMPS / EIA 553 - Downlink 859000000 70000000 1-799, 990-1023 02h C-450 (P) - Uplink 463500000 21000000 1-800 03h C-450 (P) - Downlink 463500000 21000000 1-800 04h C-450 (SA) - Uplink 462500000 15000000 1-247 05h C-450 (SA) - Downlink 462500000 15000000 1-247 06h CDMA US Cellular - Uplink 859000000 70000000 1-799, 990-1023 07h
Index Standard Center Span Valid Channels 27h ETACS - Uplink 916000000 88000000 0-1000, 1329-2047 28h ETACS - Downlink 916000000 88000000 0-1000, 1329-2047 29h GSM 900 - Uplink 897400000 40000000 1-124, 975-1023 2Ah GSM 900 - Downlink 942400000 40000000 1-124, 975-1023 2Bh GSM 1800 - Uplink 1747400000 80000000 512-885 2Ch GSM 1800 - Downlink 1842400000 80000000 512-885 2Dh GSM 1900 - Uplink 1879800000 80000000 512-810 2Eh GSM 1900 - Downlink 1959800000 80000000 51
Index Standard Center Span Valid Channels 50h PHS - Downlink 1906500000 23000000 1-77 51h SMR 800 - 12.5 kHz - Uplink 836000000 60000000 1-1199 52h SMR 800 - 12.
VNA Signal Standards Index Standard Start Freq Stop Freq 00h Bluetooth US & Europe Uplink 2400000000 2484000000 01h Bluetooth US & Europe Downlink 2400000000 2484000000 02h Bluetooth US & Europe Fullband 2400000000 2484000000 03h Bluetooth Japan Uplink 2472000000 2497000000 04h Bluetooth Japan Downlink 2472000000 2497000000 05h Bluetooth Japan Fullband 2472000000 2497000000 06h C 450 P Uplink 453000000 464000000 07h C 450 P Downlink 463000000 474000000 08h C 450 P Fullba
Index Standard Start Freq Stop Freq 27h ISM 2 4 GHZ Uplink 2400000000 2484000000 28h ISM 2 4 GHZ Downlink 2400000000 2484000000 29h ISM 2 4 GHZ Fullband 2400000000 2484000000 2Ah JTACS/NTAC Japan ARIB Uplink 887000000 925000000 2Bh JTACS/NTAC Japan ARIB Downlink 832000000 870000000 2Ch JTACS/NTAC Japan ARIB Fullband 832000000 925000000 2Dh NMT 411 Uplink 411000000 420000000 2Eh NMT 411 Downlink 421000000 430000000 2Fh NMT 411 Fullband 411000000 430000000 30h NMT 450
Index Standard Start Freq Stop Freq 50h SMR 1500 Fullband 1453000000 1513000000 51h TACS/ETACS Uplink+C22 872000000 915000000 52h TACS ETACS Downlink 917000000 960000000 53h TACS ETACS Fullband 872000000 960000000 54h Tetra Uplink 380000000 430000000 55h Tetra Downlink 380000000 430000000 Site Master PM 125