Dear all,
Do you may know if there is available a Visilbe Light Communication (VLC) module which is compatible with ns3.29 or ns3.30? I have found and tried one VLC module available in the link below https://github.com/Aldalbahias/VLCbut according to the authors that was applied to ns3.24 and I experienced problems when trying to incorporate the vlc model in ns3.30.
I don't know of an update, but if it were to be updated, we could
look into putting it on the app store.
In particular the relevant script example (VPPMtest.cc) is running and produces few results, but the phy callbacks (listed below) aren't triggered:
ndRelay_Mt.Get(1)->TraceConnectWithoutContext("PhyRxEnd", MakeCallback(&RxEnd)); //traces to allow us to see what and when data is sent through the networkndRelay_Mt.Get(1)->TraceConnectWithoutContext("PhyTxEnd", MakeCallback(&TxEnd)); //traces to allow us to see what and when data is received through the network
The amended script example (myVPPMtest.cc) is provided. Please note that I have replaced the NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default(); in the original script:with WifiMacHelper wifiMac = WifiMacHelper(); since NqosWifiMacHelper is no longer supported in ns3.30
If you find that callbacks are not triggered, the usual way to
debug this is to instrument your code (or use a debugger) to
confirm that the statement in the code that invokes the callback
is invoked. If so, the problem is not how the callback is hooked,
but if the statement is executed but the callback isn't called,
then it usually means there is an incorrect hookup such as an
invalid path to the trace. In your case, you are using the
pointer to directly access the object and hook the callback
(rather than a config path), so I suspect that you will find that
the program never calls for the callback, and then you need to
debug why that may be the case.
- Tom
--
Best regards,Ktsik
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/d7ccca4e-a437-450b-9484-ea6db6a6b8ee%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/6a1b5dd2-91fc-92fe-ae08-9e1bcf2ad295%40tomh.org.