2001-12-28 20:34:30 +00:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
|
|
|
.\" First parameter, NAME, should be all caps
|
|
|
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
|
|
|
.\" other parameters are allowed: see man(7), man(1)
|
2010-02-18 00:18:54 +00:00
|
|
|
.TH ROTCTL "1" "February 17, 2010" "Hamlib" "Rotator Control Program"
|
2001-12-28 20:34:30 +00:00
|
|
|
.\" Please adjust this date whenever revising the manpage.
|
|
|
|
.\"
|
|
|
|
.\" Some roff macros, for reference:
|
|
|
|
.\" .nh disable hyphenation
|
|
|
|
.\" .hy enable hyphenation
|
|
|
|
.\" .ad l left justify
|
|
|
|
.\" .ad b justify to both left and right margins
|
|
|
|
.\" .nf disable filling
|
|
|
|
.\" .fi enable filling
|
|
|
|
.\" .br insert line break
|
|
|
|
.\" .sp <n> insert n+1 empty lines
|
|
|
|
.\" for manpage-specific macros, see man(7)
|
|
|
|
.SH NAME
|
|
|
|
rotctl \- control antenna rotators
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B rotctl
|
|
|
|
[\fIOPTION\fR]... [\fICOMMAND\fR]...
|
|
|
|
.SH DESCRIPTION
|
|
|
|
Control antenna rotators.
|
2007-02-24 20:24:34 +00:00
|
|
|
\fBrotctl\fP accepts \fIcommands\fP from the command line as well as in
|
|
|
|
interactive mode if none are provided on the command line.
|
2001-12-28 20:34:30 +00:00
|
|
|
.PP
|
|
|
|
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
|
|
|
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
|
|
|
.\" respectively.
|
2007-02-24 20:24:34 +00:00
|
|
|
Keep in mind that \fBHamlib\fP 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.
|
|
|
|
.PP
|
|
|
|
Please report bugs and provide feedback at the e-mail address given in the
|
|
|
|
REPORTING BUGS section. Patches and code enhancements are also welcome.
|
2001-12-28 20:34:30 +00:00
|
|
|
.SH OPTIONS
|
2003-02-27 03:47:47 +00:00
|
|
|
This program follows the usual GNU command line syntax, with long
|
2001-12-28 20:34:30 +00:00
|
|
|
options starting with two dashes (`-').
|
2007-02-24 20:24:34 +00:00
|
|
|
|
|
|
|
Here is s summary of the supported options:
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2007-02-24 20:24:34 +00:00
|
|
|
.B \-m, --model=id
|
|
|
|
Select rotator model number. See model list (use 'rotctl -l').
|
2010-02-18 00:18:54 +00:00
|
|
|
.sp
|
|
|
|
NB: \fBrotctl\fP (or third party software) will use rig model 1901
|
|
|
|
when using \fBrpc.rotd\fP or rig model 2 for NET rotctl (rotctld).
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
|
|
|
.B \-r, --rot-file=device
|
2007-02-24 20:24:34 +00:00
|
|
|
Use \fIdevice\fP as the file name of the port the rotator is connected.
|
2010-02-14 23:01:53 +00:00
|
|
|
Often a serial port, but could be a USB to serial adapter or USB port device.
|
|
|
|
Typically /dev/ttyS0, /dev/ttyS1, /dev/ttyUSB0, etc.
|
|
|
|
.sp
|
2007-02-24 20:24:34 +00:00
|
|
|
Default is \fB/dev/rotator\fP (may be a symbolic link to the actual device).
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
|
|
|
.B \-s, --serial-speed=baud
|
2007-02-24 20:24:34 +00:00
|
|
|
Set serial speed to \fIbaud\fP rate. Uses maximum serial speed from rotator
|
2003-02-27 03:47:47 +00:00
|
|
|
backend capabilites as default.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2009-01-04 14:49:17 +00:00
|
|
|
.B \-t, --send-cmd-term=char
|
|
|
|
Change the termination \fIchar\fP for text protocol when using the \fIsend_cmd\fP 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 rotctl to switch to binary protocol.
|
|
|
|
See the \fIsend_cmd\fP command for further explanation.
|
|
|
|
.TP
|
2007-02-24 20:24:34 +00:00
|
|
|
.B \-L, --show-conf
|
|
|
|
List all config parameters for the rotor defined with -m above.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2007-02-24 20:24:34 +00:00
|
|
|
.B \-C, --set-conf=parm=val[,parm=val]*
|
2010-02-14 23:01:53 +00:00
|
|
|
Set config parameter. e.g. --set_conf=stop_bits=2
|
2010-02-18 00:18:54 +00:00
|
|
|
.sp
|
2007-02-24 20:24:34 +00:00
|
|
|
Use -L option for a list.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2007-02-24 20:24:34 +00:00
|
|
|
.B \-l, --list
|
|
|
|
List all model numbers defined in \fBHamlib\fP and exit.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2007-02-24 20:24:34 +00:00
|
|
|
.B \-v, --verbose
|
|
|
|
Set verbose mode, cumulative (see DIAGNOSTICS below).
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2007-02-24 20:24:34 +00:00
|
|
|
.B \-h, --help
|
|
|
|
Show summary of these options and exit.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
|
|
|
.B \-V, \-\-version
|
2007-02-24 20:24:34 +00:00
|
|
|
Show version of \fBrotctl\fP and exit.
|
2003-02-27 03:47:47 +00:00
|
|
|
.PP
|
2010-02-14 23:01:53 +00:00
|
|
|
\fBN.B.\fP Some options may not be implemented by a given backend and will
|
2003-02-27 03:47:47 +00:00
|
|
|
return an error. This is most likely to occur with the \fI\-\-set-conf\fP
|
|
|
|
and \fI\-\-show-conf\fP options.
|
2010-02-14 23:01:53 +00:00
|
|
|
.PP
|
|
|
|
Please note that the backend for the rotator to be controlled,
|
|
|
|
or the rotator itself may not support some commands. In that case,
|
|
|
|
the operation will fail with a \fBHamlib\fP error code.
|
2001-12-28 20:34:30 +00:00
|
|
|
.SH 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, as
|
2007-02-24 20:24:34 +00:00
|
|
|
the options do. They may be typed in when in interactive mode
|
|
|
|
or provided as argument(s) in command line interface mode.
|
|
|
|
.PP
|
|
|
|
Since most of the \fBHamlib\fP operations have a \fIset\fP and a \fIget\fP method,
|
|
|
|
an upper case letter will be used for \fIset\fP method whereas the
|
2010-02-14 23:01:53 +00:00
|
|
|
corresponding lower case letter refers to the \fIget\fP method. Each operation
|
|
|
|
also has a long name; in interactive mode, prepend a backslash to enter a long
|
|
|
|
command name.
|
|
|
|
.sp
|
2007-02-24 20:24:34 +00:00
|
|
|
Example: Use "\\get_info" to see the rotor's info.
|
2001-12-28 20:34:30 +00:00
|
|
|
.PP
|
|
|
|
Please note that the backend for the rotator to be controlled,
|
|
|
|
or the rotator itself may not support some commands. In that case,
|
2007-02-24 20:24:34 +00:00
|
|
|
the operation will fail with a \fBHamlib\fP error message.
|
2001-12-28 20:34:30 +00:00
|
|
|
.PP
|
2010-02-18 00:18:54 +00:00
|
|
|
A summary of commands is included below (In the case of "set" commands the
|
|
|
|
quoted string is replaced by the value in the description. In the case of "get"
|
|
|
|
commands the quoted string is the key name of the value returned.):
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2010-02-14 23:01:53 +00:00
|
|
|
.B P, set_pos 'Azimuth' 'Elevation'
|
|
|
|
Set position: Azimuth and Elevation as double precision floating point values.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
|
|
|
.B p, get_pos
|
2010-02-14 23:01:53 +00:00
|
|
|
Get position: 'Azimuth' and 'Elevation' as double precision floating point values.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
2010-02-14 23:01:53 +00:00
|
|
|
.B M, move 'Direction' 'Speed'
|
|
|
|
Move the rotator in a specific direction at the given rate.
|
|
|
|
.sp
|
|
|
|
Values are integers where Direction is defined as 2 = Up, 4 = Down, 8 = Left,
|
|
|
|
and 16 = Right. Speed is an integer between 1 and 100. Not all backends that
|
|
|
|
implement the move command use the Speed value. At this time only the gs232a
|
|
|
|
utilizes the Speed parameter.
|
2001-12-28 20:34:30 +00:00
|
|
|
.TP
|
|
|
|
.B S, stop
|
|
|
|
Stop the rotator.
|
|
|
|
.TP
|
2010-02-14 23:01:53 +00:00
|
|
|
.B K, park
|
|
|
|
Park the antenna.
|
2002-01-16 17:08:31 +00:00
|
|
|
.TP
|
2010-02-14 23:01:53 +00:00
|
|
|
.B C, set_conf 'Token' 'Value'
|
2003-02-27 03:47:47 +00:00
|
|
|
Set a configuration parameter. It is safe to give "Token" a value of '0'
|
|
|
|
(zero). "Value" may be a string up to 20 characters.
|
2007-02-24 20:24:34 +00:00
|
|
|
.br
|
|
|
|
See -L output
|
2003-02-27 03:47:47 +00:00
|
|
|
.TP
|
2010-02-14 23:01:53 +00:00
|
|
|
.B R, reset 'Reset'
|
|
|
|
Reset the rotator.
|
|
|
|
.sp
|
|
|
|
Integer value of '1' for Reset All.
|
|
|
|
.TP
|
2002-01-14 07:00:55 +00:00
|
|
|
.B _, get_info
|
|
|
|
Get misc information on the rotator.
|
2010-02-14 23:01:53 +00:00
|
|
|
.sp
|
|
|
|
At the moment returns 'Model Name'.
|
2009-01-04 14:49:17 +00:00
|
|
|
.TP
|
2010-02-14 23:01:53 +00:00
|
|
|
.B w, send_cmd 'Cmd'
|
2009-01-04 14:49:17 +00:00
|
|
|
Send raw command string to the rotator.
|
|
|
|
.br
|
|
|
|
<CR> (or send-cmd-term, see \fI-t\fP option) is appended automatically at the end
|
|
|
|
of the command for text protocols.
|
|
|
|
For binary protocols, enter values as \\0xAA\\0xBB
|
2010-02-14 23:01:53 +00:00
|
|
|
.PP
|
|
|
|
\fBLocator Commands\fP
|
|
|
|
.PP
|
|
|
|
These commands offer conversions of Degrees Minutes Seconds to other formats,
|
|
|
|
Maidenhead square locator conversions and distance and azimuth conversions.
|
|
|
|
.TP
|
|
|
|
.B L, lonlat2loc 'Longitude' 'Latitude' 'Loc Len [2-12]'
|
|
|
|
Returns the Maidenhead locator for the given 'Longitude' and 'Latitude'.
|
|
|
|
.sp
|
|
|
|
Both are floating point values. The precision of the returned square is
|
|
|
|
controlled by 'Loc Len' which should be an even numbered integer value between
|
|
|
|
2 and 12.
|
|
|
|
.sp
|
|
|
|
For example, "+L -170.000000 -85.000000 12\\n" returns "Locator: AA55AA00AA00\\n".
|
|
|
|
.TP
|
|
|
|
.B l, loc2lonlat 'Locator'
|
|
|
|
Returns 'Longitude' and 'Latitude' in decimal degrees at the approximate
|
|
|
|
center of the requested grid square (despite the use of double precision
|
|
|
|
variables internally, some rounding error occurs). West longitude is
|
|
|
|
expressed as a negative value. South latitude is expressed as a negative
|
|
|
|
value. Locator can be from 2 to 12 characters in length.
|
|
|
|
.sp
|
|
|
|
For example, "+l AA55AA00AA00\\n" returns "Longitude: -169.999983\\nLatitude:
|
|
|
|
-84.999991\\n".
|
|
|
|
.TP
|
|
|
|
.B D, dms2dec 'Degrees' 'Minutes' 'Seconds' 'S/W'
|
|
|
|
Returns 'Dec Degrees', a signed floating point value.
|
|
|
|
.sp
|
|
|
|
Degrees and Minutes are
|
|
|
|
integer values and Seconds is a floating point value. S/W is a flag with '1'
|
|
|
|
indicating South latitude or West longitude and '0' North or East (the flag is
|
|
|
|
needed as computers don't recognize a signed zero even though only the Degrees
|
|
|
|
value only is typically signed in DMS notation).
|
|
|
|
.TP
|
|
|
|
.B d, dec2dms 'Dec Degrees'
|
|
|
|
Returns 'Degrees' 'Minutes' 'Seconds' 'S/W'.
|
|
|
|
.sp
|
|
|
|
Values are as in dms2dec above.
|
|
|
|
.TP
|
|
|
|
.B E, dmmm2dec 'Degrees' 'Dec Minutes' 'S/W'
|
|
|
|
Returns 'Dec Degrees', a signed floating point value.
|
|
|
|
.sp
|
|
|
|
Degrees is an integer
|
|
|
|
value and Minutes is a floating point value. S/W is a flag with '1'
|
|
|
|
indicating South latitude or West longitude and '0' North or East (the flag is
|
|
|
|
needed as computers don't recognize a signed zero even though only the Degrees
|
|
|
|
value only is typically signed in DMS notation).
|
|
|
|
.TP
|
|
|
|
.B e, dec2dmmm 'Dec Deg'
|
|
|
|
Returns 'Degrees' 'Minutes' 'S/W'.
|
|
|
|
.sp
|
|
|
|
Values are as in dmmm2dec above.
|
|
|
|
.TP
|
|
|
|
.B B, qrb 'Lon 1' 'Lat 1' 'Lon 2' 'Lat 2'
|
|
|
|
Returns 'Distance' 'Azimuth' where Distance is in km and Azimuth is in degrees.
|
|
|
|
.sp
|
|
|
|
All Lon/Lat values are signed floating point numbers.
|
|
|
|
.TP
|
|
|
|
.B A, a_sp2a_lp 'Short Path Deg'
|
|
|
|
Returns 'Long Path Deg' or -RIG_EINVAL upon input error..
|
|
|
|
.sp
|
|
|
|
Both are floating point values within the range 0.00 to 360.00.
|
|
|
|
.TP
|
|
|
|
.B a, d_sp2d_lp 'Short Path km'
|
|
|
|
Returns 'Long Path km'.
|
|
|
|
.sp
|
|
|
|
Both are floating point values.
|
2007-02-24 20:24:34 +00:00
|
|
|
.SH EXAMPLES
|
|
|
|
Start \fBrotctl\fP for RotorEZ using COM1:
|
2010-02-14 23:01:53 +00:00
|
|
|
.sp
|
2007-02-24 20:24:34 +00:00
|
|
|
$ rotctl -m 401 -r /dev/ttyS0
|
2010-02-14 23:01:53 +00:00
|
|
|
.sp
|
2010-02-18 00:18:54 +00:00
|
|
|
Start \fBrotctl\fP using \fBrpc.rotd\fP and querying the position:
|
|
|
|
.sp
|
|
|
|
$ rotctl -m 101 -r localhost \\get_pos
|
2010-02-14 23:01:53 +00:00
|
|
|
.sp
|
|
|
|
Connect to a running \fBrotctld\fP with rotor model 2 ("NET rotctl") on the
|
2010-02-18 00:18:54 +00:00
|
|
|
local host and specifying the TCP port:
|
2010-02-14 23:01:53 +00:00
|
|
|
.sp
|
2010-02-18 00:18:54 +00:00
|
|
|
$ rotctl -m 2 -r localhost:4533
|
2007-02-24 20:24:34 +00:00
|
|
|
.SH DIAGNOSTICS
|
|
|
|
The \fB-v\fP, \fB--version\fP option allows different levels of diagnostics
|
|
|
|
to be output to \fBstderr\fP and correspond to -v for BUG, -vv for ERR,
|
|
|
|
-vvv for WARN, -vvvv for VERBOSE, or -vvvvv for TRACE.
|
2010-02-14 23:01:53 +00:00
|
|
|
.PP
|
2007-02-24 20:24:34 +00:00
|
|
|
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.
|
|
|
|
.SH EXIT STATUS
|
|
|
|
\fBrotctl\fP exits with:
|
|
|
|
.br
|
|
|
|
0 if all operations completed normally;
|
|
|
|
.br
|
|
|
|
1 if there was an invalid command line option or argument;
|
|
|
|
.br
|
|
|
|
2 if an error was returned by \fBHamlib\fP.
|
2001-12-28 20:34:30 +00:00
|
|
|
.SH BUGS
|
|
|
|
.PP
|
2007-02-24 20:24:34 +00:00
|
|
|
This suspiciously empty section...
|
2001-12-28 20:34:30 +00:00
|
|
|
.SH REPORTING BUGS
|
2007-02-24 20:24:34 +00:00
|
|
|
Report bugs to <hamlib-developer@lists.sourceforge.net>.
|
2010-02-18 00:18:54 +00:00
|
|
|
.PP
|
2007-02-24 20:24:34 +00:00
|
|
|
We are already aware of the bug in the previous section :-)
|
|
|
|
.SH AUTHOR
|
2010-02-14 23:01:53 +00:00
|
|
|
Written by Stephane Fillod, Nate Bargmann, and the Hamlib Group
|
2010-02-18 00:18:54 +00:00
|
|
|
.PP
|
2007-02-24 20:24:34 +00:00
|
|
|
<http://www.hamlib.org>.
|
2001-12-28 20:34:30 +00:00
|
|
|
.SH COPYRIGHT
|
2010-02-14 23:01:53 +00:00
|
|
|
Copyright \(co 2000-2009 Stephane Fillod
|
|
|
|
.br
|
|
|
|
Copyright \(co 2010 Nate Bargmann
|
2001-12-28 20:34:30 +00:00
|
|
|
.br
|
2010-02-14 23:01:53 +00:00
|
|
|
Copyright \(co 2000-2009 the Hamlib Group
|
|
|
|
.PP
|
2001-12-28 20:34:30 +00:00
|
|
|
This is free software; see the source for copying conditions.
|
|
|
|
There is NO warranty; not even for MERCHANTABILITY
|
|
|
|
or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
.SH SEE ALSO
|
2007-02-24 20:24:34 +00:00
|
|
|
.BR hamlib (3),
|
|
|
|
.BR rpc.rotd (8)
|
2010-02-14 23:01:53 +00:00
|
|
|
.BR rotctld (8)
|
2001-12-28 20:34:30 +00:00
|
|
|
|