Versions Compared

Key

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

Overview

OpenSim OpenSim allows you to simulate an OpenWSN network without physical devices.

How it works

A simulated network dehaves exactly like a network with real hardware. You can interact with the OpenVisualizer, communicate with your nodes from the Internet. The difference is that each node is emulated on your computer, rather than being real hardware.

OpenSim does so by compiling the mote code as a Python extension module, and creating an instance of the resulting class for each emulated mote. When the simulation is running, these emulate motes communicate with the rest of the OpenVisualizer architecture (see Architecture) over the eventBus.

As illustrated in the diagram below, the emulated modes interact with the eventBus the exact say way a moteProbe instance (connected to a hardware mote) does. In fact, the OpenVisualizer is not aware it is talking with emulated motes.

Gliffy
namehardware_vs_simulation

Preparing for a simulation

Before you can run a simulation, you need to compile the OpenWSN firmware as a Python extension module. For that, 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.

...