1usbrelay(1) General Commands Manual usbrelay(1)
2
3
4
6 usbrelay - control or query USB HID relays
7
8
10 usbrelay [OPTION...] [ACTION...]
11
12
14 usbrelay allows for querying and setting the state of USB HID electri‐
15 cal relays. If no ACTION is passed, the state of all relays is printed
16 to stdout. RELID_N=[0|1] sets the N-th relay on module RELID to off or
17 on.
18
19 Multiple actions can be performed with one command
20
21 eg:
22
23 usbrelay REL0A_1=0 REL0A_2=1 REL0B_2=0...
24
25 Note that the RELID must only contain the characters A-Z0-9. Change
26 the RELID using the device file as the RELID if the relay has illegal
27 characters (See below).
28
29 The Relay module ID can be changed on DCTTECH relays:
30
31 RELID_0=NEWID sets the relay RELID to NEWID
32
33 alternatively
34
35 /dev/hidrawX_0=NEWID (Substitute X for the device path shown with the
36 -d option)
37
38
40 -d, --debug
41 Produce debugging output
42
43 -q, --quiet
44 Suppress output
45
46 -?, --help
47 Print the help menu
48
49 --usage
50 Print a usage description
51
52 -V, --version
53 Print the program version
54
55
56
57usbrelay 24 Jan 2022 usbrelay(1)