SainSmart 16 Channel Controller

  • Interface Name

    sainsmart-usb

  • Supported Since

    V2.0.0-pr.2

  • Sensor Communication Protocol

    USB

  • PolySync Sensor Type

    340

  • PolySync Configuration

    * [Define the node](https://help.polysync.io/releases/2.0.7//articles/add-a-sensor-node/) in the SDF Configurator
    * [Run the Dynamic Driver interface](https://help.polysync.io/releases/2.0.7//articles/manually-startin…fined-in-the-sdf/)

  • Driver Notes

    Supported command line arguments:
    * -t
    * Perform a validation test on the SainSmart 16 channel USB controller interface [optional].
    * *WARNING* validation test activates and deactivates all switches, power will be cycled on all devices connected during test

    * Only one sensor is supported per ECU/machine
    * Overrides can be set to turn all relays on, or set to turn all relays off
    * When either override is enabled the SDF values for channel off/on are ignored
    * No input or output PolySync message types, the interface communicates directly with the device to toggle relays on and off
    * To replay logged sessions, the sainsmart node must first be disabled in the SDF Configurator

  • Sensor Configuration Parameters

    Parameter ID Description Value Type Values Notes
    N/A N/A N/A N/A

    N/A

  • IO Configuration Parameters

    Parameter ID Description Value Type Values Notes
    N/A N/A N/A N/A

    N/A

  • Node Configuration Parameters

    Parameter ID Description Value Type Values Notes
    4434 Override Enabled State. False: 0, True all on: 1, True all off: 2 1 0
    4435 All channels off when driver exits 1 1
    4417 Name of Channel 1 4 Channel 1
    4401 Channel 1 Enabled (true: 1, false: 0) 1 0
    4418 Name of Channel 2 4 Channel 2
    4402 Channel 2 Enabled (true: 1, false: 0) 1 0
    4419 Name of Channel 3 4 Channel 4
    4403 Channel 3 Enabled (true: 1, false: 0) 1 0
    4420 Name of Channel 4 4 Channel 4
    4404 Channel 4 Enabled (true: 1, false: 0) 1 0
    4421 Name of Channel 5 4 Channel 5
    4405 Channel 5 Enabled (true: 1, false: 0) 1 0
    4422 Name of Channel 6 4 Channel 6
    4406 Channel 6 Enabled (true: 1, false: 0) 1 0
    4423 Name of Channel 7 4 Channel 7
    4407 Channel 7 Enabled (true: 1, false: 0) 1 0
    4424 Name of Channel 8 4 Channel 8
    4408 Channel 8 Enabled (true: 1, false: 0) 1 0
    4425 Name of Channel 9 1 0
    4409 Channel 9 Enabled (true: 1, false: 0) 4 Channel 9
    4426 Name of Channel 10 4 Channel 10
    4410 Channel 10 Enabled (true: 1, false: 0) 1 0
    4427 Name of Channel 11 4 Channel 11
    4411 Channel 11 Enabled (true: 1, false: 0) 1 0
    4428 Name of Channel 12 4 Channel 12
    4412 Channel 12 Enabled (true: 1, false: 0) 1 0
    4429 Name of Channel 13 4 Channel 13
    4413 Channel 13 Enabled (true: 1, false: 0) 1 0
    4430 Name of Channel 14 4 Channel 14
    4414 Channel 14 Enabled (true: 1, false: 0) 1 0
    4431 Name of Channel 15 4 Channel 15
    4415 Channel 15 Enabled (true: 1, false: 0) 1 0
    4432 Name of Channel 16 4 Channel 16
    4416 Channel 16 Enabled (true: 1, false: 0) 1 0
    4400 USB vendor ID 1 1046
    4433 USB product ID 1 20512
    42 PolySync-Abstraction-Layer Interface File Name 4 /usr/local/polysync/lib/libps_sainsmart_usb_interface.so
    40 Executable File Path 4 /usb/local/polysync/bin/polysync-dynamic-driver
  • Sensor Notes

    **Test Interface**

    The test interface will enable each channel and it’s LED in sequence then disable each channel in sequence. You can also hear two sets of audible clicks.

    “`bash
    $ dynamic-driver -n 1 -o -t
    “`

    Note the command above assumes that you have already defined the SainSmart 16-Channel USB driver interface with the PolySync SDF Configurator, and it has key ‘1’.