[riot-notifications] [RIOT-OS/RIOT] Add openthread FTD-MTD-NCP tests (#7149)

Alexandre Abadie notifications at github.com
Fri Sep 1 17:41:57 CEST 2017


aabadie requested changes on this pull request.

A few other comments related to my today's test. See below.

@biboc do you plan to work on it ?

> +wireless Network Co-Processor. NCP and wpantund communicates by UART (UART(0) is used here)
+
+## Quick usage
+
+To test OpenThread NCP in RIOT, you can do the following:
+
+1. Flash one node with openthread_ncp example with `make BOARD=<target> clean all flash -C tests/openthread_ncp`
+2. Install wpantund: On Ubuntu 16.04, run
+```
+sudo apt-get -y install build-essential subversion libncurses5-dev libssl-dev zlib1g-dev gawk gcc-multilib flex git-core gettext gcc binutils bzip2 python perl make unzip libz-dev tftp git shtool autogen automake libtool autotools-dev libdbus-1-dev
+git clone https://github.com/openthread/wpantund.git
+cd wpantund
+./bootstrap.sh
+./configure
+make
+sudo make install

I'm not a big fan of this kind of command line. Better use the `--prefix` of the configure option and pass the configuration file from the `wpantund` command line (use `-c` option)

> +sudo make install
+```
+
+3. Start wpantund on your host.  Be sure to pass flags appropriate to connect wpantund to your NCP connection type.
+You can also name the network interface at this time or let wpantund automatically assign a name (wpan0):
+
+```
+sudo /usr/local/sbin/wpantund -s /dev/ttyACM0 -I wpan0 -o SyslogMask all
+```
+
+4. Start wpanctl to access the command line management interface for controlling Thread features on your device.
+This is similar to the Thread cli interface conceptually but with slightly different command syntax:
+
+`sudo /usr/local/bin/wpanctl -I wpan0`
+
+5. With wpanctl CLI, you can use "status" cmd to check status of NCP, "scan" cmd scan for WPAN network around or "form" to create new WPAN network

This could be a bit more detailed I think

> +This test demonstrates how to use the [OpenThread](https://github.com/openthread/openthread)
+open source implementation of [Thread](https://threadgroup.org/) on RIOT.
+
+This test shows how to use a Network Co-Processor (NCP). A Network Co-Processor is used with wpantund software.
+Wpantund is a user-space network interface driver/daemon that provides a native IPv6 network interface to a low-power
+wireless Network Co-Processor. NCP and wpantund communicates by UART (UART(0) is used here)
+
+## Quick usage
+
+To test OpenThread NCP in RIOT, you can do the following:
+
+1. Flash one node with openthread_ncp example with `make BOARD=<target> clean all flash -C tests/openthread_ncp`
+2. Install wpantund: On Ubuntu 16.04, run
+```
+sudo apt-get -y install build-essential subversion libncurses5-dev libssl-dev zlib1g-dev gawk gcc-multilib flex git-core gettext gcc binutils bzip2 python perl make unzip libz-dev tftp git shtool autogen automake libtool autotools-dev libdbus-1-dev
+git clone https://github.com/openthread/wpantund.git

Not sure of this but maybe giving a fixed commit hash will avoid problems when building the tool: we never know, master could be broken or not compatible with package version in RIOT.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/7149#pullrequestreview-60170862
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170901/93e4cfbb/attachment.html>


More information about the notifications mailing list