[General]
#Network Parameters
include ../Parameters/Castalia.ini
include ../Parameters/MAC/CSMA.ini
sim-time-limit = 300s
SN.field_x = 200
SN.field_y = 40
SN.numNodes = 20
SN.deployment = "[0]->center"
SN.node[1..19].xCoor = uniform (10,200,0)
SN.node[1..19].yCoor = uniform (5,40,0)
SN.node[*].Communication.Routing.collectTraceInfo = true
SN.node[*].Communication.MACProtocolName = "Mac802154"
SN.node[*].Communication.RoutingProtocolName = "myRouting"
SN.node[*].Communication.Routing.netBufferSize = 1000
SN.node[0].Communication.Routing.isSink = true
SN.node[*].ApplicationName = "ThroughputTest"
SN.node[1..15].Application.packet_rate = 1
SN.node[*].Application.constantDataPayload = 50
SN.wirelessChannel.onlyStaticNodes = true
SN.wirelessChannel.sigma = 0
SN.wirelessChannel.bidirectionalSigma = 0
SN.wirelessChannel.pathLossExponent = 2.0
SN.node[*].Communication.Radio.RadioParametersFile = "../Parameters/Radio/CC2420.txt"
SN.node[*].Communication.Radio.mode = "normal"
SN.node[0..19].MobilityManagerName = "NoMobilityManager"
答案 0 :(得分:0)
您可以像设置MAC模块中的其他任何参数一样设置这些参数。
SN.node[*].Communication.MAC.phyDataRate = 1024
SN.node[*].Communication.MAC.phyBitsPerSymbol = 2
从您的描述中不清楚问题是什么。您是否一般都不知道如何设置参数?这两个参数有哪些特定要求?无论如何,您提到的所有“路由”模块内容都与此问题无关。
最后,我注意到您没有使用最新的Castalia版本(我可以从您使用的MAC模块名称中看出来)。使用最新版本(在GitHub中找到)是个好主意。