omnet++ - I want to use UDPBasicApp in Veins based on Omnet but I can not implement -
i want implement udpbasicburst
app in veins, facing problems. have done follows don't know if correct. can put light on matter?
import inet.applications.udpapp.udpbasicburst; import org.car2x.veins.base.modules.*; import org.car2x.veins.modules.nic.nic80211p;
....
udpbasicburst: udpbasicburst { @display("p=130,56"); }`enter code here` connections allowunconnected: nic.upperlayerout --> appl.lowerlayerin; nic.upperlayerin <-- appl.lowerlayerout; nic.uppercontrolout --> appl.lowercontrolin; nic.uppercontrolin <-- appl.lowercontrolout; veinsradioin --> nic.radioin; udpbasicburst.udpout --> nic.uppercontrolin; udpbasicburst.udpin <-- nic.uppercontrolout; } import inet.applications.udpapp.udpbasicburst; import org.car2x.veins.base.modules.*; import org.car2x.veins.modules.nic.nic80211p; module car { parameters: string appltype; //type of application layer string nictype = default("nic80211p"); // type of network interface card string veinsmobilitytype; //type of mobility module gates: input veinsradioin; // gate senddirect submodules: appl: <appltype> org.car2x.veins.base.modules.ibaseappllayer { parameters: @display("p=60,50"); } nic: <nictype> org.car2x.veins.modules.nic.inic80211p { parameters: @display("p=60,166"); } veinsmobility: <veinsmobilitytype> org.car2x.veins.base.modules.imobility { parameters: @display("p=130,172;i=block/cogwheel"); } udpbasicburst: udpbasicburst { @display("p=130,56"); } connections allowunconnected: nic.upperlayerout --> appl.lowerlayerin; nic.upperlayerin <-- appl.lowerlayerout; nic.uppercontrolout --> appl.lowercontrolin; nic.uppercontrolin <-- appl.lowercontrolout; veinsradioin --> nic.radioin; udpbasicburst.udpout --> nic.uppercontrolin; udpbasicburst.udpin <-- nic.uppercontrolout; }
you importing both inet.applications.udpapp.udpbasicburst
, org.car2x.veins.modules.nic.nic80211p
in same module. not work way hope:
simply speaking, modules in inet.*
namespace expect exchange messages other modules namespace. , including veins 4a2, same goes modules in org.car2x.veins.*
namespace - 1 notable exception: veins 4a2 traciscenariomanager
check if instantiated module uses inet 2.3.0 tracimobility
module mobility submodule. if does, move module accordingly.
this allows use veins 4a2 mobility in inet 2.3.0 hosts.
Comments
Post a Comment