Polling access method Implementation for BaselineMAC

30 views
Skip to first unread message

Wan H4

unread,
Jan 16, 2024, 9:11:23 PMJan 16
to Castalia Simulator
Hi everyone,

I am trying to enable polling access for specific nodes and have made modifications to the omnetpp.ini file. Specifically, I want to activate polling only for node 3. Here is the configuration snippet I have added:

[Config pollingON]
SN.node[3].Communication.MAC.pollingEnabled = true

However, the Castalia trace results do not indicate that polling is being activated for the specified nodes. To give polling accses to specific nodes, what can I change to the code/file?

Üveges Bálint

unread,
Jan 17, 2024, 3:59:43 AMJan 17
to castalia-...@googlegroups.com
Hi,

Not being an expert on BaselineMAC, but I've noticed in the code that you also have to set the naivePollingScheme parameter to true for the designated node, otherwise the corresponding timer (SEND_FUTURE_POLLS) is not scheduled.

Br,
-Balint

--
You received this message because you are subscribed to the Google Groups "Castalia Simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castalia-simula...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/castalia-simulator/81d1a584-4f05-4f39-bde9-87ad2a134ee5n%40googlegroups.com.

Wan H4

unread,
Jan 17, 2024, 8:10:47 PMJan 17
to castalia-...@googlegroups.com
Thank you for your idea. 

I tried to run the BaselineBANMac based on this configuration in the omnetpp.ini file. Unfortunately, the designated node (which is node 3 in this case) is not being polled. No polling access is present in the simulation. Do you have any idea why this is happening?

[Config BaselineMAC]
SN.node[*].Communication.MACProtocolName = "BaselineBANMac"
SN.node[*].Communication.MAC.phyDataRate = 1024 
SN.node[0].Communication.MAC.isHub = true
SN.node[*].Communication.MAC.macBufferSize = 48
SN.node[*].Communication.MAC.RAP1Length = 2
SN.node[1].Communication.MAC.scheduledAccessLength = 1
SN.node[5].Communication.MAC.scheduledAccessLength = 1
SN.node[4].Communication.MAC.scheduledAccessLength = 1
SN.node[2].Communication.MAC.scheduledAccessLength = 1
SN.node[3].Communication.MAC.scheduledAccessLength = 1

SN.node[3].Communication.MAC.pollingEnabled = true
SN.node[3].Communication.MAC.naivePollingScheme = true

Reply all
Reply to author
Forward
0 new messages