STATUS REPORT
A status report is an 8 byte report received by the host on the Input interrupt endpoint whenever the device changes state. When the host requests an interrupt packet and no status change report is pending, the unit will respond with a NAK reply. A status report can be made pending by the host by using the operational command RequestStatus.
Status report: byte open; byte alarm;
byte padding[6];
The open parameter will have a value of 1 or 0. A 1 indicates that the relay is powered open.
The alarm parameter is reserved for future development.
OPERATIONAL COMMANDS
Operation Command report: byte cmnd;
byte data[7];
OpenRelay cmnd = 0x01 parameters:
none
The relay is activated and the duration timer started.
CloseRelay cmnd = 0x02 parameters:
none
The relay is
OpenRelayDuration |
| |
cmnd = 0x03 |
|
|
parameters: |
|
|
byte | padding; |
|
32bit | duration; | // in 1/20 second increments |
The relay is activated and the duration timer started. However, the configured duration is overridden with the supplied duration. This command is useful to open the relay “indefinitely” by setting the duration parameter to a large value.
7