Creating script with different traffic types and different periods in IEEE 802.15.6

128 views
Skip to first unread message

rim negra

unread,
May 25, 2017, 9:03:22 AM5/25/17
to Castalia Simulator
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
Castalia-Trace.txt.tar.gz

rim negra

unread,
May 28, 2017, 9:07:43 AM5/28/17
to Castalia Simulator

Any answer please?

Thanassis Boulis

unread,
Jun 4, 2017, 2:52:27 AM6/4/17
to Castalia Simulator
As far as I remember, 802.15.6 (and certainly the Castalia BaselineBANMAC impementation) does not provide a way to mark specific application packets to be transmitted in RAP (CSMA) or MAP (this is the TDMA choice, right?)

The MAC will try to transmit all any packet in it's data buffer in the first available slot it has. This can be a RAP or a MAP slot. 

--
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-simulator+unsub...@googlegroups.com.
To post to this group, send email to castalia-simulator@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/castalia-simulator/97cf00e9-1c0a-4744-b7b1-b9fb3cd58a71%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Wan H4

unread,
Jul 23, 2023, 11:52:25 PM7/23/23
to Castalia Simulator
Dear Dr Boulis,

Using Castalia, is it feasible to implement a method for marking certain application packets to choose between two transmission methods: RAP (CSMA) and MAP (TDMA)?

To post to this group, send email to castalia-...@googlegroups.com.

Thanassis Boulis

unread,
Jul 24, 2023, 12:06:55 AM7/24/23
to castalia-...@googlegroups.com
Nothing has changed with Castalia the last 6-7 years. My reply from all these years back is still the same.

But you can always clone the project and start working on the changes you want yourself. It's not an easy task, but it's an option

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/2fa3996c-20ce-482b-8ac7-ecc078cf9a4en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages