Skip to content

Commit 4fcef8a

Browse files
committed
Merge branch 'docs/v1.0-beta' into 'main'
docs: update for 1.0-beta release See merge request espressif/esp-thread-br!78
2 parents 6b15219 + dd93a7c commit 4fcef8a

File tree

15 files changed

+216
-223
lines changed

15 files changed

+216
-223
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pre_commit:
4343

4444
.build_basic_thread_border_router: &build_basic_thread_border_router
4545
- cd $IDF_PATH/examples/openthread/ot_rcp
46-
- idf.py --preview set-target esp32h2
46+
- idf.py set-target esp32h2
4747
- git rev-parse HEAD
4848
- idf.py build
4949

@@ -52,7 +52,7 @@ pre_commit:
5252

5353
.build_local_components: &build_local_components
5454
- cd $IDF_PATH/examples/openthread/ot_rcp
55-
- idf.py --preview set-target esp32h2
55+
- idf.py set-target esp32h2
5656
- git rev-parse HEAD
5757
- idf.py build
5858

@@ -70,7 +70,7 @@ pre_commit:
7070
- cp ${CI_TOOLS_PATH}/ot_br.cmake CMakeLists.txt
7171
- idf.py set-target esp32s3
7272
- idf.py build
73-
- idf.py --preview set-target esp32c6
73+
- idf.py set-target esp32c6
7474
- idf.py build
7575

7676
.build_idf_example_ot_br_autostart: &build_idf_example_ot_br_autostart
@@ -84,7 +84,7 @@ pre_commit:
8484
- cp ${CI_TOOLS_PATH}/sdkconfig.br.autostart sdkconfig.defaults
8585
- idf.py set-target esp32s3
8686
- idf.py build
87-
- idf.py --preview set-target esp32c6
87+
- idf.py set-target esp32c6
8888
- idf.py build
8989

9090
.build_idf_example_ot_cli: &build_idf_example_ot_cli
@@ -94,9 +94,9 @@ pre_commit:
9494
- cd ..
9595
- rm -rf CMakeLists.txt
9696
- cp ${CI_TOOLS_PATH}/ot_cli.cmake CMakeLists.txt
97-
- idf.py --preview set-target esp32c6
97+
- idf.py set-target esp32c6
9898
- idf.py build
99-
- idf.py --preview set-target esp32h2
99+
- idf.py set-target esp32h2
100100
- idf.py build
101101

102102
build_examples:
@@ -149,7 +149,7 @@ build_idf_otcli_examples:
149149
- build
150150

151151
build_docs:
152-
stage: docs
152+
stage: build
153153
image: $CI_DOCKER_REGISTRY/esp-idf-doc-env-v5.0:2-3
154154
variables:
155155
ESP_DOCS_LATEST_BRANCH_NAME: "main"

components/esp_ot_cli_extension/CMakeLists.txt

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
set(srcs src/esp_ot_cli_extension.c src/esp_ot_ip.c src/esp_ot_loglevel.c)
2-
3-
if(CONFIG_OPENTHREAD_CLI_IPERF)
4-
list(APPEND srcs "src/esp_ot_iperf.c")
5-
endif()
6-
7-
if(CONFIG_OPENTHREAD_CLI_SOCKET)
8-
list(APPEND srcs "src/esp_ot_tcp_socket.c"
9-
"src/esp_ot_udp_socket.c")
10-
endif()
1+
set(srcs "src/esp_ot_cli_extension.c"
2+
"src/esp_ot_curl.c"
3+
"src/esp_ot_heap_diag.c"
4+
"src/esp_ot_ip.c"
5+
"src/esp_ot_iperf.c"
6+
"src/esp_ot_loglevel.c"
7+
"src/esp_ot_tcp_socket.c"
8+
"src/esp_ot_udp_socket.c")
119

1210
if(CONFIG_OPENTHREAD_CLI_WIFI)
1311
list(APPEND srcs "src/esp_ot_wifi_cmd.c")
@@ -21,14 +19,6 @@ if(CONFIG_OPENTHREAD_DNS64_CLIENT)
2119
list(APPEND srcs "src/esp_ot_dns64.c")
2220
endif()
2321

