DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 DOC101699-1 Touch_Keypad_Access Page 1 of 12 Hatteland Display AS, Åmsosen, N-5578 Nedre Vats, Norway Tel: (+47) 4814 2200 - mail@hatteland-display.com - www.hatteland-display.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 INDEX INDEX .......................................................................................................................................... 2 Revision History ............................................................................................................................ 3 Abbreviation...........................................................
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 Revision History Created Approved Rev Date By Date By Description 1 2013.12.04 Wei Jing 2013-12-16 André Kråkenes Preliminary Document 2 2014.01.17 Wei Jing 2014-02-17 André Kråkenes Update Firmware info for all types of 8” and 13”.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 1 Introduction Commonly, USB HID device communicate with OS by transfer formatted message. The message could be pre-defined by device manufacturer or universal standard. By profiling the message, the user application could monitor the action performed on HID device.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 2 Access HID Touch Keypad The provided demo application is using a 3rd part open source library “HIDAPI” to access the HID touch pad. This chapter will describe the HID device access steps with the reference of HIDAPI. Claim: HIDAPI is introduced as a reference tool for HID device access.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 2.2 Allocate HD Touch Keypad Device with HIDAPI HD Touch Keypad is mounted as a USB-HID device in operating system with the generic Windows Drivers. It can be found under “Human Interface Devices” in Device manager with a device name “HID-compliant device”.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 HIDAPI provides a API “hid_enumerate” which gets all the HID device path in system.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 3 HID Touch Keypad Message HID device establishes the communication protocol in the format of “Packet”. The packet is described with the information of size, valid report id and values. The packet description is stored in HID device firmware. In HD touch keypad, any operations on button will activate a report packet sent from touch controller to HID driver in OS.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 4 Demo Application The demo application is developed by Hatteland Display as a reference tool for Touch Keypad access. It has dependency with HD_AIPC_IPC_API and HIDAPI. 4.1 Preparation 1. Install Hatteland_Driver_Setup_AIPC-x.xxxx.exe (For AIPC) or Hatteland_Driver_Setup_IPCx.x.xxx.exe(for IPC) 2. Install vcredist_x86.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 3. Press ‘+’ and ‘-’ buttons, the screen brightness will be changed accordingly. Page 10 of 12 Hatteland Display AS, Åmsosen, N-5578 Nedre Vats, Norway Tel: (+47) 4814 2200 - mail@hatteland-display.com - www.hatteland-display.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 5 Appendix The code is to describe the simple procedure of accessing HID device via HIDAPI only. Not compliable.
DOC101699-1_Touch_Keypad_Access All intellectual properties belongs to Hatteland Display AS DOC101699-1- rev 02 -2014-01-17 - Created by:6644 } else { if((buf[1]!=0x04) || (buf[2]!=0x36) || (buf[3]!=0x2F)) { printf("Error in Report Message!\n") } else { switch(buf[4]) { case 0x81: printf("Down "); break; case 0x80: printf("Up "); break; default: printf("Unknown Action ") break; } switch(buf[5]) { case 0x00: printf("BRT-\n"); break; case 0x01: printf("Power\n"); break; case 0x02: printf("BRT+\n"); break; d