rigctl

Langue: en

Version: January 4, 2009 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

rigctl - control radio transceivers and receivers

SYNOPSIS

rigctl [OPTION]... [COMMAND]...

DESCRIPTION

Control radio transceivers and receivers. rigctl accepts commands from the command line as well as in interactive mode if none are provided on the command line.

Keep in mind that Hamlib is BETA level software. While a lot of backend libraries lack complete rig support, the basic functions are usually well supported. The API may change without publicized notice, while an advancement of the minor version (e.g. 1.1.x to 1.2.x) indicates such a change.

Please report bugs and provide feedback at the e-mail address given in the REPORTING BUGS section. Patches and code enhancements are also welcome.

OPTIONS

This program follows the usual GNU command line syntax, with long options starting with two dashes (`-').

Here is a summary of the supported options:

-m, --model=id
Select radio model number. See model list (use 'rigctl -l').
NB: rigctl (or third party software) will use rig model 1901 when using rpc.rigd.
-r, --rig-file=device
Use device as the file name of the port the radio is connected. Often a serial port, but could be a USB to serial adapter. Typically /dev/ttyS0, /dev/ttyS1, /dev/ttyUSB0, etc.
-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 are RIG, DTR, RTS, PARALLEL, NONE, overriding PTT type defined in the rig's backend.

Some side effects of this command are that when type is set to DTR, read PTT state comes from Hamlib frontend, not read from the radio. When set to NONE, PTT state cannot be read or set even if rig backend supports reading/setting PTT status from the rig.

-D, --dcd-type=type
Use type of Data Carrier Detect device. Supported types are RIG, DSR, CTS, CD, PARALLEL, NONE.
-s, --serial-speed=baud
Set serial speed to baud rate. Uses maximum serial speed from rig backend capabilities as the default.
-c, --civaddr=id
Use id as the CI-V address to communicate with the rig. Only useful for Icom rigs.
NB: the id is in decimal notation, unless prefixed by 0x, in which case it is hexadecimal.
-t, --send-cmd-term=char
Change the termination char for text protocol when using the send_cmd command. The default value is <CR>. Non ASCII printable characters can be specified as an ASCII number, in hexadecimal format, prepended with 0x. You may pass an empty string for no termination char. The string -1 tells rigctl to switch to binary protocol. See the send_cmd command for further explanation.
-L, --show-conf
List all config parameters for the radio defined with -m above.
-C, --set-conf=parm=val[,parm=val]*
Set config parameter. e.g. stop_bits=2
Use -L option for a list.
-l, --list
List all model numbers defined in Hamlib and exit.
-u, --dump-caps
Dump capabilities for the radio defined with -m above and exit.
-o, --vfo
Set vfo mode, requiring an extra VFO argument in front of each appropriate command. Otherwise, VFO_CURR is assumed when this option is not set.
-v, --verbose
Set verbose mode, cumulative (see DIAGNOSTICS below).
-h, --help
Show summary of these options and exit.
-V, --version
Show version of rigctl and exit.

N.B. 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 --show-conf options. Please note that the backend for the radio to be controlled, or the radio itself may not support some commands. In that case, the operation will fail with a Hamlib error code.

COMMANDS

Commands can be entered either as a single char, or as a long command name. Basically, the commands do not take a dash in front of them on the command line, as the options do. They may be typed in when in interactive mode or provided as argument(s) in command line interface mode.

Since most of the Hamlib operations have a set and a get method, an upper case letter will be used for set method whereas the corresponding lower case letter refers to the get method. In interactive mode, prepend a backslash to enter a long command name.
Example: Use "\dump_caps" to see what this radio can do.

Please note that the backend for the radio to be controlled, or the radio itself may not support some commands. In that case, the operation will fail with a Hamlib error message.

Here is a summary of the supported commands:

F, set_freq
Set frequency, in Hz.
f, get_freq
Get frequency, in Hz.
M, set_mode
Set mode/passband: AM, FM, CW, CWR, USB, LSB, RTTY, RTTYR, WFM, AMS, PKTLSB, PKTUSB, PKTFM, ECSSUSB, ECSSLSB, FAX, SAM, SAL, SAH, DSB.

The passband is the exact passband in Hz, or 0 for the default.

m, get_mode
Get mode/passband.
V, set_vfo
Set VFO: VFOA, VFOB, VFOC, currVFO, VFO, MEM, Main, Sub, TX, RX.
v, get_vfo
Get current VFO.
J, set_rit
Set RIT, in Hz.
j, get_rit
Get RIT, in Hz.
Z, set_xit
Set XIT, in Hz.
z, get_xit
Get XIT, in Hz.
T, set_ptt
Set PTT, 0 or 1.
t, get_ptt
Get PTT status.
get_dcd
Get DCD status.
R, set_rptr_shift
Set repeater shift: "+", "-" or something else for none.
r, get_rptr_shift
Get repeater shift.
O, set_rptr_offs
Set repeater offset, in Hz.
o, get_rptr_offs
Get repeater offset.
C, set_ctcss_tone
Set CTCSS tone, in tenth of Hz.
c, get_ctcss_tone
Get CTCSS tone, in tenth of Hz.
D, set_dcs_code
Set DCS code.
d, get_dcs_code
Get DCS code.
set_ctcss_sql
Set CTCSS squelch tone, in tenth of Hz.
get_ctcss_sql
Get CTCSS squelch tone, in tenth of Hz.
set_dcs_sql
Set DCS squelch code.
get_dcs_sql
Get DCS squelch code.
I, set_split_freq
Set TX frequency, in Hz.
i, get_split_freq
Get TX frequency.
X, set_split_mode
Set transmit mode/passband: AM, FM, CW, CWR, USB, LSB, RTTY, RTTYR, WFM, AMS, PKTLSB, PKTUSB, PKTFM, ECSSUSB, ECSSLSB, FAX, SAM, SAL, SAH, DSB.

The passband is the exact passband in Hz, or 0 for the default.

x, get_split_mode
Get transmit mode/passband.
S, set_split_vfo
Set split mode, 0 or 1, and transmit VFO.
s, get_split_vfo
Get split mode and transmit VFO.
N, set_ts
Set tuning step, in Hz.
n, get_ts
Get tuning step.
U, set_func
Set func/status: FAGC, NB, COMP, VOX, TONE, TSQL, SBKIN, FBKIN, ANF, NR, AIP, APF, MON, MN, RF, ARO, LOCK, MUTE, VSC, REV, SQL, ABM, BC, MBC, AFC, SATMODE, SCOPE, RESUME, TBURST, TUNER.
u, get_func
Get func status.
L, set_level
Set level/value: PREAMP, ATT, VOX, AF, RF, SQL, IF, APF, NR, PBT_IN, PBT_OUT, CWPITCH, RFPOWER, MICGAIN, KEYSPD, NOTCHF, COMP, AGC, BKINDL, BAL, METER, VOXGAIN, ANTIVOX. SLOPE_LOW, SLOPE_HIGH, RAWSTR, SQLSTAT, SWR, ALC, STRENGTH.
l, get_level
Get level value.
P, set_parm
Set parm/value: ANN, APO, BACKLIGHT, BEEP, TIME, BAT, KEYLIGHT.
p, get_parm
Get parm value.
B, set_bank
Set bank.
E, set_mem
Set memory channel number.
e, get_mem
Get memory channel number.
G, vfo_op
Perform VFO operation: CPY, XCHG, FROM_VFO, TO_VFO, MCL, UP, DOWN, BAND_UP, BAND_DOWN, LEFT, RIGHT, TUNE, TOGGLE.
g, scan_op
Perform scan operation/channel: STOP, MEM, SLCT, PRIO, PROG, DELTA, VFO, PLT.
H, set_channel
Set memory channel data. Partially implemented.
h, get_channel
Get memory channel data.
A, set_trn
Set transceive mode (reporting event): OFF, RIG, POLL.
a, get_trn
Get transceive mode (reporting event).
Y, set_ant
Set antenna number (0, 1, 2, ..).
y, get_ant
Get antenna number (0, 1, 2, ..).
*, reset
Reset.
b, send_morse
Send morse symbols.
0x87, set_powerstat
Set power status.
0x88, get_powerstat
Get power status.
0x89, send_dtmf
Set DTMF digits.
0x8a, recv_dtmf
Get DTMF digits.
_, get_info
Get misc information about the rig.
1, dump_caps
Not a real rig remote command, it just dumps capabilities, i.e. what the backend knows about this model, and what it can do. TODO: Ensure this is in a consistent format so it can be read into a hash, dictionary, etc.
3, dump_conf
Not a real rig remote command, it just dumps a list of all config parameters defined for the radio.
2, power2mW
Converts a power value in a range of 0.0 ... 1.0 to the real transmit power in milli-Watts. The frequency and mode also need to be provided as output power may vary according to these values.
w, send_cmd
Send raw command string to the rig.
<CR> (or send-cmd-term, see -t option) is appended automatically at the end of the command for text protocols. For binary protocols, enter values as \0xAA\0xBB

EXAMPLES

Start rigctl for a Yaesu FT-920 using a USB to serial adapter in interactive mode:

$ rigctl -m 114 -r /dev/ttyUSB1

Start rigctl for a Yaesu FT-920 using COM1 while generating TRACE output to stderr:

$ rigctl -m 114 -r /dev/ttyS0 -vvvvv

Start rigctl for a Yaesu FT-920 using a USB to serial adapter while setting baud rate and stop bits:

$ rigctl -m 114 -r /dev/ttyUSB1 -s 4800 -C stop_bits=2

Start rigctl using rpc.rigd and setting the frequency and mode:

$ rigctl -m 1901 -r localhost F 7253500 M LSB 0

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.

EXIT STATUS

rigctl 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.

BUGS

set_chan has no entry method as of yet, hence left unimplemented.

This almost empty section...

REPORTING BUGS

Report bugs to <hamlib-developer@lists.sourceforge.net>.
We are already aware of the bugs in the previous section :-)

AUTHORS

Written by Stephane Fillod and the Hamlib Group
<http://www.hamlib.org>. Copyright © 2000-2009 Stephane Fillod, Frank Singleton, and the Hamlib Group.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

hamlib(3), rpc.rigd(8)