RIGSMTR(1)

🌸 RIGSMTR(1) β€” Hamlib Utilities 🌸

okay bestie, sit down, hydrate, because we're about to measure S-Meters like it's our whole personality πŸ’…


✨ NAME ✨

rigsmtr β€” measure S-Meter vs azimuth using Hamlib πŸ¦‹


✨ SYNOPSIS ✨

rigsmtr [-hvV] [-m id] [-r device] [-s baud] [-c id] [-C parm=val]
        [-M id] [-R device] [-S baud] [-N parm=val] [time_step]

✨ DESCRIPTION ✨

So rigsmtr uses Hamlib to control a radio and measure S-Meter value versus antenna azimuth. That's the whole vibe. πŸŽ€

It rotates the antenna from minimum azimuth to maximum azimuth. Every second β€” or every time_step if you specified one, in seconds β€” it grabs the signal strength. Then it prints the azimuth in degrees plus the matching S-Meter level in dB relative to S9, straight to stdout. Iconic behavior, honestly. ✨

For this to actually work, rigsmtr needs a radio that could measure S-Meter and a Hamlib backend that's able to retrieve it, connected to a Hamlib supported rotator. All three. No skipping steps, bestie. 🫢

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, it works, but it's giving "we're still cooking" energy. 😭

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 β€” yes, they want your code, send it, main character move. πŸ‘‘


✨ 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. Periodt. πŸ“

Here's a summary of the supported options, no gatekeeping:

  • -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. πŸ“
  • -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 by 0x, in which case it is hexadecimal. πŸ”’
  • -C, --set-conf=parm=val[,parm=val] β€” Set radio configuration parameter(s), e.g. stop_bits=2. Use the -L option of rigctl for a list of configuration parameters for a given model number.
  • -M, --rot-model=id β€” Select rotator model number. See model list (use β€œrotctl -l”). 🌈
  • -R, --rot-file=device β€” Use device as the file name of the port connected to the rotator. 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. πŸ¦‹
  • -S, --rot-serial-speed=baud β€” Set rotator serial speed to baud rate. Uses maximum serial speed from rotator backend capabilities as the default.
  • -N, --rot-set-conf=parm=val[,parm=val] β€” Set rotator configuration parameter(s), e.g. stop_bits=2. Use the -L option of rotctl for a list of configuration parameters for a given model number.
  • -v, --verbose β€” Set verbose mode, cumulative (see DIAGNOSTICS below). πŸ—£οΈ
  • -h, --help β€” Show a summary of these options and exit.
  • -V, --version β€” Show version of rigsmtr and 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 and --rot-set-conf options. πŸ’€ (not me getting an error on a backend that simply does not know her)

✨ 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. 🧚

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 they ask for -vvvvv, they're not being dramatic, they genuinely need it. πŸ“¬


✨ EXIT STATUS ✨

rigsmtr 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 radio doesn't have the required capabilities. πŸ’”

✨ EXAMPLE ✨

Collect S-Meter readings on a TS-850 while an EasycommII rotator makes a full 360Β° rotation and record measurements in the file csmtr (typed text shown in bold):

$ rigsmtr -m 2009 -r /dev/ttyS1 -M 202 > csmtr

After completion the file csmtr contains lines such as:

0 -47
30 -40
60 -22
90 -3
120 10
150 1
180 -11
210 -24
240 -35
270 -42
300 -48
330 -51
360 -49

The results can be plotted with gnuplot(1):

$ gnuplot
set angles degrees
set polar
set grid polar 15.
unset border
unset param
set style data line
set rrange [-60:60]
set xrange [-60:60]
set yrange [-60:60]
plot csmtr

like hello?? a polar plot of your own antenna?? that's art, that's a vibe check passed, that's lowkey a screensaver. πŸ”₯


✨ BUGS ✨

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 Β© 2007-2009 Stephane Fillod Copyright Β© 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.

bestie that last line is not a joke, there is genuinely no warranty, read it twice πŸ’œ

✨ SEE ALSO ✨

gnuplot(1), rigctl(1), rotctl(1), hamlib(7)


✨ COLOPHON ✨

Links to the Hamlib Wiki, Git repository, release archives, and daily snapshot archives are available via hamlib.org. 🌐


and that's the whole page, you ate that 🫢 this was the Hamlib utilities manual, dated 2020-09-09, and it's giving certified classic. go measure something. mwah πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from