先运行OAI eNB,在运行OAI UE,运行频段为LTE FDD Band 7 (下行2660MHz,上行2540MHz)
查看自己电脑是否有USB3.0接口
命令为:
lsusb
测试USRP采样速率是否能够满足需求
命令为:
正确的显示结果为
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 . #注意一定要是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 MHz...
-- Actually got clock rate 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 >& | tee ENB.log
在单独一台电脑上稳定运行OAI eNB成功。
此时运行sudo i7z命令,显示结果为
Cpu speed from cpuinfo Mhz
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) MHz
CPU Multiplier x || Bus clock frequency (BCLK) MHz
Socket [] - [physical cores=, logical cores=, max online cores ever=]
TURBO DISABLED on Cores, Hyper Threading OFF
Max Frequency without considering Turbo MHz ( x [])
Max TURBO Multiplier (if Enabled) with /// Cores is x/x/x/x
Real Current Frequency MHz [ x ] (Max of below)
Core [core-id] :Actual Freq (Mult.) C0% Halt(C1)% C3 % C6 % C7 % Temp
Core []: (x)
Core []: (x)
Core []: (x)
Core []: (x)
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 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满负荷运行中