[ndnSIM] ndnSIM Digest, Vol 90, Issue 6

Atif Rehman atif_r at outlook.com
Thu May 7 23:36:22 PDT 2020


Hi,

I am not much familiar with "WifiRadioEnergyModelHelper" but I have some suggestions that may work for you.

You can write private energy consumption functions in Forwarder.cpp class and can call them from the following functions.

  1.  Forwarder::onIncomingInterest -> In this function you call your private function for example computerInterestPacketEnergyConsumption(interest). You can then compute the Interest packet energy consumption by obtaining the Interest packet size in bits and multiplying it by the per-bit energy consumption value (based on the 802.15.4 sensor node).
  2.  Forwarder::onIncomingData -> for Data packet you can follow the same procedure as mentioned above
  3.  Forwarder::onOutgoingInterest -> same as mentioned above
  4.  Forwarder::onOutgoingData -> same as mentioned above
  5.  Forwarder::onIncomingNack

In regards to your power in nodes question, you can use the following class and its function from LRWPAN module to set power and cahnnel number for the communication.

LrWpanSpectrumValueHelper.CreateTxPowerSpectralDensity (double txPower, uint32_t channel).



Regards



Muhammad Atif Ur Rehman (Ph.D. Candidate)

________________________________
From: ndnSIM <ndnsim-bounces at lists.cs.ucla.edu> on behalf of ndnsim-request at lists.cs.ucla.edu <ndnsim-request at lists.cs.ucla.edu>
Sent: Friday, May 8, 2020 12:00 AM
To: ndnsim at lists.cs.ucla.edu <ndnsim at lists.cs.ucla.edu>
Subject: ndnSIM Digest, Vol 90, Issue 6

Send ndnSIM mailing list submissions to
        ndnsim at lists.cs.ucla.edu

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
or, via email, send a message with subject or body 'help' to
        ndnsim-request at lists.cs.ucla.edu

You can reach the person managing the list at
        ndnsim-owner at lists.cs.ucla.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ndnSIM digest..."


Today's Topics:

   1. Re: (no subject) (bellal zitouni)


----------------------------------------------------------------------

Message: 1
Date: Thu, 7 May 2020 09:16:58 +0200
From: bellal zitouni <bellalzitouni at gmail.com>
To: ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] (no subject)
Message-ID:
        <CABF9D-1ENiHjZcd7MtCSsca1EnN6taqGX8tvTUDXwJQMcNN_JA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi, please can you help solve my issue.i'm working on IEEE 802.15.4 and I
need to simulate the energy consumption but in the documentation, I find
only  WifiRadioEnergyModelHelper

Le mar. 5 mai 2020 ? 19:58, bellal zitouni <bellalzitouni at gmail.com> a
?crit :

> Hi all
> How can i install power in all the nodes
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20200507/34ccac9d/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim


------------------------------

End of ndnSIM Digest, Vol 90, Issue 6
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20200508/672d2004/attachment.html>


More information about the ndnSIM mailing list