SWRA715 December   2021 CC2642R , CC2652R

 

  1.   Trademarks
  2. 1Introduction
  3. 2Bluetooth Low Energy Introduction
  4. 3HOGP Introduction
    1. 3.1 HID Roles
    2. 3.2 HID Host
    3. 3.3 HID Device
  5. 4Project Description and Walkthrough
    1. 4.1  General Project Discussion
    2. 4.2  Report Map Discussion
    3. 4.3  Hid_input struct/union Discussion
    4. 4.4  Mouse Operation
    5. 4.5  Keyboard Operation
    6. 4.6  Consumer Report Operation
    7. 4.7  Connection Interval
    8. 4.8  Notification System
    9. 4.9  PDU Size and Number of PDUs per Connection Event
    10. 4.10 Notification Payload Discussion
      1. 4.10.1 Mouse Notification
      2. 4.10.2 Keyboard Notification
      3. 4.10.3 Consumer Report Notification
    11. 4.11 Throughput Discussion
    12. 4.12 Overall Block Diagrams
  6. 5Demo Usage
    1. 5.1 Hardware/Software Used
    2. 5.2 Mouse Demo Usage
    3. 5.3 Keyboard and Consumer Report Demo Usage
  7. 6Summary

Keyboard Notification

The keyboard notifications have a payload that is comprised of 8 bytes. Each byte corresponds to a specific piece of HID keyboard input information. Table 4-2 describes what each byte of the keyboard notification payload corresponds to.

Table 4-2 Keyboard Notification Payload Fields
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
Modifier Key Reserved Keypress 1 Keypress 2 Keypress 3 Keypress 4 Keypress 5 Keypress 6

An example of a keyboard notification payload that is generated by this project is “00 00 50 00 00 00 00 00”, which would be parsed by the HID Host as shown in Figure 4-7.

GUID-20210610-CA0I-QC0M-KV8X-8HMLT3XRRDDL-low.png Figure 4-7 Parsed Keyboard Notification Payload

For more details on how the HOGP specification makes use of notification, see Chapter 4 HID Host Requirements and Behaviors and Chapter 5 Connection Establishment in the HOGP specification.