|
| 1 | +[General] |
| 2 | +network = Leach |
| 3 | + |
| 4 | +num-rngs = 2 |
| 5 | +rng-class = omnetpp::cMersenneTwister |
| 6 | +seed-0-mt= 4900 # used for node layout generation |
| 7 | +seed-1-mt = 7 # used for threshold comparison |
| 8 | + |
| 9 | +**.arp.typename = "GlobalArp" |
| 10 | + |
| 11 | +*.radioMedium.typename = "Ieee802154NarrowbandScalarRadioMedium" |
| 12 | +*.radioMedium.backgroundNoise.power = -100dBm |
| 13 | +*.radioMedium.mediumLimitCache.centerFrequency = 2GHz |
| 14 | + |
| 15 | +*.host*.hasStatus = true |
| 16 | +*.visualizer.energyStorageVisualizer.displayEnergyStorages = true |
| 17 | + |
| 18 | +*.configurator.config = xmldoc ("address.xml") |
| 19 | + |
| 20 | +*.baseStation.typename = "LeachBS" |
| 21 | +*.host*.typename = "LeachNode" |
| 22 | +*.host*.LEACHnode.clusterHeadPercentage = 0.05 |
| 23 | +*.host*.LEACHnode.numNodes = 100 # set number of nodes to be injected into LEACH module |
| 24 | + |
| 25 | +*.numNodes = 100 #100 |
| 26 | +*.host*.mobility.typename = "StationaryMobility" |
| 27 | +*.host*.mobility.rng-0 = 0 # random number generator mapping |
| 28 | + |
| 29 | +*.host[*].mobility.initFromDisplayString = false |
| 30 | + |
| 31 | +**.constraintAreaMinX = 1m |
| 32 | +**.constraintAreaMaxX = 100m |
| 33 | +**.constraintAreaMinY = 1m |
| 34 | +**.constraintAreaMaxY = 100m |
| 35 | + |
| 36 | +*.host*.wlan[0].typename = "Ieee802154NarrowbandInterface" |
| 37 | +*.host*.wlan[0].radio.typename = "ApskScalarRadio" |
| 38 | +*.host*.wlan[0].radio.centerFrequency = 2.5GHz # based on TI CC2520 |
| 39 | +*.host*.wlan[0].radio.bandwidth = 2MHz |
| 40 | +*.host*.wlan[0].radio.transmitter.power = 60.5mW # determines communication range - based on CC2520 |
| 41 | +*.host*.wlan[0].radio.transmitter.preambleDuration = 192us # based on TI CC2520 |
| 42 | +*.host*.wlan[0].radio.transmitter.headerLength = 6B # based on TI CC2520 |
| 43 | +*.host*.wlan[0].radio.receiver.sensitivity = -98dBm # based on TI CC2520 |
| 44 | +*.host*.wlan[0].radio.receiver.energyDetection = -85dBm |
| 45 | +*.host*.wlan[0].radio.receiver.snirThreshold = 4dB |
| 46 | +*.host*.wlan[0].radio.displayCommunicationRange = true |
| 47 | + |
| 48 | + |
| 49 | +*.baseStation.wlan[0].typename = "Ieee802154NarrowbandInterface" |
| 50 | +*.baseStation.wlan[0].radio.typename = "ApskScalarRadio" |
| 51 | +*.baseStation.wlan[0].radio.centerFrequency = 2.5GHz |
| 52 | +*.baseStation.wlan[0].radio.bandwidth = 2MHz |
| 53 | +*.baseStation.wlan[0].radio.transmitter.power = 60.5mW |
| 54 | +*.baseStation.wlan[0].radio.transmitter.preambleDuration = 192us |
| 55 | +*.baseStation.wlan[0].radio.transmitter.headerLength = 6B |
| 56 | +*.baseStation.wlan[0].radio.receiver.sensitivity = -98dBm |
| 57 | +*.baseStation.wlan[0].radio.receiver.energyDetection = -85dBm |
| 58 | +*.baseStation.wlan[0].radio.receiver.snirThreshold = 4dB |
| 59 | +*.baseStation.wlan[0].radio.displayCommunicationRange = true |
| 60 | + |
| 61 | +*.host*.**.bitrate = 250kbps # based on TI CC2520 |
| 62 | +*.baseStation.**.bitrate = 250kbps |
| 63 | + |
| 64 | +[Config LeachPower] |
| 65 | +extends = General |
| 66 | + |
| 67 | +*.host*.energyStorage.typename = "SimpleCcBattery" |
| 68 | +*.host*.energyStorage.nominalCapacity = 7200C # calculated for 2 x AA cells |
| 69 | +*.host*.energyStorage.initialCapacity = 7100C |
| 70 | +*.host*.energyStorage.nominalVoltage = 1.5V |
| 71 | +*.host*.energyStorage.internalResistance = 0.1Ohm |
| 72 | + |
| 73 | +*.host*.wlan[0].radio.energyConsumer.typename = "StateBasedCcEnergyConsumer" |
| 74 | +*.host*.wlan[0].radio.energyConsumer.offCurrentConsumption = 0A |
| 75 | +*.host*.wlan[0].radio.energyConsumer.switchingCurrentConsumption = 1mA |
| 76 | +*.host*.wlan[0].radio.energyConsumer.receiverIdleCurrentConsumption = 18.8mA # based on CC2520 |
| 77 | +*.host*.wlan[0].radio.energyConsumer.receiverBusyCurrentConsumption = 24.8mA # based on CC2520 |
| 78 | +*.host*.wlan[0].radio.energyConsumer.receiverReceivingCurrentConsumption = 26.3mA # based on CC2520 |
| 79 | +*.host*.wlan[0].radio.energyConsumer.transmitterIdleCurrentConsumption = 25.8mA # based on CC2520 |
| 80 | +*.host*.wlan[0].radio.energyConsumer.transmitterTransmittingCurrentConsumption = 33.6mA # based on CC2520 |
| 81 | + |
| 82 | +[Config LeachPathLoss] |
| 83 | +extends = General |
| 84 | + |
| 85 | +*.host*.wlan[0].radio.displayInterferenceRange = true |
| 86 | +*.radioMedium.pathLoss.typename = "LogNormalShadowing" |
0 commit comments