2014-04-24 16:25:24 +02:00
|
|
|
# OpenWSN on RIOT
|
|
|
|
|
2014-11-25 17:49:25 +01:00
|
|
|
This port of OpenWSN to RIOT is based on current OpenWSN upstream providing a
|
|
|
|
BSP with RIOT's interfaces. Currently supported are iot-lab_M3 and fox. More
|
|
|
|
boards will follow through improvements in netdev radio driver interface.
|
2014-01-16 21:31:44 +01:00
|
|
|
|
2014-04-24 16:25:24 +02:00
|
|
|
# Usage
|
|
|
|
|
2014-11-25 17:49:25 +01:00
|
|
|
A test can be found in tests/openwsn providing a shell command to initialise
|
|
|
|
as root or listening node. And providing a sample Makefile.
|
2014-04-24 16:25:24 +02:00
|
|
|
|
|
|
|
Build using
|
|
|
|
```Bash
|
|
|
|
$> export BOARD=iot-lab_M3
|
|
|
|
$> export PORT=/dev/ttyTHEPORTOFYOURIOTLAB
|
2014-11-25 17:49:25 +01:00
|
|
|
$> make -B clean flash term
|
2014-04-24 16:25:24 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
To use OpenWSN with RIOT it has to be added to the used packages variable
|
|
|
|
```Makefile
|
|
|
|
USEPKG += openwsn
|
|
|
|
```
|
|
|
|
|
|
|
|
On the first build the archive will be fetched, patched and built.
|
|
|
|
**WARNING** A call of `make clean` also cleans the OpenWSN tree right now so
|
|
|
|
changes to the source code will be lost in the next build.
|