I want to generate periodic traffic and emergency traffic for a BAN application, I want to associate the periodic traffic to MAP period and the emergency one to the RAP period. I used the following configuration, after reading your manual.
I specified 6 devices where device 0 is the Hub. I also specified for each sensor, the packet rate and the packet size.
I have the following questions:
1. I'm not able to verify if the transmission is made during MAP period.
2. I do not know how to specify a device with emergency traffic to associate it to RAP period.
3. I specifed the packet size as 17 bytes for node 2, however when checking the result in the trace file, I found it 105 bytes. I attached the trace file to this mail.
Thank for your help
[Config NEWCONFIG]
SN.node[*].Application.collectTraceInfo = true
SN.node[*].Communication.MACProtocolName = "BaselineBANMac"
SN.numNodes = 6
#PWD
SN.node[0].xCoor = 0.125 # *
SN.node[0].yCoor = 0.3 # *
SN.node[0].zCoor = 0.5 # *
#Blood pressure
SN.node[1].xCoor = 1.2 # *
SN.node[1].yCoor = 0.3 # *
SN.node[1].zCoor = 0.5 # *
#ECG
SN.node[2].xCoor = 1.2 # *
SN.node[2].yCoor = 0.68 # *
SN.node[2].zCoor = 0.5 # *
SN.node[3].xCoor = 1.5 # *
SN.node[3].yCoor = 0.68 # *
SN.node[3].zCoor = 0.5 # *
SN.node[4].xCoor = 1.5 # *
SN.node[4].yCoor = 0.38 # *
SN.node[4].zCoor = 0.5 # *
#Spo2
SN.node[5].xCoor = 1 # *
SN.node[5].yCoor = 0.38 # *
SN.node[5].zCoor = 0.5 # *
SN.node[1].Application.packet_rate = 100
SN.node[2].Application.packet_rate = 250
SN.node[3].Application.packet_rate = 250
SN.node[4].Application.packet_rate = 250
SN.node[5].Application.packet_rate = 100
SN.node[1].Application.packetSize = 17
SN.node[2].Application.packetSize = 16.4
SN.node[3].Application.packetSize = 16.4
SN.node[4].Application.packetSize = 16.4
SN.node[5].Application.packetSize = 16.4
SN.node[*].Communication.MAC.phyDataRate = 1024
SN.node[0].Communication.MAC.isHub = true
SN.node[*].Communication.MAC.macBufferSize = 48
SN.node[*].Communication.MAC.pollingEnabled = true
SN.node[0].Communication.MAC.isHub = true
SN.node[*].Communication.MAC.RAP1Length = 8
SN.node[*].Communication.MAC.scheduledAccessLength = 24