Skip to content

Commit 5043081

Browse files
committed
Merge branch 'v1.1_docs' into 'main'
docs: update for v1.1 release See merge request espressif/esp-thread-br!142
2 parents 2fe4e26 + 8171abf commit 5043081

File tree

12 files changed

+66
-152
lines changed

12 files changed

+66
-152
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ pre_commit:
5757
- cd $ESP_THREAD_BR_PATH/examples/basic_thread_border_router
5858
- rm -rf CMakeLists.txt
5959
- cp ${CI_TOOLS_PATH}/basic_thread_border_router.cmake CMakeLists.txt
60-
- rm -rf sdkconfig.defaults
61-
- cp ${CI_TOOLS_PATH}/sdkconfig.br.basic sdkconfig.defaults
6260
- idf.py build
6361

6462
.build_local_components: &build_local_components
@@ -72,8 +70,6 @@ pre_commit:
7270
- cp ${CI_TOOLS_PATH}/idf_component_local.yml main/idf_component.yml
7371
- rm -rf CMakeLists.txt
7472
- cp ${CI_TOOLS_PATH}/basic_thread_border_router.cmake CMakeLists.txt
75-
- rm -rf sdkconfig.defaults
76-
- cp ${CI_TOOLS_PATH}/sdkconfig.br.basic sdkconfig.defaults
7773
- idf.py build
7874

