Anritsu MS2711A Programming Manual

MS2711A
Hand-Held
Spectrum Analyzer
Programming Manual
Hand-Held Spectrum Analyzer, for Measuring,
Monitoring and Analyzing Signal Environments

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
LIMITATION OF WARRANTY
The foregoing warranty does not apply to Anritsu connectors that have failed due to nor­mal wear. Also, the warranty does not apply to defects resulting from improper or inade­quate maintenance by the Buyer, unauthorized modification or misuse, or operation outside the environmental specifications of the product. No other warranty is expressed or implied, and the remedies provided herein are the Buyer’s sole and exclusive remedies.
TRADEMARK ACKNOWLEDGEMENTS
MS-DOS, Windows, and Windows for Workgroups are registered trademarks of the Microsoft Corporation. Site Master and Cable Mate are trademarks of Anritsu Company.
NOTICE
Anritsu Company has prepared this manual for use by Anritsu Company personnel and customers as a guide for the proper installation, operation, and maintenance of Anritsu Company equipment and computer programs. The drawings, specifications, and informa tion contained herein are the property of Anritsu Company, and any unauthorized use or disclosure of these drawings, specifications, and information is prohibited; they shall not be reproduced, copied, or used in whole or in part as the basis for manufacture or sale of the equipment or software programs without the prior written consent of Anritsu Com
pany.

Index

