Coded PHY: Bluetooth's Long-Range Feature (2024)

Bluetooth Low Energy was designed to considerably reduce power consumption and cost while maintaining communication ranges similar to Bluetooth Classic (50-100m max). However, that is no longer the case. With the new Bluetooth long-range mode, you can now achieve ranges of over 1 kilometer using BLE!

This is useful for extending the range of a Bluetooth connection or discovering advertisem*nts, but it also helps achieve more robust communication in noisy RF environments and areas with many obstacles.

Now, you may be interested in learning more about long-range mode and implementing it into your own application, but you probably don’t want to go through the 3,000+ pages of the Bluetooth Specification document to figure out the steps and configurations necessary for this. Well, you’ve come to the right place!

In this post, we’ll go over:

  • What is long-range mode (Coded PHY)?
  • Use cases for long-range mode
  • Coded PHY vs. 1M PHY vs. 2M PHY
  • Coded PHY packet format
  • Two methods for utilizing Coded PHY

Once you finish reading this blog post, you will understand the overall concepts and the steps required to implement ranges of over 1 km on your BLE Peripheral and Central devices.

Check out the following YouTube video for a very cool demo involving a drone for a real-life test of Bluetooth range and an exclusive Silicon Labs free dev kit giveaway announcement!

Coded PHY: Bluetooth's Long-Range Feature (1)

What is Bluetooth long-range mode?

Bluetooth long-range (also known as Coded PHY) is a new mode introduced in Bluetooth Version 5.0 to extend the range of Bluetooth devices from 30-100 feet to ranges of 1 kilometer and beyond.

With this powerful range extension, you’ll see some tradeoffs in radio-on time, power consumption, and duty cycle for scheduling and coexistence over the air. As you might expect, this new mode requires some hardware changes. Because support for this new mode is optional, not all Bluetooth LE chipsets and modules (even those qualified for Bluetooth 5.0 and later) will support this new mode. Make sure you choose carefully.

Use cases for long-range mode

Long-range mode is not only useful for extending the range of Bluetooth devices. It’s also helpful to achieve a more reliable connection in signal-congested environments or environments with many obstacles.

Examples of applications include:

  • Remote control and remote identification system for drones [1]
  • Monitoring sensors deployed on large-area farms
  • Making connections more robust in areas with many obstacles, such as in industrial environments

💡Insider Tip: Access a complete course on implementing Bluetooth long-range in the Bluetooth Developer Academy.

Coded PHY (aka Bluetooth long-range) vs. 1M PHY vs. 2M PHY

Let’s step back for a minute. If you’ve been working with Bluetooth Low Energy for a while, you’ll know that 1M PHY is the original PHY introduced when Bluetooth Low Energy launched with Version 4.0 of the Bluetooth Core Specification. This PHY allows you to achieve a raw data rate of 1 Megasymbol per second.

With Version 5.0 of the Bluetooth specification came two new PHYs: 2M PHY and Coded PHY. So, today (as of v5.4), we have three PHYs available:

  1. 1M PHY (1 Megasymbols per second) – the original PHY supported by all BLE devices
  2. 2M PHY (2 Megasymbols per second) – introduced in Bluetooth 5.0, achieves approximately double the speed of 1M PHY
  3. Coded PHY (1 Megasymbols per second) – introduced in Bluetooth 5.0, achieves ranges up to four times the range of 1M PHY. This is what we call Bluetooth long-range mode
Coded PHY: Bluetooth's Long-Range Feature (2)

For long-range Bluetooth, we are most concerned with the third PHY we mentioned above – the Coded PHY. This PHY allows us to reach long ranges with BLE. In it, the raw data is still transmitted at the rate of 1Mbps, but we’re transmitting multiple symbols for each of the bits of data that come from the user, the link layer, header, and packet. Effectively, this means that Coded PHY uses multiple symbols to represent each transmitted bit.

There are two configurations for Coded PHY:

  • S2, where each data bit is represented by two symbols. Data rate = 500 kbps (1/2 of 1M PHY data rate)
  • S8, where each data bit is represented by eight symbols. Data rate = 125 kbps (1/8 of 1M PHY data rate)

