EnergyModel

Open NetSim, Select Examples->IOT-WSN->Internet of Things->Energy Model then click on the tile in the middle panel to load the example as shown in Figure 4‑1.

Figure 4‑1: List of scenarios for the example of Energy Model

The following network diagram illustrates, what the NetSim UI displays when you open the example configuration file.

C:\Users\TETCOS_PC\Desktop\Capture.PNG

Figure 4‑2: Network set up for studying the Energy Model

Settings done in sample network

  1. Grid length(m) 100, Side Length(m) 100, Manually via Click and Drop.

  2. In LOWPAN_Gateway change BeaconMode Enable, Superframe Order 10, Beacon Order 10.

  3. Channel Characteristic NO PATHLOSS in Adhoc link Properties.

    C:\Users\TETCOS_PC\Desktop\Capture.PNG

Figure 4‑3: Datalink layer Properties for Lowpan Gateway

  1. Click on the Application icon present in the top ribbon/toolbar

    • Created Sensor Application from Sensor_1 to Wired_Node_4 with > default Properties.
  2. In NetSim GUI Plots are Enabled.

  3. Run the simulate for 100 sec.

  4. Check the Battery model in simulation results window, users should get zero value for Sleep energy (mJ) consumed.

  5. Go back to Simulation window change following properties in LOWPAN_Gateway for another sample.

  6. Set Superframe Order (SO) and Beacon Order (BO) as 10 and 12 respectively (0 \<= SO \<= BO \<= 14)

  7. Re-run the Simulate for 100 sec.

  8. Check the Battery Model metrics in metrics window, users should get non-zero value for Sleep energy consumed.

Results: In Superframe order 10 and Beacon order 10 Sample, users can observe sleep energy consumed value will be zero in Battery Model metrics in the Results Window since sensor is in active state all the time. i.e., if SO=10 and BO=10, there won’t be any inactive portion of the Superframe.

In Superframe order 10 and Beacon order 12 Sample, sleep energy consumed will be non-zero since sensor goes to sleep mode during the inactive portion of the Superframe.