...
Preparing for a simulation
Info |
---|
The OpenSim environment combines from elements from the following repositories: The OpenSim environment assume that you have clone them at the same level. That is, you need to have the |
Before you can run a simulation, you need to compile the OpenWSN firmware as a Python extension module. For that, navigate to the openwsn-fw/
directory, and enter the following
is a software for the simulation of the OpenWSN's stack. It's composed by a SConscript structure that allow to build the OpenWSN stack as a Python extention library, and an emulated transmission medium provided by EventBus module.
...
command:
Code Block |
---|
scons board=python toolchain=gcc oos_openwsn |
You can see an example output of this command on the OpenWSN build servers:
- on Travis-ci (Linux environment) at https://travis-ci.org/openwsn-berkeley/openwsn-fw
This command creates the following Python extension module.
Code Block |
---|
openwsn-fw/firmware/openos/projects/common/oos_openwsn.pyd |
The OpenSim infrastructure automatically adjusts its path to find this extension module, no need to move this file.
Running a simulation
Note |
---|
This section is under construction as we are slightly redesigning the way to run simulations. |
In your openwsn-fw/
folder, enter the following command to build the OpenWSN mote's firmware as a Python extension library:
...