One thing to note is that not all the fields within a packet are coded with the same configuration, as some will always be configured to use the S=8 configuration. Power consumption will vary significantly based on the configuration selected due to its effect on radio-on time.

Below, we can see a comparison of the radio on-time between the 1M and Coded PHYs:

Coded PHY: Bluetooth's Long-Range Feature (3)

Coded PHY packet format

Coded PHY BLE packets have a different format than the standard 1M or 2M PHYs.

Coded PHY: Bluetooth's Long-Range Feature (4)

A few important things to note about the Coded PHY format:

  • The Preamble is never coded, which allows the packet to be detected in any mode (Coded PHY, 1M PHY, or 2M PHY) before determining which mode was used for the remaining packet’s data.
  • FEC block 1 is always coded with S=8,
  • FEC block 2 is coded with S=2 or S=8 (depending on the configuration).
  • The CI (Coding Indicator) is used to indicate which coding scheme is used in FEC block 2 (S=2 or S=8).
  • The timing values shown indicate how long it takes to transmit the specific field within the packet.

How to utilize Bluetooth long-range (Coded PHY)?

Now that we understand what the Coded PHY packet format looks like let’s talk about how to actually utilize it in our applications. Coded PHY can be utilized in three ways:

  • Advertising-only State: Use Coded PHY for advertising and for discovery by a device that supports Coded PHY and receiving data included in the advertising packets (great for one-to-many communication)
  • Connection State: Switch to using Coded PHY during an existing (1M or 2M) connection via the PHY update procedure (
  • A Combination of the Two States: If you’re looking to utilize communication that utilizes long distances during the advertising and connection states

Advertising-only state

For two Bluetooth LE devices to successfully connect over long-range mode, one device (the Peripheral) will need to advertise on the Coded PHY while the other (the Central) will need to be configured to look for advertisem*nts on the Coded PHY.

In this mode, Extended Advertisem*nts are used. The way this works is by advertising on the Primary Advertisem*nt channels, where these Primary Channel Advertisem*nts point to Secondary Channel Advertisem*nts that hold the advertising information needed to establish a connection.

Understanding the appropriate Advertising types used in the Coded PHY mode is crucial for developing BLE applications that can operate using long-range mode. Without the correct setup, a BLE Central device will not be able to discover and/or connect to a BLE Peripheral over the Coded PHY.

Let’s look at the different Advertising types used in Coded PHY:

Coded PHY: Bluetooth's Long-Range Feature (5)

Notice that the only Primary Advertising type allowed in Coded PHY is of type ADV_EXT_IND. The rest of the Advertising types allowed in Coded PHY are Secondary Advertising packets (AUX_SCAN_REQ, AUX_CONNECT_REQ, AUX_ADV_IND, AUX_SCAN_RSP, AUX_SYNC_IND, AUX_CHAIN_IND, and AUX_CONNECT_RSP).

This means that connection requests on Coded PHY do not occur on the Primary Advertisem*nt channels, rather, they occur on the Secondary Advertisem*nt channels. The PDU types used in this case are the AUX_CONNECT_REQ (the connection request packet) and AUX_CONNECT_RSP (the response to the connection request) types.

During a Connection (PHY update procedure)

Bluetooth provides the flexibility to switch to using different PHYs during a connection. Different PHYs can be used in each direction as well between the two connected devices. For example, this procedure can be used to switch to using the Coded PHY after two devices have connected using the standard 1M PHY, allowing the two devices to increase the range at which they maintain the connection.

The PHY Update Procedure can be initiated by either the Central or the Peripheral after the connection is established.

When the Central initiates the PHY update procedure:

  • Central sends LL_PHY_REQ PDU
  • Peripheral responds with LL_PHY_RSP PDU
  • Central then responds to this with LL_PHY_IND PDU
Coded PHY: Bluetooth's Long-Range Feature (6)

When the Peripheral initiates the PHY update procedure:

  • Peripheral sends LL_PHY_REQ PDU
  • Central then responds to this with LL_PHY_IND PDU
Coded PHY: Bluetooth's Long-Range Feature (7)

The PDU includes both the preferred transmit- and receive-PHYs.

Coded PHY Peripheral implementation

The steps for implementing Coded PHY (long-range Bluetooth) will vary based on the BLE stack and development vendor, platform, or kit you use. However, in general, the implementation of Coded PHY on the Peripheral side involves the following steps:

  1. Enabling Extended Advertisem*nts in the BLE stack (Host + Controller)
  2. Setting the Primary PHY to use the Coded PHY
  3. Setting the Secondary PHY to use the Coded PHY
  4. Setting the advertisem*nt data

Coded PHY support on smartphones

The reality is that support for Coded PHY on smartphones varies significantly from device to device. Typically, you will see devices providing one of the following levels of support:

  • No Coded PHY support
  • Support for Coded PHY during a connection but not during advertising
  • Support for advertising extensions and scanning but no support for Coded PHY on the advertising channels
  • Full Coded PHY support, including both Coded PHY advertising extensions and Coded PHY connections

I’ve found that Samsung and OnePlus phones offer the best support for development and testing.

Silicon Labs FREE Giveaway

Check out the exclusive Silicon Labs Giveaway below (limited time and while supplies last!):

Silicon Labs FREE Giveaway

Summary

In this post, we went over the steps you will need to achieve ranges of over 1 kilometer for communication between two BLE devices.

We covered:

  • Basics and use cases of long-range Bluetooth (Coded PHY)
  • The technical details of Coded PHY, including the two different configurations available (S=2 and S=8)
  • The details of Coded PHY packets
  • The steps required to implement Coded PHY for BLE Central and BLE Peripheral devices

💡Still have more Coded PHY questions? Enroll in the Bluetooth Developer Academy today to get exclusive access to the Technical Guide to BLE Long-range (Coded PHY) video course.

Coded PHY: Bluetooth's Long-Range Feature (2024)
Top Articles
Introducing DFCUPerks at Dearborn Financial Credit Union
The College Student’s Guide to Saving Money
Katie Pavlich Bikini Photos
Faint Citrine Lost Ark
Free Atm For Emerald Card Near Me
Craigslist In South Carolina - Craigslist Near You
Tribune Seymour
Erskine Plus Portal
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Catsweb Tx State
Www.paystubportal.com/7-11 Login
13 The Musical Common Sense Media
Slope Unblocked Minecraft Game
Bjork & Zhulkie Funeral Home Obituaries
Dump Trucks in Netherlands for sale - used and new - TrucksNL
Nebraska Furniture Tables
Mini Handy 2024: Die besten Mini Smartphones | Purdroid.de
Spartanburg County Detention Facility - Annex I
iOS 18 Hadir, Tapi Mana Fitur AI Apple?
Tnt Forum Activeboard
Inside the life of 17-year-old Charli D'Amelio, the most popular TikTok star in the world who now has her own TV show and clothing line
Mychart Anmed Health Login
Doublelist Paducah Ky
Dtlr Duke St
Xfinity Cup Race Today
The best brunch spots in Berlin
eugene bicycles - craigslist
Mdt Bus Tracker 27
13301 South Orange Blossom Trail
Albertville Memorial Funeral Home Obituaries
Emuaid Max First Aid Ointment 2 Ounce Fake Review Analysis
R/Sandiego
Ripsi Terzian Instagram
Strange World Showtimes Near Regal Edwards West Covina
Greencastle Railcam
Tas Restaurant Fall River Ma
Arcane Odyssey Stat Reset Potion
Terrier Hockey Blog
#1 | Rottweiler Puppies For Sale In New York | Uptown
Dr Adj Redist Cadv Prin Amex Charge
The Listings Project New York
Silive Obituary
Emily Tosta Butt
All Characters in Omega Strikers
Weekly Math Review Q2 7 Answer Key
Oklahoma City Farm & Garden Craigslist
Fluffy Jacket Walmart
American Bully Puppies for Sale | Lancaster Puppies
Zipformsonline Plus Login
Sam's Club Fountain Valley Gas Prices
The Significance Of The Haitian Revolution Was That It Weegy
Latest Posts
Article information

Author: Duncan Muller

Last Updated:

Views: 5984

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.