Page 2
WARRANTY The Anritsu product(s) listed on the title page is (are) warranted against defects in materi- als and workmanship for one year from the date of shipment. Anritsu’s obligation covers repairing or replacing products which prove to be defective during the warranty period. Buyers shall prepay transportation charges for equipment re- turned to Anritsu for warranty repairs.
Table of Contents Programming Overview ........1 Control Byte Summary.
Page 4
Sweep Data Echo On/Off - Control Byte #49 (31h)......48 Check Battery Status – Control Byte #50 (32h) ....... 48 Set SPA Minimum Sweep Time - Control Byte #53 (35h) .
Page 5
Read Marker Value – Control Byte #117 (75h) ....... 84 Set Sweep Averaging –...
The Spectrum Master is a DTE-type serial device. Communication between the Spectrum Master and a PC is accomplished over a null modem serial cable provided with the Spectrum Master (Anritsu part number 800-441). Connect the cable to the Serial Interface connector on the Spectrum Master test connector panel and to the appropriate COM port connector on the Serial Communication Parameters The Spectrum Master begins communication at 9600 bps when first powered on.
Page 7
current sweep may be incomplete. Once a response string is received from the Spectrum Master, the unit is ready to accept additional control bytes. Exiting Remote Mode To exit remote mode, send the Exit Remote Control byte #255 (FFh) to the Spectrum Master. The Spectrum Master sends a response byte of 255 (FFh) then exits remote mode.
Control Byte Summary Control Watchdog Name Description Byte # Timer 1 (01h) Setup System Sets system status flags and switches 3 (03h) Select Measurement Mode Sets current Spectrum Master measurement mode 7 (07h) Read Time/Date Reads the current time and date from the real time clock —- 8 (08h) Set Time/Date...
Page 9
Control Watchdog Name Description Byte # Timer Power Meter Center 45 (2Dh) Sets the center frequency and span frequency for the Power Meter mode Frequency and Span 48 (30h) Trigger Sweep Starts the next sweep —- 49 (31h) Sweep Data Echo On/Off Sets the sweep data echo mode On/Off 50 (32h) Check Battery Status...
Page 10
Control Watchdog Name Description Byte # Timer Set Spectrum Analyzer 102 (66h) Sets position and on/off status of a Spectrum Analyzer marker Marker Set Spectrum Analyzer 103 (67h) Sets position and on/off status of Spectrum Analyzer single limit line Single Limit Set Spectrum Analyzer 105 (69h) Enables or disables the Spectrum Analyzer Max and Min Hold features...
Page 11
Control Watchdog Name Description Byte # Timer 255 (FFh) Exit Remote Mode Ends serial communications —- Select SPA/Power Meter A103h Selects a Signal Standard Signal Standard Select SPA/Power Meter A104h Selects a channel within the range of the currently selected signal standard Channel Read External Module Returns the name of the attached external block converter module (Option 6...
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, so the state of each of the bits must be defined every time the command is issued.
Year (higher byte) Year (lower byte) Daylight Saving (01h=On, 00h=Off) 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 Spectrum Master stores bytes as ASCII text. Recommended time form is “hh:mm:ss” (hour:minute:sec). Recommended date format is “mm/dd/yyyy”...
1) Enter remote mode. Set Serial Port Echo Mode On. Exit remote mode. 2) The Spectrum Master sweeps once and then sends the Sweep Complete Byte. 3) After you receive it. Enter remote mode. Recall sweep 0 (last sweep trace in RAM). 4) Exit remote mode.
Recall Sweep Trace – Control Byte #17 (11h) NOTE: This command exists for backward compatibility with MS2711B models. To access the new fea- tures, use Control Byte #33 (21h). This command cannot be used with a frequency converter module (Option 6 required) attached. Description: Queries the Spectrum Master for sweep trace data.
Page 16
80) Ref Level (lowest byte) 81) Scale per div (highest byte) 82) Scale per div 83) Scale per div 84) Scale per div (lowest byte) 85) Frequency Marker 1 (higher byte) 86) Frequency Marker 1 (lower byte) 87) Frequency Marker 2 (higher byte) 88) Frequency Marker 2 (lower byte) 89) Frequency Marker 3 (higher byte) 90) Frequency Marker 3 (lower byte)
Page 17
267) VBW Setting (Frequency in Hz) 268) VBW Setting (Frequency in Hz) (lowest byte) 269) OCC BW Method (00h = % of power, 01h = dB down) 270) OCC BW % Value (0-99) (highest byte) 271) OCC BW % Value (0-99) 272) OCC BW % Value (0-99) 273) OCC BW % Value (0-99) (lowest byte) 274) OCC BW dBc (0–120) (highest byte)
Page 18
Spectrum Master Returns (For invalid sweeps/empty stored sweep locations): 11 bytes 1-2) Number of following bytes (9 bytes for invalid sweep recall) 3-4) Model # (unsigned integer, 16h for Spectrum Master MS2711D) 5-11) Extended Model # (7 bytes in ASCII)
Save System Setup – Control Byte #18 (12h) Description: Saves current system setup parameters to a specific setup store location. The Spectrum Master saves all parameters described in Query System Status - control byte #29 (1Dh), (except Serial Port Echo Status) to the specified store location. Store location 0 is the run-time setup of the Spectrum Master. It holds the power-on defaults of the Spectrum Master.
Query System Status – Control Byte #20 (14h) NOTE: This command exists for backward compatibility with the MS2711B. To access the new features use Control Byte #29 (1Dh). This command cannot be used with a frequency converter module (Option 6 required) attached. Description: Queries the Spectrum Master for current system settings.
287) N/A 288) N/A 289) N/A 290) RTC Battery Voltage (higher byte) 291) RTC Battery Voltage (lower byte) 292) Motherboard PCB ID (higher byte) 293) Motherboard PCB ID (lower byte) 294) N/A 295) N/A 296-310) Not Used Trigger Self-Test – Control Byte #21 (15h) Description: Triggers a self test on the Spectrum Master.
Value of SA Fatal Error Counter (higher byte) Value of SA Fatal Error Counter (lower byte) Clear Fail Counters - Control Byte #23 (17h) Description: Resets the Lock Fail Counter and Integrator Fail Counter and spectrum analyzer Fatal Error Counter. Bytes to Follow: 0 bytes Spectrum Master Returns: 1 byte 1) 255 (FFh) Operation Complete Byte...
Page 26
1-2) # of following bytes (1928) Measurement Mode 4-7) Time/Date (long integer format) 8-17) Date in String Format (mm/dd/yyyy) 18-25) Time in String Format (hh:mm:ss) 26-41) Reference Number/Trace Name (16 bytes in ASCII) 42-43) # of data points (400) 44) Start Frequency (in Hz) (highest byte) 45) Start Frequency (in Hz) 46) Start Frequency (in Hz) 47) Start Frequency (in Hz) (lowest byte)
Page 27
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) 87) Multiple Upper Limit 1 Start X (Frequency in Hz) (lowest byte) 88) Multiple Upper Limit 1 Start Y (Power Level ) (highest byte)
Page 28
285) Impedance 286) Impedance Loss (highest byte) 287) Impedance Loss 288) Impedance Loss 289) Impedance Loss (lowest byte) 290) N/A 291) N/A 292) N/A 293) N/A 294) N/A 295) N/A 296) N/A 297) N/A 298) Status Byte 1: (0b = Off, 1b = On) (LSB) bit 0 : Marker 1 On/Off bit 1 : Marker 2 On/Off...
bit 5 : Multiple Limit Lower Segment 4 Limit Level UPPER / LOWER bit 6 : Multiple Limit Lower Segment 5 Status On/Off bit 7 : Multiple Limit Lower Segment 5 Limit Level UPPER / LOWER 304) Status Byte 7: (LSB) bits 0-6 : Number of Sweeps to Average bit 7 : Reserved...
Page 30
For All Modes: Number of Following Bytes (higher byte) Number of Following Bytes (lower byte) Measurement Mode Printer Type Current Language (00h = English, 01h = French, 02h = German, 03h = Spanish, 04h = Chinese, 05h = Japanese) LCD Contrast Value (0-255) Date Format (00h = MM/DD/YYYY, 01h = DD/MM/YYYY, 02h = YYYY/MM/DD) RTC battery...
Page 31
50) Ref Level 51) Ref Level (lowest byte) 52) Scale per div (highest byte) 53) Scale per div 54) Scale per div 55) Scale per div (lowest byte) 56) Spectrum Analyzer Frequency Marker 1 (higher byte) 57) Spectrum Analyzer Frequency Marker 1 (lower byte) 58) Spectrum Analyzer Frequency Marker 2 (higher byte) 59) Spectrum Analyzer Frequency Marker 2 (lower byte) 60) Spectrum Analyzer Frequency Marker 3 (higher byte)
Page 33
(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 bit 5 : SPA Multiple Limit Upper Segment 5 Beep Level ABOVE/BELOW bit 6 : SPA Multiple Limit Lower Segment 1 Status On/Off...
Page 34
0-1: Trace Math Operation (00b = A only, 01b = A-B, 10b = A+B) bit 2: Max Hold On/Off bit 3: Min Hold On/Off bits 4-7: Not Used 303) Impedance (00h = 50W, 0Ah = 75W Anritsu Adapter, 0Ch = 75W Other Adapter) 304) Impedance Loss (higher byte) 305) Impedance Loss (lower byte)
Page 35
325) Frequency Range Minimum 326) Frequency Range Minimum (lowest byte) 327) Frequency Range Maximum (highest byte) 328) Frequency Range Maximum 329) Frequency Range Maximum 330) Frequency Range Maximum (lowest byte) 331) Marker Type (00h = Regular Marker, 01h = Noise Marker) 332-400) Not Used For Power Meter Mode (Option 29 only): 26) Power Meter Start Freq...
58) Power Meter RMS Averaging Level (00h = Off, 01h = Low, 02h = Medium, 03h = High) 59) Frequency Scale Factor (higher byte) 60) Frequency Scale Factor (lower byte) 61) Frequency Range Minimum (highest byte) 62) Frequency Range Minimum 63) Frequency Range Minimum 64) Frequency Range Minimum (lowest byte) 65) Frequency Range Maximum...
Recall Sweep Trace – Control Byte #33 (21h) NOTE: This command is new to the MS2711D. Use it instead of Control Byte #17 to access new fea- tures. Description: Queries the Spectrum Master for sweep trace data. NOTE: Before you can recall a sweep stored in non-volatile memory (trace numbers 1-200) you must build a trace table in the Spectrum Master’s RAM.
Page 38
69) Frequency Span (highest byte) 70) Frequency Span 71) Frequency Span 72) Frequency Span (lowest byte) 73) Minimum Frequency Step Size (highest byte) 74) Minimum Frequency Step Size 75) Minimum Frequency Step Size 76) Minimum Frequency Step Size (lowest byte) 77) Ref Level (highest byte) 78) Ref Level...
Page 39
111) Multiple Upper Limit 1 End X 112) Multiple Upper Limit 1 End X (lowest byte) 113) Multiple Upper Limit 1 End Y (Power Level) (highest byte) 114) Multiple Upper Limit 1 End Y (Power Level) 115) Multiple Upper Limit 1 End Y (Power Level) 116) Multiple Upper Limit 1 End Y (Power Level) (lowest byte) 117-260) Multiple Upper Limits 2-5, Multiple Lower Limits 1-5 (see bytes 101-116 for format) 261) RBW Setting (Frequency in Hz) (highest byte)
Page 40
bit 2 : Single Limit On/Off bit 3 : Single Limit Beep Level ABOVE/BELOW bit 4 : Multiple Limit Upper Segment 1 Status On/Off bit 5 : Multiple Limit Upper Segment 1 Beep Level ABOVE/BELOW bit 6 : Multiple Limit Upper Segment 2 Status On/Off bit 7 : Multiple Limit Upper Segment 2 Beep Level ABOVE/BELOW 296) Status Byte 5 ( 0b = Off/Beep if data is below line, 1b = On/Beep if data is above line) (LSB)
Page 41
5: Bias Tee On/Off (Option 10 only) bit 6: Occupied BW Measurement On/Off bit 7: Not Used 332) Impedance (00h = 50W, 0Ah = 75W Anritsu Adapter, 0Ch = 75W Other Adapter) 333) Impedance Loss (higher byte) 334) Impedance Loss (lower byte)
Page 42
351) C/I Calculated Power (Interference – WB FHSS ) (highest byte) 352) C/I Calculated Power (Interference – WB FHSS) 353) C/I Calculated Power (Interference – WB FHSS) 354) C/I Calculated Power (Interference – WB FHSS) (lowest byte) 355) C/I Calculated Power (Interference –...
Page 43
73) Frequency Span 74) Frequency Span (lowest byte) 75) Power Offset Status (00h = Off, 01h = On) 76) Power Offset (highest byte) 77) Power Offset 78) Power Offset 79) Power Offset (lowest byte) 80) Power Relative Status (00h = Off, 01h = On 81) Power Relative Value (highest byte) 82) Power Relative Value...
3) Current Instrument Date Format 4) Model # (unsigned integer, 16h for Spectrum Master model MS2711D) 5-11) Extended Model # (7 bytes in ASCII) Spectrum Master Returns (Invalid sweep location): 1 byte 1) 224 (E0) Parameter Error: Invalid sweep location Set A/B Trace –...
1-200 = trace number 255 = no “B” trace defined Spectrum Master Returns: 1 byte 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 –...
Page 46
61) Ref Level 62) Ref Level 63) Ref Level (lowest byte) 64) Scale per div (highest byte) 65) Scale per div 66) Scale per div 67) Scale per div (lowest byte) 68) Marker 1 (higher byte) 69) Marker 1 (lower byte) 70) Marker 2 (higher byte) 71) Marker 2 (lower byte) 72) Marker 3 (higher byte)
Page 48
bit 6 : Multiple Limit Lower Segment 1 Status On/Off bit 7 : Multiple Limit Lower Segment 1 Beep Level ABOVE/BELOW 280) Status Byte 6 (0b = Off/Beep if data is BELOW line, 1b = On/Beep if data is ABOVE line) (LSB) bit 0 : Multiple Limit Lower Segment 2 Status On/Off bit 1 : Multiple Limit Lower Segment 2 Beep Level ABOVE/BELOW...
Page 49
5: Bias Tee On/Off (Option 10 only) bit 6: Occupied BW Measurement On/Off bit 7: Not Used 315) Impedance (00h = 50W, 0Ah = 75W Anritsu Adapter, 0Ch = 75W Other Adapter) 316) Impedance Loss (higher byte) 317) Impedance Loss (lower byte)
341) C/I Calculated Power (Interference – Broadband) (lowest byte) 342) Marker Type (00h = Regular Marker, 01h = Noise Marker) 343-400) Not Used 401-2004) Sweep Data (401 points * 4 bytes/point = 1604 bytes) 4 bytes for each data point 1.
27 - 30) Span Frequency (Scaled by frequency scale factor) Notes: Power is returned as (dBm * 1000) Relative power is returned as (dB * 1000) Offset is returned as (dB * 1000) Set Power Meter Units – Control Byte #40 (28h) (Option 29 only) Description: Set Power Meter units to watts or dBm.
00h = Off 01h = On with trigger (current power level is referenced as -80 dBm) Spectrum Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error: Invalid status 238 (EEh) Time-out Error Power Meter RMS Averaging On/Off – Control Byte #44 (2Ch) (Option 29 only) Description: Set Power Meter RMS Averaging.
Spectrum Master Returns: 2 bytes 255 (FFh) Operation Complete Byte (when the command is received) 192 (C0h) Sweep Complete Byte (at the end of the sweep) Sweep Data Echo On/Off - Control Byte #49 (31h) Description: Sets the sweep data echo mode On/Off. Sweep Data Echo Mode behaves much like the Serial Port Echo Mode (see Control Byte #10).
11-12) Average time to empty (unsigned integer 0 to 65535 minute) 13-14) Battery Charge Cycle Count (unsigned integer 0 to 65535 cycles) 15-16) Battery Capacity at Full Charge in mA Hours (unsigned integer 0 to 65535 cycles) 17) Unit under battery power (1 = YES; 0 = NO) Set SPA Minimum Sweep Time - Control Byte #53 (35h) Description: Sets the minimum sweep time (in ms) for the spectrum analyzer when the span is 0.
Page 56
33) Spectrum Analyzer Frequency Span (highest byte) 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...
Page 57
74) SPA Multiple Upper Limit 1 End Y (Power Level) 75) SPA Multiple Upper Limit 1 End Y (Power Level) 76) SPA Multiple Upper Limit 1 End Y (Power Level) (lowest byte) 77-220) SPA 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...
Page 58
bit 4 : SPA Multiple Limit Upper Segment 5 Status On/Off bit 5 : SPA Multiple Limit Upper Segment 5 Beep Level ABOVE/BELOW bit 6 : SPA Multiple Limit Lower Segment 1 Status On/Off bit 7 : SPA Multiple Limit Lower Segment 1 Beep Level ABOVE/BELOW 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...
Page 59
4: View B On/Off bit 5: External Reference Frequency On/Off bits 6-7: Not Used 283) Impedance (00h = 50Ù, 0Ah = 75Ù Anritsu Adapter, 0Ch = 75Ù Other Adapter) 284) Impedance Loss (higher byte) 285) Impedance Loss (lower byte)
Page 60
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) Channel Power Int BW 315) Channel Power Int BW (lowest byte) 316) ACPR Main Channel BW (highest byte) 317) ACPR Main Channel BW...
Page 61
29) Center Frequency (highest byte) 30) Center Frequency 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)
Page 62
70) Multiple Upper Limit 1 End X 71) Multiple Upper Limit 1 End X 72) Multiple Upper Limit 1 End X (lowest byte) 73) Multiple Upper Limit 1 End Y (Power Level) (highest byte) 74) Multiple Upper Limit 1 End Y (Power Level) 75) Multiple Upper Limit 1 End Y (Power Level) 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)
Page 63
bit 7 : Multiple Limit Lower Segment 1 Beep Level ABOVE/BELOW 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...
Page 64
254) Marker Type 255) Trace B Trace Id 256) Status Byte 9 (LSB) bit 0: Reserved 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 24) Power Meter Start Freq (lowest byte)
52) Power Meter Offset Status (00h = Off, 01h = On) 53) Power Meter RMS Averaging Level (00h = Off, 01h = Low, 02h = Medium, 03h = High) 54) Frequency Scale Factor (higher byte) 55) Frequency Scale Factor (lower byte) 56) Frequency Range Minimum (highest byte) 57) Frequency Range Minimum...
Page 66
25) Spectrum Analyzer Stop Frequency (highest byte) 26) Spectrum Analyzer Stop Frequency 27) Spectrum Analyzer Stop Frequency 28) Spectrum Analyzer Stop Frequency (lowest byte) 29) Spectrum Analyzer Center Frequency (highest byte) 30) Spectrum Analyzer Center Frequency 31) Spectrum Analyzer Center Frequency 32) Spectrum Analyzer Center Frequency (lowest byte) 33) Spectrum Analyzer Frequency Span (highest byte)
Page 67
66) SPA Multiple Upper Limit 1 Start Y (Power Level) 67) SPA Multiple Upper Limit 1 Start Y (Power Level) 68) SPA Multiple Upper Limit 1 Start Y (Power Level) (lowest byte) 69) SPA Multiple Upper Limit 1 End X (highest byte) 70) SPA Multiple Upper Limit 1 End X 71) SPA Multiple Upper Limit 1 End X...
Page 68
bit 2 : SPA Single Limit Status On/Off bit 3 : SPA Single Limit Beep Level ABOVE/BELOW bit 4 : SPA Multiple Limit Upper Segment 1 Status On/Off bit 5 : SPA Multiple Limit Upper Segment 1 Beep Level ABOVE/BELOW bit 6 : SPA Multiple Limit Upper Segment 2 Status On/Off bit 7 : SPA Multiple Limit Upper Segment 2 Beep Level ABOVE/BELOW 253) Status Byte 4 : (0b = Off/Beep if data is BELOW line, 1b = On/Beep if data is ABOVE line)
Page 69
4: View B On/Off bit 5: External Reference Frequency On/Off bits 6-7: Not Used 283) Impedance (00h = 50Ù, 0Ah = 75Ù Anritsu Adapter, 0Ch = 75Ù Other Adapter) 284) Impedance Loss (higher byte) 285) Impedance Loss (lower byte)
Page 70
301) Frequency Scale Factor (higher byte) 302) Frequency Scale Factor (lower byte) 303) Frequency Range Minimum (highest byte) 304) Frequency Range Minimum 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...
Page 71
For Transmission Mode (Option 21 only): 21) Start Frequency (highest byte) 22) Start Frequency 23) Start Frequency 24) Start Frequency (lowest byte) 25) Stop Frequency (highest byte) 26) Stop Frequency 27) Stop Frequency 28) Stop Frequency (lowest byte) 29) Center Frequency (highest byte) 30) Center Frequency 31) Center Frequency...
Page 72
61) Multiple Upper Limit 1 Start X (highest byte) 62) Multiple Upper Limit 1 Start X 63) Multiple Upper Limit 1 Start X 64) Multiple Upper Limit 1 Start X (lowest byte) 65) Multiple Upper Limit 1 Start Y (Power Level) (highest byte) 66) Multiple Upper Limit 1 Start Y (Power Level) 67) Multiple Upper Limit 1 Start Y (Power Level) 68) Multiple Upper Limit 1 Start Y (Power Level) (lowest byte)
Page 73
bit 4 : Multiple Limit Upper Segment 1 Status On/Off bit 5 : Multiple Limit Upper Segment 1 Beep Level ABOVE/BELOW bit 6 : Multiple Limit Upper Segment 2 Status On/Off bit 7 : Multiple Limit Upper Segment 2 Beep Level ABOVE/BELOW 233) Status Byte 4 : (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...
Page 74
246) Frequency Range Minimum (highest byte) 247) Frequency Range Minimum 248) Frequency Range Minimum 249) Frequency Range Minimum (lowest byte) 250) Frequency Range Maximum (highest byte) 251) Frequency Range Maximum 252) Frequency Range Maximum 253) Frequency Range Maximum (lowest byte) 254) Marker Type 255) Trace B Trace Id 256) Status Byte 9...
43) Power Meter Offset 44) Power Meter Offset (lowest byte) 45) Power Meter Relative (highest byte) 46) Power Meter Relative 47) Power Meter Relative 48) Power Meter Relative (lowest byte) 49) Not Used 50) Power Meter Unit (00h = Watts, 01h = dBm) 51) Power Meter Relative Status (00h = Off, 01h = On) 52) Power Meter Offset Status (00h = Off, 01h = On) 53) Power Meter RMS Averaging Level (00h = Off, 01h = Low, 02h = Medium, 03h = High)
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 –...
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 in ASCII) Write Protect Setup –...
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. Each antenna can have up to 60 antenna factors.
Read Channel Power – Control Byte #86 (56h) Description: Read the current channel power or the channel power of a stored trace. Send a 0 (zero) following the command to read the current channel power measurement (i.e. the one that is updated as the unit is sweeping).
Read Adjacent Channel Power Ratio (ACPR) – Control Byte #88 (58h) Description: Read the current adjacent channel power or the adjacent channel power of a stored trace. 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).
Spectrum Master Returns: 16 bytes 1-4) Occupied Bandwidth (in Hz) 5-8) Measure dB down (dB * 100,000) 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.
NOTE: Due to the hardware delay, the Spectrum Master does not return the results of the Bias Tee until approximately three seconds after the Bias Tee is turned on. Set Spectrum Analyzer Start/Stop Frequency – Control Byte #99 (63h) Description: Sets the spectrum analyzer start and stop frequencies. If Option 6 is installed and the frequency converter module is attached, the frequencies should be scaled by the scale factor of the module.
Set Spectrum Analyzer Peak Hold – Control Byte #105 (69h) Description: Sets the max hold and min hold settings on the Spectrum Analyzer. Bytes to Follow: 1 byte Peak Hold State 00h – Peak Hold Off 01h – Max Hold On 02h –...
Spectrum Master Returns: 1 byte 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 Spectrum Master exits from the remote mode.
Automatic control couples the attenuation to the reference level. Note that setting the attenuation using this command automatically sets the attenuation coupling to “MANUAL”, thereby allowing it to be defined independently of the reference level. Bytes to Follow: 1 byte Attenuation Index 00h –...
13) Limit Value End X (highest byte) 14) Limit Value End X 15) Limit Value End X 16) Limit Value End X (lowest byte) 17) Limit Value End Y (highest byte) 18) Limit Value End Y 19) Limit Value End Y 20) Limit Value End Y (lowest byte) Spectrum Master Returns: 1 byte 255 (FFh) Operation Complete Byte...
The MS2711D can automatically compensate for the effects of impedance adapters. The impedance of the MS2711D is 50W, so there is no need for an adapter in this case. The loss for the Anritsu 75W adapter 12N50-75B is known by the MS2711D.
If markers are set to be noise markers, convert the returned dBm value to dBm/Hz using this formula (only if detection method is RMS Average): marker (in dBm/Hz) = marker value (in dBm) – 10 * log10(RBW) – 0.13 Set Sweep Averaging – Control Byte #118 (76h) Description: Sets the number of sweeps to average.
Spectrum Master Returns: 1 byte 255 (FFh) Operation Complete Byte 224 (E0h) Parameter Error 238 (EEh) Time Out Error 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.
238 (EEh) Time-out Error Set Spectrum Analyzer Resolution Bandwidth – Control Byte #141 (8Dh) NOTE: This command is new to the Spectrum Master MS2711D models. Use it instead of Control Byte #106 to access the RBW. Description: Sets the resolution BW frequency for the Spectrum Analyzer.
Set Spectrum Analyzer Attenuation – Control Byte #143 (8Fh) NOTE: This command is new to the Spectrum Master MS2711D models. Use it instead of Control Byte #111 to access the Attenuation. Description: Sets the attenuation of the Spectrum Analyzer. Send a value of 255 (FFh) to enable dynamic attenuation.
Second (higher byte) Second (lower byte) 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 Serial number storage location 01h = Main (External) Serial Number, 02h = Secondary (Motherboard) Serial Number Spectrum Master Returns: 8 bytes 1-8) Serial Number (in ASCII)
Input End Frequency: 6000 MHz (scaled, this number is 600 MHz) Output Start Frequency: 450 MHz (scaled, this number is 45 MHz) Output End Frequency: 1750 MHz (scaled, this number is 175 MHz) So the response will look like: 12,0,a,1c,3,a1,80,23,c3,46,0,2,ae,a5,40,a,6e,49,c0,ff Bytes to Follow: 0 bytes Spectrum Master Returns: 20 bytes (success) or 1 byte (failure) Length of Frequency Data (18)
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.2°C) (lower byte) 3) Memory Check (01h: Pass, 00h: Fail) 4) RTC Voltage Check (01h: Pass, 00h: Fail) 5) Power Voltage in 1/10ths of a Volt (e.g., 124 = 12.4 Volts) (higher byte) 6) Power Voltage in 1/10ths of a Volt (e.g., 124 = 12.4 Volts) (lower byte) 7) VNA Lock Failure Counter (higher byte)
This section contains several sample functions written in C, (and one in Visual Basic) that can be used as references when programming Anritsu Handheld Products. These include functions to set up the comm port, enter and exit remote mode, and set the reference level of the spectrum analyzer.
Page 102
/*********************************************************************/ unsigned char SetSPAScale(unsigned long ReferenceLevel, unsigned long dBScale, BYTE *ResponseBytes) Description: This function implements control byte #101, Set Spectrum Analyzer Scale. It sets the spectrum analyzer reference level and scale (dB/div). Inputs : RefLevel = reference level value dBScale = scale value NOTE: This function assumes the values have already been checked to fall in the valid range...
Page 103
WriteToPort (SendScalePointer, 9); // Expecting 1 byte back (give the unit 5 seconds to respond): // 0xFF = success // 0xE0 = parameter failure (invalid value) // 0xEE = time-out (insufficient # of bytes received by SPA) if(!ReadFromPort(1, ResponseBytes, 5)) return FAILURE;...
Page 104
/*********************************************************************/ 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 105
/*********************************************************************/ 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. parm1 occupies the first four bytes, parm2 occupies the second 4 bytes. Inputs: parm1 - 4 byte unsigned long integer parm2 - 4 byte unsigned long integer...
Page 106
/*********************************************************************/ BOOL OpenCommunications(int ComPort, int ComBaud) Description : This function is to Open the communication port and set the port settings Inputs : int - ComPort entered as a command line argument int - ComBaud The Baud rate for Communication Returns: SUCCESS - If the Communication link was established*/ FAIL - IF there was an error opening the COM Port...
Page 107
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);...
Page 109
NOTE: Without Timeout Settings, Reading the COM Port will not work properly*/ // This gives the Timeout value for each bytes received timeout.ReadIntervalTimeout = MAXDWORD; timeout.ReadTotalTimeoutConstant = 0; timeout.ReadTotalTimeoutMultiplier = 0; /* Sets the communication timeouts Syntax - BOOL SetCommTimeouts( HANDLE hFile, // handle to comm device LPCOMMTIMEOUTS lpCommTimeouts...
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 111
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 ”...
Parameter Definitions Parameter # of bytes Step Example / Description Frequency 4 bytes unsigned 1 Hz 1000.3 MHz = 1000300000 Marker values are given in relative position of the graph. The Markers 2 bytes unsigned 1 sweep point lowest value is 0, the highest is (# of data points –1). 1 / 1000 dBm 51.3 dBm = 51300 Power: dBm/dB...
Need help?
Do you have a question about the Spectrum Master MS2711D and is the answer not in the manual?
Questions and answers