先运行OAI eNB,在运行OAI UE,运行频段为LTE FDD Band 7 (下行2660MHz,上行2540MHz)
查看自己电脑是否有USB3.0接口
命令为:
lsusb
测试USRP采样速率是否能够满足需求
命令为:
sudo /usr/local/lib/uhd/examples/benchmark_rate --tx_rate 7.68e6 --rx_rate 7.68e6 --args "master_clock_rate=30.72e6"
正确的显示结果为
linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.009.004-0-unknown
Creating the usrp device with: master_clock_rate=30.72e6...
-- Detected Device: B210
-- Operating over USB 3. #注意一定要是USB 3.0
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 30.720000 MHz...
-- Actually got clock rate 30.720000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
Using Device: Single USRP:
Device: B-Series Device
Mboard 0: B210
RX Channel: 0
RX DSP: 0
RX Dboard: A
RX Subdev: FE-RX2
RX Channel: 1
RX DSP: 1
RX Dboard: A
RX Subdev: FE-RX1
TX Channel: 0
TX DSP: 0
TX Dboard: A
TX Subdev: FE-TX2
TX Channel: 1
TX DSP: 1
TX Dboard: A
TX Subdev: FE-TX1
Setting device timestamp to 0...
Testing receive rate 7.680000 Msps on 1 channels
Testing transmit rate 7.680000 Msps on 1 channels
# 这里不可以有丢包的现象发生
Benchmark rate summary:
Num received samples: 76971929
Num dropped samples: 0
Num overflows detected: 0
Num transmitted samples: 76868708
Num sequence errors: 0
Num underflows detected: 0
Done!
读取nasmesh 内核模块,配置OAI 接口
读取nasmesh.ko来配置无线承载,并提供eNB和UE之间IP连通性
代码如下:
cd ~/openairinterface5g/
source oaienv
source ./cmake_targets/tools/init_nas_nos1 eNB
运行结束之后,运行ifcofig命令可以看到oai0接口,IP地址是10.0.1.1,掩码是255.255.255.0
运行eNB
检查以下文件中
/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf
配置为downlink_frequency = 2660000000L;
配置文件地址为:
https://gitlab.eurecom.fr/oai/openairinterface5g/blob/develop/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf
然后
cd cmake_targets
sudo -E ./lte_noS1_build_oai/build/lte-softmodem-nos1 -d -O $OPENAIR_TARGETS/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf 2>&1 | tee ENB.log
在单独一台电脑上稳定运行OAI eNB成功。
此时运行sudo i7z命令,显示结果为
Cpu speed from cpuinfo 3392.00Mhz
cpuinfo might be wrong if cpufreq is enabled. To guess correctly try estimating via tsc
Linux's inbuilt cpu_khz code emulated now
True Frequency (without accounting Turbo) 3392 MHz
CPU Multiplier 34x || Bus clock frequency (BCLK) 99.76 MHz
Socket [0] - [physical cores=4, logical cores=4, max online cores ever=4]
TURBO DISABLED on 4 Cores, Hyper Threading OFF
Max Frequency without considering Turbo 3392.00 MHz (99.76 x [34])
Max TURBO Multiplier (if Enabled) with 1/2/3/4 Cores is 39x/39x/38x/37x
Real Current Frequency 3392.01 MHz [99.76 x 34.00] (Max of below)
Core [core-id] :Actual Freq (Mult.) C0% Halt(C1)% C3 % C6 % C7 % Temp
Core 1 [0]: 3391.99 (34.00x) 100 0 0 0 0 72
Core 2 [1]: 3392.01 (34.00x) 100 0 0 0 0 75
Core 3 [2]: 3392.00 (34.00x) 100 0 0 0 0 74
Core 4 [3]: 3392.00 (34.00x) 100 0 0 0 0 71
C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power saver)
C3 = Cores running with PLL turned off and core cache turned off
C6 = Everything in C3 + core state saved to last level cache
Above values in table are in percentage over the last 1 sec
[core-id] refers to core-id number in /proc/cpuinfo
'Garbage Values' message printed when garbage values are read
Ctrl+C to exit
CPU满负荷运行中