Versions Compared

Key

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

...

How it works

A simulated network dehaves behaves 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.

...

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

The OpenVisualizer is not aware it is talking with emulated motes, and from a networking point of view, interacting with the emulated motes is exactly the same as interacting with real motes.

Gliffy
namehardware_vs_simulation

Preparing for a simulation

...

Directory organization

The OpenSim environment combines

...

elements from the following repositories:

The OpenSim environment

...

assumes that you have

...

cloned them at the same level. That is, you need to have the openwsn-sw/ and openwsn-fw/ directories side-by-side on your computer.

Installation requirements

  • You need to be able to run the OpenVisualizer, so make sure installed the elements necessary for the OpenVisualizer to run.
  • Your computer needs to have gcc installed to be able to compile the firmware as a Python extension module. On Linux, that should be the case by default. On Windows, we recommend http://www.mingw.org/.

Compiling firmware

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 command:

...

You can see an example output of this command on the OpenWSN build serversbuilders:

...