|
if it's a wireless network you don't ned to connect the radioIn gate. This gate is controled by the module ChannelControl. The radio module sent a packet to the ChannelControl and this module send a copy of the packet to every node that is in the same channel that the transmiter. The maximun transmision distance is computed by the ChannelControl Date: Sat, 16 May 2009 15:24:35 -0700 From: markglein at xxx To: omnetpp-l at xxx Subject: Re: [Omnetpp-l] building a network topology Hi Alfonso, i am working on topology control, and the network is wireless since it is a mobile ad hoc network. hopping to hear from you again From: Alfonso Ariza Quintana <aarizaq_m at xxx> To: omnetpp-l at xxx Sent: Saturday, May 16, 2009 11:05:43 PM Subject: Re: [Omnetpp-l] building a network topology Why do you want to do this? Do you want a wired or wireless network? Date: Fri, 15 May 2009 10:01:20 -0700 From: markglein at xxx To: omnetpp-l at xxx Subject: [Omnetpp-l] building a network topology Ladies and Gentlemen, I am new to Omnet. I want to build an ad hoc mobile network. I used the node inet/modes/adhoc/MobileManetRoutingHost for my network. I want to connect every node to its visible neighbors. I tried the following network, but i am not succesful. Can someone help me please. Best Regards, Mark network myMobileNet { parameters: int numHosts; double playgroundSizeX; double playgroundSizeY; @display("bgb=1024,528"); submodules: host[numHosts]: MobileManetRoutingHost { parameters: @display("r=,,#707070;p=154,200"); } channelcontrol: ChannelControl { parameters: playgroundSizeX = playgroundSizeX; playgroundSizeY = playgroundSizeY; @display("p=111,49"); } scenarioManager: ScenarioManager { parameters: @display("p=354,50"); } connections allowunconnected: for i=0..numHosts-1, j=0..sizeof(radioIn)-1{ host[i].radioIn--> host[j].radioIn } } ¿Eres del Madrid, del Barça, del Atleti...? Apoya a tu equipo en la Zona Fan de MSN Deportes Ahora, GRATIS Hotmail en tu móvil ¡Descúbrelo aquí! |
_______________________________________________ Omnetpp-l mailing list Omnetpp-l at xxx http://lists.omnetpp.org/mailman/listinfo/omnetpp-l