Bugzilla – Bug 1924
sensing radius and CCA
Last modified: 2014-06-12 15:48:26 EDT
Described here: https://groups.google.com/forum/#!searchin/ns-3-users/sensing$20radius/ns-3-users/C75VZTPbSkg/h0KiQIdo-asJ 1) m_ccaPeakPower should be initialized to a nonzero value. 2) calculating the CCA energy detection threshold in dB from values given in watts
Created attachment 1846 [details] Fix bug with watts not being converted to dB in CCA. Added CCA test. 1) Initializing m_ccaPeakPower to zero is not a problem. It will be overwritten with the actually measured power in any case. The question is, should we add the noise power to the measured signal powers? In the end we compare the ccaPeakPower to the receiver sensitiviy, which also implicitly depends on noise. The same has to be considered for energy detection, not only CCA. For now i will leave it as is. 2) I fixed the bug with the missing conversion from watts to dB. Additionally i provided a new test case for CCA with a very simple scenario. For this scenario, CCA seems to work as expected. See the attached patch.
the db to watts bug was fixed in 10811:31dbab5c8a28 Need more info as to whether/how to address the 1) issue in Sascha's comment.