Skip to main content

Espressif Thread Border Router

·3 mins·
Esp32 IoT Open Thread
Author
Shu Chen
Table of Contents

We are glad to announce that the Espressif Thread Border Router (ESP Thread BR) solution has received certification from the Thread Group, and the accompanying development kit has now been officially released.

This blog post will delve into the technical aspects of the solution and explore the benefits it offers, facilitating faster time-to-market for our customers’ products.

What’s a Thread Border Router?
#

As defined in the Thread Border Router White Paper:

A Border Router is a device that can route packets to and from the mesh. This routing happens between the Thread mesh and any other IPbearing interfaces like Wi-Fi, Ethernet, and Cellular.

ESP Thread BR Architecture
#

ESP Thread BR solution is based on the combination of Espressif’s Wi-Fi and 802.15.4 SoCs, built on the ESP-IDF and open-source OpenThread stack.

Unlike the well-known ot-br-posix solution that is Linux/Unix-based, the ESP Thread BR is built on the ESP-IDF framework, incorporating integrated components such as Wi-Fi and 802.15.4 stacks, LwIP, mDNS, and more.

In the solution, the Host Wi-Fi SoC operates the Espressif Thread BR and OpenThread Core stack, while the 802.15.4 SoC runs the OpenThread RCP (Radio Co-processor). Communication between the two is established through the Spinel protocol.

ESP Thread BR Features
#

Networking Features
#

A previous blog Thread Border Router in Matter introduces the role of the Thread Border Router in Matter scenario. Here are the key networking features supported by the ESP Thread BR:

  • Bi-directional IPv6 connectivity

Enable bi-directional IPv6 communication across Thread and non-Thread networks, it currently supports both Wi-Fi and Ethernet as the backbone link.

  • Service Discovery

Implements the functions for bi-directional service discovery, including the Service Registry Protocol (SRP) server, Advertising Proxy, and Discovery Proxy. These functions facilitate zero-configuration discovery of services offered by Thread Devices, as well as services offered by non-Thread devices.

  • Multicast Forwarding

Implements the Multicast Listener Discovery v2 (MLDv2) protocol and enables seamless IPv6 multicast across Thread, Wi-Fi, and Ethernet networks.

  • NAT64

The Thread devices can access the IPv4 internet via the ESP Thread BR.

Note: Although NAT64 is not a mandatory feature for the Matter scenario, as Matter is primarily designed for local network applications, it does facilitate point-to-point communication between Thread devices and cloud services.

Production Features
#

In addition to the networking features, the Espressif Thread BR SDK also supports multiple useful features for productization.

  • RCP Update

As the solution involves two SoCs, it requires the download of two matching firmware for over-the-air (OTA) updates. The SDK offers a mechanism that combines the two firmware into a single binary. With a streamlined one-step OTA process, the host SoC will automatically download the RCP firmware to the 802.15.4 SoC during the initial boot.

  • RF Coexistence

The coexistence design is often a challenging aspect for devices that incorporate multiple radios. The Espressif Thread BR addresses this issue by leveraging an integrated hardware and software design, offering the 3-wires PTA Coexistence feature in the SDK. This feature greatly simplifies the complexity of the customer’s application.

  • Web GUI

Additionally, the SDK offers a user-friendly web-based GUI for easy configuration by the user. Moreover, the provided REST APIs are compliant with the APIs offered by ot-br-posix, ensuring compatibility and seamless integration.

HW Reference and SW SDK
#

The Espressif Thread BR SDK is available on GitHub:

https://github.com/espressif/esp-thread-br

https://docs.espressif.com/projects/esp-thread-br

The Hardware reference design and dev kits are also available ( link):

Related

Matter: Thread Border Router in Matter
·3 mins
Espressif Matter Thread Esp32 IoT
Espressif Matter Series* #5* In the Previous Articles, we talked about Matter from several aspects.
Matter: Bridge for Non-Matter Devices
·4 mins
Matter Zigbee Espressif IoT Esp32
Espressif Matter Series* #4* Several big IoT ecosystems have announced integrated support for Matter, e.
Securely booting user application in ESP Privilege Separation
·3 mins
ESP Privilege Separation Esp32 IoT Security
In the previous post, we demonstrated the ability to independently update the user application in the ESP Privilege Separation framework.