Difference between revisions of "MansOS PC Emulation"

From DiLab
Jump to: navigation, search
(New page: Before deploying sensor network application on real motes, MansOS allows program debugging on PC platform. Virtual mote network can be simulated. Two steps are required, described in the ...)
 
(Step 1: Create a virtual "cloud")
Line 4: Line 4:


== Step 1: Create a virtual "cloud" ==
== Step 1: Create a virtual "cloud" ==

TODO
To emulate radio communication medium, a virtual "cloud" proxy program is available under <code>mansos/pc/proxy</code>. To compile it:
mansos/pc/proxy
make

To run it:
make run

It acts as a TCP server and opens socket for incoming connections. Administrator permissions may be required for it.

The virtual cloud acts as a hub - it forwards a packet received from a virtual mote to all other virtual motes connected to the cloud.

This proxy program must be running to allow virtual mote communication. It also displays some debug information about traveling packets. It can be terminated by pressing Ctrl+C.


== Step 2: Connect virtual motes to the cloud ==
== Step 2: Connect virtual motes to the cloud ==

Revision as of 10:00, 9 January 2012

Before deploying sensor network application on real motes, MansOS allows program debugging on PC platform. Virtual mote network can be simulated.

Two steps are required, described in the following sections

Step 1: Create a virtual "cloud"

To emulate radio communication medium, a virtual "cloud" proxy program is available under mansos/pc/proxy. To compile it:

mansos/pc/proxy
make

To run it:

make run

It acts as a TCP server and opens socket for incoming connections. Administrator permissions may be required for it.

The virtual cloud acts as a hub - it forwards a packet received from a virtual mote to all other virtual motes connected to the cloud.

This proxy program must be running to allow virtual mote communication. It also displays some debug information about traveling packets. It can be terminated by pressing Ctrl+C.

Step 2: Connect virtual motes to the cloud

TODO