5G OpenAir first run

5G OpenAir first run

  • 1 Environment and Introduction
  • 2 References
  • 3 Build
  • 4 Running

1 Environment and Introduction

Name Describe
Date 2020.07.26 Sunday
Ubuntu 18.04.4 LTS
openairinterface5g develop, tag: 2020.w28

下图为open-cells 5G OpenAir first run 的简单介绍. 主要是OAI的代码目前实现的功
能非常有限, 貌似没有核心网模块.
5G OpenAir first run_第1张图片

2 References

  • open-cells 5G OpenAir first run

3 Build

cd /path/to/openairinterface5g/
git checkout develop
source oaienv
cd cmake_targets/

./build_oai -I
./build_oai --gNB --nrUE

下面是一些编译的截图, 其中有一些warning, 但并没有错误.
5G OpenAir first run_第2张图片
5G OpenAir first run_第3张图片
5G OpenAir first run_第4张图片

4 Running

  1. Run the gNB in one windows

    sudo ./nr-softmodem -O ../../../ci-scripts/conf_files/gnb.band78.tm1.106PRB.usrpn300.conf --parallel-config PARALLEL_SINGLE_THREAD --rfsim --phy-test --rfsimulator.serveraddr server --noS1 -d
    
  2. 原文内容
    5G OpenAir first run_第5张图片

  3. Solve the ip address problem

    sudo ip netns delete ueNameSpace
    sudo ip link delete v-eth1
    sudo ip netns add ueNameSpace
    sudo ip link add v-eth1 type veth peer name v-ue1
    sudo ip link set v-ue1 netns ueNameSpace
    sudo ip addr add 10.200.1.1/24 dev v-eth1
    sudo ip link set v-eth1 up
    
    sudo iptables -t nat -A POSTROUTING -s 10.200.1.0/255.255.255.0 -o enp34s0 -j MASQUERADE
    sudo iptables -A FORWARD -i enp34s0 -o v-eth1 -j ACCEPT
    sudo iptables -A FORWARD -o enp34s0 -i v-eth1 -j ACCEPT
    sudo ip netns exec ueNameSpace ip link set dev lo up
    sudo ip netns exec ueNameSpace ip addr add 10.200.1.2/24 dev v-ue1
    sudo ip netns exec ueNameSpace ip link set v-ue1 up
    
    
    # Set your window in the new namespace
    sudo ip netns exec ueNameSpace bash
    

    主要是修改enp34s0网络接口.

  4. In the namespace, run

    sudo ./nr-uesoftmodem -d --rrc_config_path . --nokrnmod --phy-test --rfsim --rfsimulator.serveraddr 10.200.1.1 --noS1
    
  5. Results
    可以看到, 有波形出现.

你可能感兴趣的:(sdr,oai,sdr)