tests bsim/net: Add simple echo test over OpenThread
Expand the tests/bsim/net/sockets/echo_test with a variant using OpenThread Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
6decd2d55f
commit
b6c6de386c
5 changed files with 86 additions and 0 deletions
43
tests/bsim/net/sockets/echo_test/overlay-ot.conf
Normal file
43
tests/bsim/net/sockets/echo_test/overlay-ot.conf
Normal file
|
@ -0,0 +1,43 @@
|
|||
# This file content is just a copy of the echo client overlay-ot.conf
|
||||
|
||||
CONFIG_NEWLIB_LIBC=y
|
||||
|
||||
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
|
||||
CONFIG_NET_TCP=n
|
||||
CONFIG_NET_IPV4=n
|
||||
|
||||
CONFIG_NET_IPV6_NBR_CACHE=n
|
||||
CONFIG_NET_IPV6_MLD=n
|
||||
CONFIG_NET_CONFIG_NEED_IPV4=n
|
||||
CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
|
||||
CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
|
||||
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
|
||||
CONFIG_MAIN_STACK_SIZE=2560
|
||||
|
||||
# Enable OpenThread shell
|
||||
CONFIG_SHELL=y
|
||||
CONFIG_OPENTHREAD_SHELL=y
|
||||
CONFIG_SHELL_STACK_SIZE=3072
|
||||
|
||||
CONFIG_NET_L2_OPENTHREAD=y
|
||||
|
||||
CONFIG_OPENTHREAD_DEBUG=y
|
||||
CONFIG_OPENTHREAD_L2_DEBUG=y
|
||||
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
|
||||
|
||||
CONFIG_OPENTHREAD_CHANNEL=26
|
||||
CONFIG_OPENTHREAD_NETWORKKEY="00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"
|
||||
|
||||
CONFIG_NET_CONFIG_MY_IPV6_ADDR="fdde:ad00:beef::1"
|
||||
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="fdde:ad00:beef::2"
|
||||
|
||||
# mbedTLS tweaks
|
||||
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=768
|
||||
|
||||
# A sample configuration to enable Thread Joiner, uncomment if needed
|
||||
#CONFIG_OPENTHREAD_JOINER=y
|
||||
#CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
|
||||
|
||||
# Enable diagnostic module, uncomment if needed
|
||||
#CONFIG_OPENTHREAD_DIAG=y
|
Loading…
Add table
Add a link
Reference in a new issue