none
Keyboard HID over I2C on Win8 RRS feed

  • Question

  • Dear Sir:

        I am try to enumerate a Keyboard over HID over I2C on Win 8 system.

    The "Device manager" shows the HID Keyboard are work properly, And the

    acess between HOST and keyboard are work normal (Logic analyzer).

    But OS never recieve the keywords.

        I've to enumerate a mouse device , and it work , but keyboard isn't.

    could somebody give a hand.?

    Report Descriptor:(4 byte of keyboard report.)

    .DB 0x05, 0x01    ;USAGE_PAGE (Generic Desktop) 
    .DB 0x09, 0x06    ;  USAGE (Keyboard) 
    .DB 0xA1, 0x01    ;  COLLECTION (Application) 
    .DB 0x05, 0x07    ;    USAGE_PAGE (Keyboard) 
    .DB 0x19, 0x04    ;    USAGE_MINIMUM (Keyboard LeftControl) 
    .DB 0x29, 0x0B    ;    USAGE_MAXIMUM (Keyboard Right GUI) 
    .DB 0x15, 0x00    ;    LOGICAL_MINIMUM (0) 
    .DB 0x25, 0x01    ;    LOGICAL_MAXIMUM (1) 
    .DB 0x75, 0x01    ;    REPORT_SIZE (1) 
    .DB 0x95, 0x08    ;    REPORT_COUNT (8) 
    .DB 0x81, 0x02    ;    INPUT (Data,Var,Abs) 
    .DB 0x19, 0x00    ;    USAGE_MINIMUM (Keyboard LeftControl) 
    .DB 0x29, 0x7f    ;    USAGE_MAXIMUM (Keyboard Right GUI) 
    .DB 0x15, 0x00    ;    LOGICAL_MINIMUM (0) 
    .DB 0x25, 0x7f    ;    LOGICAL_MAXIMUM (127) 
    .DB 0x95, 0x02    ;    REPORT_COUNT (3) 
    .DB 0x75, 0x08    ;    REPORT_SIZE (8) 
    .DB 0x81, 0x00    ;    INPUT (Data,Ary,Abs) 
    .DB 0xC0          ;  END_COLLECTION 

    only 2 Report packets allowed:  (B0,B1:length ,B2~B5:keyboard data)

                B0 | B1 | B2 | B3 | B4 | B5

    pack1    06 | 00 | 00 | 00  | 00 | 00

    pack2    06 | 00 | 00 | 00  |07  | 05

    Thanks

    Joey

    Monday, October 29, 2012 8:39 AM

Answers