Skip to content

Commit 949f596

Browse files
author
Lukasz Majewski
committed
net: samples: ot: Add configuration file for echo_client OT RCP HOST (UART)
This config allows setting up the echo_client program with RCP HOST UART (via SPINEL protocol) communication. Signed-off-by: Lukasz Majewski <[email protected]>
1 parent a2a0cc8 commit 949f596

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
CONFIG_REQUIRES_FULL_LIBC=y
2+
3+
# CPP library
4+
CONFIG_CPP=y
5+
6+
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
7+
CONFIG_NET_TCP=n
8+
CONFIG_NET_IPV4=n
9+
10+
CONFIG_NET_IPV6_NBR_CACHE=n
11+
CONFIG_NET_IPV6_MLD=n
12+
CONFIG_NET_CONFIG_NEED_IPV4=n
13+
CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
14+
CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
15+
16+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192
17+
CONFIG_MAIN_STACK_SIZE=32768
18+
CONFIG_INIT_STACKS=y
19+
20+
# Enable OpenThread shell
21+
CONFIG_SHELL=y
22+
CONFIG_OPENTHREAD_SHELL=y
23+
CONFIG_SHELL_STACK_SIZE=8192
24+
25+
CONFIG_NET_L2_OPENTHREAD=y
26+
27+
# Use NVS as settings backend
28+
CONFIG_NVS=y
29+
30+
# Enable Openthread rcp host
31+
CONFIG_HDLC_RCP_IF=y
32+
33+
# Enable OpenThread features set
34+
CONFIG_OPENTHREAD_THREAD_STACK_SIZE=8192
35+
CONFIG_OPENTHREAD_THREAD_VERSION_1_3=y
36+
#CONFIG_OPENTHREAD_DEBUG=y
37+
#CONFIG_OPENTHREAD_L2_DEBUG=y
38+
#CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
39+
40+
# mbedTLS tweaks
41+
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=768
42+
43+
# A sample configuration to enable Thread Joiner, uncomment if needed
44+
CONFIG_OPENTHREAD_JOINER=y
45+
46+
# Enable diagnostic module, uncomment if needed
47+
#CONFIG_OPENTHREAD_DIAG=y
48+
49+
# To have OTBR On-Mesh address assigned (fd11:22:0:0:)
50+
CONFIG_OPENTHREAD_SLAAC=y
51+
52+
# Setup the communication to echo-server
53+
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="fd11:db8:1::1"
54+
CONFIG_NET_CONFIG_INIT_TIMEOUT=60
55+
56+
# Configure the OpenThread manually
57+
CONFIG_OPENTHREAD_MANUAL_START=y
58+
59+
CONFIG_EVENTS=y

0 commit comments

Comments
 (0)