...
- https://github.com/openwsn-berkeley/openwsn-fw holds the firmware source code which runs on the (possibly emulated) motes
- https://github.com/openwsn-berkeley/openwsn-swopenvisualizer holds the software source code which runs on your computer
- https://github.com/openwsn-berkeley/coap is a Python module which implements CoAP
...
- right-click on your Desktop, select TortoiseGit > Clone... .
- In the URL, enter https://github.com/openwsn-berkeley/openwsn-fw.git
- repeat for the following URLs:
...
Tip | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Before you can go on, you need to install
|
...
Tip | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||
Before you can go on, you need to install Python:
|
...
Code Block | ||
---|---|---|
| ||
C:\Users\ThomasTengfei\Desktop\openwsn-fw>scons board=python toolchain=gcc oos_openwsn scons: Reading SConscript files ... ___ _ _ _ ___ _ _ | . | ___ ___ ._ _ | | | |/ __>| \ | | | || . \/ ._>| ' || | | |\__ \| | `___'| _/\___.|_|_||__/_/ <___/|_\_| |_| openwsn.org [...] Archiving build\python_gcc\bsp\boards\libbsp.a Indexing build\python_gcc\bsp\boards\libbsp.a gcc -shared -o build\python_gcc\projects\common\oos_openwsn.pyd build\python_gcc\projects\common\03o os_openwsn\03oos_openwsn_obj.o build\python_gcc\projects\common\03oos_openwsn\openwsnmodule_obj.o -L C:\Python27\libs -Lbuild\python_gcc\bsp\boards -Lbuild\python_gcc\kernel\openos -Lbuild\python_gcc\d rivers -Lbuild\python_gcc\openstack -Lbuild\python_gcc\openapps -lopenstack -lopenapps -lkernel -ldr ivers -lbsp -lpython27 -Wl,--out-implib,build\python_gcc\projects\common\liboos_openwsn.a scons: done building targets. |
...
Expand | ||
---|---|---|
| ||
|
...
Code Block | ||
---|---|---|
| ||
C:\Users\ThomasTengfei\Desktop\openwsn-sw\software\openvisualizer>scons runweb --sim scons: Reading SConscript files ... ___ _ _ _ ___ _ _ | . | ___ ___ ._ _ | | | |/ __>| \ | | | || . \/ ._>| ' || | | |\__ \| | `___'| _/\___.|_|_||__/_/ <___/|_\_| |_| openwsn.org scons: done reading SConscript files. scons: Building targets ... Copy("bin\openVisualizerApp\sim_files", "..\..\..\openwsn-fw\bsp\boards\python\openwsnmodule_obj.h") Mkdir("bin\openVisualizerApp\sim_files\windows") Copy("bin\openVisualizerApp\sim_files\windows\oos_openwsn-x86.pyd", "..\..\..\openwsn-fw\build\python_gcc\projects\common\oos_openwsn.pyd") Copy("bin\openVisualizerApp\sim_files", "..\..\..\openwsn-fw\build\python_gcc\projects\common\oos_openwsn.pyd") MkdirDelete("C:build\Users\Thomas\Desktop\openwsn-sw\software\openvisualizer\build\runui") Copy("build\runui\openvisualizer.conf", "bin\openVisualizerApp\openvisualizer.conf") Mkdir("C:\Users\Thomas\Desktop\openwsn-sw\software\openvisualizer\build\runui") Copy("build\runui\logging.conf", "bin\openVisualizerApp\logging.conf") Mkdir("C:\Users\Thomas\Desktop\openwsn-sw\software\openvisualizer\build\runui") Copy("build\runui\trace.conf", "bin\openVisualizerApp\trace.conf") Delete("build\runui\webrunui\web_files") Mkdir("C:\Users\Thomas\Desktop\openwsn-sw\softwareTengfei\Desktop\openvisualizer\build\runui") Copy("build\runui\web_files", "bin\openVisualizerApp\web_files") Delete("build\runui\sim_files") Mkdir("C:\Users\ThomasTengfei\Desktop\openwsn-sw\software\openvisualizer\build\runui") Copy("build\runui\sim_files", "bin\openVisualizerApp\sim_files") uiRunner(["bin\openVisualizerApp\openVisualizerWeb"], ["bin\openVisualizerApp\openVisualizerWeb.py"]) 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 1310:0946:2215 INFO create instance 13:09:22 INFO 3 [OPENWSN] booted OpenVisualizer web interface started at 0.0.0.0: 8080 enter 'q' to exit > 13:09:22 INFO 2 [OPENWSN] booted 13:09:22 INFO 1 [OPENWSN] booted |
...
Info |
---|
As SCons on Windows can be run with scons.bat, you can launch the simulation on another window with the following command : C:\Users\ThomasTengfei\Desktop\openwsn-sw\software\openvisualizer>start cmd.exe /k "scons.bat" runweb --sim Closing SCons window will kill the simulation. |
...
Code Block | ||
---|---|---|
| ||
C:\Users\Thomas>pingTengfei>ping bbbb::1415:92cc:0:2 Pinging bbbb::1415:92cc:0:2 with 32 bytes of data: Reply from bbbb::1415:92cc:0:2: time=101ms Reply from bbbb::1415:92cc:0:2: time=67ms Reply from bbbb::1415:92cc:0:2: time=97ms Reply from bbbb::1415:92cc:0:2: time=91ms Ping statistics for bbbb::1415:92cc:0:2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 67ms, Maximum = 101ms, Average = 89ms |
...
Code Block | ||
---|---|---|
| ||
C:\Users\Thomas>pingTengfei>ping bbbb::1415:92cc:0:3 Pinging bbbb::1415:92cc:0:3 with 32 bytes of data: Reply from bbbb::1415:92cc:0:3: time=206ms Reply from bbbb::1415:92cc:0:3: time=95ms Reply from bbbb::1415:92cc:0:3: time=153ms Reply from bbbb::1415:92cc:0:3: time=76ms Ping statistics for bbbb::1415:92cc:0:3: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 76ms, Maximum = 206ms, Average = 132ms |
...
Code Block | ||
---|---|---|
| ||
C:\Users\ThomasTengfei\Desktop\openwsn-fw\openapps\cinfo OpenWSN 1.4.1 Python Python Python Done. Press enter to close. |
...
Code Block | ||
---|---|---|
| ||
C:\Users\ThomasTengfei\Desktop\openwsn-fw>scons board=telosb toolchain=mspgcc bootload=COM4,COM5,COM6 oos_openwsn scons: Reading SConscript files ... ___ _ _ _ ___ _ _ | . | ___ ___ ._ _ | | | |/ __>| \ | | | || . \/ ._>| ' || | | |\__ \| | `___'| _/\___.|_|_||__/_/ <___/|_\_| |_| openwsn.org scons: done reading SConscript files. scons: Building targets ... [...] Linking firmware\openos\projects\common\03oos_openwsn_prog.exe msp430-size firmware\openos\projects\common\03oos_openwsn_prog.exe text data bss dec hex filename 43156 0 4006 47162 b83a firmware\openos\projects\common\03oos_openwsn_prog.exe msp430-objcopy --output-target=ihex firmware\openos\projects\common\03oos_openwsn_prog.exe firmware\openos\projects\comm on\03oos_openwsn_prog.ihex msp430-objcopy --output-target=binary firmware\openos\projects\common\03oos_openwsn_prog.exe firmware\openos\projects\co mmon\03oos_openwsn_prog.bin telosb_bootload(["firmware\openos\projects\common\03oos_openwsn_prog.phonyupload"], ["firmware\openos\projects\common\03 oos_openwsn_prog.ihex"]) starting bootloading on COM4 starting bootloading on COM5 starting bootloading on COM6 [...] done bootloading on COM4 done bootloading on COM6 done bootloading on COM5 scons: done building targets. |
...
Code Block | ||
---|---|---|
| ||
C:\Users\ThomasTengfei\Desktop\openwsn-sw\software\openvisualizer>scons runweb scons: Reading SConscript files ... ___ _ _ _ ___ _ _ | . | ___ ___ ._ _ | | | |/ __>| \ | | | || . \/ ._>| ' || | | |\__ \| | `___'| _/\___.|_|_||__/_/ <___/|_\_| |_| openwsn.org scons: done reading SConscript files. scons: Building targets ... Delete("build\runui\web_files") Mkdir("C:\Users\tengfei\Desktop\openwsn\openwsn-sw\software\openvisualizer\build\runui") Copy("build\runui\web_files", "bin\openVisualizerApp\web_files") Delete("build\runui\sim_files") Mkdir("C:\Users\tengfei\Desktop\openwsn\openwsn-sw\software\openvisualizer\build\runui") Copy("build\runui\sim_files", "bin\openVisualizerApp\sim_files") uiRunner(["bin\openVisualizerApp\openVisualizerWeb"], ["bin\openVisualizerApp\openVisualizerWeb.py"] ) OpenVisualizer web interface started at 0.0.0.0: 8080 enter 'q' to exit > |
...
Code Block | ||
---|---|---|
| ||
C:\Users\Thomas>pingTengfei>ping bbbb::1415:9200:12:e63b Pinging bbbb::1415:9200:12:e63b with 32 bytes of data: Reply from bbbb::1415:9200:12:e63b: time=285ms Reply from bbbb::1415:9200:12:e63b: time=276ms Reply from bbbb::1415:9200:12:e63b: time=437ms Reply from bbbb::1415:9200:12:e63b: time=431ms Ping statistics for bbbb::1415:9200:12:e63b: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 276ms, Maximum = 437ms, Average = 357ms |
...
Code Block | ||
---|---|---|
| ||
C:\Users\ThomasTengfei\Desktop\openwsn-fw\openapps\cinfo>python cinfo.py C:\Users\ThomasTengfei\Desktop\openwsn-fw\openapps\cinfo OpenWSN 1.4.1 TelosB MSP430f1611 CC2420 Done. Press enter to close. |
...