Você está na página 1de 3

omnetpp.

ini intial

[General]
network = apwifid.anurag
**.constraintAreaMinX = 0m
**.constraintAreaMinY = 0m
**.constraintAreaMinZ = 0m
**.constraintAreaMaxX = 1000m
**.constraintAreaMaxY = 1000m
**.constraintAreaMaxZ = 0m

**.wlan*.bitrate = 2Mbps

**.mac.address = "auto"
**.mac.maxQueueSize = 14
**.mac.rtsThresholdBytes = 3000B
**.wlan[*].mac.retryLimit = 7
**.wlan[*].mac.cwMinData = 7
**.wlan[*].mac.cwMinBroadcast = 31

**.wlan[*].radio.transmitter.power = 2mW
**.wlan[*].radio.transmitter.bitrate = 2Mbps
**.wlan[*].radio.transmitter.headerBitLength = 100b
**.wlan[*].radio.transmitter.carrierFrequency = 2.4GHz
**.wlan[*].radio.transmitter.bandwidth = 2MHz
**.wlan[*].radio.receiver.sensitivity = -70dBm
**.wlan[*].radio.receiver.snirThreshold = 4dB

**.host[*].mobility.initFromDisplayString = false
**.host[*].mobilityType = "StationaryMobility"
**.host[2].mobility.initialX = 600m
**.host[2].mobility.initialY = 100m
**.host[2].mobility.initialZ = 0m

**.host[1].mobility.initialX = 700m
**.host[1].mobility.initialY = 100m
**.host[1].mobility.initialZ = 0m

**.host[0].mobility.initialX = 700m
**.host[0].mobility.initialY = 200m
**.host[0].mobility.initialZ = 0m
[Config Standard]
description = "Standard formation"
*.numHosts = 3

#Init the number of frames exchanged in the provisioning phase to 4


**.host[*].wlan[*].mgmt.numAuthSteps=4

# ping app host[0] pinged by Host[1]


**.numPingApps = 1
*.host[1].pingApp[0].destAddr = "host[0]"
*.host[1].pingApp[0].sendInterval = 1s
# ping app host[1] pinged by host[2]
*.host[2].pingApp[0].destAddr = "host[1]"
*.host[2].pingApp[0].sendInterval = 1s
*.host[0].pingApp[0].destAddr = ""

[Config Auto]
description = "Autonomous formation"
*.numHosts = 3

#Init the number of frames exchanged in the provisioning phase to 4


**.host[*].wlan[*].mgmt.numAuthSteps=4

# ping app host[0] pinged by Host[1]


**.numPingApps = 1
*.host[1].pingApp[0].destAddr = "host[0]"
*.host[1].pingApp[0].sendInterval = 1s
# ping app host[1] pinged by host[2]
*.host[2].pingApp[0].destAddr = "host[1]"
*.host[2].pingApp[0].sendInterval = 1s
*.host[0].pingApp[0].destAddr = ""

**.host[0].wlan[0].mgmt.WiFiDirectUsed=true
**.host[0].wlan[0].mgmt.WiFiDirectGO=true
**.host[0].wlan[0].mgmt.strGroup="Groupe Wifi Direct"

**.host[1].wlan[0].mgmt.WiFiDirectUsed=true
**.host[1].wlan[0].mgmt.WiFiDirectGO=false
**.host[1].wlan[0].mgmt.strGroup="Groupe Wifi Direct"

**.host[2].wlan[0].mgmt.WiFiDirectUsed=true
**.host[2].wlan[0].mgmt.WiFiDirectGO=false
**.host[2].wlan[0].mgmt.strGroup="Groupe Wifi Direct"

inet scen.nedapwifid
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

package apwifid;
import inet.linklayer.ethernet.EtherBus;
import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
import inet.node.ethernet.Eth100M;
import inet.node.inet.WirelessHost;
import inet.node.wireless.AccessPoint;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211DimensionalRadioMedium;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211RadioMedium;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;

//
// TODO documentation
//
network anurag
{
parameters:
int numHosts;
@display("bgb=681,792");
submodules:
etherBus: EtherBus {
@display("p=288,30;b=480,12");
}
accessPoint: AccessPoint {
@display("p=104,116;r=140,,blue,5");
}
configurator: IPv4NetworkConfigurator {
@display("p=517,56");
}
radioMedium: Ieee80211ScalarRadioMedium {
@display("p=52,71;r=1000,,green,20");
}
host[numHosts]: WirelessHost {
@display("r=100,,#FF8040,10;p=300,300");
wlan[*].mgmtType =
"Ieee80211MgmtSTAWifiDirect"; //////"Ieee80211MgmtSTA";
}

wirelessHost: WirelessHost {
@display("p=227,158");
}
accessPoint1: AccessPoint {
@display("p=425,107;r=150,,blue,5");
}
connections:
etherBus.ethg++ <--> Eth100M <--> accessPoint.ethg++;
etherBus.ethg++ <--> Eth100M <--> accessPoint1.ethg++;
}

Você também pode gostar