Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
| 1 | Lab Switch control utility |
| 2 | -------------------------- |
| 3 | |
| 4 | If invoked without arguments, labsw prints the firmware version and |
| 5 | build date. |
| 6 | |
| 7 | The following commands can be given on the command line: |
| 8 | |
| 9 | ch1=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 | |
| 13 | query |
| 14 | read the buttons and opto-coupler inputs (rear panel) |
| 15 | |
| 16 | local |
| 17 | exit remote mode |
| 18 | |
| 19 | The Lab Switch starts in local mode, where the CH1/CH2 buttons |
| 20 | toggle the respective channel. The main button turns off both |
| 21 | channels. Local mode is indicated by a green main LED. |
| 22 | |
| 23 | If a channel is set via USB, the Lab Switch enters remote mode, |
| 24 | indicated by a red main LED. In remote mode, the channel buttons |
| 25 | are ignored. Pressing the main button exits remote mode and |
| 26 | turns both channels off. |
| 27 | |
| 28 | The 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 | |
| 33 | Examples: |
| 34 | |
| 35 | # labsw ch1=1 |
| 36 | |
| 37 | Turns channel 1 on and enters remote mode. |
| 38 | |
| 39 | # labsw ch1=0 ch2=0 local |
| 40 | |
| 41 | Turns channels 1 and 2 off and exits remote mode. This is |
| 42 | equivalent to pressing the main button. |
| 43 |
Branches:
master
