The SL USBIO board is a device for interfacing with external sensors and external actuators (relays) as part of video surveillance and fire alarm systems.
You can add the SL USBIO board to Axxon One in one of the following ways:
Manually. To do this, you need to know the USB address of the board. The address can be determined using the WinObj utility. To obtain the USB address, do the following:
Open the Device Manager.
Go to the USB Controllers tab.
Find the Stream Labs USB-IO 16|8OWDint device. If it is not listed, make sure that the board is inserted into the computer's motherboard and recognized by the system.
Right-click on the device and select Properties → Details tab → Hardware IDs.
Find the VID/PID values.
Run the WinObj utility.
Open the GLOBAL?? folder.
Find the string with the required USB device by the PID value.
As a result, you will receive two types of USB address, any of which can be used to connect the board to Axxon One, for example:
To add the board, do the following:
In the Add device manually section, select Vendor → StreamLabs, and Model → USBIO-16/8.
In the IP address field, specify any of the received addresses.
Click on the button to add the board.
The SL USBIO board is added to Axxon One.
When a board is added to the Axxon One configuration, the current state of the relay on the board is read. This state is automatically displayed in the relay switch layout.
To add the SL USBIO board to Axxon One in Linux OS, do the following:
Download the archive and unzip the contents into one folder.
Build the driver:
Open the console window in the /sl_usb_io directory.
Rebuild the driver using the commands:
make clean make |
sudo dmesg -C sudo dmesg -w |
sudo insmod "path to"/sl_usb_io/sl_usb_io.ko |
usbcore: registered new interface driver sl_usb_io_driver |
sudo rmmod "path to"/sl_usb_io/sl_usb_io.ko |
make -f Makefile |
sudo sh install_driver.sh |
Launch the Axxon One Client.
|
The SL USBIO board is added to Axxon One in Linux OS.
You can also create an udev rule to automatically assign permissions. To do this:
sudo touch /etc/udev/rules.d/50-slusbio.rules |
sudo nano /etc/udev/rules.d/50-slusbio.rules |
SUBSYSTEM=="usbmisc", KERNEL=="sl_usb_io[0-9]", RUN+="/usr/bin/chmod a+rw $env{DEVNAME}" |
sudo udevadm control --reload-rules |
As a result, all /dev/sl_usb_ioX files (X corresponds to the order number) will automatically receive read and write permissions.
To automate the creation of an udev rule, you can run the script with superuser rights:
|