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 1. HCI Packet Indicators
HCI Packet Type HCI Packet Indicator
HCI command packet 0x01
HCI ACL data packet 0x02
HCI synchronous data packet 0x03
HCI event packet 0x04
HCI ISO data packet 0x05

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 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 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 2. HCI Command Complete Event
Event Event Code Event Parameters
HCI_Command_Complete 0x0E
  • Num_HCI_Command_Packets
  • Command_Opcode
  • Return_Parameters