the parameter is "sensitivity", the units dBm.
De: inetframew...@googlegroups.com <inetframew...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
Enviado: miércoles, 27 de mayo de 2020 2:27
Para: INET Framework Contributors <inetframew...@googlegroups.com>
Asunto: [inet-contrib] How to set receiver power parameter in xmac/Bmac
--
Hello everyone,
I am studying the MAC protocols implemented in INET framework. In .ini file, transmitter power parameter is given, but the power required to receive a packet is not given.
Can anyone please suggest me how to set receiver power parameter?
Please anyone suggest me.
Regards,
You received this message because you are subscribed to the Google Groups "INET Framework Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inetframework-contrib+unsub...@googlegroups.com.
Yes, it is the carrier sensing medium interval before to change
to TX mode
To unsubscribe from this group and stop receiving emails from it, send an email to inetframework-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/cfa06cae-a4df-4da8-80b8-0cc55079ca58%40googlegroups.com.
-- Alfonso Ariza Quintana Profesor Titular (Associate Professor/Senior Lecturer) del área de Tecnología Electrónica. Dpto. Tecnología Electrónica. E.T.S.I. de Telecomunicación Universidad de Málaga Campus de Teatinos Bulevar Louis Pasteur nº 35 29071 Málaga España
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/cfa06cae-a4df-4da8-80b8-0cc55079ca58%40googlegroups.com.
xmac is a protocol that sleeps the radio and awakes periodically
De: inetframew...@googlegroups.com <inetframew...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/11fe5843-4110-4c48-b4ff-a2460f634cd7%40googlegroups.com.
xmac is a protocol that sleeps the radio and awakes periodically
De: inetframew...@googlegroups.com <inetframew...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/11fe5843-4110-4c48-b4ff-a2460f634cd7%40googlegroups.com.
Yes, you can set the interval and listening time in the ini file
and the default value is set in the ned definition file
To unsubscribe from this group and stop receiving emails from it, send an email to inetframework-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/6e00d2b6-88aa-44d5-8a79-a1001d305788%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/6e00d2b6-88aa-44d5-8a79-a1001d305788%40googlegroups.com.
// how long is one slot?
double slotDuration @unit(s) = default(1s);
// how long is the check interval (CCA)?
double checkInterval @unit(s) = default(0.01s);
The total time is CCA + Slot duration
To unsubscribe from this group and stop receiving emails from it, send an email to inetframework-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/5d270b59-41d3-41f0-8fbf-9642ef493870%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/5d270b59-41d3-41f0-8fbf-9642ef493870%40googlegroups.com.
case CCA: |
if (msg->getKind() == XMAC_CCA_TIMEOUT) |
{ |
// channel is clear and we wanna SEND |
if (!txQueue->isEmpty()) |
{ |
radio->setRadioMode(IRadio::RADIO_MODE_TRANSMITTER); |
changeDisplayColor(YELLOW); |
macState = SEND_PREAMBLE; |
// We send the preamble for a whole SLOT duration :) |
scheduleAt(simTime() + slotDuration, stop_preambles); |
// if 0.2f * CI = 2ms to switch to TX -> has to be accounted for RX_preamble_detection |
scheduleAt(simTime() + 0.2f * checkInterval, switch_preamble_phase); |
return; |
} |
// if anything to send, go back to sleep and wake up after a full period |
else |
{ |
scheduleAt(simTime() + slotDuration, wakeup); |
macState = SLEEP; |
radio->setRadioMode(IRadio::RADIO_MODE_SLEEP); |
changeDisplayColor(BLACK); |
return; |
} |
The best id to check the source code, after finish the CCA, the node program the preamble for a slot duration if it needs to transmit or sleep for a slot duration if there isn't any transmissionIf the node doesn't need to transmit and it doesn't listen any transmission the node will be awake CCA time and slept a slot durationthe hyperperiode without transmission or reception will be CCA+Slot. If the node needs to transmit or it receives something in the CCA, the time sequence change
case CCA:
if (msg->getKind() == XMAC_CCA_TIMEOUT)
{
// channel is clear and we wanna SEND
if (!txQueue->isEmpty())
{
radio->setRadioMode(IRadio::RADIO_MODE_TRANSMITTER);
changeDisplayColor(YELLOW);
macState = SEND_PREAMBLE;
// We send the preamble for a whole SLOT duration :)
scheduleAt(simTime() + slotDuration, stop_preambles);
// if 0.2f * CI = 2ms to switch to TX -> has to be accounted for RX_preamble_detection
scheduleAt(simTime() + 0.2f * checkInterval, switch_preamble_phase);
return;
}
// if anything to send, go back to sleep and wake up after a full period
else
{
scheduleAt(simTime() + slotDuration, wakeup);
macState = SLEEP;
radio->setRadioMode(IRadio::RADIO_MODE_SLEEP);
changeDisplayColor(BLACK);
return; }
}
De: inetframew...@googlegroups.com <inetframew...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/4d48120b-b22d-4a30-8360-23d694059cc3%40googlegroups.com.
The best id to check the source code, after finish the CCA, the node program the preamble for a slot duration if it needs to transmit or sleep for a slot duration if there isn't any transmissionIf the node doesn't need to transmit and it doesn't listen any transmission the node will be awake CCA time and slept a slot durationthe hyperperiode without transmission or reception will be CCA+Slot. If the node needs to transmit or it receives something in the CCA, the time sequence change
case CCA:
if (msg->getKind() == XMAC_CCA_TIMEOUT)
{
// channel is clear and we wanna SEND
if (!txQueue->isEmpty())
{
radio->setRadioMode(IRadio::RADIO_MODE_TRANSMITTER);
changeDisplayColor(YELLOW);
macState = SEND_PREAMBLE;
// We send the preamble for a whole SLOT duration :)
scheduleAt(simTime() + slotDuration, stop_preambles);
// if 0.2f * CI = 2ms to switch to TX -> has to be accounted for RX_preamble_detection
scheduleAt(simTime() + 0.2f * checkInterval, switch_preamble_phase);
return;
}
// if anything to send, go back to sleep and wake up after a full period
else
{
scheduleAt(simTime() + slotDuration, wakeup);
macState = SLEEP;
radio->setRadioMode(IRadio::RADIO_MODE_SLEEP);
changeDisplayColor(BLACK);
return; }
}
De: inetframew...@googlegroups.com <inetframew...@googlegroups.com> en nombre de SEDE <afro...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msgid/inetframework-contrib/4d48120b-b22d-4a30-8360-23d694059cc3%40googlegroups.com.