From c5ae864624834e708da771d369e9fb9e31530e03 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 19 Jun 2017 13:28:48 -0600 Subject: [PATCH] /configs/clicker2-stm32/mrf24j40-6lowpan: Enables both client and server UDP tests on the target; Update a README file. --- configs/clicker2-stm32/README.txt | 17 +++++++++++++++++ .../clicker2-stm32/mrf24j40-6lowpan/defconfig | 5 ++++- configs/ntosd-dm320/udp/defconfig | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/configs/clicker2-stm32/README.txt b/configs/clicker2-stm32/README.txt index 45b594399f..49b645204a 100644 --- a/configs/clicker2-stm32/README.txt +++ b/configs/clicker2-stm32/README.txt @@ -436,6 +436,23 @@ Configurations nsh> ifup wpan0 + 6. examples/udp is enabled. This will allow two MRF24J40 nodes to + exchange UDP packets. Basic instructions: + + On the server node: + + nsh> ifconfig wpan0 + nsh> udpserver & + + The ifconfig command will show the IP address of the server. Then on + the client node use this IP address to start the client: + + nsh> udpserver & + + Where is the IP address of the server that you got above. + NOTE: There is no way to stop the UDP test once it has been started + other than by resetting the board. + nsh: Configures the NuttShell (nsh) located at examples/nsh. This diff --git a/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig b/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig index e004bdd853..9619d02170 100644 --- a/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig +++ b/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig @@ -1356,6 +1356,9 @@ CONFIG_EXAMPLES_UDP=y # CONFIG_EXAMPLES_UDP_SERVER1 is not set CONFIG_EXAMPLES_UDP_PRIORITY1=100 CONFIG_EXAMPLES_UDP_STACKSIZE1=2048 +CONFIG_EXAMPLES_UDP_TARGET2=y +CONFIG_EXAMPLES_UDP_PRIORITY2=100 +CONFIG_EXAMPLES_UDP_STACKSIZE2=2048 CONFIG_EXAMPLES_UDP_DEVNAME="wpan0" # CONFIG_EXAMPLES_UDP_NETINIT is not set CONFIG_EXAMPLES_UDP_IPv6=y @@ -1370,7 +1373,7 @@ CONFIG_EXAMPLES_UDP_SERVERIPv6ADDR_4=0x0000 CONFIG_EXAMPLES_UDP_SERVERIPv6ADDR_5=0x0000 CONFIG_EXAMPLES_UDP_SERVERIPv6ADDR_6=0x00ff CONFIG_EXAMPLES_UDP_SERVERIPv6ADDR_7=0xfe00 -CONFIG_EXAMPLES_UDP_SERVERIPv6ADDR_8=0x1034 +CONFIG_EXAMPLES_UDP_SERVERIPv6ADDR_8=0x0d00 # CONFIG_EXAMPLES_UDPBLASTER is not set # CONFIG_EXAMPLES_USBSERIAL is not set # CONFIG_EXAMPLES_WATCHDOG is not set diff --git a/configs/ntosd-dm320/udp/defconfig b/configs/ntosd-dm320/udp/defconfig index d1f3f7d39d..fbaa76ca41 100644 --- a/configs/ntosd-dm320/udp/defconfig +++ b/configs/ntosd-dm320/udp/defconfig @@ -847,6 +847,7 @@ CONFIG_EXAMPLES_UDP=y # CONFIG_EXAMPLES_UDP_SERVER1 is not set CONFIG_EXAMPLES_UDP_PRIORITY1=100 CONFIG_EXAMPLES_UDP_STACKSIZE1=2048 +# CONFIG_EXAMPLES_UDP_TARGET2 is not set CONFIG_EXAMPLES_UDP_DEVNAME="eth0" CONFIG_EXAMPLES_UDP_NETINIT=y CONFIG_EXAMPLES_UDP_IPv4=y