EmbeddedNote From a chip and a small project to the industry supply chain — documenting reusable engineering insights

EMBEDDEDNOTE / ENGINEERING TOOLS / BLE

Plan a BLE transfer before you write the firmware. Enter the negotiated MTU, PHY and connection parameters, and the tool returns the operation count, the event-slot budget and the wall-clock estimate — with the assumption that dominated the result.

Engineering note: this is a planning model. It uses the Bluetooth Core packet format and your inputs; it is not a benchmark of a specific phone. Receiver-side flash writes and host queues can dominate once the radio is fast enough.

EMBEDDEDNOTE / ENGINEERING TOOLS / BLE

BLE Throughput & Transfer Planner

Plan GATT transfers using ATT/L2CAP overhead, link-layer fragmentation, PHY airtime and connection-event scheduling. Calculated locally in your browser.

Calculations run entirely in your browser; no payload is uploaded.

Example payloads

Presets change payload size only. Image and firmware sizes are examples, not device-specific limits.

Link configuration

Transfer planning estimate

Event utilization and flow control are user assumptions. Values are modeled scheduling budgets, not measurements or guaranteed performance.

Scheduled elapsed budget—
Application throughput—
Scheduled connection events
—
Data transfer only
—
Usable payload per operation
—
ATT operations
—
Ops / connection event
—
Link-layer data PDUs
—
Modeled data/ACK airtime
—
ATT headers total
—
L2CAP headers total
—
Application headers total
—

Caveats and platform guidance

    What the model does in three steps

    1. It converts the ATT MTU into usable bytes per operation: MTU minus three for the opcode and handle, minus any application header you declare.
    2. It accounts for every byte that is not your data: L2CAP header, ATT header, MIC on an encrypted link, link-layer header, preamble, CRC, the empty acknowledgement and the inter-frame spaces.
    3. It fits those operations into connection events. The number of events times the connection interval is the wall-clock estimate.

    Inputs that change the answer most

    InputWhat it changesCommon mistake
    Negotiated MTUBytes per operationEntering the requested MTU instead of the negotiated one
    Writes per eventHow many operations fit in an eventTreating it as a spec constant; it is a scheduler property
    PHY (1M / 2M)Airtime per packetAssuming 2M halves the wall time; it only halves radio time
    Connection intervalHow often an event occursLowering the interval when the event is already saturated
    EncryptionFour bytes of MIC inside the link-layer ceilingForgetting that it forces an extra packet at MTU 247
    Method (write / request / notification)Who acknowledges and who schedulesUsing write requests for bulk data and waiting on responses

    A worked example you can check by hand

    240,000 bytes at MTU 247 on LE 2M, 30 ms interval, 15 ms event, four writes per event: 984 write operations, two link-layer packets per write because the MIC fills the 251-byte ceiling, 246 connection events, and 7.38 s. The radio is only busy for 1.78 s of that. Full derivation: how the throughput model works.

    What it does not model

    How to read the result

    The event-slot budget is the number to compare against a measurement. If your measured transfer takes 12 s where the model says 7.38 s, the difference is almost always writes-per-event or receiver time, not the PHY. Adjust those two first.

    Frequently asked questions

    Is this a measurement or an estimate?

    An estimate. Every number comes from the Bluetooth specification plus the assumptions you enter, not from a phone on a bench. The page says which assumption dominated the result, and the model article shows the arithmetic so you can check it.

    Which MTU should I enter?

    The negotiated value, not the one your code requested. A request for 517 often ends up at 185 or 247 once the peer answers. On iOS, read CBPeripheral.maximumWriteValueLength(for:) instead of assuming.

    Why does LE 2M sometimes not shorten the transfer?

    Because the connection-event budget binds first. In the worked example, 2M cuts radio time by about 40% but the wall time stays 7.38 s, since only four writes fit per event by assumption. Raising that cap to eight brings it to 3.69 s.

    What does "writes per event" mean?

    How many GATT operations the host and controller actually pipeline into one connection event. It is a scheduler property, not a specification constant. Four is a conservative stand-in for a phone; some links do more, many do fewer.

    Why is the real transfer slower than the estimate?

    Usually the receiver. Flash page writes, file-system commits and application handling often dominate once the radio is fast enough. Retransmissions and phone-side write queues add more. Calibrate by lowering writes-per-event and adding a retry percentage.

    Does it work for notifications instead of writes?

    The scheduling arithmetic is the same, but the direction changes who schedules. Notifications run peripheral to central, and the peripheral’s own scheduler usually decides the outcome. Select the notification method to see the caveat in the result panel.

    Related reading