Avcom GUI Application Note AN0007 Avcom Protocol Example For SBS Based Analyzers Rev G
Avcom GUI Application Note AN0007 Avcom Protocol Example For SBS Based Analyzers Rev G
All SBS, CLM and RSA rev B models (1100, 2150, 2500)
Revision History
Release Reason By Date
Rev F Initial release (starting at F to keep in sync with protocol document) MC April 3, 2009
Rev G Corrected “LNB Power & Fixed LO Offset” Table MC April 9, 2009
Added detailed descriptions of bytes in packets
Introduction
The avcom revised protocol for SBS, CLM and RSA rev B models is based on a simple request-
reply communications.
The following document is meant to be a supplement to the “Protocol for Avcom of Virginia
Single Board Based Remote Spectrum Analyzers” document to assist in visualizing the communications
between the analyzer and the GUI software.
A simple example of the communication between the analyzer is given below. Communication is
always initiated by the GUI software on a PC or SBC and a reply is sent by the analyzer.
Communication
1. GUI tries to communicate with older avcom analyzers first (for backward compatibility with old
RSA rev A, PSA-45d, MSA-4570E, PSA-37XP, MSA-45E, etc.)
2. If no reply from older analyzer, GUI tries to communicate with newer protocol analyzers (SBS,
CLM, RSA rev B) by requesting a “Hardware Description” packet from the analyzer.
3. If a “Hardware Description” is sent by the analyzer, the GUI assumes it is talking to a new
protocol analyzer and can set up it’s interface accordingly. The “Hardware Description” sent by
the analyzer contains current settings and features, such as current center frequency, span, RBW,
reference level, number of inputs, LNB power settings, etc.
4. GUI gets firmware version from Hardware Description packet received in (3).
a. If firmware version less than 2.6, skip step 5.
b. If firmware version greater than or equal to 2.6, do step 5.
5. GUI Request a “Get LNB Power & Fixed LO” packet (for firmware version 2.6 and later). The
GUI can set up its interface with the information returned by the analyzer gathered from the
“LNB Power & Fixed LO” packet.
6. GUI can change the analyzer settings if desired, with the “Change Settings” request. The analyzer
will change its settings and reply with a waveform packet containing the current settings.
7. To continue viewing waveforms, the GUI repeatedly requests a single waveform packet using the
“Waveform Transmission Settings” request. Request 1 (single) waveform repeatedly as desired.
Communication Example
Notes: Com Port or TCP Port opened prior to communication by process "AVCOM Eng GUI v2841.exe"
Notes: Refer to protocol document for all mediums of communication (USB, Serial, Ethernet) for baud
rate, hardware flow control, parity and data bits settings.
Notes: On serial port see notes in protocol document about DTR and RTS.
GUI Request: Request to startup old protocol analyzer (for backwards compatibility)
FE FE FF 00
Answer from SBS, CLM and RSA rev B: none
GUI Request: Request to startup old protocol analyzer (for backwards compatibility)
FE FE FF 00
Answer from SBS, CLM and RSA rev B: none
GUI Request: Get Hardware Description
02 00 03 07 00 03 Legend
STX or ETX
0x02 = STX (start packet)
0x03 = ETX (end packet)
Length Bytes
0x0010 = 16 remaining bytes to read
Unit product ID
0x5A = SBS-2500 OR RSA-2500
Firmware version
0x0206 = Firmware major.minor version = 2.6
Center frequency
0x00E4E1C0 = 1500.0000 MHz
(Divide by 10000 to get value in MHz)
Span
0x0000C350 = 5.0000 MHz
(Divide by 10000 to get value in MHz)
Reference Level
0x1E = 30decimal = -30 dBm ref level
RBW
0x10 = 100kHz RBW
Input
0x0A = Input 1 (default)
PCB Revision
0x1A = FAB-08H01-A
0x1B = FAB-08H01-B (current)
0x0A = FAB-08D02-A
0x0B = FAB-08D02-B
STX or ETX
0x02 = STX (start packet)
0x03 = ETX (end packet)
Length Bytes
0x0002 = 2 remaining bytes to read
Length Bytes
0x002D = 45 remaining bytes to read
RF LO Offset Mask
0x80 = Bit set, all low band offset
(bit7 always set)
(bit 5 – bit 0 for RF Inputs 6-1)
0 = Use LNB Power mask to determine offset
1 = Always use low band offset
Reserved
STX or ETX
0x02 = STX (start packet)
0x03 = ETX (end packet)
Length Bytes
0x0010 = 16 remaining bytes to read
Center frequency
0x00E4E1C0 = 1500.0000 MHz
(Divide by 10000 to get value in MHz)
Span
0x0000C350 = 5.0000 MHz
(Divide by 10000 to get value in MHz)
Reference Level
0x1E = 30decimal = -30 dBm ref level
RBW
0x10 = 100kHz RBW
Input
0x0A = Input 1 (default)
STX or ETX
0x02 = STX (start packet)
0x03 = ETX (end packet)
Length Bytes
0x0155 = 341 remaining bytes to read
RBW
0x40 = 1MHz RBW
Input
0x0B = Input 2
Internal extender
0x0000 = no internal extender
External extender
0x0000 = no external extender
STX or ETX
0x02 = STX (start packet)
0x03 = ETX (end packet)
Length Bytes
0x0155 = 341 remaining bytes to read
Reference Level
0x1E = 30decimal = -30 dBm ref level
RBW
0x10 = 100kHz RBW
Input
0x0A = Input 1 (default)
Internal extender
0x0000 = no internal extender
External extender
0x0000 = no external extender