How To Use This Manual ...................................1
Programming Manual Organization .................... 1
Programming Overview
General Description ..........................................2
Cabling ....................................................2
Serial Communication Parameters ..............................2
Communications Error Checking ...............................2
Parameter Validation ........................................2
Entering Remote Mode .......................................3
Exiting Remote Mode ........................................3
Lifetime of Changes to Spectrum Analyzer Operating Parameters ....3
Write Cycle Limitation of EEPROM .............................3
Functional Description
Initialize
Enter remote mode ...................................4
Enter remote mode immediately ........................4
Configure
System
Measurement
Power Monitor
Frequency
LCD backlight ............................... 4
Watch dog timer.............................. 4
Serial port echo .............................. 4
Sweep mode select............................ 4
Printer type ................................. 4
Automatically save runtime setup................4
Return sweep time ............................4
AM/FM demodulation..........................4
Set sweep averaging...........................4
Measurement mode select...................... 4
Get Power levels ..............................5
Power Monitor Units of measure.................5
Relative mode ................................5
Offset mode..................................5
Zero mode ...................................5
Start frequency .............................. 5
Stop frequency ............................... 5
Center frequency .............................5
Frequency span...............................5
May 2001 10580-00049 Copyright 2000-2001 Anritsu Co. Revision: B
Utility
Display
Display mode ................................ 5
Ref level .................................... 5
dB/div ...................................... 5
Markers
On/Off...................................... 5
Delta Status On/Off ...........................5
Value....................................... 5
Marker to Peak...............................5
Marker to Center .............................5
Single Limits
On/Off...................................... 6
Beep ....................................... 6
Value....................................... 6
Multiple Limits
On/Off ......................................6
Beep........................................6
Value .......................................6
A/B Trace
A/B trace select...............................6
Timeset............................................ 6
Date set ............................................ 6
Reference number set................................. 6
Read time ...........................................6
Read date ...........................................6
Action
Trigger sweep ....................................... 6
Save system setup ................................... 6
Recall system setup .................................. 6
Save sweep ......................................... 7
Query trace names....................................7
Query trace memory ..................................7
Download sweep trace.................................7
Delete sweep trace....................................7
Write Antenna .......................................7
Recall Antenna.......................................7
Data
Recall sweep ........................................ 7
Measurement
Measure OCC BW % of Power ..........................7
Measure OCC BW dB Down ............................7
ii MS2711A PM
Set Max Hold ........................................7
Set Resolution BW Frequency ..........................7
Set Video BW Frequency...............................7
Set Attenuation ......................................7
Set field strength measurement .........................7
Set channel power ....................................7
Read channel power...................................7
Set adjacent channel power ............................7
Read adjacent channel power ...........................7
Status
Query system status.................................. 8
Self-test Trigger ..................................... 8
Battery status .......................................8
Close
Exit remote mode .................................... 8
Control Byte Descriptions
Control byte summary ........................................9
Control byte 1 Setup system ........................... 11
Control byte 3 Select measurement mode ................ 11
Control byte 7 Read time/date ..........................12
Control byte 8 Set time/date........................... 12
Control byte 9 Set reference number .................... 12
Control byte 10 Serial port echo on/off.................... 13
Control byte 12 Watch dog timer on/off ................... 13
Control byte 16 Store sweep trace ....................... 14
Control byte 17 Recall sweep trace....................... 14
Control byte 18 Save system setup....................... 17
Control byte 19 Recall system setup ..................... 17
Control byte 20 Query system status..................... 18
Control byte 21 Trigger self-test......................... 21
Control byte 24 Query trace names.......................21
Control byte 25 Delete sweep trace .......................22
Control byte 26 Download sweep trace ....................22
Control byte 27 Query sweep memory.....................25
Control byte 30 Select printer type .......................25
Control byte 34 Set A/B trace ...........................25
Control byte 39 Query power level .......................26
Control byte 40 Set power monitor unit ...................26
Control byte 41 Relative mode on/off......................27
Control byte 42 Offset mode on/off .......................27
Control byte 43 Zero mode on/off.........................27
Control byte 48 Trigger sweep .......................... 28
Control byte 50 Check battery status .....................28
Control byte 64 Automatically save runtime setup ..........28
Control byte 69 Enter remote mode ...................... 29
MS2711A PM iii
Control byte 70 Enter remote mode immediately............29
Control byte 82 Write antenna ..........................30
Control byte 83 Recall antenna ..........................30
Control byte 84 Set Field Strength Measurement ...........31
Control byte 85 Set Channel Power.......................31
Control byte 86 Read Channel Power .....................31
Control byte 87 Set Adjacent Channel Power...............32
Control byte 88 Read Adjacent Channel Power .............32
Control byte 96 Measure OCC BW % of Power..............33
Control byte 97 Measure OCC BW dB Down ...............33
Control byte 99 Set Frequency...........................34
Control byte 100 Set Center Freq/Span ....................34
Control byte 101 Set Scale...............................35
Control byte 102 Set Marker .............................35
Control byte 103 Set Single Limit .........................36
Control byte 105 Set Max Hold ...........................36
Control byte 106 Set Resolution Bandwidth.................36
Control byte 107 Set Video Bandwidth .....................37
Control byte 108 Set Sweep Mode .........................37
Control byte 109 Set Marker to Peak ......................38
Control byte 110 Set Marker to Center.....................38
Control byte 111 Set Attenuation .........................38
Control byte 112 Set AM/FM Demodulation.................39
Control byte 113 Set Multiple Limit .......................39
Control byte 114 Set Return Sweep Time...................40
Control byte 118 Set Sweep Averaging .....................40
Control byte 255 Exit remote mode ....................... 40
Parameter definitions ......................................41
iv MS2711A PM
If you want to find out
general concepts for programming the Spectrum Analyzer,
go to the Programming Overview.
If you want to find out
how to perform a task,
go to the Functional Description.
If you want to find out
what the syntax of a control byte is,
go to the Control Byte Description.
Programming Manual Organization
Programming Overview
How to Use this Manual
This section contains general information about programming the Spectrum Analyzer. It is an introduction and helps you get started.
Functional Descriptions
This section includes a complete list of tasks you can control via the serial port. These are high level descrip­tions. Each task refers you to the appropriate individual control byte for details.
Control Byte Descriptions
This section contains detailed explanations for each of the control bytes.
MS2711A PM 1

Programming Overview

