Go to documentation repository
Page History
...
| Tip |
|---|
General information
The SL USBIO board is an interface device designed for integrating external sensors and actuators (relays) into video surveillance and fire alarm systems. The 4x4 and 16x8 boards are supported.
...
- Galvanic isolation: 1000 V for inputs/outputs.
- Connection interface: USB 2.0 (cable length up to 5 meters).
- Polling interval of alarm inputs: 250 ms for all contacts (not configurable).
- Power supply: USB port or external power supply (9-50 V, 500 mA).
- Additional features: Real-time clock and offline ROM for event logging.
Adding the board to Axxon One in Windows OS
In Windows OS, you can add the board to the Axxon One configuration in one of the following ways:
...
The board is added to the Axxon One configuration in Windows OS. The current state of the relay on the board is automatically displayed in the relay switch layout.
Adding the board to Axxon One in Linux OS
To add the board to the Axxon One configuration in Linux OS, do the following:
- Create the /sl_usb_io directory.
Code Block language bash sudo mkdir -p /sl_usb_io
- Go to the /sl_usb_io directory.
Code Block language bash cd /sl_usb_io
Download the the StreamLabs USB-IO.ziprar archive.
Unzip the archive to the /sl_usb_io folder.
- Clear previous builds and compile the driver:
Code Block language bash sudo make clean sudo make
- Open an additional console window in any directory. This window will be used for the monitoring of the driver debug messages.
- Run the monitoring of system messages.
Code Block language bash sudo dmesg -C sudo dmesg -w
- Upload the driver into the kernel.
Immediately after the driver is launched, messages about the registration of a new driver appear in the monitoring window. For example:Code Block language bash sudo insmod /sl_usb_io/sl_usb_io.ko
Code Block language bash usbcore: registered new interface driver sl_usb_io_driver
- Stop the driver.
Code Block language bash sudo rmmod sl_usb_io
- Configure automatic upload at system startup. Build the kernel module.
The sl_usb_io.ko kernel module appears in the folder. You can upload and stop it manually, but we recommend using the install_driver-1.sh script.Code Block language bash sudo make -f Makefile
- Place install_driver-1.sh in the same directory with sl_usb_io.ko.
- Set up automatic installation using the script.
Code Block language bash sudo sh install_driver.sh
- Reboot the system.
- Set access permissions using udev:
- Create a rule file.
Code Block language bash sudo touch /etc/udev/rules.d/50-slusbio.rules
- Edit the file.
Code Block language bash sudo nano /etc/udev/rules.d/50-slusbio.rules
- Add the following text to the file:
Code Block language bash SUBSYSTEM=="usbmisc", KERNEL=="sl_usb_io[0-9]", RUN+="/usr/bin/chmod a+rw $env{DEVNAME}" - Reload the udev rules.
All /dev/sl_usb_io* devices will be granted read and write permissions for all users. * is the serial number of the device. To automate the creation of the udev rule, you can run the the set_sl_rule.zip script script with superuser permissions:Code Block language bash sudo udevadm control --reload-rules sudo udevadm trigger
Code Block language bash sudo ./set_sl_rule.sh
- Create a rule file.
- Reboot the system.
Code Block language bash sudo reboot
- Check device detection.
Expected result:Code Block language bash ls /dev/sl_usb_io*
Code Block language bash /dev/sl_usb_io0
Info title Note - sl_usb_io0 is the first connected device.
- sl_usb_io1 is the second connected device, and so on.
- When only one device is connected, sl_usb_io0 is always used.
- sl_usb_io0 is the first connected device.
Launch the Axxon One client.
- In the Axxon One client, go to the Devices tab → Add device.
- In the Add device manually section:
- In the IP address parameter, enter the path to the descriptor in the form /dev/sl_usb_io*, where * is the index of the connected device.
- In the Device type parameter, select IP device from the drop-down list.
- In the Vendor parameter, select StreamLabs from the drop-down list.
- In the Model parameter, select USBIO-16/8 from the drop-down list.
- Click the button.
...
Overview
Content Tools