166 RCTRAIN(1)
NAME
rctrain – train DAT-Link’s infrared remote control
SYNOPSIS
rctrain [–D device ][–u unit ] device command
D
rctrain [–D device ][–u unit ] -l
ESCRIPTION
rctrain provides the training capabilities of a universal remote control. The first form of rctrain
n
d
updates the remote control description file for device with information on how to generate command o
evice. The user will be prompted to aim the hand-held remote control for device at the DAT-Link’s
l
remote control sensor and press the button for command. rctrain will scan the captured sensor data and
ook for at least 10 repetitions of the same sequence. It will then store the sequence in the remote
T
description file. If no appropriate sequence is detected, an error message will be generated.
he second form of the command performs a loop-back test of the DAT-Link remote control training
o
t
and generation capabilities. For this test, the DAT-Link remote transmitter box must be plugged int
he DAT-Link main unit and aimed at the DAT-Link’s remote sensor. rctrain will then verify that the
OPTIONS
remote signals received by the sensor match those sent.
–l Perform loopback test of remote control transmitter and receiver.
e–u unit Specify the DAT-Link unit on the local host to use. The default is 0 or the value of th
environment variable if it is set.
–D device
DL_UNIT,
Specify the device file to open to access the DAT-Link. The default is /dev/datlinknn where
NOTES
nn is the DAT-Link unit number.
During execution, it is recommended that the user hold the remote control about 8 inches (20 cm)
t
r
directly in front of the DAT-Link sensor. However, it may be necessary to try different distances to ge
epeatable training on some remote controls.
Although most remote controls continually repeat the remote command while a button is held down, a
t
few units do not. If you are not able to train a particular control, try repeatedly pressing and releasing
he button during training.
Remote descriptions for devices controlled by a hard-wired link must be created manually, see the
E
DAT-Link User’s Manual for details.
NVIRONMENT
DL_UNIT
Default DAT-Link unit number to use. If not set, unit 0 is used. The value of
D can be overridden by the –u option.L_UNIT
FILES
/dev/datlinknn DAT-Link device, nn is the unit number of the device.
$ /etc/rcf/∗.rcf Remote control description filesINSTALLROOT
SEE ALSO
rc(1)
DAT-Link User’s Manual.
BUGS
The carrier frequency of some remote controls is not properly learned by rctrain. See the DAT-Link
NOTES
User’s Manual for details.
If the NetAudio server ( netaudiod(8)) is running, rctrain will temporarily suspend it’s operations so
a
s
that rctrain can access the DAT-Link directly. When rctrain completes, the server will resume. As
ide effect of these operations, the server will be reset to its startup state and transfers in progress will
DAT-Link Reference Last change: 1992/02/15 1