3 EEPROM Operation Command and EEPROM Operation Event

The EEPROM operation command is packed into the HCI command packet, and the E2PROM operation event is packed into the HCI event packet. For more details, see the following table from Bluetooth Core Specification v5.2 (Core_v5.2).

Table 3-1. HCI Packet Indicators
HCI Packet TypeHCI Packet Indicator
HCI command packet0x01
HCI ACL data packet0x02
HCI synchronous data packet0x03
HCI event packet0x04
HCI ISO data packet0x05

The EEPROM command packet always starts with 0x01. The following figure illustrates the rest of the HCI command from the Core_v5.2. The OpCode has a 16-bit length, where the OpCode Command Field (OCF) combines each OpCode in the lower 10 bits and the OpCode Group Field (OGF) in the upper 6 bits.

Note: This application note defines the OpCode for the EEPROM operation.
Figure 3-1. HCI Command Packet

The EEPROM event packet always starts with 0x04. The following figure illustrates the E2PROM event = 0x04, along with the rest of the HCI event packet from the Core_v5.2.

Figure 3-2. HCI Event Packet

The EEPROM event is packed in the HCI_Command_Complete event with the event code set to 0x0E. For more details, refer to Section 7.7.14 from the Bluetooth Core Specification v5.2.

Table 3-2 3-3. HCI Command Complete Event
EventEvent CodeEvent Parameters
HCI_Command_Complete0x0E
  • Num_HCI_Command_Packets
  • Command_Opcode
  • Return_Parameters