diff --git a/configs/clicker2-stm32/README.txt b/configs/clicker2-stm32/README.txt index 4b9693414a..ce8160e769 100644 --- a/configs/clicker2-stm32/README.txt +++ b/configs/clicker2-stm32/README.txt @@ -441,7 +441,7 @@ Configurations On the server node: - nsh> ifconfig wpan0 + nsh> ifconfig nsh> udpserver & The ifconfig command will show the IP address of the server. Then on @@ -471,7 +471,7 @@ Configurations On the server node: - nsh> ifconfig wpan0 + nsh> ifconfig nsh> tcpserver & The ifconfig command will show the IP address of the server. Then on @@ -480,11 +480,11 @@ Configurations nsh> tcpclient & 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. + NOTE: Unlike the UDP test, there the TCP test will terminate + automatically when the packet exchange is complete. Cheat Sheet. Here is a concise summary of all all the steps needed to - run the UDP test (C=Coordinator; E=Endpoint): + run the TCP test (C=Coordinator; E=Endpoint): C: nsh> i8 /dev/ieee0 startpan C: nsh> 8 acceptassoc @@ -496,12 +496,44 @@ Configurations E: nsh> tcpclient & E: nsh> dmesg - STATUS: - 2017-06-19: The Telnet Daemon does not start. This is simply because - the daemon is started too early in the sequence... before the network - has been brought up: + 7. The NSH Telnet deamon (server) is enabled. However, it cannot be + started automatically. Rather, it must be started AFTER the network + has been brought up using the NSH 'telnetd' command. You would want + to start the Telent daemon only if you want the node to serve Telent + connections to an NSH shell on the node. - telnetd_daemon: ERROR: socket failure: 106 + nsh> ifconfig + nsh> telnetd + + Note the 'ifconfig' is executed to get the IP address of the node. + This is necessary because the IP address is assigned by the the + Coordinator and may not be known a priori. + + 8. This configuration also includes the Telnet client program. This + will allow you to execute a NSH one a node from the command line on + a different node. Like: + + nsh> telnet + + Where is the IP address of the server that you got for + the ifconfig commna on the remote node. Once the telnet session + has been started, you can end the session with: + + nsh> exit + + Cheat Sheet. Here is a concise summary of all all the steps needed to + run the TCP test (C=Coordinator; E=Endpoint): + + C: nsh> i8 /dev/ieee0 startpan + C: nsh> 8 acceptassoc + E: nsh> i8 assoc + C: nsh> ifup wpan0 + C: nsh> ifconfig <-- To get the + E: nsh> ifup wpan0 + C: nsh> telnetd <-- Starts the Telnet daemon + E: nsh> telnet <-- Runs the Telnet client + + STATUS: 2017-06-21: Basic UDP functionality has been achieved with HC06 compression and short address. Additional testing is required for @@ -519,6 +551,10 @@ Configurations 2017-06-26: Verified with HC06 and extended addressing and HC1 with both addressing modes. + 2017-06-27: Added the Telnet client application to the configuration. + First testing reveal a problem that will require some re-design + before continuing: The Telnet daemon does not yet support IPv6! + Test Matrix: The following configurations have been tested: @@ -531,6 +567,8 @@ Configurations extended 6/23 6/26 ipv6 short --- --- extended --- --- + telnet short N/A --- + extended N/A --- Other configuration options have not been specifically addressed (such non-compressable ports, non-MAC based IPv6 addresses, etc.) diff --git a/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig b/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig index 2db84d87d7..3ba6fbe406 100644 --- a/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig +++ b/configs/clicker2-stm32/mrf24j40-6lowpan/defconfig @@ -735,7 +735,7 @@ CONFIG_PTHREAD_STACK_DEFAULT=2048 # # Device Drivers # -CONFIG_DISABLE_POLL=y +# CONFIG_DISABLE_POLL is not set CONFIG_DEV_NULL=y # CONFIG_DEV_ZERO is not set # CONFIG_DEV_URANDOM is not set @@ -858,6 +858,7 @@ CONFIG_SERIAL_REMOVABLE=y # CONFIG_OTHER_UART_SERIALDRIVER is not set # CONFIG_MCU_SERIAL is not set CONFIG_STANDARD_SERIAL=y +CONFIG_SERIAL_NPOLLWAITERS=2 # CONFIG_SERIAL_IFLOWCONTROL is not set # CONFIG_SERIAL_OFLOWCONTROL is not set # CONFIG_SERIAL_DMA is not set @@ -926,6 +927,7 @@ CONFIG_RAMLOG=y CONFIG_RAMLOG_BUFSIZE=8192 # CONFIG_RAMLOG_CRLF is not set CONFIG_RAMLOG_NONBLOCKING=y +CONFIG_RAMLOG_NPOLLWAITERS=4 # CONFIG_SYSLOG_INTBUFFER is not set # CONFIG_SYSLOG_TIMESTAMP is not set # CONFIG_SYSLOG_SERIAL_CONSOLE is not set @@ -1146,6 +1148,7 @@ CONFIG_MAC802154_HPWORK=y # CONFIG_MAC802154_LPWORK is not set CONFIG_MAC802154_NTXDESC=32 CONFIG_MAC802154_NNOTIF=48 +CONFIG_MAC802154_NPANDESC=5 CONFIG_IEEE802154_IND_PREALLOC=32 CONFIG_IEEE802154_IND_IRQRESERVE=10 CONFIG_IEEE802154_MACDEV=y @@ -1330,14 +1333,13 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024 # CONFIG_EXAMPLES_MODBUS is not set # CONFIG_EXAMPLES_MOUNT is not set CONFIG_EXAMPLES_NETTEST=y +CONFIG_EXAMPLES_NETTEST_SENDSIZE=4096 CONFIG_EXAMPLES_NETTEST_STACKSIZE1=2048 CONFIG_EXAMPLES_NETTEST_PRIORITY1=100 # CONFIG_EXAMPLES_NETTEST_SERVER1 is not set CONFIG_EXAMPLES_NETTEST_TARGET2=y CONFIG_EXAMPLES_NETTEST_PRIORITY2=100 CONFIG_EXAMPLES_NETTEST_STACKSIZE2=2048 -CONFIG_EXAMPLES_NETTEST_DAEMON_STACKSIZE=2048 -CONFIG_EXAMPLES_NETTEST_DEAMON_PRIORITY=100 CONFIG_EXAMPLES_NETTEST_DEVNAME="wpan0" # CONFIG_EXAMPLES_NETTEST_PERFORMANCE is not set CONFIG_EXAMPLES_NETTEST_IPv6=y @@ -1418,6 +1420,7 @@ CONFIG_EXAMPLES_UDP_CLIENT_PORTNO=61617 # CONFIG_EXAMPLES_WATCHDOG is not set # CONFIG_EXAMPLES_WEBSERVER is not set # CONFIG_EXAMPLES_XBC_TEST is not set +# CONFIG_EXAMPLES_XMLRPC is not set # # File System Utilities @@ -1453,15 +1456,18 @@ CONFIG_EXAMPLES_UDP_CLIENT_PORTNO=61617 # # Network Utilities # +# CONFIG_NETUTILS_CHAT is not set # CONFIG_NETUTILS_CODECS is not set # CONFIG_NETUTILS_DISCOVER is not set # CONFIG_NETUTILS_ESP8266 is not set # CONFIG_NETUTILS_FTPC is not set +# CONFIG_NETUTILS_FTPD is not set # CONFIG_NETUTILS_JSON is not set CONFIG_NETUTILS_NETLIB=y # CONFIG_NETUTILS_NTPCLIENT is not set # CONFIG_NETUTILS_PPPD is not set # CONFIG_NETUTILS_SMTP is not set +CONFIG_NETUTILS_TELNETC=y CONFIG_NETUTILS_TELNETD=y # CONFIG_NETUTILS_TFTPC is not set # CONFIG_NETUTILS_WEBCLIENT is not set @@ -1534,6 +1540,7 @@ CONFIG_NSH_DISABLE_PUT=y # CONFIG_NSH_DISABLE_SLEEP is not set # CONFIG_NSH_DISABLE_TIME is not set # CONFIG_NSH_DISABLE_TEST is not set +# CONFIG_NSH_DISABLE_TELNETD is not set # CONFIG_NSH_DISABLE_UMOUNT is not set # CONFIG_NSH_DISABLE_UNAME is not set # CONFIG_NSH_DISABLE_UNSET is not set @@ -1621,6 +1628,10 @@ CONFIG_READLINE_ECHO=y # CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SYSTEM is not set # CONFIG_SYSTEM_TEE is not set +# CONFIG_SYSTEM_TELNET_CHATD is not set +CONFIG_SYSTEM_TELNET_CLIENT=y +CONFIG_SYSTEM_TELNET_CLIENT_STACKSIZE=2048 +CONFIG_SYSTEM_TELNET_CLIENT_PRIORITY=100 # CONFIG_SYSTEM_UBLOXMODEM is not set # CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_ZMODEM is not set