This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HID consumer page

{
0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
0x09, 0x01, // USAGE (Consumer Control)
0xa1, 0x01, // COLLECTION (Application)

0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
0x09, 0xE0, // USAGE (Volume)
0x15, 0xFF, // LOGICAL_MINIMUM (-1)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x75, 0x02, // REPORT_SIZE (2)
0x95, 0x01, // REPORT_COUNT (1)
0x81, 0x46, // INPUT (Data,Var,Abs,NPrf)

0x95, 0x01, // REPORT_COUNT (1)
0x75, 0x06, // REPORT_SIZE (6)
0x15, 0x01, // LOGICAL_MINIMUM (1)
0x25, 0x06, // LOGICAL_MAXIMUM (6)
//0x19, 0x01, // USAGE_MINIMUM (Consumer Control)
//0x2a, 0x08, 0x01, // USAGE_MAXIMUM (Police Alarm)
0x09, 0xCD,
0x09, 0xB7,
0x09, 0xB6,
0x09, 0xB5,
//0x09, 0xEA,
//0x09, 0xE9,

0x81, 0x00, // INPUT (Data,Ary,Abs)

0xc0 // END_COLLECTION
}

Why it did not work when I send the 0x01 or 0x03 to the iphone with my device? The device had paired with iphone; and i can get the music play/pause with the cmd of 0x40.

Related