Difference between revisions of "ICStation USBRelay"

From sigrok
Jump to navigation Jump to search
(→‎Protocol: Add protocol description)
(→‎Protocol: Update)
Line 37: Line 37:
|-
|-
| valign="top" style="white-space=nowrap;" | '''0x50'''
| valign="top" style="white-space=nowrap;" | '''0x50'''
| '''Query the device type.'''
| '''Query the device model.'''


Response:
Response:
{| border="0" width="100%" style="margin: 0;" class="alternategrey"
{| border="0" width="100%" style="margin: 0;" class="alternategrey"
|-
|-
| style="width: 3em;" | 0xAB
| style="width: 3em;" | '''0xAB'''
| ICSE012A
| style="width: 6em;" | ICSE012A
| 4 relays
| 4 relay version
|-
|-
| 0xAD
| '''0xAD'''
| ICSE012A
| ICSE013A
| 2 relays
| 2 relay version
|-
|-
| 0xAC
| '''0xAC'''
| ICSE012A
| ICSE014A
| 8 relays
| 8 relay version
|}
|}


Line 59: Line 59:
| '''Start command mode.'''
| '''Start command mode.'''


Every following byte will be interpreted as a mask for switching the relays.
Every following byte will be interpreted as a mask for switching the relays:


|}
|}

Revision as of 13:48, 7 August 2021

ICStation USBRelay
ICStation ICSE012A-mugshot.png
Status in progress
Source code icstation-usbrelay
Channels 2, 4 or 8
Ratings 10A @ 250VAC/30VDC, 12A @ 125VAC/28VDC
Connectivity USB/Serial

The ICStation USBRelay is a USB relay card with up to 8 relays. Models with 2 (ICSE013A), 4 (ICSE012A) and 8 (ICSE014A) relays exist.

See Info for USB details.

Photos

Hardware

Protocol

The relay board have a very simple and limited protocol. Once entered the command mode, every following byte will be interpreted as a mask for switching the relays.

Byte Command
0x50 Query the device model.

Response:

0xAB ICSE012A 4 relay version
0xAD ICSE013A 2 relay version
0xAC ICSE014A 8 relay version
0x51 Start command mode.

Every following byte will be interpreted as a mask for switching the relays:

Example use

Detect the device and display its properties.

 $ sigrok-cli -d icstation-usbrelay:conn=/dev/ttyUSB0 --show
 Driver functions:
     Multiplexer
 Scan options:
     conn
     serialcomm
 icstation-usbrelay - ICStation ICSE012A
 Channel groups:
     R1: channel
     R2: channel
     R3: channel
     R4: channel
 Supported configuration options across all channel groups:
     enabled: on, off

Manipulate the state of relays.

 $ sigrok-cli -d icstation-usbrelay:conn=/dev/ttyUSB0 --config channel_group=R1:enabled=off --config channel_group=R2:enabled=on --set

Resources