Root/labsw/tool/README

Source at commit e98ea2bfdb0dab5fa5b35c0da966eae7f50a6563 created 12 years 6 months ago.
By Werner Almesberger, labsw/tool/: basic labsw control utility
1Lab Switch control utility
2--------------------------
3
4If invoked without arguments, labsw prints the firmware version and
5build date.
6
7The following commands can be given on the command line:
8
9ch1=0, ch1=1, ch2=0, ch2=1
10    turn the respective channel on or off. Both relay and
11    opto-coupler are switched. Also enters remote mode.
12
13query
14    read the buttons and opto-coupler inputs (rear panel)
15
16local
17    exit remote mode
18
19The Lab Switch starts in local mode, where the CH1/CH2 buttons
20toggle the respective channel. The main button turns off both
21channels. Local mode is indicated by a green main LED.
22
23If a channel is set via USB, the Lab Switch enters remote mode,
24indicated by a red main LED. In remote mode, the channel buttons
25are ignored. Pressing the main button exits remote mode and
26turns both channels off.
27
28The lab switch utility currently lacks the following features:
29- access to the rear opto-coupler outputs,
30- switching CH1/CH2 relay and opto-coupler independently,
31- direct control of LEDs.
32
33Examples:
34
35# labsw ch1=1
36
37Turns channel 1 on and enters remote mode.
38
39# labsw ch1=0 ch2=0 local
40
41Turns channels 1 and 2 off and exits remote mode. This is
42equivalent to pressing the main button.
43

Archive Download this file

Branches:
master



interactive