7975
.build_idf_example_ot_br: &build_idf_example_ot_br

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ ESP-THREAD-BR is the official [ESP Thread Border Router](https://openthread.io/g
88

99
The SDK is built on top of [ESP-IDF](https://github.com/espressif/esp-idf) and [OpenThread](https://github.com/openthread/openthread). The OpenThread port and ESP Border Router implementation is provided as pre-built library in ESP-IDF.
1010

11+
It is recommended to use ESP-IDF [v5.3.1](https://github.com/espressif/esp-idf/tree/v5.3.1) with this SDK.
12+
1113
# Hardware Platforms
1214

1315
## Wi-Fi based Thread Border Router

components/esp_ot_cli_extension/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@ if(CONFIG_OPENTHREAD_RCP_COMMAND)
2828
endif()
2929

3030
set(include "include")
31-
if(CONFIG_OPENTHREAD_CLI_WIFI)
32-
list(APPEND include $ENV{IDF_PATH}/examples/common_components/protocol_examples_common/include)
33-
endif()
31+
3432
idf_component_register(SRCS "${srcs}"
3533
INCLUDE_DIRS "${include}"
3634
PRIV_REQUIRES lwip openthread iperf esp_netif esp_wifi http_parser esp_http_client esp_coex heap mbedtls nvs_flash esp_eth)
3735

38-
if (CONFIG_OPENTHREAD_CLI_OTA)
39-
idf_component_optional_requires(PUBLIC esp_br_http_ota)
36+
if(CONFIG_OPENTHREAD_CLI_OTA)
37+
idf_component_optional_requires(PRIVATE esp_br_http_ota)
4038
endif()
4139

42-
if (CONFIG_OPENTHREAD_RCP_COMMAND)
40+
if(CONFIG_OPENTHREAD_RCP_COMMAND)
4341
idf_component_optional_requires(PRIVATE esp_rcp_update)
4442
endif()
4543

components/esp_ot_cli_extension/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.2.4"
1+
version: "1.2.5"
22
description: Espressif OpenThread CLI Extension
33
url: https://github.com/espressif/esp-thread-br/tree/main/components/esp_ot_cli_extension
44
dependencies:

docs/en/dev-guide/build_and_run.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ This document contains instructions on building the images for ESP Thread Border
99

1010
Clone the `esp-idf <https://github.com/espressif/esp-idf>`_ and the `esp-thread-br <https://github.com/espressif/esp-thread-br>`_ repository.
1111

12+
It is recommended to use ESP-IDF `v5.3.1 <https://github.com/espressif/esp-idf/tree/v5.3.1>`_ with this SDK.
13+
1214
.. code-block:: bash
1315
14-
git clone -b v5.1.3 --recursive https://github.com/espressif/esp-idf.git
16+
git clone -b v5.3.1 --recursive https://github.com/espressif/esp-idf.git
1517
1618
.. code-block:: bash
1719
@@ -85,6 +87,22 @@ For any other customized settings, you can configure the project in menuconfig.
8587
8688
idf.py menuconfig
8789
90+
.. note::
91+
92+
`LWIP_IPV6_NUM_ADDRESSES` configuration is fixed in the border router library, it was changed from 8 to 12 since IDF v5.3.1 release. Please update this configuration based on the following table:
93+
94+
+--------------------+-------------------------+
95+
| IDF Versions | LWIP_IPV6_NUM_ADDRESSES |
96+
+--------------------+-------------------------+
97+
| v5.1.4 and earlier | 8 |
98+
+--------------------+-------------------------+
99+
| v5.2.2 and earlier | 8 |
100+
+--------------------+-------------------------+
101+
| v5.3.0 | 8 |
102+
+--------------------+-------------------------+
103+
| v5.3.1 and later | 12 |
104+
+--------------------+-------------------------+
105+
88106
2.1.3.1. Wi-Fi based Thread Border Router
89107
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
90108

examples/basic_thread_border_router/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.5)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS
8-
${CMAKE_CURRENT_SOURCE_DIR}/../common
9-
${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_br_http_ota
10-
${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_ot_br_server
11-
)
12-
135
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
146
project(esp_ot_br)

examples/basic_thread_border_router/README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,30 @@ Please refer to [ESP Thread Border Router Hardware](../../README.md##Hardware-Pl
1414

1515
Refer to [ESP-IDF Get Started](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/get-started/index.html).
1616

17-
Note that it is recommended to use the latest [esp-idf](https://github.com/espressif/esp-idf).
17+
It is recommended to use ESP-IDF [v5.3.1](https://github.com/espressif/esp-idf/tree/v5.3.1) with this example.
1818

1919
### Configure the project
2020

21-
ESP32-S3 is the host SoC on ESP Thread Border Router Board, so set target to esp32s3:
21+
ESP32-S3 is the host SoC on ESP Thread Border Router Board, esp32s3 is selected by default in the example. Set the other target with this command:
2222

2323
```
24-
idf.py set-target esp32s3
24+
idf.py set-target <target>
2525
```
2626

27-
The host could be pre-configured with `OPENTHREAD_RADIO_SPINEL_UART` or `OPENTHREAD_RADIO_SPINEL_SPI` to select UART or SPI to access the Radio Co-Processor.
28-
29-
If the `OPENTHREAD_BR_AUTO_START` option is enabled, the device will connect to the configured Wi-Fi and form Thread network automatically then act as the border router.
27+
`LWIP_IPV6_NUM_ADDRESSES` configuration is fixed in the border router library, it was changed from 8 to 12 since IDF v5.3.1 release. Please update this configuration based on the following table:
3028

31-
The Wi-Fi network's ssid and psk needs to be pre-configured with `EXAMPLE_WIFI_SSID` and `EXAMPLE_WIFI_PASSWORD`.
29+
| IDF Versions | LWIP_IPV6_NUM_ADDRESSES |
30+
|:-----------------------:|:-------------------------:|
31+
| v5.1.4 and earlier | 8 |
32+
| v5.2.2 and earlier | 8 |
33+
| v5.3.0 | 8 |
34+
| v5.3.1 and later | 12 |
3235

33-
Note that in this mode, the device will first attempt to use the Wi-Fi SSID and password stored in NVS. If no Wi-Fi information is stored, it will then use the `EXAMPLE_WIFI_SSID` and `EXAMPLE_WIFI_PASSWORD` from menuconfig.
36+
The host could be pre-configured with `OPENTHREAD_RADIO_SPINEL_UART` or `OPENTHREAD_RADIO_SPINEL_SPI` to select UART or SPI to access the Radio Co-Processor.
3437

35-
The Thread network parameters could be pre-configured with `OPENTHREAD_NETWORK_xx` options.
38+
If the `OPENTHREAD_BR_AUTO_START` option is enabled, the device will connect to the configured Wi-Fi and form Thread network automatically then act as the border router:
39+
- The Wi-Fi network's ssid and psk needs to be pre-configured with `EXAMPLE_WIFI_SSID` and `EXAMPLE_WIFI_PASSWORD`. In this mode, the device will first attempt to use the Wi-Fi SSID and password stored in NVS. If no Wi-Fi information is stored, it will then use the pre-configured ssid and psk.
40+
- The Thread network parameters could be pre-configured with `OPENTHREAD_NETWORK_xx` options.
3641

3742
If the `OPENTHREAD_BR_START_WEB` option is enabled, [ESP Thread Border Router Web Server](../../components/esp_ot_br_server/README.md) will be provided to configure and query Thread network via a Web GUI.
3843

examples/basic_thread_border_router/main/idf_component.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ dependencies:
77
espressif/esp_rcp_update:
88
version: "~1.3.0"
99
override_path: '../../../components/esp_rcp_update'
10+
esp_br_http_ota:
11+
path: ../../../components/esp_br_http_ota
12+
esp_ot_br_server:
13+
path: ../../../components/esp_ot_br_server
14+
thread_border_router:
15+
path: ../../common/thread_border_router
16+
protocol_examples_common:
17+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common
18+
1019
## Required IDF version
1120
idf:
12-
version: ">=4.1.0"
13-
# # Put list of dependencies here
14-
protocol_examples_common:
15-
path: ${IDF_PATH}/examples/common_components/protocol_examples_common
21+
version: ">=5.1.0"

examples/basic_thread_border_router/sdkconfig.defaults

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ CONFIG_AUTO_UPDATE_RCP=y
6060
# lwIP
6161
#
6262
CONFIG_LWIP_IPV6_FORWARD=y
63-
CONFIG_LWIP_IPV6_NUM_ADDRESSES=8
63+
64+
# Use 12 with IDF v5.3.1 and later, and use 8 with earlier versions of IDF.
65+
CONFIG_LWIP_IPV6_NUM_ADDRESSES=12
66+
6467
CONFIG_LWIP_MULTICAST_PING=y
6568
CONFIG_LWIP_NETIF_STATUS_CALLBACK=y
6669
CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT=y

tools/ci/basic_thread_border_router.cmake

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,5 @@ set(ENV{EXTRA_CFLAGS} "-Werror -Werror=deprecated-declarations -Werror=unused-va
88
set(ENV{EXTRA_CXXFLAGS} "-Werror -Werror=deprecated-declarations -Werror=unused-variable \
99
-Werror=unused-but-set-variable -Werror=unused-function")
1010

11-
# (Not part of the boilerplate)
12-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
13-
set(EXTRA_COMPONENT_DIRS
14-
${CMAKE_CURRENT_SOURCE_DIR}/../common
15-
${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_br_http_ota
16-
${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_ot_br_server
17-
$ENV{IDF_PATH}/examples/common_components/protocol_examples_common
18-
)
19-
2011
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
2112
project(esp_ot_br)

0 commit comments

Comments
 (0)