https://github.com/corani/switchbox
Linux driver for Antrax Datentechnik GmbH SwitchBox IP20
https://github.com/corani/switchbox
Last synced: 3 months ago
JSON representation
Linux driver for Antrax Datentechnik GmbH SwitchBox IP20
- Host: GitHub
- URL: https://github.com/corani/switchbox
- Owner: corani
- Created: 2015-05-18T12:33:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-29T16:52:19.000Z (about 10 years ago)
- Last Synced: 2025-01-09T20:48:26.870Z (5 months ago)
- Language: C
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwitchBox
Linux driver for Antrax Datentechnik GmbH SwitchBox IP20.
This is based on the original Vendor Code, adds support for serial numbers - so you can control multiple SwitchBoxes connected to the same machine - and can be compiled on modern Linux systems.
## UDEV permissions
To automatically give users access to control the USB SwitchBox, create the following udev rule:1. In /etc/udev/rules.d/10-local.rules add:
> SUBSYSTEM=="usbmisc", ATTRS{idVendor}=="0d50", ATTRS{idProduct}=="0008", GROUP="users", MODE="0660"2. Restart udevd:
> sudo /etc/init.d/udev restart3. (Unplug and) plug in your SwitchBox
## Building
1. Clone this git repo, or download the ZIP archive.
2. Run "make" in the folder containing the code
## Running
Get help by executing "USBswitch -h"If you've got just one SwitchBox connected, you can switch it by executing "USBswitch 0" for *off* or "USBswitch 1" for *on*.
If you've got multiple SwitchBoxes connected, you'll need to specify the serial number using the "-n " switch. One way to find the serial number is to run "USBswitch -d" to enumerate all SwitchBoxes and print debug information.