Open baverozceylan opened 6 years ago
Note that lorawan-example-tracing was primarily used during the final de of the module. The other examples are older. That said, you could try setting nbrep via lorawanhelper: lorawanHelper.SetNbRep (1);
By default, lorawan-example doesn't touch nbrep though. So most likely you are experiencing a bug. I don't have access to a computer to troubleshoot however(posting this from mobile).
Dear all,
I confirm that the bug exists:
https://github.com/imec-idlab/ns-3-dev-git.git in the lorawan branch, commit 0b80ed111ea64c8f473366500534a02ff4d9b284, I run the following:
./waf --run=lorawan-example
Waf: Entering directory /home/ubuntu/ns-lorawan/ns-3-dev-git/build' Waf: Leaving directory
/home/ubuntu/ns-lorawan/ns-3-dev-git/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (2.928s)
LoRaWANEndDeviceApplication::GetTypeId: ns3::UniformRandomVariable[Min=0|Max=6]
msg="Attribute name=NbRep could not be set for this object: tid=ns3::LoRaWANNetDevice", file=../src/core/model/object-base.cc, line=207
terminate called without an active exception
Command ['/home/ubuntu/ns-lorawan/ns-3-dev-git/build/src/lorawan/examples/ns3-dev-lorawan-example-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run
gdb build/src/lorawan/examples/ns3-dev-lorawan-example-debug Reading symbols from /home/ubuntu/ns-lorawan/ns-3-dev-git/build/src/lorawan/examples/ns3-dev-lorawan-example-debug...done. (gdb) r Starting program: /home/ubuntu/ns-lorawan/ns-3-dev-git/build/src/lorawan/examples/ns3-dev-lorawan-example-debug [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". LoRaWANEndDeviceApplication::GetTypeId: ns3::UniformRandomVariable[Min=0|Max=6] msg="Attribute name=NbRep could not be set for this object: tid=ns3::LoRaWANNetDevice", file=../src/core/model/object-base.cc, line=207 terminate called without an active exception
Program received signal SIGABRT, Aborted. 0x00007ffff0b35428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) backtrace
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
at ../src/core/model/object-base.cc:207
at ../src/lorawan/helper/lorawan-helper.cc:123
Best regards Eryk Schiller
Same error here :(
When I tried to run lorawan-example.cc file, I get following error message;
"Attribute name=NbRep could not be set for this object: tid=ns3::LoRaWANNetDevice"
I think the program tries to set the NbReb attribute to an invalid value.
How can I fix that ?
Baver