[riot-notifications] [RIOT-OS/RIOT] pkg/openwsn: re-integrate the network stack as a package (#13824)

Peter Kietzmann notifications at github.com
Tue May 26 20:22:32 CEST 2020


@PeterKietzmann commented on this pull request.

@fjmolinas I left some inline comments. Yet, I couldn't make the `openvisualizer` run. Ideas?

> +to install a patched version of `openvisualizer`.
+
+If you want to disable channel hopping to speed up synchronization you can set
+a fix channel:
+
+    $ export CFLAGS=-DIEEE802154E_SINGLE_CHANNEL=17
+
+### Launch an experiment
+
+Assuming you have `iotlab-cli` installed, launch an experiment booking 3+
+`iotlab-m3` nodes:
+
+    $ iotlab-experiment submit -d 120 -l 3,archi=m3:at86rf231+site=saclay
+    $ iotlab-experiment wait
+
+    $ iotlab-experiment get --nodes

`-r` instead of `--nodes`?

> +#   * `OPENV_FLAGS='--port=9001`
+#
+# Not all logs for openvisualizer are piped to the terminal, more detailed logs
+# are stored in $(BINDIR)/openv-server.log
+#
+# Supported:
+#  * openv-term
+#  * openv-termroot
+#  * openv-setroot
+#  * openv-clean
+#
+# Prerequisites
+# -------------
+#
+# * Install openvisualizer:
+#   * git clone -b pr_develop_SW-318_baud_mask_opt https://github.com/fjmolinas/openvisualizer.git

`develop_SW-318-RIOT`, `pr_develop_SW-318_iotlab`? 

> +#
+# Not all logs for openvisualizer are piped to the terminal, more detailed logs
+# are stored in $(BINDIR)/openv-server.log
+#
+# Supported:
+#  * openv-term
+#  * openv-termroot
+#  * openv-setroot
+#  * openv-clean
+#
+# Prerequisites
+# -------------
+#
+# * Install openvisualizer:
+#   * git clone -b pr_develop_SW-318_baud_mask_opt https://github.com/fjmolinas/openvisualizer.git
+#   * git checkout develop_SW-318-RIOT

Needed?

> +# are stored in $(BINDIR)/openv-server.log
+#
+# Supported:
+#  * openv-term
+#  * openv-termroot
+#  * openv-setroot
+#  * openv-clean
+#
+# Prerequisites
+# -------------
+#
+# * Install openvisualizer:
+#   * git clone -b pr_develop_SW-318_baud_mask_opt https://github.com/fjmolinas/openvisualizer.git
+#   * git checkout develop_SW-318-RIOT
+#   * cd openvisualizer
+#   * pip install .

```
Successfully built PyDispatcher bottle yappi cbor hkdf paho-mqtt ipaddr sshtunnel iotlabcli wrapt scandir
Installing collected packages: pyserial, PyDispatcher, bottle, sphinxcontrib-websupport, pytz, babel, imagesize, setuptools, pyparsing, six, packaging, Pygments, urllib3, chardet, certifi, idna, requests, docutils, typing, alabaster, MarkupSafe, Jinja2, snowballstemmer, Sphinx, yappi, intelhex, cbor, hkdf, singledispatch, wrapt, enum34, backports.functools-lru-cache, lazy-object-proxy, astroid, configparser, futures, isort, mccabe, pylint, scons, pycryptodome, contextlib2, zipp, scandir, pathlib2, importlib-metadata, funcsigs, py, pluggy, attrs, more-itertools, atomicwrites, wcwidth, pytest, openwsn-coap, paho-mqtt, scapy, monotonic, humanfriendly, coloredlogs, verboselogs, click, blessed, ipaddr, pycparser, cffi, pynacl, bcrypt, ipaddress, cryptography, paramiko, sshtunnel, jmespath, iotlabcli, openvisualizer
  Running setup.py install for openvisualizer ... done
Speicherzugriffsfehler (Speicherabzug geschrieben)
```
(Speicherzugriffsfehler = Segfault)

> +    NO RPL parent
+
+### Flash root node
+
+Same as above but with `openwsn_serial`:
+
+    $ USEMODULE=openwsn_serial IOTLAB_NODE=m3-3.saclay.iot-lab.info BOARD=iotlab-m3 make -C tests/pkg_openwsn flash
+
+The code that goes into root nodes and normal nodes is mostly the same except for
+`stdio`. To be able to interface with `openvisualizer` the node will need a
+dedicated uart. For most `BOARD`s its easier to simply disable `stdio` so this
+application include `stdio_null` by default.
+
+For the node you choose as root you can set it up with:
+
+    $ IOTLAB_NODE=m3-3.saclay.iot-lab.info make -C tests/pkg_openwsn openv-termroot

```
3.2.0

 ___                 _ _ _  ___  _ _ 
| . | ___  ___ ._ _ | | | |/ __>| \ |
| | || . \/ ._>| ' || | | |\__ \|   |
`___'|  _/\___.|_|_||__/_/ <___/|_\_|
     |_|                  openwsn.org

Traceback (most recent call last):
  File "/home/kietzmann/.local/bin/openv-server", line 11, in <module>
    load_entry_point('openvisualizer==2.0.0', 'console_scripts', 'openv-server')()
  File "/home/kietzmann/.local/lib/python2.7/site-packages/openvisualizer/main.py", line 689, in main
    log.verbose("Loading logging configuration: {}".format(args.logconf))
AttributeError: 'Namespace' object has no attribute 'logconf'
/media/DATA/RIOT/dist/tools/openvisualizer/makefile.openvisualizer.inc.mk:61: recipe for target 'openv-termroot' failed
make: *** [openv-termroot] Error 1
```

> +    IEEE802154E sync: 0
+
+    6tsch joined: 0
+
+    NO RPL parent
+
+### Flash root node
+
+Same as above but with `openwsn_serial`:
+
+    $ USEMODULE=openwsn_serial IOTLAB_NODE=m3-3.saclay.iot-lab.info BOARD=iotlab-m3 make -C tests/pkg_openwsn flash
+
+The code that goes into root nodes and normal nodes is mostly the same except for
+`stdio`. To be able to interface with `openvisualizer` the node will need a
+dedicated uart. For most `BOARD`s its easier to simply disable `stdio` so this
+application include `stdio_null` by default.

Eventually mention that `term` or the serial_aggregator output "unreadable" data.

-- 
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/13824#pullrequestreview-418524779
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200526/b82b0cc2/attachment-0001.htm>


More information about the notifications mailing list