Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width45%50%
Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn this page:

Table of Contents


Column



Tip

General information

The The SL USBIO board is a an interface device designed for interfacing with integrating external sensors and external actuators (relays) as part of into video surveillance and fire alarm systems.

Key technical specifications:

  • 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 You can add the SL USBIO board to the Axxon One configuration in one of the following ways:

  1. Using automatic device search (see Automatic search for see Searching, adding, configuring and removing IP devices). All available devices will be displayed in the search results.Do the following:
    1. In the Axxon One client, go to the Devices tab Add device.
    2. In the Add device section:
      1. Click the Search button. Axxon One performs the search, and all available devices, including SL USBIO boards, are displayed in the Devices found (n) list.
      2. Select the found SL USBIO board.
      3. Click the Image Added button. 
  2. Manually. Do the 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:

    1. Open the Windows Device Manager.

    2. Go to the USB Controllers tab.

    3. 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.

    4. Right-click on the device and select .

    5. Select PropertiesDetails

    6. tab →
    7.  → Hardware IDs.

    8. Find the VID/PID values.

    9. Run the WinObj utility utility.

    10. Open the GLOBAL?? folder.
    11. Find the string with the required USB device by the PID value. 

...

    1.  You will receive two types of USB address, any of which can be used to connect the board

...

    1. to Axxon One, for example:

      • \\?\USB#VID_13C0&PID_0070#5&521a615&0&10#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
      • \\.\GLOBALROOT\Device\USBPDO-1

To add the board, do the following:

    1. Click on the Add device link located at the end of the Server device list (see Searching, adding, configuring and removing IP devices).
    2. In the Add device manually section, select VendorStreamLabs, and ModelUSBIO-16/8.

    3. In the IP address field, specify any of the received addresses.

    4. Click on the Image Removed button to add the board.

The SL USBIO board is added to Axxon One.

    1. In the Axxon One client, go to the Devices tab Add device.
    2. In the Add device manually section:
      1. In the IP address parameter, enter one of the received USB addresses.
      2. In the Device type parameter, select IP device from the drop-down list.
      3. In the Vendor parameter, select StreamLabs from the drop-down list.
      4. In the Model parameter, select USBIO-16/8 from the drop-down list.
      5. Click the Image Added button.

The board is added to the Axxon One configuration in Windows OS. The 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.

Adding the board to Axxon One in Linux OS

To add the SL USBIO board to the Axxon One configuration in Linux OS, do the following:

  1. Create the /sl_usb_io directory.
    Code Block
    languagebash
    sudo mkdir -p /sl_usb_io
  2. Go to the /sl_usb_io directory.
    Code Block
    languagebash
    cd /sl_usb_io
  3. Download the

  4. archive and unzip the contents into one folder.

    Build the driver:

  5. StreamLabs USB-IO.zip archive.

  6. Unzip the archive to

  7. Open the console window in
  8. the /sl_usb_io

  9. directory
  10. folder.

  11. Rebuild
  12. Clear previous builds and compile the driver
  13. using the commands
  14. :
    Code Block
    languagebash
    sudo make clean
    sudo make
  15. Open an additional console window in any directory. This window will be used for the monitoring of the driver debug message monitoringmessages.
  16. Run the monitoring
  17. using commands:
  18. of system messages.
    Code Block
    languagebash
    sudo dmesg -C
    sudo dmesg -w
  19. Run Upload the driver using into the command:kernel.
    Code Block
    languagebash
    sudo insmod
    "path
     
    to"
    /sl_usb_io/sl_usb_io.ko
    Immediately after the driver is launched, messages about the registration of a new driver will appear in the monitoring window. For example:
    Code Block
    languagebash
    usbcore: registered new interface driver sl_usb_io_driver
  20. To stop Stop the driver, run the command:.
    Code Block
    languagebash
    sudo rmmod 
    "path to"/
    sl_usb_io
    /sl_usb_io.ko
  21. Configure automatic upload at system startup. Build the kernel module.Build the board kernel module using the command:
    Code Block
    languagebash
    sudo make -f Makefile
    The sl_usb_io.ko kernel module will appear appears in the folder. It You can be loaded upload and unloaded stop it manually, but it is recommended to use the we recommend using the install_driver-1.sh script to automatically load the module when the system starts. To do this, place the .
  22. Place install_driver-1.sh
  23. file
  24. in the same directory
  25. as
  26. with sl_usb_io.ko
  27. and run the command:
  28. .
  29. Set up automatic installation using the script.
    Code Block
    languagebash
    sudo sh install_driver.sh
  30. Reboot the system.
  31. Launch the Axxon One Client.

  32. Add the SL USBIO device by selecting VendorStreamLabs, and ModelUSBIO-16/8.
  33. In the IP address field, specify the path to the descriptor in the format /dev/sl_usb_io0, where 0 is the index of the first connected device. Next devices will have indexes 1, 2, and so on.
    Info
    titleNote
    • To check if the device is connected, run the command:
      Code Block
      languagebash
      sudo ls /dev
    • If only one device is connected, you can specify the path to the descriptor in the format /dev/sl_usb_io0.
  34. Click on the Image Removed button to add the board.

The SL USBIO board is added to Axxon One in Linux OS.

...

  1. Set access permissions using udev:
    1. Create a rule file
  2. using the command:
    1. .
      Code Block
      languagebash
      sudo touch /etc/udev/rules.d/50-slusbio.rules
  3. Open file using command:
    1. Edit the file.
      Code Block
      languagebash
      sudo nano /etc/udev/rules.d/50-slusbio.rules
    2. Add the following text to the file:
      Code Block
      languagebash
      SUBSYSTEM=="usbmisc", KERNEL=="sl_usb_io[0-9]", RUN+="/usr/bin/chmod a+rw $env{DEVNAME}"
    3. Reload the
  4. rule using the command:
    1. udev rules.
      Code Block
      languagebash
      sudo udevadm control --reload-rules

...

    1. 
      sudo udevadm trigger
      All /dev/sl_usb_

...

    1. io* devices will be granted read and write permissions

...

titleNote
    1. for all users. * is the serial number of the device. To automate the creation of

...

    1. the udev rule, you can run the set_sl_rule.zip script with superuser

...

    1. permissions:
      Code Block
      languagebash
      sudo ./set_sl_rule.sh
  1. Reboot the system.
    Code Block
    languagebash
    sudo reboot
  2. Check device detection.
    Code Block
    languagebash
    ls /dev/sl_usb_io*
    Expected result:
    Code Block
    languagebash
    /dev/sl_usb_io0

    Info
    titleNote
    • 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.
  3. Launch the Axxon One client.

  4. In the Axxon One client, go to the Devices tab Add device.
  5. In the Add device manually section:
    1. 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.
    2. In the Device type parameter, select IP device from the drop-down list.
    3. In the Vendor parameter, select StreamLabs from the drop-down list.
    4. In the Model parameter, select USBIO-16/8 from the drop-down list.
    5. Click the Image Added button.

The board is added to the Axxon One configuration in Linux OS. The current state of the relay on the board is automatically displayed in the relay switch layout.

Problem diagnostics:

  • Check uploaded kernel modules:
    Code Block
    languagebash
    lsmod | grep sl_usb_io
  • View system messages:
    Code Block
    languagebash
    dmesg | grep sl_usb_io
  • Check access permissions:
    Code Block
    languagebash
    ls -la /dev/sl_usb_io0