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

HID Android/Iphone

Hi, I have implemented a firmware that allows to bonding and connecting whit android and iOs; I have added the HID service and characteristics, if I press a button I can send a parameter 0xE9(with this parameter I should increment the volume in the android device) at the characteristic 2A4D, but the device volume doesn't increment... 1: I must send another parameter to another characteristic? 2: iOs HID parameters, are equals to Android parameters? Thanks Best regardes!

Parents
  • const uint8_t KeyboardReportMap[] = {
    0x05, 0x0C, // Usage Page (Consumer) 0x09, 0x01, // Usage (Consumer Control) 0xA1, 0x01, // Collection (Application)... ...0x09, 0xEA, // Usage (Volume Down) 0x81, 0x06, // Input (Data,Value,Relative,Bit Field) 0x09, 0xE9, // Usage (Volume Up) 0x81, 0x06, // Input (Data,Value,Relative,Bit Field) ...

    When i press the butto1 on nrf51 i do this: Hid.updateReport(0xE9, 0x00);

    The value is sent at the correct characteristic (2a4a), but the volume doesn't work

Reply
  • const uint8_t KeyboardReportMap[] = {
    0x05, 0x0C, // Usage Page (Consumer) 0x09, 0x01, // Usage (Consumer Control) 0xA1, 0x01, // Collection (Application)... ...0x09, 0xEA, // Usage (Volume Down) 0x81, 0x06, // Input (Data,Value,Relative,Bit Field) 0x09, 0xE9, // Usage (Volume Up) 0x81, 0x06, // Input (Data,Value,Relative,Bit Field) ...

    When i press the butto1 on nrf51 i do this: Hid.updateReport(0xE9, 0x00);

    The value is sent at the correct characteristic (2a4a), but the volume doesn't work

Children
No Data
Related