/Raspberry-Pi-as-AP-for-5G-Core

Extending the 5G core network of Amarisoft using Raspberry Pi as Wireless AP. Further, adding more of these Access points to create open source 5G-RAN (i.e Access Network)

Primary LanguageShell

Raspberry-Pi-as-AP-for-5G-Core

Extending the 5G core network of Amarisoft using Raspberry Pi as Wireless AP. Further, adding more of these Access points to create open source 5G-RAN (i.e Access Network)

Getting Started

Installing Raspberry Pi OS (upgrade from buster to bullseye)

Architecture

5G AN RPI_Final

Editing the gnb-sa.cfg file

gnbsaho2

Configuring NAPT Rules to enable two-way SDP Traffic

iptables -t nat -A PREROUTING -p udp --destination 192.168.2.2 --dport 8000 --jump DNAT --to-destination 11.11.11.221:8000 
iptables -t nat -A PREROUTING -p udp --destination 192.168.2.2 --dport 8001 --jump DNAT --to-destination 11.11.11.221:8001 
iptables -t nat -A PREROUTING -p udp -d 192.168.2.2 -j DNAT --to-destination 11.11.11.221 
iptables -t nat -A POSTROUTING -o wwan0 -j SNAT --to-source 192.168.2.2

Executing program

  • Waveshare is already installed on the Pi
  • sudo minicom -D /dev/ttyUSB2 to run AT commands
cd Goonline
* make
* sudo ./simcom-cm

Authors

Haritha Lakshmi Gopinathan

Version History

  • 0.1
    • Initial Release

License

Acknowledgments

Inspiration, code snippets, etc.