This programming manual is written exclusively for the Anritsu Hand-Held Spectrum Analyzer Model MS2711Awith firmware Version 1.30 and above. For information on firmware upgrade, please contact your local Anritsu service center.
General Description
The MS2711Amust first be set into “remote” mode for communication with a computer. Remote mode differs from normal continuous sweep and single-sweep modes. During remote mode, the Spectrum Analyzer sus pends normal operations and attends to the serial port. The front panel display indicates when the Spectrum Analyzer is in remote mode.
Once in remote mode, you send a series of control bytes and associated data to the Spectrum Analyzer. These control byte sequences command the unit to perform various functions and activities. The serial port sup ports virtually all features accessible from the keypad. The only exception is the printer, which requires con nection to the same 9 pin connector on the MS2711Arear panel.
To complete the communication session, send the control byte to exit remote mode. Spectrum Analyzer re sumes normal operations. You may also exit the remote mode by using the <ESCAPE> key.
Cabling
Serial communications take place via the 9 pin connector on the back of the MS2711A. The Spectrum Ana­lyzer is a DTE-type serial device and therefore requires a “null modem” cable for communication with a com­puter, which is also a DTE device. A serial “null modem” interface cable is provided with your MS2711A.
Serial Communication Parameters
The Spectrum Analyzer communicates at a baud rate of 9600. It uses no parity bits, 8 data bits, and 1 stop bit (N-8-1). No hardware handshaking is used.
Communications Error Checking
Since there is no hardware handshaking, byte level error handling must be done by the controlling program. The expected number of response bytes for each control byte (listed in the control byte description section of this manual) works well for responses coming from the Spectrum Analyzer. For data streams going to the MS2711A, the “watch dog timer” protects against interrupted transmissions by aborting a control byte se quence if the inter-byte time limit is exceeded.
Parameter Validation
The MS2711Avalidates input parameters for each control byte sequence. If the input parameters are out of range or invalid, the Spectrum Analyzer notifies the computer by sending Parameter Error Byte #224 (E0h). The Spectrum Analyzer discards the received data and waits for the next control byte.
2 MS2711A PM
Entering Remote Mode
Send the Enter Remote Mode Byte #69 (45h) to the Spectrum Analyzer 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 MS2711A’s serial port buffer is one byte wide. No internal buffer exists, so waiting is essential. If the Spectrum Analyzer is not in remote, sending a second byte overwrites the original byte commanding it to go into remote. If you send control byte #69, you must wait until the end of the sweep. If you send control byte #70, the unit will enter remote mode as it receives the byte. Note that this means the data stored for the cur rent sweep may be incomplete.
Once you receive the response string from Spectrum Analyzer, you’re in remote mode.
Exiting Remote Mode
Send the Exit Remote control byte #255 (FFh) to the MS2711A. The Spectrum Analyzer sends a response byte of 255 (FFh) then exits remote mode.
Lifetime of Changes to Spectrum Analyzer Operating Parameters
System parameters changed during remote mode remain changed for normal operation. They are not auto­matically written to the non-volatile EEPROM. Turning off power erases the changed settings.
If you want the changes saved, you must save the change to one of the setup memories. Use either the run-time setup (location 0, which holds the power-on defaults) or one of the ten saved setups. See control byte #18 (12h) for details. You can also use control byte #64 to specify that the runtime setup be automati­cally saved to setup location 0 when exiting remote mode.
Write Cycle Limitation of EEPROM
The EEPROM, used to store setups, has a guaranteed lifetime of at least 100,000 write cycles and an unlim ited number of read cycles. The write cycle limitation is for a specific location. For example, you can store setup #1 100,000 times and setup #2 100,000 times, etc.
It is for this reason we do not automatically store the changed system parameters to EEPROM. Instead, we provide a means of changing the operating parameters independent of this limitation.
Be aware of the EEPROM write cycle limitation when programming the MS2711A. Keep the number of write cycles to a minimum.
MS2711A PM 3

Functional Description

