本文内容、开发板及配件仅限用于学校或科研院所开展科研实验!
温馨提示:“开源SDR实验室”是北京的。
本系列文档介绍4G/5G开源项目srsRAN(srsLTE升级版)的基本使用方法。本文给出该开源项目的基本介绍、安装方法及NB-IoT基本测试。
目录
srsRAN是srsLTE的升级版,之前的srsLTE目前已经更名为srsRAN。
图1 srsLTE github
图2 srsRAN github
图3 srsRAN架构
srsRAN是一个4G/5G开源软件无线电套件。srsRAN支持UE和eNodeB/gNodeB应用,可与第三方核心网络解决方案一起使用,构建完整的端到端移动无线网络。srsRAN包括:
srsUE:全栈SDR 4G/5G-NSA UE应用(5G-SA即将推出),srsUE的具体内容参见https://docs.srslte.com/en/latest/usermanuals/source/srsue/source/1_ue_intro.html
srsENB:全栈SDR 4G eNodeB应用(5G-NSA和5G-SA即将推出),srsENB的具体内容参见https://docs.srslte.com/en/latest/usermanuals/source/srsenb/source/1_enb_intro.html
srsEPC:一个包含MME、HSS和S/P-GW的轻量级4G核心网络,srsEPC的具体内容参见https://docs.srslte.com/en/latest/usermanuals/source/srsepc/source/1_epc_intro.html
关于MME、HSS、S/P-GW的概念可以参考https://www.cspsprotocol.com/lte-epc/
https://blog.csdn.net/Rong_Toa/article/details/94983607
本文后续实验用的硬件为LimeSDR-USB(即LimeSDR标准版)或LimeSDR Mini(即LimeSDR 迷你版),因此,我们需要安装SoapySDR,本文选择源码安装。
sudo apt-get install cmake g++ libpython-dev python-numpy swig git libsqlite3-dev libi2c-dev libusb-1.0-0-dev libwxgtk3.0-dev freeglut3-dev
例如,你要把SoapySDR下载到你的Download文件夹,则先进入到~/Download文件夹,然后依次执行以下命令。
git clone https://github.com/pothosware/SoapySDR.git
cd SoapySDR
mkdir build && cd build
cmake ..
make -j4
sudo make install
sudo ldconfig
例如,回到Download文件夹,依次执行以下命令,
git clone https://github.com/myriadrf/LimeSuite.git
cd LimeSuite
mkdir builddir
cd builddir
cmake ../
make -j4
sudo make install
sudo ldconfig
如果你想允许非root用户访问基于usb的设备,如LimeSDR。则需要进入到LimeSuite/udev-rules文件夹,执行
sudo ./install.sh
如果你想用srsGUI(一个配合srsRAN可以实时显示的界面程序),那么你需要先安装srsGUI,然后再安装srsRAN。
sudo apt-get install libboost-system-dev libboost-test-dev libboost-thread-dev libqwt-qt5-dev qtbase5-dev
git clone https://github.com/srsLTE/srsGUI.git
cd srsgui
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
sudo apt-get install build-essential cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev
git clone https://github.com/srsRAN/srsRAN.git
cd srsRAN
mkdir build
cd build
cmake ../
make
make test
sudo make install
sudo srsran_install_configs.sh user
所有的例子都可以在“./srsRAN/build/lib/examples”中找到。接下来我们以NB-IOT为例来测试源码安装是否成功。
https://docs.srslte.com/en/latest/app_notes/source/nbiot/source/index.html#nbiot-appnote
图4 NB-IoT基本系统架构
NB-IOT的基本实验硬件如图所示,途中的Machine1为一个电脑,该电脑接一个射频前端(例如LimeSDR),用cell_search_nbiot来搜索基站,用npdsch_ue来解码NB-IOT基站的下行数据。
http://blog.csdn.net/zoomdy/article/details/72764847,国内的NB-IoT主要运行在B5和B8频段。
由于国内用的是B5和B8频段,这里我们选用B8,因此,在以下命令中-b后边是8。
sudo ./cell_search_nbiot -b 8
由于我没有设置允许非root用户使用usb设备,因此这里我需要输入sudo。
搜索到小区后的截图为,
搜索结束后,找到了几个小区。选定其中的959.8MHz这个,进行下行链路解码。输入命令:
sudo ./npdsch_ue -f 959.8e6
输入上述命令后,会自动弹出来类似于如下的界面。
sudo ./npdsch_enodeb -f 948.5e6
以下为一次实验过程的终端输入命令以及相应输出信息实例:
1、搜索小区
opensourcesdr@opensourcesdr:~/Downloads/srsRAN/build/lib/examples$ sudo ./cell_search_nbiot -b 8
[sudo] password for opensourcesdr:
Opening RF device...
Soapy has found device #0: addr=24607:1027, driver=lime, label=LimeSDR Mini [USB 2.0] 1D49762FC19C49, media=USB 2.0, module=FT601, name=LimeSDR Mini, serial=1D49762FC19C49,
Selecting Soapy device: 0
Detected LimeSDR. Consider using LTE rates for better RF performance.
Either compile with '-DUSE_LTE_RATES=True' or start srsENB/srsUE with '--expert.lte_sample_rates=true'
[INFO] Make connection: 'LimeSDR Mini [USB 2.0] 1D49762FC19C49'
[INFO] Reference clock 40.00 MHz
[INFO] Device name: LimeSDR-Mini
[INFO] Reference: 40 MHz
[INFO] LMS7002M register cache: Disabled
Setting up Rx stream with 1 channel(s)
Setting up Tx stream with 1 channel(s)
[INFO] RX LPF configured
[INFO] Filter calibrated. Filter order-4th, filter bandwidth set to 5 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active
[INFO] TX LPF configured
Available device sensors:
- clock_locked
- lms7_temp
Available sensors for Rx channel 0:
- lo_locked
State of gain elements for Rx channel 0 (AGC not supported):
- TIA: 9.00 dB
- LNA: 30.00 dB
- PGA: -7.00 dB
State of gain elements for Tx channel 0 (AGC not supported):
- PAD: 0.00 dB
- IAMP: 0.00 dB
Rx antenna set to LNAH
Tx antenna set to BAND1
[INFO] Selected RX path: LNAW
[ 0/349]: EARFCN 3450, 925.00 MHz looking for NPSS.
[ERROR] Tx Calibration: MCU error 5 (Loopback signal weak: not connected/insufficient gain?)
[INFO] Rx calibration finished
[ 1/349]: EARFCN 3451, 925.10 MHz looking for NPSS.
[ 2/349]: EARFCN 3452, 925.20 MHz looking for NPSS.
[ 3/349]: EARFCN 3453, 925.30 MHz looking for NPSS.
[ 4/349]: EARFCN 3454, 925.40 MHz looking for NPSS.
[ 5/349]: EARFCN 3455, 925.50 MHz looking for NPSS.
[ 6/349]: EARFCN 3456, 925.60 MHz looking for NPSS.
[ 7/349]: EARFCN 3457, 925.70 MHz looking for NPSS.
[ 8/349]: EARFCN 3458, 925.80 MHz looking for NPSS.
[ 9/349]: EARFCN 3459, 925.90 MHz looking for NPSS.
[ 10/349]: EARFCN 3460, 926.00 MHz looking for NPSS.
[ 11/349]: EARFCN 3461, 926.10 MHz looking for NPSS.
[ 12/349]: EARFCN 3462, 926.20 MHz looking for NPSS.
[ 13/349]: EARFCN 3463, 926.30 MHz looking for NPSS.
[ 14/349]: EARFCN 3464, 926.40 MHz looking for NPSS.
[ 15/349]: EARFCN 3465, 926.50 MHz looking for NPSS.
[ 16/349]: EARFCN 3466, 926.60 MHz looking for NPSS.
[ 17/349]: EARFCN 3467, 926.70 MHz looking for NPSS.
[ 18/349]: EARFCN 3468, 926.80 MHz looking for NPSS.
[ 19/349]: EARFCN 3469, 926.90 MHz looking for NPSS.
[ 20/349]: EARFCN 3470, 927.00 MHz looking for NPSS.
[ 21/349]: EARFCN 3471, 927.10 MHz looking for NPSS.
[ 22/349]: EARFCN 3472, 927.20 MHz looking for NPSS.
[ 23/349]: EARFCN 3473, 927.30 MHz looking for NPSS.
[ 24/349]: EARFCN 3474, 927.40 MHz looking for NPSS.
[ 25/349]: EARFCN 3475, 927.50 MHz looking for NPSS.
[ 26/349]: EARFCN 3476, 927.60 MHz looking for NPSS.
[ 27/349]: EARFCN 3477, 927.70 MHz looking for NPSS.
[ 28/349]: EARFCN 3478, 927.80 MHz looking for NPSS.
[ 29/349]: EARFCN 3479, 927.90 MHz looking for NPSS.
[ 30/349]: EARFCN 3480, 928.00 MHz looking for NPSS.
[ 31/349]: EARFCN 3481, 928.10 MHz looking for NPSS.
[ 32/349]: EARFCN 3482, 928.20 MHz looking for NPSS.
[ 33/349]: EARFCN 3483, 928.30 MHz looking for NPSS.
[ 34/349]: EARFCN 3484, 928.40 MHz looking for NPSS.
[ 35/349]: EARFCN 3485, 928.50 MHz looking for NPSS.
[ 36/349]: EARFCN 3486, 928.60 MHz looking for NPSS.
[ 37/349]: EARFCN 3487, 928.70 MHz looking for NPSS.
[ 38/349]: EARFCN 3488, 928.80 MHz looking for NPSS.
[ 39/349]: EARFCN 3489, 928.90 MHz looking for NPSS.
[ 40/349]: EARFCN 3490, 929.00 MHz looking for NPSS.
[ 41/349]: EARFCN 3491, 929.10 MHz looking for NPSS.
[ 42/349]: EARFCN 3492, 929.20 MHz looking for NPSS.
[ 43/349]: EARFCN 3493, 929.30 MHz looking for NPSS.
[ 44/349]: EARFCN 3494, 929.40 MHz looking for NPSS.
[ 45/349]: EARFCN 3495, 929.50 MHz looking for NPSS.
[ 46/349]: EARFCN 3496, 929.60 MHz looking for NPSS.
[ 47/349]: EARFCN 3497, 929.70 MHz looking for NPSS.
[ 48/349]: EARFCN 3498, 929.80 MHz looking for NPSS.
[ 49/349]: EARFCN 3499, 929.90 MHz looking for NPSS.
[ 50/349]: EARFCN 3500, 930.00 MHz looking for NPSS.
[ 51/349]: EARFCN 3501, 930.10 MHz looking for NPSS.
[ 52/349]: EARFCN 3502, 930.20 MHz looking for NPSS.
[ 53/349]: EARFCN 3503, 930.30 MHz looking for NPSS.
[ 54/349]: EARFCN 3504, 930.40 MHz looking for NPSS.
[ 55/349]: EARFCN 3505, 930.50 MHz looking for NPSS.
[ 56/349]: EARFCN 3506, 930.60 MHz looking for NPSS.
[ 57/349]: EARFCN 3507, 930.70 MHz looking for NPSS.
[ 58/349]: EARFCN 3508, 930.80 MHz looking for NPSS.
[ 59/349]: EARFCN 3509, 930.90 MHz looking for NPSS.
[ 60/349]: EARFCN 3510, 931.00 MHz looking for NPSS.
[ 61/349]: EARFCN 3511, 931.10 MHz looking for NPSS.
[ 62/349]: EARFCN 3512, 931.20 MHz looking for NPSS.
[ 63/349]: EARFCN 3513, 931.30 MHz looking for NPSS.
[ 64/349]: EARFCN 3514, 931.40 MHz looking for NPSS.
[ 65/349]: EARFCN 3515, 931.50 MHz looking for NPSS.
[ 66/349]: EARFCN 3516, 931.60 MHz looking for NPSS.
[ 67/349]: EARFCN 3517, 931.70 MHz looking for NPSS.
[ 68/349]: EARFCN 3518, 931.80 MHz looking for NPSS.
[ 69/349]: EARFCN 3519, 931.90 MHz looking for NPSS.
[ 70/349]: EARFCN 3520, 932.00 MHz looking for NPSS.
[ 71/349]: EARFCN 3521, 932.10 MHz looking for NPSS.
[ 72/349]: EARFCN 3522, 932.20 MHz looking for NPSS.
[ 73/349]: EARFCN 3523, 932.30 MHz looking for NPSS.
[ 74/349]: EARFCN 3524, 932.40 MHz looking for NPSS.
[ 75/349]: EARFCN 3525, 932.50 MHz looking for NPSS.
[ 76/349]: EARFCN 3526, 932.60 MHz looking for NPSS.
[ 77/349]: EARFCN 3527, 932.70 MHz looking for NPSS.
[ 78/349]: EARFCN 3528, 932.80 MHz looking for NPSS.
[ 79/349]: EARFCN 3529, 932.90 MHz looking for NPSS.
[ 80/349]: EARFCN 3530, 933.00 MHz looking for NPSS.
[ 81/349]: EARFCN 3531, 933.10 MHz looking for NPSS.
[ 82/349]: EARFCN 3532, 933.20 MHz looking for NPSS.
[ 83/349]: EARFCN 3533, 933.30 MHz looking for NPSS.
[ 84/349]: EARFCN 3534, 933.40 MHz looking for NPSS.
[ 85/349]: EARFCN 3535, 933.50 MHz looking for NPSS.
[ 86/349]: EARFCN 3536, 933.60 MHz looking for NPSS.
[ 87/349]: EARFCN 3537, 933.70 MHz looking for NPSS.
[ 88/349]: EARFCN 3538, 933.80 MHz looking for NPSS.
[ 89/349]: EARFCN 3539, 933.90 MHz looking for NPSS.
[ 90/349]: EARFCN 3540, 934.00 MHz looking for NPSS.
[ 91/349]: EARFCN 3541, 934.10 MHz looking for NPSS.
[ 92/349]: EARFCN 3542, 934.20 MHz looking for NPSS.
[ 93/349]: EARFCN 3543, 934.30 MHz looking for NPSS.
[ 94/349]: EARFCN 3544, 934.40 MHz looking for NPSS.
[ 95/349]: EARFCN 3545, 934.50 MHz looking for NPSS.
[ 96/349]: EARFCN 3546, 934.60 MHz looking for NPSS.
[ 97/349]: EARFCN 3547, 934.70 MHz looking for NPSS.
[ 98/349]: EARFCN 3548, 934.80 MHz looking for NPSS.
[ 99/349]: EARFCN 3549, 934.90 MHz looking for NPSS.
[100/349]: EARFCN 3550, 935.00 MHz looking for NPSS.
[101/349]: EARFCN 3551, 935.10 MHz looking for NPSS.
[102/349]: EARFCN 3552, 935.20 MHz looking for NPSS.
[103/349]: EARFCN 3553, 935.30 MHz looking for NPSS.
[104/349]: EARFCN 3554, 935.40 MHz looking for NPSS.
[105/349]: EARFCN 3555, 935.50 MHz looking for NPSS.
[106/349]: EARFCN 3556, 935.60 MHz looking for NPSS.
[107/349]: EARFCN 3557, 935.70 MHz looking for NPSS.
[108/349]: EARFCN 3558, 935.80 MHz looking for NPSS.
[109/349]: EARFCN 3559, 935.90 MHz looking for NPSS.
[110/349]: EARFCN 3560, 936.00 MHz looking for NPSS.
[111/349]: EARFCN 3561, 936.10 MHz looking for NPSS.
[112/349]: EARFCN 3562, 936.20 MHz looking for NPSS.
[113/349]: EARFCN 3563, 936.30 MHz looking for NPSS.
[114/349]: EARFCN 3564, 936.40 MHz looking for NPSS.
[115/349]: EARFCN 3565, 936.50 MHz looking for NPSS.
[116/349]: EARFCN 3566, 936.60 MHz looking for NPSS.
[117/349]: EARFCN 3567, 936.70 MHz looking for NPSS.
[118/349]: EARFCN 3568, 936.80 MHz looking for NPSS.
[119/349]: EARFCN 3569, 936.90 MHz looking for NPSS.
[120/349]: EARFCN 3570, 937.00 MHz looking for NPSS.
[121/349]: EARFCN 3571, 937.10 MHz looking for NPSS.
[122/349]: EARFCN 3572, 937.20 MHz looking for NPSS.
[123/349]: EARFCN 3573, 937.30 MHz looking for NPSS.
[124/349]: EARFCN 3574, 937.40 MHz looking for NPSS.
[125/349]: EARFCN 3575, 937.50 MHz looking for NPSS.
[126/349]: EARFCN 3576, 937.60 MHz looking for NPSS.
[127/349]: EARFCN 3577, 937.70 MHz looking for NPSS.
[128/349]: EARFCN 3578, 937.80 MHz looking for NPSS.
[129/349]: EARFCN 3579, 937.90 MHz looking for NPSS.
[130/349]: EARFCN 3580, 938.00 MHz looking for NPSS.
[131/349]: EARFCN 3581, 938.10 MHz looking for NPSS.
[132/349]: EARFCN 3582, 938.20 MHz looking for NPSS.
[133/349]: EARFCN 3583, 938.30 MHz looking for NPSS.
[134/349]: EARFCN 3584, 938.40 MHz looking for NPSS.
[135/349]: EARFCN 3585, 938.50 MHz looking for NPSS.
[136/349]: EARFCN 3586, 938.60 MHz looking for NPSS.
[137/349]: EARFCN 3587, 938.70 MHz looking for NPSS.
[138/349]: EARFCN 3588, 938.80 MHz looking for NPSS.
[139/349]: EARFCN 3589, 938.90 MHz looking for NPSS.
[140/349]: EARFCN 3590, 939.00 MHz looking for NPSS.
[141/349]: EARFCN 3591, 939.10 MHz looking for NPSS.
[142/349]: EARFCN 3592, 939.20 MHz looking for NPSS.
[143/349]: EARFCN 3593, 939.30 MHz looking for NPSS.
[144/349]: EARFCN 3594, 939.40 MHz looking for NPSS.
[145/349]: EARFCN 3595, 939.50 MHz looking for NPSS.
[146/349]: EARFCN 3596, 939.60 MHz looking for NPSS.
[147/349]: EARFCN 3597, 939.70 MHz looking for NPSS.
[148/349]: EARFCN 3598, 939.80 MHz looking for NPSS.
[149/349]: EARFCN 3599, 939.90 MHz looking for NPSS.
[150/349]: EARFCN 3600, 940.00 MHz looking for NPSS.
[151/349]: EARFCN 3601, 940.10 MHz looking for NPSS.
[152/349]: EARFCN 3602, 940.20 MHz looking for NPSS.
[153/349]: EARFCN 3603, 940.30 MHz looking for NPSS.
[154/349]: EARFCN 3604, 940.40 MHz looking for NPSS.
[155/349]: EARFCN 3605, 940.50 MHz looking for NPSS.
[156/349]: EARFCN 3606, 940.60 MHz looking for NPSS.
[157/349]: EARFCN 3607, 940.70 MHz looking for NPSS.
[158/349]: EARFCN 3608, 940.80 MHz looking for NPSS.
[159/349]: EARFCN 3609, 940.90 MHz looking for NPSS.
[160/349]: EARFCN 3610, 941.00 MHz looking for NPSS.
[161/349]: EARFCN 3611, 941.10 MHz looking for NPSS.
[162/349]: EARFCN 3612, 941.20 MHz looking for NPSS.
[163/349]: EARFCN 3613, 941.30 MHz looking for NPSS.
[164/349]: EARFCN 3614, 941.40 MHz looking for NPSS.
[165/349]: EARFCN 3615, 941.50 MHz looking for NPSS.
[166/349]: EARFCN 3616, 941.60 MHz looking for NPSS.
[167/349]: EARFCN 3617, 941.70 MHz looking for NPSS.
[168/349]: EARFCN 3618, 941.80 MHz looking for NPSS.
[169/349]: EARFCN 3619, 941.90 MHz looking for NPSS.
[170/349]: EARFCN 3620, 942.00 MHz looking for NPSS.
[171/349]: EARFCN 3621, 942.10 MHz looking for NPSS.
[172/349]: EARFCN 3622, 942.20 MHz looking for NPSS.
[173/349]: EARFCN 3623, 942.30 MHz looking for NPSS.
[174/349]: EARFCN 3624, 942.40 MHz looking for NPSS.
[175/349]: EARFCN 3625, 942.50 MHz looking for NPSS.
[176/349]: EARFCN 3626, 942.60 MHz looking for NPSS.
[177/349]: EARFCN 3627, 942.70 MHz looking for NPSS.
[178/349]: EARFCN 3628, 942.80 MHz looking for NPSS.
[179/349]: EARFCN 3629, 942.90 MHz looking for NPSS.
[180/349]: EARFCN 3630, 943.00 MHz looking for NPSS.
[181/349]: EARFCN 3631, 943.10 MHz looking for NPSS.
[182/349]: EARFCN 3632, 943.20 MHz looking for NPSS.
[183/349]: EARFCN 3633, 943.30 MHz looking for NPSS.
[184/349]: EARFCN 3634, 943.40 MHz looking for NPSS.
[185/349]: EARFCN 3635, 943.50 MHz looking for NPSS.
[186/349]: EARFCN 3636, 943.60 MHz looking for NPSS.
[187/349]: EARFCN 3637, 943.70 MHz looking for NPSS.
[188/349]: EARFCN 3638, 943.80 MHz looking for NPSS.
[189/349]: EARFCN 3639, 943.90 MHz looking for NPSS.
[190/349]: EARFCN 3640, 944.00 MHz looking for NPSS.
[191/349]: EARFCN 3641, 944.10 MHz looking for NPSS.
[192/349]: EARFCN 3642, 944.20 MHz looking for NPSS.
[193/349]: EARFCN 3643, 944.30 MHz looking for NPSS.
[194/349]: EARFCN 3644, 944.40 MHz looking for NPSS.
[195/349]: EARFCN 3645, 944.50 MHz looking for NPSS.
[196/349]: EARFCN 3646, 944.60 MHz looking for NPSS.
[197/349]: EARFCN 3647, 944.70 MHz looking for NPSS.
[198/349]: EARFCN 3648, 944.80 MHz looking for NPSS.
[199/349]: EARFCN 3649, 944.90 MHz looking for NPSS.
[200/349]: EARFCN 3650, 945.00 MHz looking for NPSS.
[201/349]: EARFCN 3651, 945.10 MHz looking for NPSS.
[202/349]: EARFCN 3652, 945.20 MHz looking for NPSS.
[203/349]: EARFCN 3653, 945.30 MHz looking for NPSS.
[204/349]: EARFCN 3654, 945.40 MHz looking for NPSS.
[205/349]: EARFCN 3655, 945.50 MHz looking for NPSS.
[206/349]: EARFCN 3656, 945.60 MHz looking for NPSS.
[207/349]: EARFCN 3657, 945.70 MHz looking for NPSS.
[208/349]: EARFCN 3658, 945.80 MHz looking for NPSS.
[209/349]: EARFCN 3659, 945.90 MHz looking for NPSS.
[210/349]: EARFCN 3660, 946.00 MHz looking for NPSS.
[211/349]: EARFCN 3661, 946.10 MHz looking for NPSS.
[212/349]: EARFCN 3662, 946.20 MHz looking for NPSS.
[213/349]: EARFCN 3663, 946.30 MHz looking for NPSS.
[214/349]: EARFCN 3664, 946.40 MHz looking for NPSS.
[215/349]: EARFCN 3665, 946.50 MHz looking for NPSS.
[216/349]: EARFCN 3666, 946.60 MHz looking for NPSS.
[217/349]: EARFCN 3667, 946.70 MHz looking for NPSS.
[218/349]: EARFCN 3668, 946.80 MHz looking for NPSS.
[219/349]: EARFCN 3669, 946.90 MHz looking for NPSS.
[220/349]: EARFCN 3670, 947.00 MHz looking for NPSS.
[221/349]: EARFCN 3671, 947.10 MHz looking for NPSS.
[222/349]: EARFCN 3672, 947.20 MHz looking for NPSS.
[223/349]: EARFCN 3673, 947.30 MHz looking for NPSS.
[224/349]: EARFCN 3674, 947.40 MHz looking for NPSS.
[225/349]: EARFCN 3675, 947.50 MHz looking for NPSS.
[226/349]: EARFCN 3676, 947.60 MHz looking for NPSS.
[227/349]: EARFCN 3677, 947.70 MHz looking for NPSS.
[228/349]: EARFCN 3678, 947.80 MHz looking for NPSS.
[229/349]: EARFCN 3679, 947.90 MHz looking for NPSS.
[230/349]: EARFCN 3680, 948.00 MHz looking for NPSS.
[231/349]: EARFCN 3681, 948.10 MHz looking for NPSS.
[232/349]: EARFCN 3682, 948.20 MHz looking for NPSS.
[233/349]: EARFCN 3683, 948.30 MHz looking for NPSS.
[234/349]: EARFCN 3684, 948.40 MHz looking for NPSS.
[235/349]: EARFCN 3685, 948.50 MHz looking for NPSS.
NSSS with peak=82.497803, cell-id: 123, partial SFN: 0
Found CELL ID 123.
[236/349]: EARFCN 3686, 948.60 MHz looking for NPSS.
[237/349]: EARFCN 3687, 948.70 MHz looking for NPSS.
[238/349]: EARFCN 3688, 948.80 MHz looking for NPSS.
[239/349]: EARFCN 3689, 948.90 MHz looking for NPSS.
[240/349]: EARFCN 3690, 949.00 MHz looking for NPSS.
[241/349]: EARFCN 3691, 949.10 MHz looking for NPSS.
[242/349]: EARFCN 3692, 949.20 MHz looking for NPSS.
[243/349]: EARFCN 3693, 949.30 MHz looking for NPSS.
[244/349]: EARFCN 3694, 949.40 MHz looking for NPSS.
[245/349]: EARFCN 3695, 949.50 MHz looking for NPSS.
[246/349]: EARFCN 3696, 949.60 MHz looking for NPSS.
[247/349]: EARFCN 3697, 949.70 MHz looking for NPSS.
[248/349]: EARFCN 3698, 949.80 MHz looking for NPSS.
[249/349]: EARFCN 3699, 949.90 MHz looking for NPSS.
[250/349]: EARFCN 3700, 950.00 MHz looking for NPSS.
[251/349]: EARFCN 3701, 950.10 MHz looking for NPSS.
[252/349]: EARFCN 3702, 950.20 MHz looking for NPSS.
[253/349]: EARFCN 3703, 950.30 MHz looking for NPSS.
[254/349]: EARFCN 3704, 950.40 MHz looking for NPSS.
[255/349]: EARFCN 3705, 950.50 MHz looking for NPSS.
[256/349]: EARFCN 3706, 950.60 MHz looking for NPSS.
[257/349]: EARFCN 3707, 950.70 MHz looking for NPSS.
[258/349]: EARFCN 3708, 950.80 MHz looking for NPSS.
[259/349]: EARFCN 3709, 950.90 MHz looking for NPSS.
[260/349]: EARFCN 3710, 951.00 MHz looking for NPSS.
[261/349]: EARFCN 3711, 951.10 MHz looking for NPSS.
[262/349]: EARFCN 3712, 951.20 MHz looking for NPSS.
[263/349]: EARFCN 3713, 951.30 MHz looking for NPSS.
[264/349]: EARFCN 3714, 951.40 MHz looking for NPSS.
[265/349]: EARFCN 3715, 951.50 MHz looking for NPSS.
[266/349]: EARFCN 3716, 951.60 MHz looking for NPSS.
[267/349]: EARFCN 3717, 951.70 MHz looking for NPSS.
[268/349]: EARFCN 3718, 951.80 MHz looking for NPSS.
[269/349]: EARFCN 3719, 951.90 MHz looking for NPSS.
[270/349]: EARFCN 3720, 952.00 MHz looking for NPSS.
[271/349]: EARFCN 3721, 952.10 MHz looking for NPSS.
[272/349]: EARFCN 3722, 952.20 MHz looking for NPSS.
[273/349]: EARFCN 3723, 952.30 MHz looking for NPSS.
[274/349]: EARFCN 3724, 952.40 MHz looking for NPSS.
[275/349]: EARFCN 3725, 952.50 MHz looking for NPSS.
[276/349]: EARFCN 3726, 952.60 MHz looking for NPSS.
[277/349]: EARFCN 3727, 952.70 MHz looking for NPSS.
[278/349]: EARFCN 3728, 952.80 MHz looking for NPSS.
[279/349]: EARFCN 3729, 952.90 MHz looking for NPSS.
[280/349]: EARFCN 3730, 953.00 MHz looking for NPSS.
[281/349]: EARFCN 3731, 953.10 MHz looking for NPSS.
[282/349]: EARFCN 3732, 953.20 MHz looking for NPSS.
[283/349]: EARFCN 3733, 953.30 MHz looking for NPSS.
[284/349]: EARFCN 3734, 953.40 MHz looking for NPSS.
[285/349]: EARFCN 3735, 953.50 MHz looking for NPSS.
[286/349]: EARFCN 3736, 953.60 MHz looking for NPSS.
[287/349]: EARFCN 3737, 953.70 MHz looking for NPSS.
[288/349]: EARFCN 3738, 953.80 MHz looking for NPSS.
[289/349]: EARFCN 3739, 953.90 MHz looking for NPSS.
[290/349]: EARFCN 3740, 954.00 MHz looking for NPSS.
[291/349]: EARFCN 3741, 954.10 MHz looking for NPSS.
[292/349]: EARFCN 3742, 954.20 MHz looking for NPSS.
[293/349]: EARFCN 3743, 954.30 MHz looking for NPSS.
NSSS with peak=3.833671, cell-id: 296, partial SFN: 0
Found CELL ID 296.
[294/349]: EARFCN 3744, 954.40 MHz looking for NPSS.
[295/349]: EARFCN 3745, 954.50 MHz looking for NPSS.
[296/349]: EARFCN 3746, 954.60 MHz looking for NPSS.
[297/349]: EARFCN 3747, 954.70 MHz looking for NPSS.
[298/349]: EARFCN 3748, 954.80 MHz looking for NPSS.
[299/349]: EARFCN 3749, 954.90 MHz looking for NPSS.
[300/349]: EARFCN 3750, 955.00 MHz looking for NPSS.
[301/349]: EARFCN 3751, 955.10 MHz looking for NPSS.
[302/349]: EARFCN 3752, 955.20 MHz looking for NPSS.
[303/349]: EARFCN 3753, 955.30 MHz looking for NPSS.
[304/349]: EARFCN 3754, 955.40 MHz looking for NPSS.
[305/349]: EARFCN 3755, 955.50 MHz looking for NPSS.
[306/349]: EARFCN 3756, 955.60 MHz looking for NPSS.
[307/349]: EARFCN 3757, 955.70 MHz looking for NPSS.
[308/349]: EARFCN 3758, 955.80 MHz looking for NPSS.
[309/349]: EARFCN 3759, 955.90 MHz looking for NPSS.
[310/349]: EARFCN 3760, 956.00 MHz looking for NPSS.
[311/349]: EARFCN 3761, 956.10 MHz looking for NPSS.
[312/349]: EARFCN 3762, 956.20 MHz looking for NPSS.
[313/349]: EARFCN 3763, 956.30 MHz looking for NPSS.
[314/349]: EARFCN 3764, 956.40 MHz looking for NPSS.
[315/349]: EARFCN 3765, 956.50 MHz looking for NPSS.
[316/349]: EARFCN 3766, 956.60 MHz looking for NPSS.
[317/349]: EARFCN 3767, 956.70 MHz looking for NPSS.
[318/349]: EARFCN 3768, 956.80 MHz looking for NPSS.
[319/349]: EARFCN 3769, 956.90 MHz looking for NPSS.
[320/349]: EARFCN 3770, 957.00 MHz looking for NPSS.
[321/349]: EARFCN 3771, 957.10 MHz looking for NPSS.
[322/349]: EARFCN 3772, 957.20 MHz looking for NPSS.
[323/349]: EARFCN 3773, 957.30 MHz looking for NPSS.
[324/349]: EARFCN 3774, 957.40 MHz looking for NPSS.
[325/349]: EARFCN 3775, 957.50 MHz looking for NPSS.
[326/349]: EARFCN 3776, 957.60 MHz looking for NPSS.
[327/349]: EARFCN 3777, 957.70 MHz looking for NPSS.
[328/349]: EARFCN 3778, 957.80 MHz looking for NPSS.
[329/349]: EARFCN 3779, 957.90 MHz looking for NPSS.
[330/349]: EARFCN 3780, 958.00 MHz looking for NPSS.
[331/349]: EARFCN 3781, 958.10 MHz looking for NPSS.
[332/349]: EARFCN 3782, 958.20 MHz looking for NPSS.
[333/349]: EARFCN 3783, 958.30 MHz looking for NPSS.
[334/349]: EARFCN 3784, 958.40 MHz looking for NPSS.
[335/349]: EARFCN 3785, 958.50 MHz looking for NPSS.
[336/349]: EARFCN 3786, 958.60 MHz looking for NPSS.
[337/349]: EARFCN 3787, 958.70 MHz looking for NPSS.
[338/349]: EARFCN 3788, 958.80 MHz looking for NPSS.
[339/349]: EARFCN 3789, 958.90 MHz looking for NPSS.
[340/349]: EARFCN 3790, 959.00 MHz looking for NPSS.
[341/349]: EARFCN 3791, 959.10 MHz looking for NPSS.
[342/349]: EARFCN 3792, 959.20 MHz looking for NPSS.
[343/349]: EARFCN 3793, 959.30 MHz looking for NPSS.
[344/349]: EARFCN 3794, 959.40 MHz looking for NPSS.
[345/349]: EARFCN 3795, 959.50 MHz looking for NPSS.
[346/349]: EARFCN 3796, 959.60 MHz looking for NPSS.
[347/349]: EARFCN 3797, 959.70 MHz looking for NPSS.
[348/349]: EARFCN 3798, 959.80 MHz looking for NPSS.
NSSS with peak=45.436958, cell-id: 46, partial SFN: 0
Found CELL ID 46.
Found 3 cells
Found CELL 948.5 MHz, EARFCN=3685, PHYID=123, NPSS power=21.1 dBm
Found CELL 954.3 MHz, EARFCN=3743, PHYID=296, NPSS power=-5.5 dBm
Found CELL 959.8 MHz, EARFCN=3798, PHYID=46, NPSS power=16.2 dBm
Bye
2、解码下行数据
opensourcesdr@opensourcesdr:~/Downloads/srsRAN/build/lib/examples$ sudo ./npdsch_ue -f 948.5e6
Opening RF device...
Soapy has found device #0: addr=24607:1027, driver=lime, label=LimeSDR Mini [USB 2.0] 1D49762FC19C49, media=USB 2.0, module=FT601, name=LimeSDR Mini, serial=1D49762FC19C49,
Selecting Soapy device: 0
Detected LimeSDR. Consider using LTE rates for better RF performance.
Either compile with '-DUSE_LTE_RATES=True' or start srsENB/srsUE with '--expert.lte_sample_rates=true'
[INFO] Make connection: 'LimeSDR Mini [USB 2.0] 1D49762FC19C49'
[INFO] Reference clock 40.00 MHz
[INFO] Device name: LimeSDR-Mini
[INFO] Reference: 40 MHz
[INFO] LMS7002M register cache: Disabled
Setting up Rx stream with 1 channel(s)
Setting up Tx stream with 1 channel(s)
[INFO] RX LPF configured
[INFO] Filter calibrated. Filter order-4th, filter bandwidth set to 5 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active
[INFO] TX LPF configured
Available device sensors:
- clock_locked
- lms7_temp
Available sensors for Rx channel 0:
- lo_locked
State of gain elements for Rx channel 0 (AGC not supported):
- TIA: 9.00 dB
- LNA: 30.00 dB
- PGA: -7.00 dB
State of gain elements for Tx channel 0 (AGC not supported):
- PAD: 0.00 dB
- IAMP: 0.00 dB
Rx antenna set to LNAH
Tx antenna set to BAND1
Set RX gain: 70.0 dB
[INFO] Selected RX path: LNAW
Set RX freq: 948.499994 MHz
Setting sampling rate 1.92 MHz
Actual sampling rate 1.92 MHz
[ERROR] Tx Calibration: MCU error 5 (Loopback signal weak: not connected/insufficient gain?)
[INFO] Rx calibration finished
NSSS with peak=81.592972, cell-id: 14, partial SFN: 0
*Found n_id_ncell: 14 DetectRatio= 0% PSR=1.96, Power=106.0 dBm
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Finding PSS... Peak: 4.6, FrameCnt: 0, State: 1 0
MIB received (CFO: +0.31 kHz)
MIB received (CFO: +0.03 kHz) FrameCnt: 0, State: 1: 0
Finding PSS... Peak: 5.3, FrameCnt: 0, State: 1
MIB received (CFO: +0.11 kHz) FrameCnt: 0, State: 1
Finding PSS... Peak: 8.4, FrameCnt: 0, State: 1
MIB received (CFO: -0.14 kHz) FrameCnt: 0, State: 1
Finding PSS... Peak: 5.8, FrameCnt: 0, State: 1
SIGINT received. Exiting....5, FrameCnt: 4, State: 0 0
Saving PCAP fileeak: 1.3, FrameCnt: 4, State: 0
Bye
QObject::~QObject: Timers cannot be stopped from another thread
3、发射信号
opensourcesdr@opensourcesdr:~/Downloads/srsRAN/build/lib/examples$ sudo ./npdsch_enodeb -f 948.5e6
Opening RF device...
Soapy has found device #0: addr=24607:1027, driver=lime, label=LimeSDR Mini [USB 2.0] 1D49762FC19C49, media=USB 2.0, module=FT601, name=LimeSDR Mini, serial=1D49762FC19C49,
Selecting Soapy device: 0
Detected LimeSDR. Consider using LTE rates for better RF performance.
Either compile with '-DUSE_LTE_RATES=True' or start srsENB/srsUE with '--expert.lte_sample_rates=true'
[INFO] Make connection: 'LimeSDR Mini [USB 2.0] 1D49762FC19C49'
[INFO] Reference clock 40.00 MHz
[INFO] Device name: LimeSDR-Mini
[INFO] Reference: 40 MHz
[INFO] LMS7002M register cache: Disabled
Setting up Rx stream with 1 channel(s)
Setting up Tx stream with 1 channel(s)
[INFO] RX LPF configured
[INFO] Filter calibrated. Filter order-4th, filter bandwidth set to 5 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active
[INFO] TX LPF configured
Available device sensors:
- clock_locked
- lms7_temp
Available sensors for Rx channel 0:
- lo_locked
State of gain elements for Rx channel 0 (AGC not supported):
- TIA: 9.00 dB
- LNA: 30.00 dB
- PGA: -7.00 dB
State of gain elements for Tx channel 0 (AGC not supported):
- PAD: 0.00 dB
- IAMP: 0.00 dB
Rx antenna set to LNAH
Tx antenna set to BAND1
Setting sampling rate 1.92 MHz
Set TX gain: 70.1 dB
[INFO] Selected TX path: Band 2
Set TX freq: 948.50 MHz
NB-IoT DL DCI:
- Format flag: 1
+ FormatN1 DCI: Downlink
- PDCCH Order: 0
- Scheduling delay: 0 (0 subframes)
- Resource assignment: 0
+ Number of subframes: 1
- Modulation and coding scheme index: 1
- Repetition number: 0
+ Number of repetitions: 1
- New data indicator: 0
- HARQ-ACK resource: 1
- DCI subframe repetition number: 0
DL grant config:
- Number of subframes: 1
- Number of repetitions: 1
- Total number of subframes: 1
- Starting SFN: 0
- Starting SF index: 6
- Modulation type: QPSK
- Transport block size: 24
Type new MCS index and press Enter: [INFO] Tx calibration finished
[INFO] Rx calibration finished
NB-IoT HFN: 1
NB-IoT HFN: 2
NB-IoT HFN: 3
NB-IoT HFN: 4
NB-IoT HFN: 5
NB-IoT HFN: 6
NB-IoT HFN: 7
NB-IoT HFN: 8
NB-IoT HFN: 9
NB-IoT HFN: 10
NB-IoT HFN: 11
NB-IoT HFN: 12
NB-IoT HFN: 13
NB-IoT HFN: 14
NB-IoT HFN: 15
NB-IoT HFN: 16
NB-IoT HFN: 17
NB-IoT HFN: 18
NB-IoT HFN: 19
NB-IoT HFN: 20
NB-IoT HFN: 21
NB-IoT HFN: 22
NB-IoT HFN: 23
NB-IoT HFN: 24
NB-IoT HFN: 25
NB-IoT HFN: 26
NB-IoT HFN: 27
NB-IoT HFN: 28
NB-IoT HFN: 29
NB-IoT HFN: 30
NB-IoT HFN: 31
NB-IoT HFN: 32
NB-IoT HFN: 33
NB-IoT HFN: 34
^CSIGINT received. Exiting...
Done
opensourcesdr@opensourcesdr:~/Downloads/srsRAN/build/lib/examples$
https://www.srsran.com/
https://docs.srslte.com/en/latest/general/source/1_installation.html
https://docs.srslte.com/en/latest/app_notes/source/nbiot/source/index.html#nbiot-appnote
https://wiki.myriadrf.org/Lime_Suite
https://github.com/srsran/srsRAN
https://github.com/srsran/srsGUI
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/185045.html原文链接:https://javaforall.cn