Xmac: Duty cycle parameter

19 views
Skip to first unread message

SEDE

unread,
May 18, 2020, 9:15:06 AM5/18/20
to INET Framework Contributors

Hello everyone,

I am new in OMNET++ and trying to implement my MAC protocol using inet framework.

Can anyone please tell me for XMAC, which parameter actually represents the duty cycle of the nodes? In other word, how i can set duty cycle of the nodes for xmac?

Besides, in XMAC, i have found a method peekatfront (as below) is being used. Can anyone tell me what is the function of this method here?

if (msg->getKind() == XMAC_PREAMBLE) {
            auto incoming_preamble = check_and_cast<Packet *>(msg)->peekAtFront<XMacControlFrame>();


Hope, I will get your response.

Kind Regards,


Reply all
Reply to author
Forward
0 new messages