Hi,
I'm trying to build an animation from mmwave-tdma.cc example (attached).
I've done all the mandatory steps from nsnam.org:
but I get this error:
[aleksandra@localhost ns3-mmwave]$ sudo ./waf --run scratch/mmwave-tdma
Waf: Entering directory `/home/aleksandra/Documents/ns3-mmwave/build'
[ 930/2340] Compiling scratch/mmwave-tdma.cc
In file included from ./ns3/lte-spectrum-phy.h:42:0,
from ./ns3/lte-phy.h:36,
from ./ns3/lte-net-device.h:30,
from ./ns3/lte-ue-net-device.h:25,
from ./ns3/animation-interface.h:40,
from ./ns3/netanim-module.h:10,
from ../scratch/mmwave-tdma.cc:14:
./ns3/lte-harq-phy.h:39:8: error: redefinition of ‘struct ns3::HarqProcessInfoElement_t’
struct HarqProcessInfoElement_t
^~
In file included from ./ns3/mmwave-spectrum-phy.h:30:0,
from ./ns3/mmwave-phy.h:22,
from ./ns3/mmwave-net-device.h:18,
from ./ns3/mmwave-ue-net-device.h:12,
from ./ns3/mmwave-helper.h:14,
from ../scratch/mmwave-tdma.cc:7:
./ns3/mmwave-harq-phy.h:21:8: error: previous definition of ‘struct ns3::HarqProcessInfoElement_t’
struct HarqProcessInfoElement_t
^~
Waf: Leaving directory `/home/aleksandra/Documents/ns3-mmwave/build'
Build failed
-> task in 'mmwave-tdma' failed (exit status 1):
{task 139878128700752: cxx mmwave-tdma.cc -> mmwave-tdma.cc.1.o}
['/bin/g++', '-Wall', '-pthread', '-pthread', '-I.', '-I..',
'-I/usr/include/gtk-2.0', '-I/usr/lib64/gtk-2.0/include',
'-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0',
'-I/usr/include/cairo', '-I/usr/include/pixman-1',
'-I/usr/include/libdrm', '-I/usr/include/gdk-pixbuf-2.0',
'-I/usr/include/libpng16', '-I/usr/include/harfbuzz',
'-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include',
'-I/usr/include/freetype2', '-I/usr/include/libxml2',
'-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE',
'-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1',
'-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_SQLITE3=1',
'-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../scratch/mmwave-tdma.cc', '-c',
'-o',
'/home/aleksandra/Documents/ns3-mmwave/build/scratch/mmwave-tdma.cc.1.o']
I tried with mmwave-example.cc but I get the same error.
Please help :)
I tried several scenarios with 2 enbs and 1 UE and the results are a bit confusing. Basically, for different scenarios I get the same data rates, but different SINRs?
Scenario 1: LOS, ENB1 position (0,0,0), ENB2 position (45,0,0) Data rate=3.08 Gbps, SINR=74.8 dB
Scenario 2: LOS, ENB1 position (0,0,0), ENB2 position (0,0,0) Data rate=3.08 Gbps, SINR=36.2 dB
Scenario 3: LOS, ENB1 position (0,0,0), ENB2 position (0,10,0) Data rate=3.08 Gbps, SINR=40.99 dB
Scenario 4: LOS, ENB1 position (0,0,0), ENB2 position (30,0,0) Data rate=3.08 Gbps, SINR=55.2 dB
Scenario 5: NLOS, ENB1 position (0,0,0), ENB2 position (30,0,0) Data rate=3.08 Gbps, SINR=34.58 dB
For all scenarios, UE speed is 20m/s, distmin=40m, distMax=45m and the script is mmwave-tdma.cc.
I am enclosing RxPacketTraces for all 4 scenarios as well as mmwave-tdma script for Scenario 1.
Could you please check?