Closed Prapi123 closed 5 years ago
Hi! In the future please open multiple issues, one for each problem you encounter. This will make it easier to follow the discussion. For now, let's try and address all 4 issues here.
./waf --run complete-network-example 2>&1 | grep SNIR
, I get multiple instances in which the SNIR is negative, and could thus lead to packet losses. In other words, the SNIR is not always inf. Am I missing something?realisticChannelModel
variable is set to false by default, and thus no buildings are created. If you set it to true, the buildings.txt file will be filled. performance.txt is empty as of now because we are moving to a better packet tracker, which is implemented in the adr branch for now. In the meanwhile, all performance is printed directly to the standard output.Hello,
Thanks for reply and helping out in the issue. For 2. Point I am attaching a png file of my result. where i cannot display my spreadingfactor and offset. Please have a look.
Oh, this is a known issue tied to the fact that both the Data Rate and Spreading Factor values are saved as uint8_t internally. If you wrap the value returned by GetFirstReceiveWindowDataRate() inside an unsigned() it should work out!
Thanks for the reply. It worked
Expected Behavior
Hello
I want to calculate SNIR and SNR in the network. I am making some modifications to the complete-network-example. I can see in the results that SNIR is always inf db as interference power is 0. But on the contrary the Result matrix shows PHY interfered = 6. Please help me understand this phenomenon.
I am using the below code to get SF of 1st receive window
Ptr edMac1 = endDevices.Get (0)->GetDevice(0)->GetObject ()->GetMac ();
Ptr edLoraMac1 = edMac1->GetObject ();
LoraDeviceAddress Address = edLoraMac1->GetDeviceAddress();
Ptr edStatus = CreateObject (Address, edLoraMac1);
edStatus->SetFirstReceiveWindowSpreadingFactor (9);
NS_LOG_INFO ("GetFirstReceiveWindowSpreadingFactor: " << edMac1->GetFirstReceiveWindowSpreadingFactor());
The SF is not displayed. Also the function GetSfFromDataRate() cannot display SF for my code.
In the example : Complete-network-example, performance and building files are empty. Nothing is being recorded in these files.
If I change number of Gateways in complete-network-example to 3 and Enddevices to 200. Total Phy number is 600. I expected it to be 200 only. Please help me understand this as well
Steps to Reproduce the Problem
Specifications