24-
if(CONFIG_OPENTHREAD_CLI_CURL)
25-
list(APPEND srcs "src/esp_ot_curl.c")
26-
endif()
27-
28-
if(CONFIG_OPENTHREAD_CLI_HEAP_DIAG)
29-
list(APPEND srcs "src/esp_ot_heap_diag.c")
30-
endif()
31-
3222
set(include "include")
3323
idf_component_register(SRCS "${srcs}"
3424
INCLUDE_DIRS "${include}"

components/esp_ot_cli_extension/Kconfig

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,6 @@ menu "OpenThread Extension CLI"
77
help
88
Enable Espressif's extended features.
99

10-
config OPENTHREAD_CLI_IPERF
11-
bool "Enable iperf command"
12-
depends on OPENTHREAD_CLI_ESP_EXTENSION
13-
default y
14-
15-
config OPENTHREAD_CLI_SOCKET
16-
bool "Enable socket command"
17-
depends on OPENTHREAD_CLI_ESP_EXTENSION
18-
default y
19-
20-
config OPENTHREAD_CLI_TCP_SERVER_PORT
21-
int "the port of TCP socket server"
22-
default 12345
23-
depends on OPENTHREAD_CLI_SOCKET
24-
help
25-
Set the connect port of socket
26-
27-
config OPENTHREAD_CLI_UDP_SERVER_PORT
28-
int "the port of UDP server"
29-
default 12346
30-
depends on OPENTHREAD_CLI_SOCKET
31-
help
32-
Set the connect port of socket
33-
3410
config OPENTHREAD_CLI_WIFI
3511
bool "Enable wifi connection command"
3612
depends on OPENTHREAD_CLI_ESP_EXTENSION && OPENTHREAD_BORDER_ROUTER
@@ -41,14 +17,4 @@ menu "OpenThread Extension CLI"
4117
depends on OPENTHREAD_CLI_ESP_EXTENSION && OPENTHREAD_BORDER_ROUTER
4218
default n
4319

44-
config OPENTHREAD_CLI_CURL
45-
bool "Enable curl command"
46-
depends on OPENTHREAD_CLI_ESP_EXTENSION
47-
default y
48-
49-
config OPENTHREAD_CLI_HEAP_DIAG
50-
bool "Enable heapdiag command"
51-
depends on OPENTHREAD_CLI_ESP_EXTENSION
52-
default y
53-
5420
endmenu

components/esp_ot_cli_extension/README.md

Lines changed: 112 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,76 @@ To enable OpenThread extension commands, the following Kconfig option needs to b
99

1010
## Commands
1111

12+
* [curl](#curl)
13+
* [dns64server](#dns64server)
14+
* [heapdiag](#heapdiag)
1215
* [ip](#ip)
1316
* [iperf](#iperf)
17+
* [loglevel](#loglevel)
18+
* [mcast](#mcast)
19+
* [ota](#ota)
1420
* [tcpsockclient](#tcpsockclient)
1521
* [tcpsockserver](#tcpsockserver)
1622
* [udpsockclient](#udpsockclient)
1723
* [udpsockserver](#udpsockserver)
1824
* [wifi](#wifi)
19-
* [ota](#ota)
20-
* [dns64server](#dns64server)
21-
* [curl](#curl)
22-
* [heapdiag](#heapdiag)
23-
* [loglevel](#loglevel)
25+
26+
27+
### curl
28+
29+
Used for fetching the content of a HTTP web page. Note that the border router must support NAT64.
30+
31+
```
32+
> curl http://www.espressif.com
33+
Done
34+
<html>
35+
<head><title>301 Moved Permanently</title></head>
36+
<body bgcolor="white">
37+
<center><h1>301 Moved Permanently</h1></center>
38+
<hr><center>CloudFront</center>
39+
</body>
40+
</html>
41+
```
42+
43+
### dns64server
44+
45+
Used for setting the dns64 server. Note that the border router must support NAT64.
46+
47+
```
48+
> dns64server 8.8.8.8
49+
```
50+
51+
### heapdiag
52+
53+
Used for heap diagnostics.
54+
55+
To get the current heap usage:
56+
57+
```
58+
> heapdiag print
59+
Description Internal SPIRAM
60+
Current Free Memory 246680 0
61+
Largest Free Block 180224 0
62+
Min. Ever Free Size 246072 0
63+
Done
64+
```
65+
To reset the heap trace baseline if the menuconfig option `HEAP_TRACING_STANDALONE` is selected:
66+
67+
```
68+
> heapdiag tracereset
69+
```
70+
71+
To dump the heap trace record if the menuconfig option `HEAP_TRACING_STANDALONE` is selected:
72+
73+
```
74+
> heapdiag tracedump
75+
```
76+
77+
To dump heap usage of each task of the menuconfig option `HEAP_TASK_TRACKING` is selected:
78+
79+
```
80+
> heapdiag tracetask
81+
```
2482

2583
### ip
2684

@@ -128,6 +186,55 @@ Then create an iperf client:
128186
Done
129187
```
130188

189+
### loglevel
190+
191+
Used for setting the log level for various log tags.
192+
193+
To set log level of all the tags to INFO:
194+
195+
```
196+
> loglevel set * 3
197+
```
198+
199+
To set log level of OpenThread to None:
200+
201+
```
202+
> loglevel set OPENTHREAD 0
203+
```
204+
205+
Notes:
206+
- Support 6 levels : 0(NONE), 1(ERROR), 2(WARN), 3(INFO), 4(DEBUG), 5(VERBOSE)
207+
- The log level of the tags cannot be bigger than the maximum log level. The maximum log level is determined by the menuconfig option `LOG_MAXIMUM_LEVEL`.
208+
209+
### mcast
210+
211+
Use this command to join or leave a multicast group.
212+
213+
```bash
214+
> mcast join ff04::123
215+
216+
Done
217+
> mcast leave ff04::123
218+
219+
Done
220+
```
221+
222+
### ota
223+
224+
Used for downloading border router firmware and updating the border router or the RCP alone.
225+
226+
```
227+
> ota download https://192.168.1.2:8070/br_ota_image
228+
```
229+
230+
After downloading the device will restart and update itself with the new firmware. The RCP will also be updated if the firmware version changes.
231+
232+
```
233+
> ota rcpudate
234+
```
235+
236+
This command will enforce a RCP update regardless of the RCP version.
237+
131238
### tcpsockserver
132239

133240
Used for creating a tcp server.
@@ -472,102 +579,3 @@ connected
472579
Done
473580
```
474581

475-
### ota
476-
477-
Used for downloading border router firmware and updating the border router or the RCP alone.
478-
479-
```
480-
> ota download https://192.168.1.2:8070/br_ota_image
481-
```
482-
483-
After downloading the device will restart and update itself with the new firmware. The RCP will also be updated if the firmware version changes.
484-
485-
```
486-
> ota rcpudate
487-
```
488-
489-
This command will enforce a RCP update regardless of the RCP version.
490-
491-
### dns64server
492-
493-
Used for setting the dns64 server. Note that the border router must support NAT64.
494-
495-
```
496-
> dns64server 8.8.8.8
497-
```
498-
499-
### curl
500-
501-
Used for fetching the content of a HTTP web page. Note that the border router must support NAT64.
502-
503-
```
504-
> curl http://www.espressif.com
505-
Done
506-
<html>
507-
<head><title>301 Moved Permanently</title></head>
508-
<body bgcolor="white">
509-
<center><h1>301 Moved Permanently</h1></center>
510-
<hr><center>CloudFront</center>
511-
</body>
512-
</html>
513-
```
514-
515-
### heapdiag
516-
517-
Used for heap diagnostics.
518-
519-
To get the current heap usage:
520-
521-
```
522-
> heapdiag print
523-
Description Internal SPIRAM
524-
Current Free Memory 246680 0
525-
Largest Free Block 180224 0
526-
Min. Ever Free Size 246072 0
527-
Done
528-
```
529-
530-
To start or stop the daemon task that prints the heap usage periodically:
531-
532-
```
533-
heapdiag daemon on <period_ms>
534-
heapdiag daemon off
535-
```
536-
537-
To reset the heap trace baseline if the menuconfig option `HEAP_TRACING_STANDALONE` is selected:
538-
539-
```
540-
> heapdiag tracereset
541-
```
542-
543-
To dump the heap trace record if the menuconfig option `HEAP_TRACING_STANDALONE` is selected:
544-
545-
```
546-
> heapdiag tracedump
547-
```
548-
549-
To dump heap usage of each task of the menuconfig option `HEAP_TASK_TRACKING` is selected:
550-
551-
```
552-
> heapdiag tracetask
553-
```
554-
555-
### loglevel
556-
557-
Used for setting the log level for various log tag
558-
559-
To set log level of all the tags to INFO
560-
561-
```
562-
> loglevel set * 3
563-
```
564-
565-
To set log level of OpenThread to None
566-
567-
```
568-
> loglevel set OPENTHREAD 0
569-
```
570-
571-
Notes:
572-
- Support 6 levels : 0(NONE), 1(ERROR), 2(WARN), 3(INFO), 4(DEBUG), 5(VERBOSE)
573-
- The log level of the tags cannot be bigger than the maximum log level. The maximum log level is determined by the menuconfig option `LOG_MAXIMUM_LEVEL`.

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: "0.5.3"
1+
version: "1.0.0"
22
description: Espressif OpenThread CLI Extension
33
url: https://github.com/espressif/esp-thread-br/tree/main/components/esp_ot_cli_extension
44
dependencies:

0 commit comments

Comments
 (0)