background image

 

 

HID USAGES 
 
HID devices send data in reports. Elements of data in a report are identified by unique 
identifiers called usages. The structure of the device’s reports and the device’s 
capabilities are reported to the host in a report descriptor. The host usually gets the 
report descriptor only once, right after the device is plugged in. The report descriptor 
usages identify the devices capabilities and report structures. For example, a device 
could be identified as a keyboard by analyzing the device’s report descriptor. Usages 
are four byte integers. The most significant two bytes are called the usage page and the 
least significant two bytes are called usage IDs. Usages that are related can share a 
common usage page. Usages can be standardized or they can be vendor defined. 
Standardized usages such as usages for mice and keyboards can be found in the HID 
Usage Tables document and can be downloaded free at 

www.usb.org

. Vendor defined 

usages must have a usage page in the range 0xff00 – 0xffff. All usages for this device 
use vendor defined relay controller usage page 0xff00. 
 
The usage IDs for this device are defined in the following table. The usage types are 
also listed. These usage types are defined in the HID Usage Tables document.  
 
Relay Controller usage page 0xff00:  

 

Usage ID  

(Hex)  

Usage Name  

Usage Type   Report Type  

1  

Relay Controller device  

Collection  

None  

Status 

Data 

Input 

2  

Operational commands  

Data  

Output  

3  

Configuration message  

Data  

Feature  

 
 

REPORT DESCRIPTOR  
 
The HID report descriptor is structured as follows:  
 

Item  

Value (Hex)  

Usage Page (Relay Controller) 

06 00 FF  

Usage (Relay Controller device)  

09 01  

Collection (Application)  

A1 01  

Globals 

 

Logical Minimum (0)  

15 00  

Logical Maximum (255)  

26 FF 00  

Report Size (8)  

75 08  

 

 

Input Report 

 

Usage (Status) 

09 01 

Report Count (8) 

95 08 

Input (Data, Variable, Absolute, Bitfield) 

81 02 

 

 

Содержание 1543

Страница 1: ...1 RINGDALE USB UNIVERSAL SERIAL BUS HID RELAY CONTROLLER 1543 TECHNICAL REFERENCE MANUAL Rev 1 0 April 2006 Copyright 2006 Ringdale Inc Printed in the United States of America ...

Страница 2: ...mitted in any form or by any means electronic or mechanical for any purpose without the express written permission of Ringdale Inc Ringdale is a registered trademark of Ringdale Inc USB Universal Serial Bus Specification is Copyright 1998 by Compaq Computer Corporation Intel Corporation Microsoft Corporation NEC Corporation ...

Страница 3: ...e specifications can be downloaded free from www usb org This is a full speed USB device This device has a number of programmable configuration properties These properties are stored in non volatile EEPROM memory These properties can be configured at the factory or by the end user More details about these properties can be found later in this document in the command section The device does not sup...

Страница 4: ...iptorType Interface 04 bInterfaceNumber 00 bAlternateSetting 00 bNumberEndpoints 02 bInterfaceClass 03 bInterfaceSubClass 00 bInterfaceProtocol 00 iInterface 00 bLength 09 bDescriptorType HID 21 HID Class Spec release 1 11 0111 Target Country 00 No of HID Class Descriptors 01 Report Descriptor Type 22 wDescriptorLength 21 bLength 07 bDescriptorType Endpoint 05 bEndpoiuntAddress 81 bmAttributes Int...

Страница 5: ...es for mice and keyboards can be found in the HID Usage Tables document and can be downloaded free at www usb org Vendor defined usages must have a usage page in the range 0xff00 0xffff All usages for this device use vendor defined relay controller usage page 0xff00 The usage IDs for this device are defined in the following table The usage types are also listed These usage types are defined in the...

Страница 6: ...e reserved1 write 0 byte configbits byte reserved2 write 0 32bit duration in 1 20 sec increments configbits bit 7 Dev2 0 No SPP 1 SPP side pressure pulsing 6 Dev1 0 No SPP 1 SPP side pressure pulsing 5 Dev1 0 Pulsed 1 Standard 4 Dev1 0 PTO Fail Closed 1 PTC Fail Open 3 Dev2 0 Bolt 1 Strike 2 Dev1 0 Bolt 1 Strike 1 Dev2 0 PTO Fail Closed 1 PTC Fail Open 0 Dev2 0 Pulsed 1 Standard The configbits par...

Страница 7: ...s 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 de activated and the duration timer dismissed OpenRelayDuration cmnd 0x03 parameters byte padding 32bit ...

Страница 8: ...8 RequestStatus cmnd 0x04 parameters none The device will respond to the next In interrupt pipe request with a status report ...

Отзывы: