Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 openwsn-sw/ and openwsn-fw/ directories side-by-side on your computer.

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:

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:

...