I would like to dynamically vary transmission bitrate among the different values, stated by ETSI for vehicular communications, based on IEEE 802.11p (3, 4.5, ..., 27 Mbps), during simulation time in OMNeT++ 5.3 and INET 3.5.

I have created a network comprised of vehicles, which are in turns comprised of (i) network interface networks (based on IEEE 802.11p PHY layer or radio) and (ii) message generators, responsible for varying transmission parameters.

I have tested using the following code, which uses the flatTransmitterBase module to set and get parameters. It also has a function called "setBitrate". However, when I call it, it has no effect on the channel busy rate, so I suppose bitrate is not being modified properly.

cModule * transmitter = getParentModule()->getSubmodule("ieee80211Nic")->getSubmodule("radio")->getSubmodule("transmitter");

flatTransmitter = const_cast(check_and_cast(transmitter));

double bitrate_mbps = 12*1000000;

flatTransmitter->setBitrate(bps(bitrate_mbps));

Thank you very much in advance for your answer. Best regards,

More Juan Aznar-Poveda's questions See All
Similar questions and discussions