This repository provides detailed instructions to set up a 5G testbed using two USRP X310 devices, leveraging the srsRAN stack for the gNB, 5G core, and srsUE.
-
First PC:
- Connected to a USRP X310 via a 1 Gbps Ethernet link
- Running the gNB and 5G Core
-
Second PC:
- Connected to another USRP X310 via a 1 Gbps Ethernet link
- Running srsUE
-
Synchronization:
Both USRPs are synchronized and clocked using a CDA-2990 G clock distribution module and communicate via antennas.
- Download and install the UHD libraries compatible with your USRP model and firmware version.
- Refer to the official UHD installation guide for details.
- Ensure the correct daughterboards (e.g., UBX-160) are securely installed and properly aligned in the USRP.
- Use a 1 Gbps Ethernet cable to connect the USRP’s Ethernet port to the host machine's Ethernet port.
-
Set the IP address of the Ethernet port connected to the USRP:
- IP Address:
192.168.10.1
- Netmask:
255.255.255.0
- IP Address:
-
Verify the connection by pinging the USRP’s default IP address (
192.168.10.2
):ping 192.168.10.2
- Run the following command to identify the connected USRP:
sudo uhd_find_devices
- This will display details like the model, serial number, and IP configuration.
- Probe the USRP to verify connectivity and firmware version:
sudo uhd_usrp_probe
- If required, update the firmware by following the instructions provided in the console.
- Use the commands suggested in the console output to burn the appropriate firmware image.
- Wait until the process completes successfully.
- Power cycle the USRP to ensure the firmware changes are applied.
- Confirm the setup by probing the USRP again:
sudo uhd_usrp_probe
- Check for accurate firmware details and operational status.
This repository includes the config files for srsUE and gNB. It also includes a patch provided to us by the srsRAN team to make this setup work with USRP x310s. Add this patch in the srsRAN_4G folder and run.
git apply fix_prach.patch
Check the changes to ensure they were applied correctly:
git status
git diff
Finally, build the srsRAN_4G folder