AE5VG

Field Guide · November 2026

The Oscilloscope

rs-scope-mcp puts an AI agent on a Rohde & Schwarz RTB2 or RTB2000 oscilloscope. The agent sets up the scope, captures what it measures, keeps every capture with the setup that produced it, and answers with numbers: frequency and levels, decoded bus traffic, spectra, filter response, pass or fail. You talk to Claude as you would to a colleague at the bench. This guide is for the person at that bench.

Tools16
SCPI commands962 + 408
Skills4
Bench checks40 / 40

A · The tools at a glance

One program, the rs-scope-mcp server, provides sixteen tools. Claude Desktop installs it as a connector. Ten tools work at the level of a task (capture, measure, decode, test). Six are the foundation: the connection, the screenshot, and four that give the agent the complete command set for anything the task tools do not cover. You never call a tool yourself. You say what you want, and the agent picks the tool.

ToolsWhat they doWhen the agent reaches for them
connection · session · setupConnect and read the installed options. Group captures by task. Show, save and restore the complete instrument setup.At the start and the end of every task.
captureTake one acquisition and read analog channels in volts, the logic probe (pods POD1 and POD2) and decoded buses in one call. Everything is stored locally; a summary comes back."What is on CH1?" · "Capture the I2C traffic."
dataLook into stored captures without touching the scope: a window of samples, edge times, decoded frames by filter, the envelope of a carrier, a guess of what unknown logic lines carry, read-only SQL.Every follow-up question about a capture.
measureUp to eight automatic measurements as numbers."Frequency, peak-to-peak and RMS on CH1."
spectrumFFT between two frequencies. Returns the noise floor and the strongest peaks.Harmonics, sidebands, key clicks, IMD.
bodeSweep the generator through a filter and report -3 dB points, peak and shape. Needs your confirmation.Filters, matching networks, amplifiers.
mask · historyLearn a tolerance envelope from a good signal, test thousands of acquisitions, keep only the failures in segmented memory (the scope's history of past acquisitions), then step through them.Intermittent faults, production checks.
screenshot · demoThe screen as an image. A looping show of what the scope can do."Show me." · Videos, demos, club nights.
scpi · scpi_search · scpi_describe · scpi_blockAny of the 962 documented and 408 undocumented commands, checked before they are sent. Search, describe, binary transfers.Settings the task tools do not cover.
Verified on this bench

Everything in this guide was run on an RTB2004 with firmware 03.000 and every option installed. A 40-check acceptance test drives the installed connector through the same protocol Claude Desktop uses, and all 40 pass. Other RTB2 and RTB2000 models share the hardware and firmware; options you do not have simply are not offered.

B · Installing

The server runs on your own computer, started by Claude Desktop, and reaches the scope over your network.

Put the scope on the network

  1. Connect the LAN port on the back of the scope to your network.
  2. On the scope: Menu, Setup, Interface, Ethernet, Parameter. Use DHCP (or a fixed address) and leave IP Port at 5025. Note the IP address.
  3. Close the scope's web page in any browser. The RTB2 serves one remote client at a time.

As a desktop connector (recommended)

  1. Download the bundle. Get rs-scope-mcp.mcpb and the four .skill files (Claude's bench instructions, see section 06) from the Downloads page.
  2. Install the connector. In Claude, open Settings, Desktop app, Extensions and drag rs-scope-mcp.mcpb onto the page. Enter the scope address. Leave the port at 5025. The data folder defaults to ~/rs-scope-data and is created on first use.
  3. Install the skills. In Claude, open Customize, Skills, Add, Upload skill and choose all four files at once: scope-operating, ham-bench, bus-reverse-engineering, embedded-bringup.
  4. Updates install over the old version: drag the new bundle onto the same page. Your settings stay.

Check that it works (thirty seconds)

Ask: "Connect to the scope and tell me which options are installed." The answer names the model, the firmware and options such as B1 (logic probe), B6 (generator), K1 to K3 (serial decode), K15 (history) and K36 (Bode plot).

C · Your first session

What the agent does first, every time

It connects, starts a session with the goal you gave it, and saves the complete setup of the scope (setup save). At the end it restores that setup unless you ask to keep the new one. You get your scope back the way you left it, with the generators off.

Operating is a conversation

Say what you want to know, not which buttons to press: "What frequency is on CH1?", "Something is talking on the logic probe, what is it?", "Is this filter's -3 dB point where the datasheet says?". The agent sets channels, timebase and trigger, captures the signal, and answers with values and the id of the capture they came from. Ask for a screenshot whenever you want to see the screen.

Outputs need your word

The generator, the pattern generator, Bode sweeps and the demo drive signals into whatever is connected. The agent cannot switch them on without an explicit confirmation, and it should only ask after you have said what is connected. The same applies to resets, file deletion, network settings and restoring a saved setup.

D · How the system works

  1. The complete command set. The server knows every remote (SCPI) command the user manual documents (962 headers), 408 command families the firmware reports but the manual omits, and corrections found on the bench. Every command is checked before it is sent. Wrong headers, out-of-range numeric suffixes (CHAN5 on a four-channel scope) and commands this firmware lacks are refused with a reason.
  2. A careful session. The scope answers nothing at all to a command it rejects, so the server appends a second query with a known answer to every query, and reads the error queue after every write. A failure is reported within milliseconds instead of after a timeout.
  3. Bench rules built in. FFT, Bode, XY and mask test are exclusive modes; decoders need the right bus type; full memory needs a stopped acquisition; the Bode application changes the memory mode and the generator load. The task tools handle all of this.
  4. A local store. Every capture lands in a catalog on your computer, with the samples, the decoded frames and the scope's own setup file. The agent sees a compact summary and asks for details only when your question needs them.

01 · Safety at the bench

RuleWhy
The inputs are 1 Mohm only. For 50 ohm systems use a feed-through terminator, and set the generator to a 50 ohm load.The generator always has a 50 ohm source. Its load setting only tells it what load to expect, so the amplitude you set appears at a matching load. A wrong setting doubles or halves the voltage.
Know what you probe. Mains, motor drives, switch-mode primaries and tube equipment need a differential probe.The ground clip is connected to protective earth through the scope.
Never connect a transmitter directly. Use a dummy load with a sampler and attenuators sized for the power.100 W into 50 ohm is 200 V peak to peak. The ham-bench skill has the attenuation table.
Logic probe: check levels on an analog channel first.RS-232 swings to +/-12 V; RS-485 and CAN are differential.

02 · Capture and drill-down

A capture takes one fresh acquisition at full memory and stores it. On the RTB2004 that is up to 15 million samples per channel, which the agent never reads into the conversation. It receives a summary instead: minimum, maximum, peak to peak, RMS, the frequency, clipping, and for logic lines the edge counts and pulse widths.

RTB2004 screen: a 1 kHz sine on CH1 with frequency, peak-to-peak and RMS measurements
Aux Out into CH1 through a 50 ohm terminator: 999.7 Hz, 1.03 Vpp, 344.1 mV RMS (theory 353.6 mV for 1 Vpp).

Follow-up questions are answered from the store. "Zoom into the first rising edge" becomes a window of the stored samples reduced to a few hundred rows; "list the frames with errors" becomes a filtered query. Nothing is measured twice unless the signal has changed.

03 · Measurements, spectra and Bode

Rising edge of a 100 kHz square wave with rise time and overshoot
Edge quality: 13.6 ns rise time, 4.3 % overshoot.
FFT of a 10 kHz square wave showing odd harmonics
FFT of a 10 kHz square wave: the odd harmonics, 1 kHz resolution.
AM envelope of a 100 kHz carrier with a 1 kHz tone
AM, 100 kHz carrier, 1 kHz tone.
Spectrum of the AM signal with carrier and two sidebands
The same AM in the spectrum: carrier and sidebands at +/- 1 kHz, 50 Hz resolution.

The FFT on the RTB2 couples span, resolution bandwidth, window and timebase, and changes them in steps. The spectrum tool sends the requested range again until the scope settles on it, then reports the resolution it got. For a modulated or keyed carrier, the agent computes the envelope from the stored samples: AM depth, rise and fall time of the keying, crest factor.

Bode plot application showing a flat loopback response
Bode plot (option K36) of the loopback, used to check the setup before a filter goes in: 0 dB and 0 degrees from 100 Hz to 1 MHz.

The Bode application changes the memory mode, the channel scale and coupling, and the generator load, and keeps those changes. The server saves the setup before every sweep and restores it when the scope leaves Bode mode.

04 · Buses and logic

With the logic probe and the decode options, the agent reads serial buses as data: every frame with its time, status, address and bytes. Given lines it does not know, it first identifies them from the edges alone, then confirms with the decoder.

I2C decoded on D0 and D1
I2C on D0/D1: address 0x20, then "*idn?" and the read-back.
SPI with clock, MOSI, MISO and chip select decoded
SPI on D0..D3: clock, MOSI, MISO, chip select.
UART decoded at 115200 baud
UART on D0 at 115200 Bd, measured from the bit time.
Four-bit counter decoded as a parallel bus
A 4-bit counter on D0..D3 as a parallel bus.

Identification works on the stored logic capture. A line with pulses at multiples of one bit time is a UART. The agent reports the measured baud rate, the nearest standard one, and whether the line is inverted. A bursting clock with one data line, both idle high, is I2C. A clock with data lines and a line that holds its level while the clock runs is SPI, and that line is the chip select. A steady periodic line is a clock or PWM, flagged when it looks like a servo or speed-controller (ESC) signal. On the bench, all four pattern-generator buses and a 50 Hz servo pulse were identified correctly, including from short records that started in the middle of a transfer.

Frames at the edge of the window

A capture window cuts the first and the last transfer. The scope marks those frames incomplete, which is correct. When everything looks incomplete, widen the timebase before concluding that the bus is broken.

05 · Pass/fail and rare faults

Mask test with the pass and fail counters
Mask test: learned from a clean sine, then noise arrives and the failure counter climbs.
Segmented memory with the segment table
Segmented memory with timestamps per acquisition.
  1. Show the good signal and learn the mask with margins in divisions. The tool checks the new mask against the signal it was learned from and warns when it does not fit.
  2. Test. Thousands of acquisitions at about 16 per second. The result gives the number tested, the number failed and the failure rate. Unless you turn it off, only failing acquisitions stay in segmented memory.
  3. Look at the failures. The history tool steps through the stored segments and returns one row per segment: levels, frequency, decoded frames and their status.

The tool never learns a mask from the signal it is about to judge: a bad signal would define its own tolerance.

06 · The skills

The skills teach Claude how to work the bench with these tools. They are plain text you can read in the repository.

SkillWhat it brings
scope-operatingThe discipline for every session: leave the scope as you found it, safety, capture then analyze, sample rate and trigger rules, what each error means, reporting with numbers.
ham-benchTransmitter checks through attenuators (with the attenuation table from 5 W to 1500 W), AM depth, CW keying shape and key clicks, SSB two-tone and IMD, harmonics, filter Bode sweeps, audio levels for digital modes.
bus-reverse-engineeringUnknown pins: levels and threshold, survey, identify, confirm with the decoder, census of addresses and commands, recognizing common traffic (IMU and barometer addresses, SPI flash commands, NMEA, MAVLink, SBUS, CRSF, DShot).
embedded-bringupRails and ripple under load, power-up sequence and reset, clocks, PWM, servos and ESCs, sensor buses and I2C rise times, GPS, telemetry and RC links, intermittent faults, comparing board revisions.

07 · Demo mode

Demo mode turns the scope into the one in the background of every science-fiction lab scene. It loops through scenes made by the scope's own generators (the waveform generator on Aux Out, and in the full demo also the pattern generator), then restores your setup.

LevelWiringScenes
AnalogAux Out, 50 ohm feed-through terminator, CH1Heartbeat monitor, signal in the noise, radar ping, AM, FM spectrum, harmonics, burst with zoom, pass/fail mask
FullAnalog wiring, plus pattern generator P0..P3 to logic probe D0..D3 (probe ground to the pattern generator's ground contact)All of the above, plus I2C decoded to text, the SPI link, and a logic-analyzer counter
Heartbeat waveform played from the generator
Vital signs: a heartbeat at 72 bpm from the arbitrary generator.
Noisy sine with intensity grading
Signal in the noise, intensity-graded.
FM spectrum with Bessel sidebands
FM spectrum: the Bessel sidebands.
I2C decode next to a carrier
Bus traffic next to a carrier on CH1.

"Run the full demo, 15 seconds per scene" starts it, and "Stop the demo" ends it. From a terminal, with the PyPI package installed: rs-scope --host <ip> demo --level analog --loops 0 --yes.

The demo drives the outputs

It switches on the generator and, in the full demo, the pattern generator. It needs your confirmation and the wiring above. While it runs, other scope tools wait, because the scope serves one client at a time.

E · Worked sessions

These are the tool calls the agent makes and what came back, recorded on the RTB2004 during the acceptance run of version 0.1.2. Long results are shortened.

1 · "Something is talking on the logic probe. What is it?"

logic probe on D0..D3 · capture · data identify · decode

You: "Something is talking on the logic probe. Find out what it is and what it says." TOOL connection(action="connect") → RTB2004, firmware 03.000, options K1 K2 K3 K15 B1 B6 B243 K36 TOOL setup(action="save", note="before the bus hunt") TOOL scpi(["LOG1:STAT ON", "LOG1:THR USER", "LOG1:THR:UDL 0.5", "TIM:SCAL 1e-4", "TRIG:A:SOUR D0", "TRIG:A:EDGE:SLOP NEG", "TRIG:A:MODE NORM"]) TOOL capture(sources=["POD1"], note="survey") → active D0 (575 edges, 1.66 us pulses), D1 (138 edges); D2..D7 idle TOOL data(action="identify", source="D0-D7") → I2C, clock 301 kHz on D0, data on D1 TOOL scpi(["BUS1:TYPE I2C", "BUS1:I2C:CLOC:SOUR D0", "BUS1:I2C:DATA:SOUR D1", "BUS1:FORM ASC"]) TOOL capture(sources=["BUS1"], note="confirm I2C") → 2 frames, status OK; address 0x40 (write) "*idn?", 0x41 (read) "Rohde&Schwarz - RTB2004" Agent: "It is I2C at about 300 kHz. A controller writes *idn? to the device at 7-bit address 0x20 and reads back Rohde&Schwarz - RTB2004."

Why it worked. The survey showed two active lines. Identification needed nothing but their edges. The decoder confirmed the guess with frames that decode cleanly.

2 · "Measure the 1 kHz sine on CH1"

generator into a 50 ohm terminator · guarded output · measure · capture

You: "Put a 1 kHz, 1 Vpp sine on the generator and measure it. CH1 has a 50 ohm terminator." TOOL scpi([..., "WGEN:OUTP:LOAD R50", "WGEN:FUNC SIN", "WGEN:FREQ 1000", "WGEN:VOLT 1", "WGEN:OUTP ON"]) → guarded: nothing was sent; WGEN:OUTP ON drives the generator output into the circuit The agent asks you to confirm the wiring, then sends the same batch with confirm=true. TOOL measure(source="CH1", types=["FREQ", "PEAK", "RMS"]) → FREQ 1000.3 Hz, PEAK 1.032 V, RMS 0.351 V TOOL capture(sources=["CH1"], note="sine") → 15,000,070 samples; 1000.0 Hz, 1.045 Vpp, 0.351 V RMS

Why it worked. The load setting matched the terminator, so the amplitude is what was asked for. The measurement and the stored capture agree.

3 · "What is the modulation depth?"

AM on CH1 · capture · data envelope

You: "Generate 80 % AM on a 100 kHz carrier and tell me the real modulation depth." TOOL scpi(["WGEN:FREQ 100000", "WGEN:MOD:TYPE AM", "WGEN:MOD:AM:FREQ 1000", "WGEN:MOD:AM:DEPT 80", "WGEN:MOD ON", "TIM:SCAL 1e-3"]) TOOL capture(sources=["CH1"], note="AM 80 %") TOOL data(action="envelope", source="CH1") → carrier 100.0 kHz, envelope 0.069 V to 0.464 V, AM depth 0.743 Agent: "The generator is set to 80 %, the signal has 74 %. The method gives the same value for every window size, so this is the generator, not the measurement."

4 · "Does this signal stay inside its tolerance?"

mask create · mask test · history

You: "Learn a mask from this clean 2 kHz sine, test it, then tell me what happens with noise." TOOL mask(action="create", source="CH1", x_margin_div=0.02, y_margin_div=0.15) → self-check: 0 of 34 acquisitions of the reference fail TOOL mask(action="test", acquisitions=300) → tested 309, failed 0 TOOL scpi("WGEN:NOIS:REL 9") TOOL mask(action="test", acquisitions=300) → tested 316, failed 316; 40 failures kept in segmented memory Failures are kept because keep_failed is on unless the call turns it off. TOOL history(action="harvest", sources=["CH1"], max_segments=5) → 5 segments, one row each with peak-to-peak and frequency

5 · "Check the Bode setup before the filter goes in"

K36 · guarded sweep · restore afterward

You: "Sweep from 100 Hz to 1 MHz with input and output on CH1, just to check the setup." TOOL bode(start_hz=100, stop_hz=1e6, points_per_decade=10, input_channel="CH1", output_channel="CH1", confirm=true) → 41 points in 7.2 s; flat within 6 dB, peak 0.0 dB; generator load R50 "Flat within 6 dB" is the tool's shape label: the two ends of the sweep are within 6 dB of each other and nothing peaks above them. This loopback measured 0.0 dB throughout. With a filter, the same call reports the -3 dB and -6 dB points, the phase there and the shape.

F · When it does not answer

SymptomLikely cause and fix
The connector fails to startClaude Desktop shows the error under Settings, Extensions. The log is ~/Library/Logs/Claude/mcp-server-R&S Oscilloscope (RTB2, RTB2000).log.
"No route to host" on the first trymacOS is checking whether Claude may use the local network. Ask again. If it keeps failing, allow Claude under System Settings, Privacy & Security, Local Network.
Connection times outAnother client holds the scope: its web page in a browser, a script, a running demo. Close it. Check the address on the scope's Ethernet page.
"validation" errorA wrong command or suffix. The agent searches the command set and tries the right one.
-113 Undefined headerThe command does not exist in this firmware. Its description (scpi_describe) says so where this is known.
-200 on a decode queryThe bus is set to a different protocol.
-221 Settings conflictAnother exclusive mode (FFT, Bode, XY, mask) is active. The task tools switch back on their own.
A measurement returns no valueNothing to measure on this screen: check scale, timebase and trigger.
Everything decodes as incompleteThe window cuts the transfers: widen the timebase.
The mask warns after it was learnedThe trigger or timebase is not stable. With noise on the signal, the trigger's high-frequency reject helps.

G · Tool reference

ToolMain arguments
connectionaction: status, connect, disconnect · host, port
sessionaction: start (with goal), current, list
setupaction: show, save, restore (guarded) · capture_id, note
capturesources: CH1..CH4, POD1, POD2, BUS1, BUS2 · acquire: single, stop, current · points: MAX, DMAX, DEF · note · screenshot
dataaction: sessions, captures, capture, series, edges, envelope, identify, frames, sql · capture_id, source, t_start, t_end, max_points, bus, status, address, contains, segment, offset, limit
measuresource · types (up to 8: FREQ, PER, PEAK, UPE, LPE, AMPL, MEAN, RMS, RTIM, FTIM, PDCY, NDCY, PPW, NPW, POV, NOV, DEL, PHAS and more)
spectrumsource · start_hz, stop_hz · window
bodestart_hz, stop_hz, points_per_decade, input_channel, output_channel · confirm
maskaction: create, test, status, off · source, x_margin_div, y_margin_div, acquisitions, keep_failed, stop_on_failures
historyaction: info, harvest · sources, max_segments
demoaction: scenes, start, stop, status · level: analog, full · dwell_s, loops · confirm
screenshotnote
scpicommands (one or a list) · confirm · wait
scpi_search · scpi_describe · scpi_blockquery, limit · header, verbose · query, save_as

The full command reference, with the bench notes for every command, is the RTB2 / RTB2000 SCPI API reference (PDF).

H · Commercial use

Free for hobbyists. Personal use, amateur radio, education and nonprofit use are free under the PolyForm Noncommercial License 1.0.0.

Commercial use needs a license. Any use by or for a business, including internal use on a company test bench, needs a commercial license. Support for more instruments, test procedures written as skills for your products, integration with your test setup, and support plans are available too. Contact Westlake Professionals.

I · About and provenance

rs-scope-mcpgithub.com/sbrunner-atx/rs-scope-mcp
Desktop connectorrs-scope-mcp.mcpb on GitHub Releases, listed on Downloads
Skillsskills/scope-operating · skills/ham-bench · skills/bus-reverse-engineering · skills/embedded-bringup
Bench recorddocs/BENCH-NOTES.md (six rounds on the RTB2004) · scripts/acceptance_test.py (40 checks)
Command referencedocs/rs-scope-api.md and PDF
Sibling serversserial-console-mcp · fldigi-mcp · wsjtx-mcp · n3fjp-mcp

Corrections and additions are welcome. Open an issue on the repository.

73

This is private, personal work by Stefan Brunner, AE5VG. It is an independent project, not affiliated with or endorsed by Rohde & Schwarz; R&S and RTB2000 are trademarks of Rohde & Schwarz GmbH & Co. KG. GL es 73 de AE5VG sk.