uint16_t cnt = 0;
void ReceivePacket (std::string context, Ptr<const Packet> packet)
{
cnt++;
std::cout << "CG Rx from Enb ok " << cnt << " times, and packet size is: " << packet->GetSize() << std::endl;
}
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::LteNetDevice/$ns3::LteUeNetDevice/LteUePhy/DlSpectrumPhy/RxEndOk", MakeCallback (&ReceivePacket)); OR
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::LteUeNetDevice/LteUePhy/DlSpectrumPhy/RxEndOk", MakeCallback (&ReceivePacket));
https://www.nsnam.org/doxygen/classns3_1_1_lte_spectrum_phy.html#a689d4909a1da1d10727e382ad8b04a91
But, this is to track what is sent by eNodeB in the downlink spectrum. So here we speak about the radio link. Please check LTE design: https://www.nsnam.org/docs/models/html/lte-design.html#design-criteria
So, if you would like traces from the other side, from point-to-point link I suggest that you check RLC, and PDCP traces. If these trace files are not giving you information that you need, than you should look into the code of RadioBearerStatsCalculator and adjust it to your needs.
Cheers,
Biljana
--
assert failed. cond="cur->tid != tag.GetInstanceTypeId ()", msg="Error: cannot add the same kind of tag twice.", file=../src/network/model/packet-tag-list.cc, line=250
./waf --command-template="gdb %s" --run test
(gdb)run
(gdb)backtrace
--
This is just to inform that the bug #2666 is resolved, deprecated variables and config paths are removed and the change is pushed into changeset 12754:e6323b59eef8.