RIGCTLCOM(1)
π NAME π
okay so bestie, this is rigctlcom(1), one of the Hamlib Utilities β and what it does is COM port passthru as TS-2000 emulator to your rig. periodt. π
β¨ SYNOPSIS β¨
rigctlcom [-hlLuV] [-m id] [-r device] [-R device] [-p device]
[-d device] [-P type] [-D type] [-s baud] [-S baud] [-c id]
[-C parm=val] [-B] [-v[-Z]]
like, that's the whole vibe. π¦
πΈ DESCRIPTION πΈ
so here's the tea: this lets programs that can connect to a TS-2000 via COM port use Hamlib or FLRig radios instead. and not just one program β multiple programs can connect to the radio via FLRig or rigctld. iconic behavior, honestly. π
okay but before any of that slays, you HAVE to set up virtual serial/COM ports first. On POSIX systems (BSD, Linux, OS/X) you do it with socat(1) or something similar. On Microsoft Windows, the utilities you can use are com0com, Free Virtual Serial Ports, or VPSD. no skipping this step bestie, it's giving prerequisites. π§
also!! please report bugs and send feedback to the e-mail address in the BUGS section below. patches and code enhancements sent to that same address are very welcome β we love a contributor moment. π«Ά
π 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's the whole summary of supported options, no skips:
-m,--model=idβ select the radio model number. see the model list (just runrigctlcom -l). π»
Note: rigctlcom (or third party software using the C API) will use radio model2for NET rigctl (communicating withrigctld).
-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 β check your system's documentation. π the special stringuh-rigmay be given to enable micro-ham device support.-R,--rig-file2=deviceβ use device as the file name of one of the virtual com ports β your program will connect to the other com port of the virtual pair. π§ virtual serial ports on POSIX systems can be done withsocat(1):
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
see this Stackoverflow answer for using socat. on Microsoft Windows the available utilities are com0com, Free Virtual Serial Ports, or VPSD (see DESCRIPTION above for WWW links).
-p,--ptt-file=deviceβ use device as the file name of the Push-To-Talk device using a device file as described above. ποΈ-d,--dcd-file=deviceβ use device as the file name of the Data Carrier Detect device using a device file as described above.-P,--ptt-type=typeβ use type of Push-To-Talk device. supported types areRIG(CAT command),DTR,RTS,PARALLEL,NONE, overriding the PTT type defined in the rig's backend.
some side effects of this command: when type is set toDTR, read PTT state comes from the Hamlib frontend, not read from the radio. and when set toNONE, PTT state cannot be read or set β even if the rig backend supports reading/setting PTT status from the rig. so like, be aware. π
-D,--dcd-type=typeβ use type of Data Carrier Detect device. supported types areRIG(CAT command),DSR,CTS,CD,PARALLEL,NONE.-s,--serial-speed=baudβ set serial speed to baud rate. uses the maximum serial speed from radio backend capabilities (set by-mabove) as the default.-S,--serial-speed2=baudβ set serial speed to baud rate for the virtual com port (see-R). uses the maximum serial speed from radio backend capabilities (set by-mabove) as the default.-c,--civaddr=idβ use id as the CI-V address to communicate with the rig. only useful for Icom and some Ten-Tec rigs.
Note: the id is in decimal notation, unless prefixed by 0x, in which case it is hexadecimal.
-L,--show-confβ list all config parameters for the radio defined with-mabove. π-C,--set-conf=parm=val[,parm=val]β set radio configuration parameter(s), e.g.stop_bits=2. use the-Loption above for a list of configuration parameters for a given model number.-u,--dump-capsβ dump capabilities for the radio defined with-mabove and exit. πͺ-l,--listβ list all model numbers defined in Hamlib and exit. the list is sorted by model number.
Note: in Linux the list can be scrolled back using Shift-PageUp/Shift-PageDown, or using the scrollbars of a virtual terminal in X or the cmd window in Windows. the output can be piped tomore(1)orless(1), e.g.rigctl -l | more.
-n,--no-restore-aiβrigctlrestores the state of auto information (AI) on the controlled rig. if this is not desired β for example if you are usingrigctlto turn AI mode on or off β pass this option.-B,--mapa2bβ mapsset_freqon VFOA to VFOB instead. this allows using CW skimmer with the rig in split mode, and clicking on a frequency in CW skimmer will set VFOB to the transmit frequency. π₯-v,--verboseβ set verbose mode, cumulative (see DIAGNOSTICS below).-Z,--debug-time-stampsβ enable time stamps for the debug messages. use only in combination with the-voption as it generates no output on its own. β°-h,--helpβ show a summary of these options and exit. π«Ά-V,--versionβ show version ofrigctland 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-confand--show-confoptions. π
π©Ί DIAGNOSTICS π©Ί
the -v, --verbose option allows different levels of diagnostics to be output to stderr, and they correspond like this:
-vforBUG-vvforERR-vvvforWARN-vvvvforVERBOSE-vvvvvforTRACE
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 like, when they ask for TRACE, they mean it. π
π¦ EXIT STATUS π¦
rigctlcom 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. π
π EXAMPLE π
start rigctlcom with FLRig as the Hamlib model and virtual com port pair COM9/COM10, e.g. N1MM Logger+ attaching to COM10 and using the TS-2000 emulator attached to COM9 (assumes the virtual serial/COM ports pipe has been created with the proper utility as described above):
$ rigctlcom -m 4 -R COM9 -S 115200
and here's the diagram showing the communications flow that lets N1MM Logger+ talk to a radio connected to Flrig:
Flrig -><- rigctlcom -> COM9 <- virt_port_pipe -> COM10 <- N1MM
look at that pipeline go. main character energy from every single arrow. π
π 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 Β© 2000-2011 Stephane Fillod Copyright Β© 2000-2018 the Hamlib Group (various contributors) Copyright Β© 2010-2020 Nate Bargmann Copyright Β© 2019 Michael Black W9MDB
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. π«Ά
π SEE ALSO π
rigctld(1), rigctl(1), socat(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, bestie β this was RIGCTLCOM(1) from the Hamlib crew, dated 2020-09-09. go forth and emulate that TS-2000, you absolute legend. ππΈπ¦
π¦ 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 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