INITIALIZE Enter remote mode - see control byte #69 (45h)
The Spectrum Analyzer must be in remote mode for further control byte command sequences to be accepted. Remember to wait until the Spectrum Analyzer responds before issuing further control byte sequences.
Enter remote mode immediately - see control byte #70 (46h)
CONFIGURE SYSTEM LCD backlight -see control byte #1 (01h)
LCD backlight helps in adverse lighting conditions.
Watch dog timer - see control byte #12 (0Ch)
Used to guard against interrupted data transfers to the Spectrum Analyzer.
Serial port echo - see control byte #10 (0Ah)
Use this to synchronize the Spectrum Analyzer sweep and computer requests for current trace data. The Spectrum Analyzer goes into single sweep mode. It sends the sweep complete byte #192 (C0h)
after the completion of each sweep. You must send the sweep trigger byte #48(30h) for the Spectrum Analyzer to perform another sweep. Retrieve the trace data using control byte #17 (11h).
Sweep mode select - see control byte #108 (6Ch)
Sweep mode is selectable as single sweep or continuous sweep mode.
Printer type - see control byte #30 (1Eh)
Printer type is selectable.
Automatically save runtime setup - see control byte #64 (40h) Return sweep time -see control byte #114 (72h) AM/FM demodulation - see control byte #112 (70h) Set Sweep Averaging - see control byte #118 (76h)
CONFIGURE MEASUREMENT Measurement mode select - see control byte #3 (03h)
Measurement mode is selectable as tracking generator mode, spectrum analyzer mode, or power monitor mode.
4 MS2711A PM
CONFIGURE POWER MONITOR The power monitor is available as an option.
Get Power levels - see control byte #39 (27h)
Querying the Spectrum Analyzer gives the raw and corrected power levels plus information about the configuration.
Power Monitor Units of measure - see control byte #40 (28h) Relative Mode - see control byte #41 (29h) Offset Mode - see control byte #42 (2Ah) Zero Mode - see control byte #43 (2Bh)
CONFIGURE FREQUENCY
Start frequency - see control byte 99 (63h) Stop frequency - see control byte #99 (63h) Center frequency - see control byte #100 (64h) Frequency span - see control byte #100 (64h)
CONFIGURE DISPLAY Display mode - see control byte #3 (03h)
Selectable as spectrum analyzer or power monitor.
Ref level - see control byte #101 (65h) dB/div - see control byte #101 (65h)
CONFIGURE MARKERS
Marker (on/off) - see control byte #102 (66h) Marker Delta Status (on/off) - see control byte #102 (66h) Marker value - see control byte #102 (66h) Marker to Peak - see control byte #109 (6Dh) Marker to Center - see control byte #110 (6Eh)
MS2711A PM 5
CONFIGURE SINGLE LIMITS
Limit (on/off) - see control byte #103 (67h) Limit beep (on/off) - see control byte #103 (67h) Limit beep (if data above/below limit line) - see control byte #103 (67h) Limit value - see control byte #103 (67h)
CONFIGURE MULTIPLE LIMITS
Limit (on/off) - see control byte #113 (71h) Limit beep (on/off) - see control byte #113 (71h) Limit value - see control byte #113 (71h)
CONFIGURE A/B TRACE A/B trace select - see control byte #34 (22h)
Set up A and B trace definitions.
UTILITY ASCII text strings, which are stored with each sweep, help identify the stored traces. Use these control bytes
to modify the strings before storing the trace.
Time set - see control byte #8 (08h) Date set - see control byte #8 (08h) Reference number set - see control byte #9 (09h) Read Time - see control byte #7 (07h) Read Date - see control byte #7 (07h)
ACTION Trigger sweep - see control byte #48 (30h)
Both serial port echo and single sweep modes use this byte to trigger a Spectrum Analyzer sweep. If the Spectrum Analyzer is not in one of those modes, this byte is ignored.
Save system setup - see control byte #18 (12h) Recall system setup - see control byte #19 (13h)
6 MS2711A PM
Save sweep - see control byte #16 (10h) Query trace names - see control byte #24 (18h) Query trace memory - see control byte #27 (1Bh) Download sweep trace - see control byte #26 (1Ah) Delete sweep trace - see control byte #25 (19h) Write Antenna - see control byte #82 (52h) Recall Antenna - see control byte #83 (53h)
DATA Recall sweep - see control byte #17 (11h)
Use this control byte to obtain stored traces or the current measurement data from the Spectrum An alyzer. All traces and modes use the same trace data format.
MEASUREMENT
Measure OCC BW % of Power - see control byte #96 (60h) Measure OCC BW dB Down - see control byte #99 (63h) Set Max Hold - see control byte #105 (69h) Set Resolution BW Frequency - see control byte #106 (6Ah) Set Video BW Frequency - see control byte #107 (6Bh) Set Attenuation - see control byte #111 (6Fh) Set field strength measurement - see control byte #84 (54h) Set channel power - see control byte #85 (55h) Read channel power - see control byte #86 (56h)
Set adjacent channel power - see control byte #87 (57h) Read adjacent channel power - control byte #88 (58h)
MS2711A PM 7
STATUS Query system status - see control byte #20 (14h)
The system status contains virtually all information about the current Spectrum Analyzer system state. It is a powerful and complete “snapshot” of the system.
Some control bytes affect multiple system parameters. Use the response from this control byte for preserving any of the system parameters you wish to remain unchanged.
Self-test Trigger - see control byte #21 (15h)
Upon receiving this control byte the Spectrum Analyzer runs self-test. After completion of the self-test, the Spectrum Analyzer sends the results via the serial port.
Battery status - see control byte #50 (32h)
Returns the smart battery status.
CLOSE Exit remote mode - see control byte #255 (FFh)
Ends communication with the Spectrum Analyzer. “Exiting remote mode” returns the Spectrum Ana­lyzer to normal operation.
8 MS2711A PM

