RIGSWR(1)
π RIGSWR(1) β Hamlib Utilities π
okay bestie, sit down, hydrate, because we're about to measure VSWR vs frequency and it's gonna be adorable. this lil page lives in the Hamlib Utilities corner of the manual-verse π¦
β¨ NAME β¨
rigswr β measure VSWR vs frequency. that's it, that's the whole job, and it does it slayfully π
πΈ SYNOPSIS πΈ
rigswr [-hvV] [-m id] [-r device] [-s baud] [-c id] [-C parm=val]
[-p device] [-P type] start_freq stop_freq [freq_step]
π DESCRIPTION π
rigswr uses Hamlib to control a radio and measure VSWR (that's Voltage Standing Wave Ratio, the vibe check for your antenna situation) across a frequency range. periodt.
It scans frequencies from start_freq to stop_freq with an optional increment of freq_step (default step is 100 kHz, cute). every single value has to be entered as an integer in Hertz (cycles per second) β no decimals, no vibes-based estimates, just numbers.
Note:rigswrassumes that start_freq is less than or equal to stop_freq. If it's greater,rigswrwill exit without doing anything. no drama, no scan, just gone. π
For each frequency, it transmits at 25% of total POWER during 0.5 second in CW mode and reads VSWR. yes bestie, it's actually keying up, so be normal about your dummy load π
Frequency and the corresponding VSWR are then printed on stdout. that's the output, that's the whole meal.
To work correctly, rigswr needs a radio that can measure VSWR and a Hamlib backend that supports reading VSWR from the radio. both, not one. it's giving "two-factor authentication" π₯
Keep in mind that Hamlib is BETA level software. While a lot of backend libraries lack complete radio support, the basic functions are usually well supported. so like, lowkey fine, highkey read the fine print.
Please report bugs and provide feedback at the e-mail address given in the BUGS section below. Patches and code enhancements sent to the same address are welcome β bestie, they want your patch, send it π«Ά
β¨ OPTIONS β¨
This program follows the usual GNU command line syntax. Short options that take an argument may have the value follow immediately or be separated by a space. Long options starting with two dashes (β-β) require an β=β between the option and any argument. iykyk.
Here is a summary of the supported options:
-m,--model=idβ Select radio model number. See model list (use βrigctl -lβ). π-r,--rig-file=deviceβ Use device as the file name of the port connected to the radio. Often a serial port, but could be a USB to serial adapter. Typically/dev/ttyS0,/dev/ttyS1,/dev/ttyUSB0, etc. on Linux,COM1,COM2, etc. on MS Windows. The BSD flavors and Mac OS/X have their own designations. See your system's documentation. (yes you have to read the docs, it's giving homework but make it β¨)-s,--serial-speed=baudβ Set radio serial speed to baud rate. Uses maximum serial speed from radio backend capabilities as the default. πββοΈπ¨-c,--civaddr=idβ Use id as the CI-V address to communicate with the radio. Only useful for Icom and some Ten-Tec radios. Note: The id is in decimal notation, unless prefixed by0x, in which case it is hexadecimal. hex girlies rise π§-C,--set-conf=parm=val[,parm=val]β Set radio configuration parameter(s), e.g.stop_bits=2. Use the-Loption ofrigctlfor a list of configuration parameters for a given model number. ποΈ-p,--ptt-file=deviceβ Use device as the file name of the Push-To-Talk port using a device file as with the-roption above. This is only needed if the radio doesn't have CAT PTT control and requires a separate device port to key the transmitter. π-P,--ptt-type=typeβ Use type of Push-To-Talk device. Supported types areRIG(CAT),DTR,RTS,PARALLEL,NONE. pick your fighter π-v,--verboseβ Set verbose mode, cumulative (see DIAGNOSTICS below). π£οΈ-h,--helpβ Show a summary of these options and exit. π-V,--versionβ Show version ofrigswrand exit. π
Note: Some options may not be implemented by a given backend and will return an error. This is most likely to occur with the --set-conf option. not every backend ate, and that's okay π
π DIAGNOSTICS π
The -v, --verbose option allows different levels of diagnostics to be output to stderr and correspond to -v for BUG, -vv for ERR, -vvv for WARN, -vvvv for VERBOSE, or -vvvvv for TRACE. the more v's, the more it tells you. it's giving unhinged levels of honesty fr fr.
A given verbose level is useful for providing needed debugging information to the email address below. For example, TRACE output shows all of the values sent to and received from the radio which is very useful for radio backend library development and may be requested by the developers. so if a dev asks for -vvvvv, you send -vvvvv, no gatekeeping β¨
π EXIT STATUS π
rigswr exits with:
0β if all operations completed normally; π1β if there was an invalid command line option or argument;2β if an error was returned by Hamlib;3β if the rig doesn't have the required capabilities. (bestie said "not my skill set" π)
π EXAMPLE π
Scans frequencies between 14.000 MHz and 14.200 MHz with 50 kHz step on a TS-850 and records VSWR measurements in file cswr (typed text shown in bold):
$ rigswr -m 2009 -r /dev/ttyS1 14000000 14200000 50000 > cswr
After completion, cswr contains the following lines:
14000000 1.50
14050000 1.31
14100000 1.22
14150000 1.07
14200000 1.07
The result can be plotted with gnuplot(1):
$ gnuplot
set data style linespoints
set grid
plot cswr
look at that curve, it's literally eating π₯π
π BUGS π
Depending on keyer/QSK setup, transmissions in CW mode may not be modulated thus possibly giving a wrong result. Please report this situation if it happens. yes, a wrong result is possible, we said it, don't @ us π
Report bugs to:
- Hamlib Developer mailing list
π COPYING π
This file is part of Hamlib, a project to develop a library that simplifies radio, rotator, and amplifier control functions for developers of software primarily of interest to radio amateurs and those interested in radio communications.
Copyright Β© 2004 Thierry Leconte
Copyright Β© 2004-2011 Stephane Fillod
Copyright Β© 2007,2018-2020 Nate Bargmann
This is free software; see the file COPYING for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. no cap, zero warranty, read the file π
πΈ SEE ALSO πΈ
gnuplot(1), rigctl(1), hamlib(7)
π¦ COLOPHON π¦
Links to the Hamlib Wiki, Git repository, release archives, and daily snapshot archives are available via hamlib.org. go click around bestie, there's lore β¨
and that's the whole page, you ate it π«Ά this was Hamlib, dated 2020-09-09, filed under RIGSWR(1) β now go measure something, main character ππ
π¦ where this page comes from
- alpine 3.24: hamlib-doc 4.7.1-r0 Β· LGPL-2.0-or-later
- arch rolling: hamlib 4.7.2-2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- debian bookworm: libhamlib-utils 4.5.4-1+b1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- debian trixie: libhamlib-utils 4.6.2-1+b1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- epel 9: hamlib 4.5.5-2.el9 Β· GPL-2.0-or-later and LGPL-2.0-or-later
- fedora 43: hamlib 4.6.5-2.fc43 Β· GPL-2.0-or-later and LGPL-2.0-or-later
- fedora 44: hamlib 4.6.5-3.fc44 Β· GPL-2.0-or-later and LGPL-2.0-or-later
- nixos 26.05: hamlib 4.7.2
- nixpkgs unstable: hamlib 4.7.2
- opensuse-leap 16.0: hamlib 4.7.2-bp160.1.1 Β· LGPL-2.1-only
- opensuse-leap 16.0: hamlib 4.7.2-bp160.1.1 Β· LGPL-2.1-only
- opensuse-leap 16.0: hamlib 4.7.2-bp160.1.1 Β· LGPL-2.1-only
- opensuse-leap 16.0: hamlib 4.7.2-bp160.1.1 Β· LGPL-2.1-only
- ubuntu jammy: libhamlib-utils 4.3.1-1build2 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- ubuntu noble: libhamlib-utils 4.5.5-3.2build2 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- ubuntu questing: libhamlib-utils 4.6.2-1build1
- ubuntu resolute: libhamlib-utils 4.6.5-5build1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- ubuntu stonking: libhamlib-utils 4.7.2-2 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms