I am relatively new to the INET framework and omnetpp.
I am trying to implement the following scenario. I am trying to
create a Wireless Host with two NICs (both 802.11). (I have seen some
old postings on this issue , but am unable to apply it to my current
situation).
To that end I have added the following lines to WirelessHost.ned
(under nodes/wireless/WirelessHost).
wlan2: Ieee80211NicSTA {
parameters:
@display("p=331,356;q=queue");
}
I have adjusted the network layer gates also , accordingly.
networkLayer: NetworkLayer {
parameters:
proxyARP = false;
@display("p=248,247;q=queue");
gates:
ifIn[(sizeof(pppg)+sizeof(ethg))+2];
ifOut[(sizeof(pppg)+sizeof(ethg))+2];
}
radioIn2 --> wlan2.radioIn;
wlan2.uppergateOut --> networkLayer.ifIn[sizeof(pppg)
+sizeof(ethg)+1];
wlan2.uppergateIn <-- networkLayer.ifOut[sizeof(pppg)
+sizeof(ethg)+1];
I want to include this host in the Ieee802.11 Handover scenario that
comes packaged with INET. (under examples/wireless/handover).
If two APs are in range of the host , I want both the NICs to
associate themselves and transfer data.
To this end I have modified the ini file like so :
# channel physical parameters
*.channelcontrol.carrierFrequency = 2.4GHz
*.channelcontrol.pMax = 25.0mW
*.channelcontrol.sat = -110dBm
*.channelcontrol.alpha = 2
*.channelcontrol.numChannels = 10
**.ap1.wlan.mgmt.ssid = "AP1"
**.ap2.wlan.mgmt.ssid = "AP2"
**.ap3.wlan.mgmt.ssid = "AP3"
**.ap*.wlan.mgmt.beaconInterval = 100ms
**.wlan.mgmt.numAuthSteps = 4
*.ap1.wlan.radio.transmitterPower = 2.0mW
*.ap2.wlan.radio.transmitterPower = 2.0mW
*.ap3.wlan.radio.transmitterPower = 15.0mW
**.ap1.wlan.radio.channelNumber = 2
**.ap2.wlan.radio.channelNumber = 4
**.ap3.wlan.radio.channelNumber = 3
**.host.wlan.radio.channelNumber = 0 # just initially -- it'll scan
**.host.wlan2.radio.channelNumber = 1 # just initially -- it'll scan
# wireless configuration
**.wlan.agent.activeScan = true
**.wlan.agent.channelsToScan = "2 4 6 8 " # "" means all
**.wlan.agent.probeDelay = 0.1s
**.wlan.agent.minChannelTime = 0.15s
**.wlan.agent.maxChannelTime = 0.3s
**.wlan.agent.authenticationTimeout = 5s
**.wlan.agent.associationTimeout = 5s
**.wlan2.agent.activeScan = true
**.wlan2.agent.channelsToScan = "1 3 5 7 9 " # "" means all
**.wlan2.agent.probeDelay = 0.2s
**.wlan2.agent.minChannelTime = 0.3s
**.wlan2.agent.maxChannelTime = 0.5s
**.wlan2.agent.authenticationTimeout = 10s
**.wlan2.agent.associationTimeout = 10s
However , once the host is out of range , both the nics try to scan
the channel at the same time and I get an error "processScanCommand:
scanning is already in progress".
Please suggest where I should start looking into the code to get it to
behave as I would want it.
Thank You
Please, see INETMANET's WirelessHostMultiRadio [1]. It's a wireless
host with multiple wireless NICs
[1] http://github.com/inetmanet/inetmanet/blob/master/src/nodes/wireless/WirelessHostMultiRadio.ned
> --
> You received this message because you are subscribed to the Google Groups "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.
> To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.
>
>
--
Alberto Cortés
Telematic Engineering Dept. at UC3M
As far as I know you don't need to do anything special to use several
NICs, just do the same that with one NIC but several times :)