Build the ESP Thread Border Router + Rainmaker application test environment

Overview

The complete application architecture of ESP Thread Border Router + Rainmaker as follows:

在这里插入图片描述

  • The ESP Thread Border Router device must used the WiFi and Thread dual chips , such as ESP32-S3 + ESP32-H2. The ESP32-S3 performs the WiFi function, and the ESP32-H2 performs the Thread function
  • The number of supported Thread End devices depends on the memory of the WiFi module (ESP32-S3).

Test Preparation

1、PC Envirment:

  • Linux or Ubuntu(Recommend)
  • Windows 10
  • MacOS

2、Install the ESP-Rainmaker APP on Phone

  • ESP-Rainmaker APP of IOS version :Search for ESP-Rainmaker in the APP Store and install it.
    在这里插入图片描述

  • ESP-Rainmaker APP of Android version:Install it on Google Play

在这里插入图片描述

3、Hardware Preparation:

4、Software Preparation:


Set up the ESP-IDF envirment

Step 1 :

First, You need to set up the ESP-IDFsoftware envirment,please refer to ESP-IDF SDK Installation Guide

Step 2 :

Then, you need to compilation the esp-idf/examples/openthread/ot_rcp example,this is to prepare for downloading the firmware for the RCP device. The RCP Device is the ESP32-H2 on ESP Thread Border Router/Zigbee Gateway board.

cd esp-idf/examples/openthread/ot_rcp

idf.py set-target esp32h2

idf.py build

在这里插入图片描述

Set up the ESP-Rainmaker envirment

Step 1 :

Clone esp-rainmaker SDK

git clone https://github.com/espressif/esp-rainmaker

cd esp-rainmaker

git submodule update --init --recursive

git pull

Step 2 :

Compilation the esp-rainmaker/examples/thread_br example,and download the firmware to ESP32-S3 on Thread Border Router board

cd esp-rainmaker/examples/thread_br

idf.py set-target esp32s3

idf.py menuconfig 

After running the idf.py menuconfig command,the following configuration options need to be enabled and modified:

  • -> Component config -> OpenThread Rcp Update
    • **Enable [*] <AUTO UPDATE RcP> Update RCP automatically **
    • To checkout the ot_rcp example path
    • The firmware of the RCP device will be transmitted by ESP32-S3 through the UART interface and written to the Flash

在这里插入图片描述

  • -> Component config -> LWIP
    • Modify the LWIP_IPV6_NUM_ADDRESS address from the default 8 to 12

在这里插入图片描述

idf.py build 

idf.py -p /dev/ttyACM0 erase_flash flash monitor

在这里插入图片描述

ESP32-S3 running the esp-rainmaker/examples/thread_br example and will print log as follows:

在这里插入图片描述

Step 3:Load the firmware for the RCP device

  • On the ESP32-S3 device, the log of the firmware transmission for the RCP device will be printed as follows:

在这里插入图片描述

After the RCP firmware is loaded, the ESP32-S3 device will restart the software.
At this point, you can monitor the firmware running log on RCP Device as follows:
在这里插入图片描述

Step 4:Download the firmware for the Thread End Device

cd esp-rainmaker/examples/led_light

idf.py set-target esp32h2

idf.py menuconfig 

After running the idf.py menuconfig command,the following configuration options need to be modified:

  • -> Component config -> LWIP
    • Modify the LWIP_IPV6_NUM_ADDRESS address from the default 3 to 12

在这里插入图片描述

idf.py build

idf.py -p /dev/ttyUSB0 erase_flash flash monitor

在这里插入图片描述

Step 5:Configure the network for the Thread Border Router

  • Open the ESP-Rainmaker APP Configure the network for Thread Border Router device

  • Click Add Device
    在这里插入图片描述

  • Scan the QR code in ESP32-S3 log printf and goto the WiFi network configuration page
    在这里插入图片描述

At this point, the phone can connect to a 2.4GHz WiFi hotspot. Then, select a 2.4GHz WiFi hotspot, send the WiFi connection informations, and click Start to configure the WiFi network
在这里插入图片描述

  • When the WiFi provisioning process has completed the Confirming Node association process, you can click Done to exit the provisioning page.
    在这里插入图片描述

  • Then, you can seen that the ESP-ThreadBR device has been added to the main page of the ESP-Rainmaker APP

在这里插入图片描述

  • Then click on the ESP-ThreadBR device control page and click on the Update Thread Dataset Settings to update.

在这里插入图片描述
在这里插入图片描述

Step 6:Configure the network for Thread End devices

  • Click the + sign to add the Thread End Device

在这里插入图片描述

  • Scan the QR code in the ESP32-H2 Thread End Device log print and goto the Thread network configure page for Thread End Device
    在这里插入图片描述

  • Click Next

在这里插入图片描述

  • Goto the Thread network configure page for Thread /End Device

在这里插入图片描述

  • When the Thread provisioning process has completed the Confirming Node association process, you can click Done to exit the Thread provisioning page.

在这里插入图片描述

  • Then, you can seen that the Light (Thread End Device) device has been added to the main page of the ESP-Rainmaker APP

在这里插入图片描述

  • Finally, goto the LED lights control page ,and you can turn on , turn off, adjust the color, and adjust the brightness the LEG light on ESP32-H2-DevKitM-1 board.

在这里插入图片描述

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值