Large supermarkets can have thousands or even tens of thousands of electronic shelf labels (ESLs). Stores need to update prices quickly while expecting each battery-powered label to operate for years. Traditional ESL systems often use proprietary wireless protocols. This can tie access points, labels, and backends to a single vendor, raising costs and limiting hardware choices.

The Bluetooth SIG’s Electronic Shelf Label Profile (ESL Profile) defines a standardized device model, addressing scheme, commands, and security mechanisms for electronic shelf labels. It combines Generic Attribute Profile (GATT) connections for device setup with Periodic Advertising with Responses (PAwR) for low-power group communication.
Espressif’s ESP-IoT-Solution is an open-source collection of components and examples for ESP-based IoT products. It includes an ESL Service, an ESL Profile, and access point (AP) and tag examples. This article explains how these components work together and how developers can use them to build ESL products.
The ESL Profile defines standardized device behavior using Bluetooth LE capabilities such as PAwR. Availability depends on the target chip and ESP-IDF version. This article refers to the current Bluetooth LE ESL examples in esp-iot-solution.
In This Article#
The article moves from the problem ESL solves to how the protocol works and how to evaluate it on Espressif chips:
| Section | Key question |
|---|---|
| What Bluetooth ESL Solves | Why do shelf labels need a standardized profile? |
| System Components and Data Paths | How do the backend, AP, and tag work together, and what are the roles of the connection and PAwR paths? |
| How PAwR Serves Large Numbers of Tags | How are subevents, groups, and response slots scheduled? |
| Electronic Shelf Label Service | Which GATT attributes and device capabilities does a tag expose? |
| ESL Examples in esp-iot-solution | Which protocol and application modules does Espressif provide? |
| ESL Tag Software Architecture | How are commands, object transfer, peripherals, and state feedback organized? |
| Device Lifecycle and Operations | How does a tag associate, synchronize, receive commands, and update images? |
| Persistence and Recovery | How do the AP and tag recover from restarts or connection loss? |
| Try the esp-iot-solution ESL Examples | How can you evaluate ESL with ESP32 development boards? |
What Bluetooth ESL Solves#
Bluetooth ESL offers the following capabilities:
- Standardization and interoperability: Standard characteristics, commands, and error codes help devices from different vendors work together.
- Large logical address space: A 7-bit Group ID and an 8-bit ESL ID provide up to 128 groups with 255 unicast addresses each: a theoretical address space of 32,640 tags.
- Bidirectional one-to-many communication: An AP sends commands to tags in a group over PAwR. Individually addressed tags can reply in dynamically assigned response slots.
- Low-power synchronized scheduling: A synchronized tag wakes around its assigned PAwR subevent to receive commands, without maintaining a long-lived Bluetooth LE connection or scanning continuously.
- Standard device control: Commands can display stored images, refresh a display, control LEDs, read supported sensors, and query device status.
- Secure communication: Devices use a protected connection for configuration and key distribution. PAwR data uses Encrypted Advertising Data (EAD) for encryption and message authentication. Proper key management and protocol mechanisms also help reduce replay risks.
Capacity note: The 32,640 figure is a logical addressing limit, not a verified capacity for one AP. Practical capacity depends on update frequency, latency goals, radio frequency (RF) conditions, PAwR parameters, and available system resources.
System Components and Data Paths#
A typical Bluetooth ESL system has three parts:
- Backend or mobile app: Manages product information, prices, promotions, and device assets.
- Access point (AP): Discovers and associates devices, transfers images, schedules commands, and reports status to the backend.
- ESL tag: Displays product information, controls LEDs, optionally reads sensors, and wakes on a schedule to reduce power consumption.
The AP uses the Object Transfer Service (OTS) to transfer images and Periodic Advertising Sync Transfer (PAST) to provide synchronization information. Over a secured Bluetooth LE connection, configuration and OTS control use GATT, image contents use an L2CAP connection-oriented channel (L2CAP CoC), and PAST transfers synchronization information through a Link Layer procedure over the asynchronous connection-oriented link (ACL). The diagram below shows how the components work together:
flowchart TB
BACKEND[Backend or mobile app] -->|content and device tasks| AP[Access Point]
AP -->|secured Bluetooth LE connection
GATT configuration and OTS control
L2CAP CoC image data
PAST synchronization transfer| TAG[ESL Tag]
AP <-->|PAwR + EAD
commands and responses| TAG
TAG -->|drive and sample| DEVICE[Display / LED / Sensor]
AP -->|result and inventory| BACKEND
Bluetooth ESL combines two communication paths according to the type of data being exchanged.
| Data path | Main purpose | Typical data | Characteristics |
|---|---|---|---|
| Secured Bluetooth LE connection | Association, reconfiguration, synchronization transfer, and image transfer | GATT: address, key material, time, capabilities, and OTS control; L2CAP CoC: image contents; PAST: synchronization information | Point-to-point connection; suitable for configuring one device at a time |
| PAwR + EAD | Routine control after association | Ping, image changes, display refresh, LED control, sensor reads, and status responses | Bidirectional one-to-many communication, low power, and scalability |
The connection path handles per-device configuration and larger transfers that require reliable delivery. PAwR handles frequent, short control messages after association. This lets the system transfer images separately from routine control commands, helping the AP schedule large transfers and group updates according to the available radio resources. The association and image update flows are covered in Device Lifecycle and Operations.
How PAwR Serves Large Numbers of Tags#
Periodic advertising lets an AP broadcast data, but it does not provide scheduled response slots for tags. PAwR adds subevents and response slots, allowing tags to reply at scheduled times.
flowchart LR
E[PAwR Event] --> S0[Subevent 0]
E --> S1[Subevent 1]
E --> SN[Subevent N]
S0 --> R00[Response Slot 0]
S0 --> R01[Response Slot 1]
S1 --> R10[Response Slot 0]
S1 --> R11[Response Slot 1]
SN --> RN0[Response Slots]
The AP is the PAwR advertiser. Once synchronized to its schedule, a tag listens to the subevent corresponding to its Group ID and selects a response slot according to the profile rules. This reduces time spent receiving unrelated traffic and organizes responses from multiple tags.
PAwR supplies the transport and scheduling mechanism; the ESL Profile defines the contents, addressing, commands, and responses carried in those windows. Response slots help manage collisions but cannot guarantee collision-free or loss-free operation in every RF environment. Tags do not have permanently assigned response slots. A tag’s response slot depends on the position of its last individually addressed command in the PAwR packet. The AP can schedule responses by arranging commands and configuring slots. Tags do not reply to group broadcast commands.
A PAwR Timing Example#
The following calculation uses the current default configuration of the esp-iot-solution AP example to illustrate the timing. These are example values for evaluation, not fixed Bluetooth ESL parameters. Products should choose values based on tag count, update rate, RF conditions, and power targets.
| Parameter | Example configuration | Result |
|---|---|---|
| Periodic Advertising Interval | 320 × 1.25 ms | 400 ms |
| Number of Subevents | 4 | 4 subevents |
| Subevent Interval | 0x50 × 1.25 ms | 100 ms |
| Response Slot Delay | 0x28 × 1.25 ms | 50 ms |
| Response Slot Spacing | 0x50 × 0.125 ms | 10 ms |
| Response Slot Count | 3 | 3 slots per subevent |
Suppose the AP sends one unicast Ping requiring a response in a subevent, as the first type-length-value (TLV) element, TLV_1, in the ESL Payload. The last command individually addressed to a tag at position N maps to response slot N - 1, so this tag uses slot 0. Ignoring packet transmission time, the response point is approximately:
Subevent start + Response Slot Delay + Slot Index × Response Slot Spacing
= 0 ms + 50 ms + 0 × 10 ms
= 50 msIf the last command individually addressed to the target tag is TLV_3, it maps to slot 2 and the response point is approximately 50 ms + 2 × 10 ms = 70 ms. The Group ID determines the subevent a tag listens to. With this configuration, the starts of the subevents for groups 0–3 are approximately 100 ms apart, so group 3’s slot 0 is approximately 350 ms from the start of the PAwR event.
This is a protocol timing calculation, not the end-to-end latency seen by a phone or backend. Actual latency also includes AP queuing, waiting for the next PAwR event, controller scheduling, retransmissions, and application processing. The profile asks the AP to choose parameters that provide sufficient response slots; it does not require fixed timing values for every installation.
Electronic Shelf Label Service#
An ESL tag acts as a GATT server and exposes the Electronic Shelf Label Service, with the standard 16-bit UUID 0x1857.
| Characteristic | UUID | Purpose |
|---|---|---|
| ESL Address | 0x2BF6 | Stores the logical address consisting of Group ID and ESL ID |
| AP Sync Key Material | 0x2BF7 | Encrypts and authenticates AP-to-tag ESL payloads carried over PAwR |
| ESL Response Key Material | 0x2BF8 | Protects tag responses |
| ESL Current Absolute Time | 0x2BF9 | Establishes an absolute time reference |
| ESL Display Information | 0x2BFA | Describes display count, dimensions, and type |
| ESL Image Information | 0x2BFB | Describes image storage capacity |
| ESL Sensor Information | 0x2BFC | Describes available sensors |
| ESL LED Information | 0x2BFD | Describes LED capabilities |
| ESL Control Point | 0x2BFE | Carries ESL commands and responses while connected |
Capability information should reflect the actual hardware. For example, devices using the same profile can have displays of different sizes and colors, with or without LEDs or sensors. The AP reads these capabilities to determine the image format and available controls.
Characteristic Properties and Access Security#
The following table is based on Table 3.1 of the Bluetooth SIG’s Electronic Shelf Label Service 1.0.1. M means mandatory; C.1–C.3 are conditional requirements based on device capabilities, rather than optional choices.
| Characteristic | Requirement | GATT properties | Security permission |
|---|---|---|---|
| ESL Address | M | Write | Encryption required |
| AP Sync Key Material | M | Write | Encryption required |
| ESL Response Key Material | M | Write | Encryption required |
| ESL Current Absolute Time | M | Write | Encryption required |
| ESL Display Information | C.1: Mandatory with one or more displays; otherwise excluded | Read | Encryption required |
| ESL Image Information | C.1: Mandatory with one or more displays; otherwise excluded | Read | Encryption required |
| ESL Sensor Information | C.2: Mandatory with one or more sensors; otherwise excluded | Read | Encryption required |
| ESL LED Information | C.3: Mandatory with one or more LEDs; otherwise excluded | Read | Encryption required |
| ESL Control Point | M | Write Without Response, Write, Notify | Encryption required |
The specification defines no additional optional properties for these characteristics. For the ESL Control Point, the client writes commands using Write or Write Without Response, and the server returns responses using Notify, not Indicate. Encryption required is the minimum security permission specified by the service for the corresponding access. Association also requires a secure connection and bonding as specified by the ESL Profile; link encryption alone is not a complete device authorization strategy.
ESL Examples in esp-iot-solution#
The ESL Profile component separates standard protocol capabilities from product applications, so developers do not need to build and maintain the ESL GATT attribute table, EAD encapsulation, or PAwR lifecycle from scratch. In the example, the phone communicates with the AP using Nordic UART Service (NUS) and JSON Lines (JSONL). The diagram also shows the L2CAP CoC used for image data and the hardware abstraction layer (HAL) used to access peripherals.
flowchart TB
APP[ESP BLE App or Backend] -->|NUS / JSONL in the demo| APAPP[ESL AP Application]
APAPP --> APPROFILE[ESL Profile - AP Role]
APAPP --> OTSCLIENT[OTS Client]
APPROFILE -->|GATT: ESL Service| TAGPROFILE[ESL Profile - Tag Role]
APPROFILE -->|PAST: synchronization transfer| TAGPROFILE
APPROFILE <-->|PAwR + EAD| TAGPROFILE
OTSCLIENT -->|GATT service discovery and object control| OTSSERVER[OTS Server]
OTSCLIENT -->|L2CAP CoC image data| OTSSERVER
TAGPROFILE --> HAL[Display / LED / Sensor HAL]
TAGPROFILE --> STORE[Association and Image Storage]
OTSSERVER --> STORE
The diagram shows the following roles and components:
- ESP BLE App or Backend: Supplies content and device tasks to the AP. The example uses NUS and JSONL for communication with the phone app.
- ESL AP Application: Manages tag inventory, commands, images, and recovery.
- ESL Profile - AP Role and ESL Profile - Tag Role: Handle ESL commands, responses, addressing, EAD, and lifecycle transitions. The tag role exposes the ESL Service and its device capabilities.
- OTS Client and OTS Server: Manage image objects over GATT and transfer their contents over L2CAP CoC.
- Display / LED / Sensor HAL: Connects tag operations to product-specific peripherals.
- Association and Image Storage: Stores association information and image data using non-volatile storage (NVS) and an image partition.
The underlying BLE Connection Manager supports connections, advertising, security procedures, and periodic synchronization transfer.
The component uses a shared state machine model for the AP’s record of remote state and the tag’s local state, helping keep lifecycle behavior consistent.
ESL Tag Software Architecture#
Inside the tag, the software is organized into transport, GATT services, profile logic, application events, and product adaptation. The tag accepts ESL commands through the ESL Control Point (ECP) while connected or through PAwR while synchronized. For image transfers, the example uses the separate OTS GATT service to manage objects and L2CAP CoC to transfer their contents to the image store.
flowchart TB
subgraph BLE[Bluetooth LE host and controller]
GATT[GATT connection]
COC[L2CAP CoC
image data]
PAWR[PAwR / EAD
synchronized commands and responses]
PAST[PAST
periodic sync transfer]
end
subgraph GATT_SERVICES[Independent GATT services]
SERVICE[ESL Service
configuration, capabilities and ECP]
OTS[Object Transfer Service
object control]
end
subgraph PROFILE[ESL Profile]
SM[Shared lifecycle state machine]
CMD[Command validation and dispatch]
SECURITY[Addressing, keys and EAD processing]
end
subgraph APP[Tag application]
EVENTS[ESL events]
DISPLAY[Display worker]
LED[LED handler]
SENSOR[Sensor handler]
end
subgraph PRODUCT[Product adaptation and persistence]
HAL[Tag HAL]
IMAGE[Image store]
ASSOC[Association store]
FLASH[NVS / Flash / e-paper driver]
end
GATT --> SERVICE
GATT --> OTS
PAWR --> SECURITY
PAST --> SM
SERVICE --> CMD
SECURITY --> CMD
SM <--> CMD
CMD --> EVENTS
EVENTS --> DISPLAY
EVENTS --> LED
EVENTS --> SENSOR
DISPLAY --> HAL
LED --> HAL
SENSOR --> HAL
OTS -->|object selection and control| IMAGE
COC -->|image contents| IMAGE
SM --> ASSOC
HAL --> FLASH
IMAGE --> FLASH
ASSOC --> FLASH
SENSOR -.->|sensor data when available| CMD
- Bluetooth LE host and controller: Provides GATT connections, L2CAP CoC for image data transfer, PAST for periodic synchronization transfer, and PAwR/EAD for synchronized commands and responses.
- Independent GATT services: The ESL Service handles configuration, capability discovery, and connected ECP commands. OTS handles image object selection and control.
- ESL Profile: Maintains the service and capabilities, and handles addressing, command validation, EAD, and lifecycle transitions.
- Tag application: Receives display, LED, and sensor operations as events. E-paper display operations use a queue and a separate task; sensor readings can be reported to the profile.
- Product adaptation and persistence: A HAL isolates e-paper, LED, and sensor drivers. NVS and a dedicated image partition store association information and image data.
This layering separates protocol handling from peripheral adaptation. The example queues e-paper refreshes and image persistence work so they can run asynchronously. When processing a display command, the profile posts an application event and prepares a Display State response. The application queues the display operation and logs an error if the display call fails. The example does not report every display, LED, or sensor operation’s physical completion or failure back to the profile. Products that need physical refresh results can add that feedback and track command acceptance separately from actual device state.
Completion of a peripheral operation does not necessarily trigger a PAwR response. Response content and timing follow the semantics of each ESL command. For example, the Display State response to Display Image confirms receipt, not completion of the potentially lengthy physical e-paper refresh. Timed display, sensor reads, and commands without responses have their own rules. The profile generates an ECP notification or PAwR response when required by the protocol.
Device Lifecycle and Operations#
With the roles of GATT and PAwR established, this section follows a tag from first association through routine operation, including how commands and image objects reach it.
From Association to Synchronization#
The ESL Profile defines a tag lifecycle. The diagram shows the state model shared by the tag’s local state and the AP’s remote record in esp-iot-solution. A shared model does not mean both sides commit a transition at the same event. Arrow labels show key conditions for the AP to confirm a transition. In the synchronization paths, 0x13 denotes an ACL disconnection with Host Controller Interface (HCI) reason Remote User Terminated Connection:
stateDiagram-v2
[*] --> Unassociated
Unassociated --> Configuring: Initial secure connection
Configuring --> Synchronized: AP commit - PAST pending and Tag disconnect 0x13
Configuring --> Unsynchronized: Configured but sync completion not confirmed
Configuring --> Unassociated: Incomplete configuration or reset
Synchronized --> Updating: Bonded AP reconnects securely
Unsynchronized --> Updating: Bonded AP reconnects for recovery
Updating --> Synchronized: AP commit - PAST pending and Tag disconnect 0x13
Updating --> Synchronized: AP commit - Update Complete succeeds and Tag disconnect 0x13
Updating --> Unsynchronized: Unexpected disconnect or no valid sync
Synchronized --> Unsynchronized: PAwR sync lost or times out
Synchronized --> Unassociated: Unassociate
Updating --> Unassociated: Unassociate or factory reset
Unsynchronized --> Unassociated: Unassociate, reset, or timeout
The states are:
- Unassociated: The tag has no valid association with an AP.
- Configuring: An unassociated tag has established a secure connection; the AP writes its initial address, keys, and time.
- Updating: An associated tag has reconnected securely to its bonded AP to transfer images, update configuration, or restore synchronization.
- Synchronized: The tag has a usable PAwR synchronization and can receive commands and respond in its assigned subevent.
- Unsynchronized: The tag remains associated but has neither a usable PAwR synchronization nor an update connection.
Moving from Configuring or Updating to Synchronized requires the relevant synchronization and lifecycle conditions. Writing the address, keys, time, or image is not sufficient, and a successful PAST set_info call alone does not complete the transition.
For first association or recovery after synchronization loss, the AP transfers periodic advertising synchronization information using PAST. In ble_esl v1.1.0, the AP does not immediately mark the tag as Synchronized when PAST set_info is accepted.
After establishing periodic synchronization, the tag waits for a PAwR report or the end of a bounded confirmation period before initiating ACL disconnection. If the AP observes HCI reason 0x13 during the pending PAST flow, it records the tag as Synchronized. This decision relies on the expected disconnect; 0x13 alone does not prove that the AP observed the tag receive PAwR data. A subsequent PAwR Ping can verify reachability.
An already synchronized tag can connect to the AP to receive an image or configuration update. If its existing periodic synchronization remains valid during the connection, the tag can disconnect after a successful Update Complete write and return to Synchronized without another PAST. The component provides esp_ble_eslp_ap_keeps_sync_without_past() to identify this type of connection.
As a defensive measure, the current AP example attempts PAST if the ACL is still up after Update Complete. This handles cases where the AP’s synchronized record is stale and the tag has actually lost synchronization. A new PAST is therefore not required for every transition back to Synchronized.
The AP also checks the disconnect reason to avoid treating an abnormal link termination as successful synchronization. A supervision timeout, HCI 0x3E, or an AP-initiated disconnect does not commit Synchronized; configured or associated tags move to Unsynchronized. The Update Complete GATT write must also succeed: if the tag’s 0x13 disconnect arrives before the write returns, the AP defers the state decision until the result is known. In the current implementation, recovery from synchronization loss normally goes through Updating rather than directly from Unsynchronized to Synchronized.
A typical association sequence in the example is:
- The
Unassociatedtag advertises the ESL Service. - The AP discovers the tag and establishes a connection using LE Secure Connections and bonding.
- The AP reads available display, image, LED, and sensor capabilities.
- The AP assigns a Group ID and ESL ID and writes key material and absolute time.
- The AP sends Update Complete and transfers PAwR synchronization information using PAST.
- After PAST
set_infosucceeds, the AP waits for the tag to establish synchronization and initiate ACL disconnection. - On HCI reason
0x13in the pending PAST flow, the AP commits the remote state asSynchronizedand can use PAwR Ping to check reachability. - The AP and tag persist the association information needed for recovery after restart.
PAST is central to first association and recovery after synchronization loss: the AP can transfer synchronization information over the existing connection, reducing the need for the tag to scan for the periodic advertising train. If the tag retains synchronization throughout a PAwR connection update, however, Update Complete can finish the operation without requiring a new PAST.
Routine Control: Shared Command Semantics, Different Paths#
Depending on tag state, ESL commands can travel over ECP while connected or over PAwR while synchronized. Espressif’s AP profile exposes command capabilities to the application and selects an appropriate path. The table summarizes the standard commands from Electronic Shelf Label Service 1.0.1 and Electronic Shelf Label Profile 1.0.1:
| Command | Purpose | Applicable states | Success response | Transport |
|---|---|---|---|---|
| Ping | Query basic tag state | Updating, Synchronized | Basic State | ECP, PAwR |
| Unassociate from AP | Remove association with the current AP | Updating, Synchronized | Basic State | ECP, PAwR |
| Service Reset | Clear Service Needed when the condition no longer applies | Updating, Synchronized | Basic State | ECP, PAwR |
| Factory Reset | Clear association, commands, and written image data | Configuring, Updating | None | ECP only |
| Update Complete | Complete configuration or update and disconnect once synchronized | Configuring, Updating | None | ECP only |
| Read Sensor Data | Read a specified Sensor Index | Updating, Synchronized | Sensor Value | ECP, PAwR |
| Refresh Display | Refresh the displayed image | Updating, Synchronized | Display State | ECP, PAwR |
| Display Image | Display a specified Image Index immediately | Updating, Synchronized | Display State | ECP, PAwR |
| Display Timed Image | Display an image at a specified absolute time | Updating, Synchronized | Display State on receipt | ECP, PAwR |
| LED Control | Control a specified LED immediately | Updating, Synchronized | LED State | ECP, PAwR |
| LED Timed Control | Control an LED at a specified absolute time | Updating, Synchronized | LED State on receipt | ECP, PAwR |
| Vendor-specific | Execute a vendor-defined operation | Vendor-defined; ESL Payload rules apply in Synchronized | Vendor-defined | ECP, PAwR, as defined by the vendor |
The response column describes successful processing of individually addressed commands. Errors generally produce an Error response, except for Ping. Commands sent over PAwR to the Broadcast Address do not elicit individual tag responses. Factory Reset and Update Complete are reserved for connected Configuring or Updating states and cannot be sent over PAwR in Synchronized. Responses to Display Timed Image and LED Timed Control acknowledge receipt without waiting for the scheduled operation.
PAwR downlink data is protected with AP Sync Key Material, while tag responses use the corresponding ESL Response Key Material. EAD provides confidentiality and integrity protection against devices without the keys reading or forging valid commands. Systems must also manage both key types, random values, and receiver state correctly to reduce replay, key disclosure, and impersonation risks.
Image Updates: Why Use OTS?#
E-paper images are typically much larger than ESL control commands. The AP uses OTS over a connection to upload an image to the tag. It can then send a short display command that references the stored Image ID, including over PAwR. This avoids putting the complete image in routine control messages and keeps image transfer separate from display scheduling.
The SSD1680 e-paper display in the esp-iot-solution example has a resolution of 128 × 296; one black-and-white, 1-bpp image occupies 4,736 bytes. A typical workflow is:
- The phone app sends an image to the AP.
- The AP saves it in its local image manager.
- The AP connects to the target tag and transfers the image to an image slot using OTS.
- The tag saves the complete image asynchronously to a dedicated flash partition.
- The AP sends Display Image over the current connection or a later PAwR event.
- The tag reads the image from its slot and refreshes the e-paper display.
Separating image transfer from display lets stores preload promotional images and send short display commands at the desired time, reducing over-the-air traffic during a coordinated price update.
Persistence and Recovery#
A successful image update is only the beginning. In a large deployment, AP restarts, tag power loss, disconnected links, failed image transfers, and synchronization loss must all be handled.
Tag Recovery#
The example saves association information, including the ESL Address, AP Sync Key, Response Key, and AP identity, in a fixed-layout record. A format version and integrity check help prevent firmware changes, structure padding, or corrupted data from being mistaken for valid configuration.
On startup, the tag checks its stored association against NimBLE bonding data. If the record is valid and exactly one corresponding bond exists, it enters Unsynchronized and attempts to rejoin the original network. If the records do not match or the association record is invalid, the example clears the stale association and returns to Unassociated.
Images are stored in a separate flash partition. Writes are decoupled from protocol callbacks, and the relevant image state is cleared on unassociation or factory reset.
AP Recovery#
The AP uses an inventory to store associated tag identities and operating information. After a restart, it can identify associated tags that have not regained PAwR synchronization, reconnect as needed, and restore synchronization.
The example also handles:
- Pausing recovery operations that compete for radio resources during image updates.
- Timeouts for connections, configuration, image transfer, and command responses.
- Retrying failed connections according to policy.
- Reserving queue capacity for critical events such as disconnections and configuration completion when scan reports are numerous.
- Coordinating PAwR advertising with the extended advertising instance used by the phone app.
These mechanisms illustrate another AP responsibility: maintaining each tag’s lifecycle and recoverable state, in addition to sending commands.
Try the esp-iot-solution ESL Examples#
The example is a bench ESL system with three roles. The phone is the operator interface. The access point associates the tag, transfers images, and sends commands. The tag is the shelf label. The phone connects only to the access point and does not control the tag directly.
The example assigns those roles as follows:
- Phone: ESP BLE App.
- Access point:
ble_esl_apon one development board. - ESL tag:
ble_esl_tagon a second board connected to an SSD1680 e-paper display.
For an initial evaluation, this article uses two ESP32-C6 development boards: one AP and one tag. This combination has an SSD1680 tag display preset and does not require a preview target.
The ESL example README also lists ESP32-H4 and ESP32-S31 as AP targets with preview support. The tag example has an SSD1680 display preset for ESP32-H4, while ESP32-S31 uses a mock display by default. Check the README for current target status, ESP-IDF requirements, and display support before choosing another board. Bluetooth LE support alone does not establish that a target and software version support the PAwR features used by the examples.
Prepare Hardware and Software#
| Item | Example requirement |
|---|---|
| ESP-IDF | v6.1 or later |
| Development boards | Recommended: 2 × ESP32-C6, one AP and one tag |
| Display | SSD1680, 128 × 296 black-and-white e-paper |
| Phone | Android 12 or later with Bluetooth LE |
| App | ESP BLE App v0.0.1 |
| Example code | Bluetooth LE ESL AP and tag examples in esp-iot-solution |
The ESP32-C6 tag example uses the following default SSD1680 connections:
| SSD1680 signal | ESP32-C6 GPIO | Description |
|---|---|---|
| Power | 8 | Active low |
| DC | 20 | Data/command select |
| RST | 19 | Reset |
| CS | 21 | SPI chip select |
| BUSY | 22 | Display busy |
| MOSI | 18 | SPI data |
| SCLK | 15 | SPI clock |
E-paper modules may differ in power supply, cable, and controller board. Check the module schematic and voltage requirements before connecting it; screen size alone does not establish pin compatibility.
Prepare the AP and Tag Examples#
Build and flash ble_esl_tag on the board connected to the e-paper display, and ble_esl_ap on a second board. For the current prerequisites, target selection, build and flash instructions, and wiring details, see the Bluetooth LE ESL example README.
After startup, an unassociated tag advertises as ESP_ESL_TAG and waits for the AP to discover and configure it. A tag with valid saved association data attempts to restore its existing association after restart. The AP establishes its PAwR schedule and advertises ESP-ESL-AP for the phone app.
For a clean initial evaluation, follow the README’s guidance on clearing old association, bonding, and image data. Flash erasure removes all data on the selected device, so use an evaluation board and back up any data you need to keep.
Evaluate with a Phone#
Install ESP BLE App v0.0.1 on an Android phone and grant the required nearby-device or Bluetooth permissions. Navigate to ESL → Connect → Scan AP and connect to ESP-ESL-AP.
Try the following sequence:
- Scan for and select an unassociated tag.
- Run
provision_tagto configure it and synchronize using PAST. - On the Image page, select an image slot, prepare a 128 × 296 black-and-white image, and upload it to the AP.
- Transfer the image to the tag.
- Run Display Image and confirm that the e-paper display shows it.
- Run Refresh Display, Ping, or another control and observe tag status and responses on the Dashboard.
- Restart the tag and AP separately and check that association and synchronization recover.
From Example to Product#
The examples demonstrate an end-to-end ESL path. A product also needs to consider:
- Backend interface: The example uses NUS and JSONL for the phone connection; this is not a store backend interface defined by the ESL standard.
- Key management: Example test keys are not suitable for production. Use secure random keys and design rotation, revocation, and manufacturing protection processes.
- Power evaluation: Measure the full operating cycle, including PAwR reception and responses, scanning after synchronization loss, flash writes, and e-paper refresh, in addition to sleep current.
- Capacity validation: The 32,640 figure is a logical address space. Test practical capacity against PAwR parameters, workload, RF conditions, and latency targets.
- Interoperability and qualification: Example testing does not replace Bluetooth Qualification. Validate against the applicable Test Suite, Implementation Conformance Statement, Implementation Extra Information for Test, and Test Case Reference List.
The examples do not currently include hardware-free host tests covering the complete AP/tag path. Validate provisioning, image transfer, repeated updates, synchronization loss, and AP/tag restart recovery on target hardware in a real RF environment.
Conclusion#
Bluetooth ESL combines reliable device configuration, OTS image transfer, PAST synchronization transfer, bidirectional one-to-many PAwR communication, EAD protection, and standardized device control into a complete system.
Espressif’s esp-iot-solution provides AP and tag profiles, a shared lifecycle state machine, PAwR/EAD transport, image management, and power-loss recovery mechanisms. Developers can focus on displays, LEDs, sensors, business gateways, and store management systems without assembling the ESL protocol stack from scratch.
Updating one label on a workbench is a useful first step. Operating a large deployment securely, reliably, and with low power over the long term also requires standardized protocols, persistent state, and recovery from failures.
References#
- Bluetooth SIG: Electronic Shelf Label Profile 1.0.1
- Bluetooth SIG: Electronic Shelf Label Service 1.0.1
- Bluetooth SIG: Bluetooth ESL — the global standard for the electronic shelf label market
- Bluetooth SIG: Assigned Numbers
- ESP-IoT-Solution: Electronic Shelf Label Profile documentation
- esp-iot-solution: Electronic Shelf Label Profile source
- esp-iot-solution: Bluetooth LE ESL examples
- ESP BLE App
- ESP-IDF Programming Guide: Bluetooth LE





