Difference between revisions of "Dcttech usbrelay"

From sigrok
Jump to navigation Jump to search
m (info page link nit)
(illustrate USB relay command line use)
Line 20: Line 20:
File:dcttech_usbrelay_mugshot.png|<small>Device, top</small>
File:dcttech_usbrelay_mugshot.png|<small>Device, top</small>
</gallery>
</gallery>
== Example use ==
Detect the device and display its properties.
<small>
  $ '''sigrok-cli -d dcttech-usbrelay --scan'''
  The following devices were found:
  dcttech-usbrelay:conn=/dev/hidraw2 - www.dcttech.com USBRelay4 [S/N: 12345]
  $ '''sigrok-cli -d dcttech-usbrelay --show'''
  Driver functions:
      Multiplexer
  Scan options:
      conn
  dcttech-usbrelay:conn=/dev/hidraw2 - www.dcttech.com USBRelay4 [S/N: 12345]
  Channel groups:
      R1: channel
      R2: channel
      R3: channel
      R4: channel
  Supported configuration options across all channel groups:
      conn: /dev/hidraw2 (current)
      enabled: on, off
</small>
Display the relay state.
<small>
  $ '''sigrok-cli -d dcttech-usbrelay --get channel_group=R1:enabled --get channel_group=R2:enabled --get channel_group=R3:enabled --get channel_group=R4:enabled'''
  true
  false
  false
  true
</small>
Manipulate the state of relays.
<small>
  $ '''sigrok-cli -d dcttech-usbrelay --config channel_group=R1:enabled=off --config channel_group=R2:enabled=on --set'''
</small>


== Resources ==
== Resources ==

Revision as of 06:46, 22 July 2021

dcttech.com USBRelay<n>
Dcttech usbrelay mugshot.png
Status supported
Source code dcttech-usbrelay
Channels up to 8
Ratings {{{ratings}}}
Connectivity USB HID

The dcttech.com USBRelay<n> is a USB relay card with up to 8 relays (models with 1, 2, 4, or 8 relays exist). The firmware is based on V-USB and presents itself as USB HID to the PC (so that no driver installation is required on Windows).

See Info for USB details.

Photos

Example use

Detect the device and display its properties.

 $ sigrok-cli -d dcttech-usbrelay --scan
 The following devices were found:
 dcttech-usbrelay:conn=/dev/hidraw2 - www.dcttech.com USBRelay4 [S/N: 12345]
 $ sigrok-cli -d dcttech-usbrelay --show
 Driver functions:
     Multiplexer
 Scan options:
     conn
 dcttech-usbrelay:conn=/dev/hidraw2 - www.dcttech.com USBRelay4 [S/N: 12345]
 Channel groups:
     R1: channel
     R2: channel
     R3: channel
     R4: channel
 Supported configuration options across all channel groups:
     conn: /dev/hidraw2 (current)
     enabled: on, off

Display the relay state.

 $ sigrok-cli -d dcttech-usbrelay --get channel_group=R1:enabled --get channel_group=R2:enabled --get channel_group=R3:enabled --get channel_group=R4:enabled
 true
 false
 false
 true

Manipulate the state of relays.

 $ sigrok-cli -d dcttech-usbrelay --config channel_group=R1:enabled=off --config channel_group=R2:enabled=on --set

Resources

  • V-USB project page, software bitbanging USB for AVR controllers that don't have native USB hardware support
  • product description and source code repo of a private project that is not related to the vendor, implements OpenSource libraries and CLI and GUI applications to control these cards