本文主要是介绍SDR之Open5gs搭建使用篇,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
关于国内使用开源的SDR软件,Open5GS的搭建使用(和真实的LTE基站和商用手机进行组网测试)
Open5gs硬件平台使用树莓派P4,需要安装Ubuntu系统,可以从下面连接下载需要的系统
树莓派资源下载 | 树莓派实验室
配置好树莓派连到wifi,可以上网获取open5gs的源码
Required HW
The test program has been run on [VirtualBox - CPU: 1, Memory: 4.00 GB] and [Docker for Mac - CPU: 2, Memory: 2.00 GB] with default setting (max.ue: 4,096, pool.packet: 32,768).
树莓派 Pi 系统
Ubuntu System(Ubuntu 16.04(xenial) and earlier versions, and Debian 9(stretch) and earlier versions are not supported)
Getting MongoDB (安装HSS Database)
Install MongoDB with package manager. It is used as database for NRF/PCF/UDR and PCRF/HSS.
$ sudo apt update
$ sudo apt install mongodb
$ sudo systemctl start mongodb (if '/usr/bin/mongod' is not running)
$ sudo systemctl enable mongodb (ensure to automatically start it on system boot)
Setting up TUN device (not persistent after rebooting) # 建立UE通信接口
Create the TUN device with the interface name ogstun.
$ sudo ip tuntap add name ogstun mode tun
$ sudo ip addr add 10.45.0.1/16 dev ogstun
$ sudo ip addr add 2001:db8:cafe::1/48 dev ogstun
$ sudo ip link set ogstun up
Building Open5GS
Install the dependencies for building the source code.
$ sudo apt install python3-pip python3-setuptools python3-wheel ninja-build build-essential flex bison git libsctp-dev libgnutls28-dev libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson
Git clone.
这篇关于SDR之Open5gs搭建使用篇的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!