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

HID Telephony Usage on ios

Hello everybody,

i have crated an Report id for the telephony usage on iOS from here https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-247/IOHIDFamily/IOHIDUsageTables.h.auto.html.  

    static uint8_t report_map_data[] =
    {
                          // End Collection (Application)
  
        // Report ID 2: Advanced buttons
        0x05, 0x0B,                     // Usage Page (Telephony Devices)
        0x09, 0x01,                     // Usage (Phone)
        0xA1, 0x01,                     // Collection (Application)
        0x85, 0x02,                     //     Report Id (2)
        0x15, 0x00,                     //     Logical minimum (0)
        0x25, 0x01,                     //     Logical maximum (1)
        0x75, 0x01,                     //     Report Size (1)
        0x95, 0x01,                     //     Report Count (1)
        0x09, 0x20,                     //     Usage (HookSwitch)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)
        0x09, 0x23,                     //     Usage (Hold)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)
        0x09, 0x2F,                     //     Usage (PhoneMute)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)
        0x09, 0x06,                     //     Usage (Telephony Key Pad)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)   
        0x09, 0x50,                     //     Usage (SpeedDial)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)
        0x09, 0x52,                     //     Usage (RecallNumber)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)
        0x09, 0x51,                     //     Usage (StoreNumber)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)
        0x09, 0x53,                     //     Usage (PhoneDirectory)
        0x81, 0x02,                     //     Input (Data,Value,Relative,Bit Field)
        0xC0                               // End Collection  
    };
But the telephony usage dosent work? Have you got an idea? (NRF52832, SDK15, modified Keyboard example )
Regards Taner

Related