Hi,
I think the NS3 User documentation requires a re-check - post CA code inclusion into NS3 build,
I noticed an issue with example code around "TransmissionModeConfigurationUpdate", wherein code marked in RED had to be updated.
--> It should be lteEnbDev instead of enbNetDev and GetCcMap()[0] should be called to get the correct component carrier.
Additionally the simulator crashes if "TransmissionModeConfigurationUpdate" is called during data transmission and HARQ is enabled. Has this been used/tested before?
Thanks,
Ramakrishnan
*************code********
Ptr<LteEnbNetDevice> lteEnbDev = enbLteDevs.Get (0)->GetObject<LteEnbNetDevice> ();
PointerValue ptrval;
//enbNetDev->GetAttribute ("FfMacScheduler", ptrval); --> Code in User documentation
lteEnbDev->GetCcMap()[0]->GetAttribute ("FfMacScheduler", ptrval);
Ptr<PfFfMacScheduler> pfsched = ptrval.Get<PfFfMacScheduler> ();
if (pfsched == 0)
{
NS_FATAL_ERROR ("No Pf Scheduler available\n");
}
Simulator::Schedule (Seconds (0.04), &PfFfMacScheduler::TransmissionModeConfigurationUpdate, pfsched, rnti, 1);