Serial communications take place via the 9 pin connector on the back of the Spectrum Master. The Spectrum Master is a DTE-type serial device and therefore requires a “null modem” cable for communication with a computer, which is also a DTE device. We provide a suitable cable with your Spectrum Master. (Anritsu part number 800-441) Serial Communication Parameters The Spectrum Master communicates at a baud rate of 9600.
Entering Remote Mode Send the Enter Remote Mode Byte #69 (45h) to the Spectrum Master to enter remote mode at the end of a sweep Send the Enter Remote Mode Immediately byte #70 (46h) to enter remote mode in the middle of a sweep. The Spectrum Master’s serial port buffer is one byte wide.
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 Spectrum Master acts on the entire byte.
Read Time/Date – Control Byte #7 (07h) Description: Reads the current time and date from the real time clock. This Time/Date is stamped into all stored sweeps (for users’ reference). The real time clock time and date can be set using control byte #8.
Set Trace Name (Reference Number) – Control Byte #9 (09h) 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.
Watch-Dog Timer On/Off – Control Byte #12 (0Ch) Description: Enables or disables the Watch-dog timer. Default is Disabled. The Spectrum Master incorporates a watch-dog timer for higher reliability in serial communication. In selected control bytes (see control byte summary), the Spectrum Master checks for the time interval between each byte received from the computer.
Page 13
17-20) Time/Date (long integer format) 21-30) Date in String Format (mm/dd/yyyy) 31-38) Time in String Format (hh:mm:ss) 39-54) Reference Number/Trace Name (16 bytes in ASCII) 55-56) # data points (400) Start Frequency (in Hz) (Highest byte) Start Frequency (in Hz) Start Frequency (in Hz) Start Frequency (in Hz) (Lowest byte) Stop Frequency (in Hz) (Highest byte)
Page 14
100) Single Limit (Lowest byte) 101) Multiple Upper Limit 1 Start X (Frequency in Hz) (Highest byte) 102) Multiple Upper Limit 1 Start X (Frequency in Hz) 103) Multiple Upper Limit 1 Start X (Frequency in Hz) 104) Multiple Upper Limit 1 Start X (Frequency in Hz) (Lowest byte) 105) Multiple Upper Limit 1 Start Y (Power Level ) (Highest byte)
Page 15
304) Impedance Loss 305) Impedance Loss 306) Impedance Loss (Lowest byte) 307) 308) 309) 310) 311) 312) 313) 314) 315) 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...
Recall System Setup – Control Byte #19 (13h) 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-10) can be recalled. When the current mode is Power Meter, one of the 5 Power Meter setups can be recalled.. When the current mode is T1/E1, one of the T1/E1 setups can be recalled (1-5).
Page 18
12) Center Frequency (in Hz) (Highest byte) 13) Center Frequency (in Hz) 14) Center Frequency (in Hz) 15) Center Frequency (in Hz) (Lowest byte) 16) Frequency Span (in Hz) (Highest byte) 17) Frequency Span (in Hz) 18) Frequency Span (in Hz) 19) Frequency Span (in Hz) (Lowest byte) 20) Minimum Frequency Step Size (in Hz) (Highest byte) 21) Minimum Frequency Step Size (in Hz)
Page 19
Multiple Upper Limit 1 End X (Frequency in Hz) (Lowest byte) Multiple Upper Limit 1 End Y (Power Level) (Highest byte) Multiple Upper Limit 1 End Y (Power Level) Multiple Upper Limit 1 End Y (Power Level) Multiple Upper Limit 1 End Y (Power Level) (Lowest byte) 64-207) Multiple Upper Limits 2-5, Multiple Lower Limits 1-5 (see bytes 48-63 for format) 208) RBW Setting...
Page 20
264) 265) 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 266)
Page 21
bit 5 : Channel Power On/Off bit 6 : Adjacent Channel Power On/Off bit 7 : Occupied Bandwidth On/Off 272) Printer Type (see control byte #30) 273) Trace A/B Status (LSB) bit 0-1 : Trace A (00b = A only 01b = A – B 10b = A + B) bit 2 : Trace B On/Off (0b = Off, 1b = On) bits 3-7 : Not Used 274)
Query Trace Names – Control Byte #24 (18h) Description: Returns a list of all saved traces. Bytes to Follow: 0 bytes Spectrum Master Returns: 3 + (41 x number of save traces) bytes 1-2) # of saved traces For each trace: 1-2) Trace Index Measurement Mode (refer to Control Byte #3)
Page 24
Stop Frequency (in Hz) (Lowest byte) Center Frequency (in Hz) (Highest byte) Center Frequency (in Hz) Center Frequency (in Hz) Center Frequency (in Hz) (Lowest byte) Frequency Span (in Hz) (Highest byte) Frequency Span (in Hz) Frequency Span (in Hz) Frequency Span (in Hz) (Lowest byte) Ref Level (Highest byte)
Page 25
Multiple Upper Limit 1 End Y (Power Level) Multiple Upper Limit 1 End Y (Power Level) (Lowest byte) 100-243) Multiple Upper Limits 2-5, Multiple Lower Limits 1-5 (see bytes 80-95 for format) 244) RBW Setting (Highest byte) 245) RBW Setting 246) RBW Setting 247)
Page 26
bits 6-7: Not Used 299) 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 Delta On/Off bits 3-7: Not Used 300) Status Byte 3: (0b = Off, 1b = On) (LSB)
1. dBm (Highest byte) 2. dBm 3. dBm 4. dBm (Lowest byte) Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Not enough bytes transferred 225 (E1h) Memory Error: Not enough memory to store data 238 (EEh) Time-out Error Query Sweep Memory –...
Page 28
digital ID port. The digital ID will be used together with the PC Board Revision (mother board ID voltage) to identify the board and “dash” number. For boards prior to 64968, bytes 12 and 13 will be 0 14-25) Not Used For Spectrum Analyzer Mode/Transmission Mode (Option 21): 26) Spectrum Analyzer Mode Data Points (Higher byte) 27) Spectrum Analyzer Mode Data Points (Lower byte)
Page 29
68) Spectrum Analyzer Single Limit (Highest byte) 69) Spectrum Analyzer Single Limit 70) Spectrum Analyzer Single Limit 71) Spectrum Analyzer Single Limit (Lowest byte) 72) SPA Multiple Upper Limit 1 Start X (Highest byte) 73) SPA Multiple Upper Limit 1 Start X 74) SPA Multiple Upper Limit 1 Start X 75) SPA Multiple Upper Limit 1 Start X (Lowest byte) 76) SPA Multiple Upper Limit 1 Start Y (Power Level) (Highest byte)
Page 30
(LSB) bit 0 : Spectrum Analyzer Mode Marker 1 On/Off bit 1 : Spectrum Analyzer Mode Marker 2 On/Off bit 2 : Spectrum Analyzer Mode Marker 3 On/Off bit 3 : Spectrum Analyzer Mode Marker 4 On/Off bit 4 : Spectrum Analyzer Mode Marker 5 On/Off bit 5 : Spectrum Analyzer Mode Marker 6 On/Off bits 6 - 7 : Not Used 271)
Page 31
2: Max Hold On/Off bit 3: Min Hold On/Off bits 4-7: Not Used 303) Impedance (00h = 50Ω, 0Ah = 75Ω Anritsu Adapter, 0Ch = 75Ω Other Adapter) 304) Impedance Loss (Higher byte) Value sent as (value in dBm * 1000) + 270,000 1 byte in MHz (i.e.
Page 32
305) Impedance Loss (Lower byte) 306) AM/FM Demod Type 307) AM/FM Demod Status (01h = On, 00h = Off) 308) AM/FM Demod Volume (0 to 100) 309) AM/FM Demod Frequency (Highest byte) 310) AM/FM Demod Frequency 311) AM/FM Demod Frequency 312) AM/FM Demod Frequency (Lowest byte) 313)
Page 33
38) Power Meter Span (Highest byte) 39) Power Meter Span 40) Power Meter Span 41) Power Meter Span (Lowest byte) 42) Signal Standard (Higher byte) 43) Signal Standard (Lower byte) 44) Channel Selection (Higher byte) 45) Channel Selection (Lower byte) 46) Power Meter Offset (Highest byte) 47) Power Meter Offset 48) Power Meter Offset...
Page 34
33) T1 CRC Method (00h: ANSI CRC, 01h: Japanese CRC) 34) T1 Loop Type (00h: In Band, 01h: Data Link) 35) T1 Pattern (Higher byte) 36) T1 Pattern (Lower byte) 01h: PRBS-9, 02h: PRBS-11, 03h: PRBS-15, 04h: PRBS-20(O.151), 05h: PRBS-20(O.153), 06h: PRBS-23, 07h: QRSS, 08h: 1 in 8, 09h: 2 in 8, 0Ah: 3 in 8, 0Bh: All Ones, 0Ch: All Zeros, 0Dh: T1-DALY, 0Eh: User Defined) 37) T1 Pattern Invert Status (00h: Non-Inverted, 01h: Inverted) 38) T1 Display Type (00h: Histogram, 01h: Raw Data)
Page 35
0Ch: All Zeros, 0Dh: T1-DALY, 0Eh: User Defined) 37) E1 Pattern Invert (00h: Non-Inverted, 01h: Inverted) 38) E1 Display Type (00h: Histogram, 01h: Raw Data) 39) E1 Impedance (01h: 75 Ω, 02h: 120 Ω) 40 - 55) First User Defined Loop Code Down (16 bytes) 56 - 71) Second User Defined Loop Code Down (16 bytes) 72 - 87) First User Defined Loop Code Up (16 bytes) 88 - 103) Second User Defined Loop Code Up (16 bytes)
Select Printer Type – Control Byte #30 (1Eh) Description: Select Printer Type. Bytes to Follow: 1 byte 1) Printer ID 0 – Epson Stylus Models 1 – Epson LQ Models 2 – Citizen PN Models 3 – NEC Superscript Models 4 –...
Page 37
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 Spectrum Analyzer Mode: Start Frequency (Highest byte) Start Frequency Start Frequency Start Frequency (Lowest byte)
Page 38
Single Limit Single Limit 100) Single Limit (Lowest byte) 101) Multiple Upper Limit 1 Start X (Highest byte) 102) Multiple Upper Limit 1 Start X 103) Multiple Upper Limit 1 Start X 104) Multiple Upper Limit 1 Start X (Lowest byte) 105) Multiple Upper Limit 1 Start Y (Power Level ) (Highest byte)
Page 39
bit 4 : Pre Amp Mode (0b = Manual, 1b = Auto) bit 5 : Pre Amp Status On/Off bit 6 : Dynamic Attenuation On/Off bit 7 : Normalization On/Off 294) Status Byte 3: (0b = Off, 1b = On) (LSB) bit 0 : Antenna Factor Correction On/Off bits 1-2 : Detection alg (00b = pos.
Page 40
5: Bias Tee On/Off (Option 10 Only) bit 6: Occupied BW Measurement On/Off bit 7: Not Used 332) Impedance (00h = 50Ω, 0Ah = 75Ω Anritsu Adapter, 0Ch = 75Ω Other Adapter) 333) Impedance Loss (Higher byte) 334) Impedance Loss (Lower byte)
Page 41
343) Frequency Range Maximum 344) Frequency Range Maximum (Lowest byte) 345) Linked Trace Number (1-200) 346) Status Byte 9 (0b = Off, 1b = On) (LSB) bit 0: C/I Measurement On/Off bits 1-3: C/I Carrier Trace/Signal Type bits 4-7: Not Used 347) C/I Calculated Power (Carrier or Interference –...
Page 42
For Power Meter Mode (Option 29 Only): Power Monitor Mode (00h = Off, 01h = On) Power Meter Unit (00h = dBm, 01h = Watts) Start Frequency (Highest byte) Start Frequency Start Frequency Start Frequency (Lowest byte) Stop Frequency (Highest byte) Stop Frequency Stop Frequency Stop Frequency (Lowest byte)
Page 43
101) Frequency Range Minimum (Lowest byte) 102) Frequency Range Maximum (Highest byte) 103) Frequency Range Maximum 104) Frequency Range Maximum 105) Frequency Range Maximum (Lowest byte) 106 – 150) Not Used 151) Power Meter Reading (Highest byte) 152) Power Meter Reading 153) Power Meter Reading 154)
Page 44
Start Channel Start Channel 100) Start Channel (Lowest Byte) 101 – 124) Signal Standard Name, 24 bytes in ASCII 125 – 152) Reserved 153 – 272) Channel Scanner Data For Interference Analyzer RSSI Mode Center Frequency (Highest Byte) Center Frequency Center Frequency Center Frequency (Lowest Byte) Reference Level (Highest Byte)
Page 45
Max RSSI Measured Max RSSI Measured Max RSSI Measured (Lowest Byte) Measure Duration (Highest Byte) Measure Duration Measure Duration Measure Duration (Lowest Byte) Sweep Point Interval(Highest Byte) 100) Sweep Point Interval 101) Sweep Point Interval 102) Sweep Point Interval (Lowest Byte) 103 –...
Page 46
Measure Offset Value(Lowest Byte) Relative Value(Highest Byte) Relative Value(Lowest Byte) Relative Status (00h = Off, 01h = On) Running Averages Number(Highest Byte) Running Averages Number(Lowest Byte) 75 – 76) Signal Standard ID 77 – 100) Signal Standard Name 101) Zero Status (00h = Off, 01h = On) 102) Limit Status (00h = Off, 01h = On) 103)
OBSOLETE: Set A/B Trace – Control Byte #34 (22h) This command is included for compatibility with the MS2711B. To access the new features, use Control Byte #35. Description: Defines traces “A” and “B”. Trace A is always the currently measured data (with or without trace math). It is always visible. Trace B is always stored data and may come from a saved sweep or a previous “A”...
Upload Spectrum Master Sweep Trace – Control Byte #36 (24h) This command is new to the MS2711D. Use it, instead of Control Byte #26, to access the new features. Description: Uploads a sweep trace to the Spectrum Master. Bytes to Follow: For All Modes: 1-2) # of following bytes...
Page 49
Marker 4 (Higher byte) Marker 4 (Lower byte) Marker 5 (Higher byte) Marker 5 (Lower byte) Marker 6 (Higher byte) Marker 6 (Lower byte) Single Limit (Highest byte) Single Limit Single Limit Single Limit (Lowest byte) Multiple Upper Limit 1 Start X (Highest byte) Multiple Upper Limit 1 Start X Multiple Upper Limit 1 Start X...
Page 50
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)
Page 51
4: Transmission Calibration Status (Option 21 Only) bit 5: Bias Tee On/Off (Option 10 Only) bit 6: Occupied BW Measurement On/Off bit 7: Not Used 315) Impedance (00h = 50Ω, 0Ah = 75Ω Anritsu Adapter, 0Ch = 75Ω Other Adapter) 316) Impedance Loss (Higher byte) 317)
Page 52
319) Frequency Scale Factor (Lower byte) 320) Frequency Range Minimum (Highest byte) 321) Frequency Range Minimum 322) Frequency Range Minimum 323) Frequency Range Minimum (Lowest byte) 324) Frequency Range Maximum (Highest byte) 325) Frequency Range Maximum 326) Frequency Range Maximum 327) Frequency Range Maximum (Lowest byte) 328)
Page 53
401-2004) Sweep Data (401 points * 4 bytes/point = 1604 bytes) 4 bytes for each data point 1. dBm (Highest byte) 2. dBm 3. dBm 4. dBm (Lowest byte) For Power Meter Mode (Option 29 Only): 57) Power Monitor Mode (00h = Off, 01h = On) 58) Power Meter Unit (00h = dBm, 01h = Watts) 59) Start Frequency (Highest byte)
Page 54
95) Channel Selection (Lower byte) 96) Frequency Scale Factor (Higher byte) 97) Frequency Scale Factor (Lower byte) 98) Frequency Range Minimum (Highest byte) 99) Frequency Range Minimum 100) Frequency Range Minimum 101) Frequency Range Minimum (Lowest byte) 102) Frequency Range Maximum (Highest byte) 103) Frequency Range Maximum...
Page 55
72-75) GPS Position – Latitude (long integer) 76-79) GPS Position – Longitude (long integer) 80-81) GPS Position – Altitude (short integer) Start Channel (Highest Byte) Start Channel Start Channel Start Channel (Lowest Byte) 86 – 109) Signal Standard Name, 24bytes in ASCII 110 –...
Page 56
Channel (Highest Byte) Channel (Lowest Byte) Min RSSI Measured (Highest Byte) Min RSSI Measured Min RSSI Measured Min RSSI Measured (Lowest Byte) Max RSSI Measured (Highest Byte) Max RSSI Measured Max RSSI Measured Max RSSI Measured (Lowest Byte) Measure Duration (Highest Byte) Measure Duration Measure Duration Measure Duration (Lowest Byte)
Get Options – Control Byte #37 (25h) Description: Queries the option(s) installed on the Spectrum Master, returns a list as an ASCII string. Bytes to Follow: 0 bytes Spectrum Master Returns: Depends on the option(s) installed Maximum string: “3/6/10A/19/21/25/27/28/29/31” If NO options are installed: “None” Query Power Level –...
Set Power Meter Units – Control Byte #40 (28h) This command is available with Option 29 and/or Option 5. Description: Set Power Meter units to watts or dBm. Bytes to Follow: 1 byte 1) Units 00h = Watt (% if in relative mode) 01h = dBm (dB if in relative mode) Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte...
Power Meter Zero Mode On/Off – Control Byte #43 (2Bh) This command is available with Option 29 and/or Option 5. Description: Enable or disable Power Meter Zeroing Mode. Bytes to Follow: 1 byte 1) Zero Mode Status 00h = Off 01h = On with trigger (current power level is referenced as -80 dBm) Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte...
Power Meter Center Frequency and Span Setup – Control Byte #45 (2Dh) This command is available with 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 frequencies should be scaled by the scale factor of the module.
The Sweep Data Echo Mode allows run-time handshaking between the Spectrum Master and computer by doing the following: 1) Enter remote mode. Set Sweep Data Echo Mode On. Exit remote mode. 2) The Spectrum Master sweeps once and then sends the Sweep Complete Byte. 3) After you receive it: Recall sweep 0 (last sweep trace in RAM).
Set SPA Minimum Sweep Time – Control Byte #53 (35h) Description: Sets the minimum sweep time (in μs) for the spectrum analyzer when the span is 0. Valid range is 50 to 200,000,000. Bytes to Follow: 4 bytes 1) Minimum Sweep Time (in μs) (Highest byte) 2) Minimum Sweep Time (in μs) 3) Minimum Sweep Time (in μs) 4) Minimum Sweep Time (in μs) (Lowest byte)
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 Spectrum Master. It returns to its default value when the unit is turned off.
Page 64
34) Spectrum Analyzer Frequency Span 35) Spectrum Analyzer Frequency Span 36) Spectrum Analyzer Frequency Span (Lowest byte) 37) Ref Level (Highest byte) 38) Ref Level 39) Ref Level 40) Ref Level (Lowest byte) 41) Scale per div (Highest byte) 42) Scale per div 43) Scale per div 44) Scale per div (Lowest byte) 45) Spectrum Analyzer Frequency Marker 1 (Higher byte)
Page 66
253) 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 3 Beep Level ABOVE/BELOW bit 2 : SPA Multiple Limit Upper Segment 4 Status On/Off bit 3 : SPA Multiple Limit Upper Segment 4 Beep Level ABOVE/BELOW bit 4 : SPA Multiple Limit Upper Segment 5 Status On/Off...
Page 67
3: Min Hold On/Off bit 4: View B On/Off bit 5: External Reference Frequency On/Off bits 6-7: Not Used 283) Impedance (00h = 50Ω, 10h = 75Ω Anritsu Adapter, 12h = 75Ω Other Adapter) 284) Impedance Loss (Higher byte) 285)
Page 68
305) Frequency Range Minimum 306) Frequency Range Minimum (Lowest byte) 307) Frequency Range Maximum (Highest byte) 308) Frequency Range Maximum 309) Frequency Range Maximum 310) Frequency Range Maximum (Lowest byte) 311) Marker Type 312) Channel Power Int BW (Highest byte) 313) Channel Power Int BW 314)
Page 69
31) Center Frequency 32) Center Frequency (Lowest byte) 33) Frequency Span (Highest byte) 34) Frequency Span 35) Frequency Span 36) Frequency Span (Lowest byte) 37) Ref Level (Highest byte) 38) Ref Level 39) Ref Level 40) Ref Level (Lowest byte) 41) Scale per div (Highest byte) 42) Scale per div 43) Scale per div...
Page 70
76) Multiple Upper Limit 1 End Y (Power Level) (Lowest byte) 77-220) Multiple Upper Limits 2-5, SA Multiple Lower Limits 1-5 (see bytes 61-76 for format) 221) RBW Setting (Highest byte) 222) RBW Setting 223) RBW Setting 224) RBW Setting (Lowest byte) 225) VBW Setting (Highest byte) 226)
Page 71
234) Status Byte 5 : ( 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...
Page 72
255) Trace B Trace Id 256) Status Byte 9 (LSB) bit 0: Limit Beep Output (Option 86 Only) (00h = Internal Speaker, 01h = External) bits 1-7: Not Used 257-400) Not Used For Power Meter Mode (Option 29 Only): 21) Power Meter Start Freq (Highest byte) 22) Power Meter Start Freq 23) Power Meter Start Freq...
58) Frequency Range Minimum 59) Frequency Range Minimum (Lowest byte) 60) Frequency Range Maximum (Highest byte) 61) Frequency Range Maximum 62) Frequency Range Maximum 63) Frequency Range Maximum (Lowest byte) 64) Zero Status (00h = Off, 01h = On) 65) Zero Value (Highest byte) 66) Zero Value 67) Zero Value...
Page 74
37) Ref Level (Highest byte) 38) Ref Level 39) Ref Level 40) Ref Level (Lowest byte) 41) Scale per div (Highest byte) 42) Scale per div 43) Scale per div 44) Scale per div (Lowest byte) 45) Spectrum Analyzer Frequency Marker 1 (Higher byte) 46) Spectrum Analyzer Frequency Marker 1 (Lower byte) 47) Spectrum Analyzer Frequency Marker 2 (Higher byte) 48) Spectrum Analyzer Frequency Marker 2 (Lower byte)
Page 75
225) VBW Setting (Highest byte) 226) VBW Setting 227) VBW Setting 228) VBW Setting (Lowest byte) 229) OCC BW Method 230) OCC BW % Value 231) OCC BW dBc 232) Attenuation 233) Antenna Index (0-14) 234-249) Antenna Name (16 bytes in ASCII) 250) Status Byte 1: ( 0b = Off , 1b = On) (LSB)
Page 76
254) Status Byte 5 : ( 0b = Off/Beep if data is BELOW line , 1b = On/Beep if data is ABOVE line) (LSB) bit 0 : SPA Multiple Limit Lower Segment 2 Status On/Off bit 1 : SPA Multiple Limit Lower Segment 2 Beep Level ABOVE/BELOW bit 2 : SPA Multiple Limit Lower Segment 3 Status On/Off bit 3 : SPA Multiple Limit Lower Segment 3 Beep Level ABOVE/BELOW bit 4 : SPA Multiple Limit Lower Segment 4 Status On/Off...
Page 77
3: Min Hold On/Off bit 4: View B On/Off bit 5: External Reference Frequency On/Off bits 6-7: Not Used 283) Impedance (00h = 50Ω, 10h = 75Ω Anritsu Adapter, 12h = 75Ω Other Adapter) (Higher byte) 284) Impedance Loss 285)
Page 78
313) Channel Power Int BW 314) Channel Power Int BW 315) Channel Power Int BW (Lowest byte) 316) ACPR Main Channel BW (Highest byte) 317) ACPR Main Channel BW 318) ACPR Main Channel BW 319) ACPR Main Channel BW (Lowest byte) 320) ACPR Adjacent Channel BW (Highest byte)
Page 79
40) Ref Level (Lowest byte) 41) Scale per div (Highest byte) 42) Scale per div 43) Scale per div 44) Scale per div (Lowest byte) 45) Frequency Marker 1 (Higher byte) 46) Frequency Marker 1 (Lower byte) 47) Frequency Marker 2 (Higher byte) 48) Frequency Marker 2 (Lower byte) 49) Frequency Marker 3 (Higher byte) 50) Frequency Marker 3 (Lower byte)
Page 80
228) VBW Setting (Lowest byte) 229) Attenuation 230) 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...
Page 81
235) Status Byte 6: (0b = Off, 1b = On) (LSB) bit 0 : External Reference Frequency On/Off bit 1 : Bias Tee On/Off (Option 10) bit 2 : Amplitude Units (Linear) – 00b = Watts 01b = Volts bits 3-4 : Amplitude Units (Log) - 00b = dBm 01b = dBV 10b = dBmV 11b = dBuV bits 5-6 : Detection Alg (00b = pos.
Page 82
For Power Meter Mode (Option 29 Only): 21) Power Meter Start Freq (Highest byte) 22) Power Meter Start Freq 23) Power Meter Start Freq 24) Power Meter Start Freq (Lowest byte) 25) Power Meter Stop Freq (Highest byte) 26) Power Meter Stop Freq 27) Power Meter Stop Freq 28) Power Meter Stop Freq (Lowest byte) 29) Power Meter Center Freq...
64) Zero Status (00h = Off, 01h = On) 65) Zero Value (Highest byte) 66) Zero Value 67) Zero Value 68) Zero Value (Lowest byte) 69-120) Not Used Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error 238 (EEh) Time Out Error Read Parameter Limits –...
Page 84
For Spectrum Analyzer, Transmission Measurement Modes, Available RBWS: 21) Number of Valid RBWs For each RBW: 1) RBW Frequency (in Hz) (Highest byte) 2) RBW Frequency (in Hz) 3) RBW Frequency (in Hz) 4) RBW Frequency (in Hz) (Lowest byte) For Spectrum Analyzer, Transmission Measurement Modes, Available VBWS: 21) Number of Valid VBWs For each VBW:...
Page 85
48) Scale Maximum (Lowest byte) 49) Marker Minimum (Higher byte) 50) Marker Minimum (Lower byte) 51) Marker Maximum (Higher byte) 52) Marker Maximum (Lower byte) 53) Limit Y Minimum (Highest byte) 54) Limit Y Minimum 55) Limit Y Minimum 56) Limit Y Minimum (Lowest byte) 57) Limit Y Maximum (Highest byte) 58) Limit Y Maximum...
Page 86
93) Minimum Sweep Type (in µs) Minimum 94) Minimum Sweep Type (in µs) Minimum (Lowest byte) 95) Minimum Sweep Type (in µs) Maximum (Highest byte) 96) Minimum Sweep Type (in µs) Maximum 97) Minimum Sweep Type (in µs) Maximum 98) Minimum Sweep Type (in µs) Maximum (Lowest byte) 99) Video Trigger Level Minimum (Highest byte) 100)
Page 87
142) ACPR Main Channel BW Minimum (in Hz) (Lowest byte) 143) ACPR Main Channel BW Maximum (in Hz) (Highest byte) 144) ACPR Main Channel BW Maximum (in Hz) 145) ACPR Main Channel BW Maximum (in Hz) 146) ACPR Main Channel BW Maximum (in Hz) (Lowest byte) 147) ACPR Adjacent Channel BW Minimum (in Hz) (Highest byte) 148)
Page 88
38) Reference Level Maximum 39) Reference Level Maximum 40) Reference Level Maximum (Lowest byte) 41) Scale Minimum (Highest byte) 42) Scale Minimum 43) Scale Minimum 44) Scale Minimum (Lowest byte) 45) Scale Maximum (Highest byte) 46) Scale Maximum 47) Scale Maximum 48) Scale Maximum (Lowest byte) 49) Marker Minimum (Higher byte)
Page 89
For Power Meter Mode (Option 29 Only), All Other Parameter Limits: 21) Span Scale Factor Minimum (Higher byte) 22) Span Scale Factor Minimum (Lower byte) 23) Span Scale Factor Maximum (Higher byte) 24) Span Scale Factor Maximum (Lower byte) 25) Span Minimum (Highest byte) 26) Span Minimum 27) Span Minimum...
Query Saved Setups – Control Byte #68 (44h) Description: Returns a list of setups saved for the specified measurement mode. Modes that are stored in the same table (i.e. Spectrum Analyzer and Transmission Measurement modes) will be returned by this command when either mode is specified.
It waits for the next control byte. Bytes to Follow: 0 bytes Spectrum Master Returns: 13 bytes 1-2) Model # (unsigned integer, 16h for Spectrum Master MS2711D) 3-9) Extended Model # (7 bytes in ASCII) 10-13) Software Version - 4 bytes (ASCII) Enter Remote Mode Immediately –...
Write Protect Setup – Control Byte #71 (47h) Description: Makes a saved setup either read-only or write-able. Setup numbers as follows: = All Setups in the Specified Mode 1 – 10 = Saved setups for Spectrum Analyzer/Transmission Measurement modes 1 – 5 = Saved setups for Power Meter mode (Option 29 Only) Bytes to Follow: 3 bytes 1) Measurement Mode...
Write Antenna – Control Byte #82 (52h) Description: Receives an antenna to the Spectrum 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 Spectrum Master.
Set Channel Power – Control Byte #85 (55h) Description: Sets the state of the measurement (ON or OFF), and the setup parameters to perform the channel power measurement. Send a 0 (zero) following the command to set the channel power measurement in the current setup. Send a 1 (one) to set the channel power associated with the trace that was most recently uploaded by command #36, Upload Sweep Trace.
Set Adjacent Channel Power Ratio (ACPR) – Control Byte #87 (57h) Description: Sets the state of the measurement (ON or OFF), the center frequency, the main channel bandwidth, the adjacent channel bandwidth and the channel spacing. Send a 0 (zero) following the command to set the channel power measurement in the current setup. Send a 1 (one) to set the adjacent channel power associated with the trace that was most recently uploaded by command #36, Upload Sweep Trace.
Select Signal Standard – Control Byte #89 (59h) Description: Select signal standard and the link direction. Bytes to Follow: 2 bytes 1) Signal Standard Index (0-199) – See “Signal Standards” for details. 2) Link direction (1= Uplink, 2=Downlink, 3=Uplink and downlink) Cell Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid signal standard...
Upload User’s Signal Standard Table – Control Byte #92 (5Ch) Description: Upload user’s signal standard table to Cell Master. Bytes to Follow: Variable (64 bytes * n ) where n is the total record of the signal standards. Each record has the following data field. 1–...
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 OBW frequencies will be scaled by the scale factor of the module. If the module is not attached, the OBW 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.
Set Spectrum Analyzer Scale – Control Byte #101 (65h) Description: Sets the reference level and the number of dB represented by each graph division. Ref Level will be the “top” scale of the graph, and there are total of 10 division, so bottom scale can be determined by : Ref level + 10 x dB/div.
Set Spectrum Analyzer Single Limit – Control Byte #103 (67h) Description: Sets the position and On/Off Status of the Limit Line. Bytes to Follow: 6 bytes 1) Limit Number (1 for Spectrum Master) 2) Limit Line On/Off (01h = On, 00h = Off) 3) Beep at Limit On/Off (01h = On, 00h = Off) 4) Limit Value (Highest byte) 5) Limit Value...
OBSOLETE: Set Spectrum Analyzer Video Bandwidth – Control Byte #107 (6Bh) This command exists for backward compatibility with the MS2711B. To access new video bandwidths use Control Byte #142 (8Eh). Description: Sets the video BW frequency for the Spectrum Analyzer. Bytes to Follow: 1 byte 1) Video Bandwidth Index 00h –...
Set Spectrum Analyzer Marker to Center – Control Byte #110 (6Eh) Description: Sets the center frequency equal to the frequency of the specified marker. Bytes to Follow: 1 byte 1) Marker Number (1-4) Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid Marker Number 238 (EEh) Time Out Error OBSOLETE: Set Spectrum Analyzer Attenuation –...
Page 105
Set Spectrum Analyzer Multiple Limit – Control Byte #113 (71h) Description: Sets the position and On/Off Status of a limit segment. Multiple limits are defined by multiple limit segments, each with a different finite slope. The single limit is a single, horizontal line that can be defined to act as an upper limit or as a lower limit.
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 port at the end of the sweep. If Serial Echo Status is enabled, the 4 bytes will be returned AFTER the sweep complete byte.
Page 107
The MS2711D can automatically compensate for the effects of impedance adapters. The impedance of the MS2711D is 50Ω, so there is no need for an adapter in this case. The loss for the Anritsu 75Ω adapter 12N50-75B is known by the MS2711D.
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.
Set SA Preamp State (On/Off/Auto) – Control Byte #136 (88h) Description: Sets the state of Spectrum Analyzer preamplifier. Setting the preamp state to ON or OFF sets the preamp coupling to manual. That is, the preamplifier state is controlled independently of all other parameters. Setting the preamp state to AUTO couples the preamp state to the reference level and the attenuation.
Set Spectrum Analyzer Resolution Bandwidth – Control Byte #141 (8Dh) This command is new to the MS2711D. Use it instead of Control Byte #106 to access the new RBWs. Description: Sets the resolution BW frequency for the Spectrum Analyzer. Bytes to Follow: 4 bytes 1) Resolution Bandwidth (frequency in Hz) (Highest byte) 2) Resolution Bandwidth (frequency in Hz) 3) Resolution Bandwidth (frequency in Hz)
Set AM/FM Demodulation – Control Byte #145 (91h) Description: Sets the AM/FM/SSB Demodulation state. This command is also used to set the type of Modulation, volume, Demodulation Frequency, BFO Adjust (SSB only) and the Demodulation time. On turning demodulation ON, after exiting remote, at the end of every sweep, demodulation is performed at the Demodulation frequency for a period of time specified in the Demod Time.
Set Language – Control Byte #198 (C6h) Description: Set the Spectrum Master display language. Bytes to Follow: 1 byte 1) Language Index 00h = English 01h = French 02h = German 03h = Spanish 04h = Chinese 05h = Japanese Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid language index...
Read ASCII Serial Number – Control Byte #225 (E1h) Description: Reads and returns the Spectrum 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 Spectrum Master Returns: 8 bytes 1-8) Serial Number (in ASCII)
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. Bytes to Follow: 1 byte 1) Signal Standard – See the section “Signal Standards” for a list of standards and their indices. Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid signal standard...
Read External Module Serial Number – Control Word (A202h) This command is available only with option 6. Description: Sets the serial number of the attached frequency 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 Spectrum Master Returns: 10 bytes 1) Length of Serial Number (8)
Read Module Fail Counter – Control Word (A204h) This command is available only with option 6. Description: Returns the value of the module lock fail counter. Bytes to Follow: 0 bytes Spectrum Master Returns: 3 bytes (success) OR 1 byte (failure) 1) Fail Counter (Higher byte) 2) Fail Counter (Lower byte) 3) 255 (FFh) Operation Complete Byte...
Get Signal Standard Name – Control Word (A501h) Description: Get the ASCII signal standard corresponding to a specified Index. This command can be used in any measurement mode. Bytes to follow: 2 1) Index (Highest Byte) 2) Index (Lowest Byte) Cell Master Returns: 20 bytes 1 –...
Spectrogram: Set Sweep Interval – Control Word (A721h) This command is available only with option 25. Description: Sets the sweep interval in spectrogram mode. Bytes to Follow: 2 bytes Sweep interval in seconds (MSB) b. Sweep interval in seconds (LSB) Cell Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Module not attached...
Spectrogram: Get Trace Name – Control Word (A724h) This command is available only with option 25. Description: Get the Trace names saved in five spectrogram memory slots. The name is composed with Time & Date when the trace is saved. If the memory slot is empty, the date field is set with "--/--/----" and the time field is set with "--:--:--".
Spectrogram: Recall Trace – Control Word (A725h) This command is available only with option 25. Description: Recall a spectrogram trace by sending the trace index (0-4) of the memory slots. Bytes to Follow: 1 bytes 1) Index of memory slots (0-4) Cell Master Returns: When control word is received correctly: 32448 bytes 1-10)
Retrieve Power in CW GENERATOR MODE - CODE WORD(A802h) Description: This command tells the Cell Master to return the power value in dBM. The value returned will be an unsigned. The values under -0 dB will be made positive and multiplied by 1000. e.g. -73.12dBm will become 731200 Bytes to Follow: 0 bytes Cell Master Returns: 5 bytes 1.) highest byte of the power value...
This section contains several sample functions written in C, (and one in Visual Basic) that can be used as references when programming the Anritsu Handheld Products. These include functions to set up the com Port, enter and exit remote mode, and set the reference level of the spectrum analyzer.
Page 128
NOTE: This function assumes the values have already been checked to fall in the valid range and scaled according to the formulas in the Programming Manual. ResponseBytes = pointer to an array of bytes at least 1 element long (1 byte is expected in response to the Set Spectrum Analyzer Scale command).
Page 129
} /* SetSPAScale */ /*********************************************************************/ unsigned char ExitRemote(BYTE *ResponseBytes) Description: This function implements control byte #255, Exit Remote Mode. If successful, the unit will leave 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 130
parm2 – 4 byte unsigned long integer Returns: SUCCESS if the unit is in remote mode FAILURE if the command fails The resulting bytes are returned in the memory location pointed to by ByteData. This location must have at least 8 empty bytes. /*********************************************************************/ void Get8Bytes(unsigned long parm1, unsigned long parm2, BYTE* ByteData)
Page 131
default: CloseHandle(ComHandle); fclose(fp); exit(0); break; /* Creating a File to Open a COM Port*/ ComHandle = CreateFile( ComPortNumber, GENERIC_READ | GENERIC_WRITE, 0, // exclusive access NULL, // no security OPEN_EXISTING, 0, // no overlapped I/O NULL); // null template /* Set up the COM Ports Input and Output Buffer Syntax - BOOL–SetupComm( HANDLE hFile,...
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 135
Else MsgBox "Invalid Baud Rate - ERR " + CStr(Asc(strInputBuf)) GoTo SetSMBaud_err_handler End If Exit Sub SetSMBaud_err_handler: commCtrl.Settings = PreviousSettings End Sub...
Revision History Rev. Date Description 9/1/03 Initial revision based on Spectrum Master Jennifer Burns Internal Programming Manual.doc rev 1.36. 1.01 9/3/03 Completed conversion to MS2711D Jennifer Burns document. Left commands for option 21, 29 and 50. Still needs AM/FM demod and normalization commands.
Page 137
1.15 10/21/03 Added ADC_OTR_ERROR to #104, Jennifer Burns changed error numbering for MODULE_FREQUENCY_ERROR. 1.16 10/21/03 Added OBW status bit to #29, #33 and #36. Jennifer Burns 1.17 10/27/03 Added reference to frequency scale factor Jennifer Burns and option 6 in appropriate commands. Added scale factor and frequency range min/max to power meter versions of #33, #36 and #29.
Page 138
1.29 1/20/04 Fixed numbering on #65. Added marker Jennifer Burns type to #29, 33, 36, 65 and 66. Added zero status and zero value to #29, 65 and 66. Added channel power, ACPR and IA parameters to #65 and 66. Added external reference frequency status, view b status, IA status and C/I status to #65 and 66.
Page 139
1.39 4/9/04 Added limit beep output to #29, #65 and Jennifer Burns #66. This is a “special” option so these bytes should not ship in standard documentation. 1.40 4/21/04 Added #49 – Sweep Data Echo. Jennifer Burns 1.41 6/23/04 In #86 and #88, channel power values are Jennifer Burns scaled by 100, not 1000.
Need help?
Do you have a question about the Spectrum Master MS2711D and is the answer not in the manual?
Questions and answers