Control Byte Summary

Control Byte Summary (1 of 2)
Control
Byte #
1 (01h) 3 (03h)
7(07h) 8 (08h) 9 (09h)
10 (0Ah)
12 (0Ch)
16 (10h) 17 (11h) 18 (12h) 19 (13h) 20 (14h) 21 (15h) 24 (18h)
Name Description
Setup system Sets system status flags and switches Yes Select measurement mode Sets measurement mode Yes Read time/date Reads time and date from the real time clock –– Set time/date Sets the real time clock time and date Yes Set reference number Sets reference number for a sweep trace Yes Serial port echo On/Off Allows synchronization of the Spectrum Analyzer and request from
computer for sweep trace Watch-dog timer On/Off Enable or disable the watch-dog timer —­Store sweep trace Save current trace data to EEPROM Yes Recall sweep trace Queries the MS2711A for sweep trace data Yes Save system setup Save current system setup parameters to EEPROM Yes Recall system setup Recall system setup parameters from EEPROM Yes Query system status Queries the MS2711A for current system settings —­Trigger self-test Triggers a self-test —­Query trace names Returns list of all saved traces —-
WD
Timer?
Yes
25 (19h) 26(1Ah) 27(1Bh)
30 (1Eh)
34(22h) 39 (27h) 40 (28h) 41 (29h)
42 (2Ah) 43 (2Bh)
48 (30h) 50 (32h) 64 (40h) 69 (45h)
Delete sweep trace Delete single or all stored sweep traces Yes Download sweep trace Downloads a sweep trace to the MS2711A Yes Query sweep memory Queries percentage of memory available for trace storage –– Select printer type Select printer type Yes Set A/B trace Set up A and B trace definitions Yes Query Power Level Return Power Level at Detector Port —­Set Power Monitor Unit Set Power Monitor displaying unit Yes Set Relative Mode Enable or disable Power Monitor Relative Mode Yes Set Offset Mode Enable or disable Power Monitor Offset Mode Yes Set Zero Mode Enable or disable Power Monitor Zeroing Mode Yes Trigger sweep Starts the next sweep —­Check Battery Status Return smart battery status —­Auto Save Runtime Setup Automatically save the runtime setup when exiting remote mode —­Enter remote mode Enters remote mode at the end of the sweep and returns model number
and firmware version
—-
MS2711A PM 9
Loading...
+ 34 hidden pages