I have a installed the srsRAN Version 23.4.0, UHD_4.4.0
on my ubuntu Jammy 20.04 and my experiment is to test 5G signal dumping for the 3.5GHz frequency.
I have made the necessary changes to the ue.conf as seen, i vary the dl_earfcn value to change the frequencies.
`** RF configuration**
#####################################################################
[rf]
freq_offset = 0
tx_gain = 75
#rx_gain = 40
srate = 23.04e6
nof_antennas = 1
device_args = USRP B210: clock=external, time=external
#time_adv_nsamples = auto
#continuous_tx = auto
#####################################################################
# EUTRA RAT configuration
#
# dl_earfcn: Downlink EARFCN list.
#
# Optional parameters:
# dl_freq: Override DL frequency corresponding to dl_earfcn
# ul_freq: Override UL frequency corresponding to dl_earfcn
# nof_carriers: Number of carriers
#####################################################################
[rat.eutra]
dl_earfcn = 100
nof_carriers = 1
#####################################################################
# NR RAT configuration
#
# Optional parameters:
# bands: List of support NR bands seperated by a comma (default 78)
# nof_carriers: Number of NR carriers (must be at least 1 for NR support)
#####################################################################
[rat.nr]
bands = 78
nof_carriers = 1
dl_nr_arfcn =100
#####################################################################
# Packet capture configuration
#
# enable: Enable packet captures of layers (mac/mac_nr/nas/none) multiple option list
# mac_filename: File path to use for MAC packet capture
# mac_nr_filename: File path to use for MAC NR packet capture
# nas_filename: File path to use for NAS packet capture
#####################################################################
[pcap]
enable = mac
mac_filename = /tmp/ue_mac.pcap
mac_nr_filename = /tmp/ue_mac_nr.pcap
nas_filename = /tmp/ue_nas.pcap`
*i am running the test for both standalone and non-standalone modes,
RF frontend: USRPB210 with a gps antenna in the RF-In port for synchronization, and a log periodic antenna of range 850-6500 MHz.
For the configurationsa above, which is for the nonstandalone test,the results attained are as follows,
Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_zmq.so
Inactive RF plugins:
Couldn't open , trying /root/.config/srsran/ue.conf
Reading configuration file /root/.config/srsran/ue.conf...
Built in Release mode using commit fa56836b1 on branch master.
Opening 2 channels in RF device=uhd with args=USRP B210: clock=external, time=external
Supported RF device list: UHD zmq file
[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.4.0.HEAD-0-g5fac246b
[INFO] [LOGGING] Fastpath logging disabled at runtime.
Opening USRP channels=2, args: USRP B210: clock=external,time=external,type=b200,master_clock_rate=23.04e6
[INFO] [UHD RF] RF UHD Generic instance constructed
[INFO] [B200] Detected Device: B210
[INFO] [B200] Operating over USB 3.
[INFO] [B200] Initialize CODEC control...
[INFO] [B200] Initialize Radio control...
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Asking for clock rate 23.040000 MHz...
[INFO] [B200] Actually got clock rate 23.040000 MHz.
[INFO] [MULTI_USRP] 1) catch time transition at pps edge
[INFO] [MULTI_USRP] 2) set times next pps (synchronously)
Waiting PHY to initialize ... done!
Attaching UE...
.
Found Cell: Mode=FDD, PCI=38, PRB=100, Ports=2, CP=Normal, CFO=-2.3 KHz
Found PLMN: Id=45006, TAC=36867
Could not find Home PLMN Id=46001, trying to connect to PLMN Id=45006
RF status: O=1, U=0, L=0
Random Access Transmission: seq=29, tti=1311, ra-rnti=0x2
Random Access Transmission: seq=0, tti=1331, ra-rnti=0x2
Random Access Transmission: seq=24, tti=1351, ra-rnti=0x2
Random Access Transmission: seq=1, tti=1371, ra-rnti=0x2
Random Access Transmission: seq=14, tti=1391, ra-rnti=0x2
Random Access Transmission: seq=22, tti=1411, ra-rnti=0x2
Random Access Transmission: seq=25, tti=1431, ra-rnti=0x2
Random Access Transmission: seq=14, tti=1451, ra-rnti=0x2
Random Access Transmission: seq=34, tti=1471, ra-rnti=0x2
Random Access Transmission: seq=33, tti=1491, ra-rnti=0x2
[INFO] [UHD RF] Tx while waiting for EOB, timed out... 6.34999 >= 0. Starting new burst...
RF status: O=3, U=2, L=1
^CStopping ..
Saving MAC PCAP (DLT=149) to /tmp/ue_mac.pcap
Couldn't stop after 5s. Forcing exit.
Saving NAS PCAP file (DLT=148) to
Killed
`
However, I don't see any detailes when i open the ue_mac.pcap file in wireshark, also which interface on whireshark can i capture and analyze the usrp traffic, it is physically connected to my usb 3 port.??
THe results for when i set the number of carriers for the lte to zero(i.e 5G SA) is shown below
`Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_zmq.so
Inactive RF plugins:
Couldn't open , trying /root/.config/srsran/ue.conf
Reading configuration file /root/.config/srsran/ue.conf...
Built in Release mode using commit fa56836b1 on branch master.
Opening 1 channels in RF device=uhd with args=USRP B210: clock=external, time=external
Supported RF device list: UHD zmq file
[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.4.0.HEAD-0-g5fac246b
[INFO] [LOGGING] Fastpath logging disabled at runtime.
Opening USRP channels=1, args: USRP B210: clock=external,time=external,type=b200,master_clock_rate=23.04e6
[INFO] [UHD RF] RF UHD Generic instance constructed
[INFO] [B200] Detected Device: B210
[INFO] [B200] Operating over USB 3.
[INFO] [B200] Initialize CODEC control...
[INFO] [B200] Initialize Radio control...
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Asking for clock rate 23.040000 MHz...
[INFO] [B200] Actually got clock rate 23.040000 MHz.
Waiting PHY to initialize ... done!
Attaching UE...
^CStopping ..
Saving MAC PCAP (DLT=149) to /tmp/ue_mac.pcap
^C--- exiting ---
`
The resulting log for this standalone test is shown below;
2023-08-20T11:33:39.990338 [UE ] [I] Using binary srsue with arguments:
2023-08-20T11:33:40.009827 [UE ] [I] Built in Release mode using commit fa56836b1 on branch master.
2023-08-20T11:33:40.034879 [RF ] [I] Configuring physical DL channel 0 with band-pass filter (0.0, 0.0)
2023-08-20T11:33:40.034880 [RF ] [I] Configuring physical UL channel 0 with band-pass filter (0.0, 0.0)
2023-08-20T11:33:41.569852 [STCK ] [I] Open mac pcap file /tmp/ue_mac.pcap
2023-08-20T11:33:41.572570 [PHY-SA ] [D] [ 0] SYNC: state=IDLE, tti=0
2023-08-20T11:33:41.572571 [PHY-SA ] [D] [ 0] Discarding samples and sending tx_end
2023-08-20T11:33:41.575711 [MAC ] [I] [ 0] Resetting MAC
2023-08-20T11:33:41.575713 [MAC ] [D] [ 0] Msg3 buffer flushed
2023-08-20T11:33:41.575715 [MAC ] [I] [ 0] Logical Channel Setup: LCID=0, LCG=0, priority=0, PBR=-1, BSD=50ms, bucket_size=0
2023-08-20T11:33:41.575716 [MAC ] [I] [ 0] Logical Channel Setup: LCID=1, LCG=0, priority=1, PBR=-1, BSD=50ms, bucket_size=0
2023-08-20T11:33:41.575720 [MAC ] [D] [ 0] After MAC reset:
- lcid=0, lcg=0, prio=0, Bj=0, PBR=-1, BSD=50, buffer_len=0, sched_len=0
- lcid=1, lcg=0, prio=1, Bj=0, PBR=-1, BSD=50, buffer_len=0, sched_len=0
2023-08-20T11:33:41.575720 [MAC ] [I] [ 0] Setting configuration
2023-08-20T11:33:41.575721 [MAC ] [I] [ 0] BSR: Configured timer reTX 2560 ms
2023-08-20T11:33:41.575726 [RLC ] [I] Added LTE radio bearer with LCID 0 in Transparent Mode
2023-08-20T11:33:41.575730 [USIM ] [I] Read Home PLMN Id=46001
2023-08-20T11:33:41.578598 [RLC-NR ] [I] Added LTE radio bearer with LCID 0 in Transparent Mode
2023-08-20T11:33:41.578600 [MAC-NR ] [D] [ 0] cc_idx=0, set number of HARQ processes for DL to 8
2023-08-20T11:33:41.578603 [MAC-NR ] [I] [ 0] Logical Channel Setup: LCID=0, LCG=0, priority=0, PBR=0, BSD=0ms, bucket_size=0
2023-08-20T11:33:41.578609 [RRC ] [I] using srand seed of 578609
2023-08-20T11:33:41.582923 [PHY_LIB] [D] [ 0] Init FFT symbol_sz=768, nof_symbols=7, cp=Normal, nof_re=624, nof_guards=72
2023-08-20T11:33:41.585087 [PHY_LIB] [D] [ 0] Init iFFT symbol_sz=768, nof_symbols=7, cp=Normal, nof_re=624, nof_guards=72
2023-08-20T11:33:41.591091 [PHY_LIB] [D] [ 0] Init FFT symbol_sz=768, nof_symbols=7, cp=Normal, nof_re=624, nof_guards=72
2023-08-20T11:33:41.593309 [PHY_LIB] [D] [ 0] Init iFFT symbol_sz=768, nof_symbols=7, cp=Normal, nof_re=624, nof_guards=72
2023-08-20T11:33:41.599481 [PHY_LIB] [D] [ 0] Init FFT symbol_sz=768, nof_symbols=7, cp=Normal, nof_re=624, nof_guards=72
2023-08-20T11:33:41.601526 [PHY_LIB] [D] [ 0] Init iFFT symbol_sz=768, nof_symbols=7, cp=Normal, nof_re=624, nof_guards=72
2023-08-20T11:33:41.604079 [MAC ] [D] [ 0] DL retx: 0.00 %, perpkt: 0.00, UL retx: 0.00 % perpkt: 0.00
2023-08-20T11:33:41.604081 [RLC ] [D] lcid=0, rx_rate_mbps=0.00 (real=0.00), tx_rate_mbps=0.00 (real=0.00)
2023-08-20T11:33:41.604101 [GW ] [D] gw_rx_rate_mbps=0.00 (real=0.00), gw_tx_rate_mbps=0.00 (real=0.00)
2023-08-20T11:33:41.605114 [STCK ] [I] Triggering NAS switch on
2023-08-20T11:33:41.605133 [NAS5G ] [I] Switching on
2023-08-20T11:33:41.605138 [NAS5G ] [D] Changed to mm5g state: DEREGISTERED, with substate PLMN-SEARCH
2023-08-20T11:33:41.673791 [PHY-SA ] [D] [ 0] run_stack_tti: from recv
2023-08-20T11:33:41.673792 [PHY-SA ] [D] [ 0] SYNC: Setting initial TTI time to 0.908983
2023-08-20T11:33:41.673793 [PHY-SA ] [D] [ 0] run_stack_tti: calling stack tti=0, tti_jump=1
2023-08-20T11:33:41.673794 [PHY-SA ] [D] [ 0] run_stack_tti: stack called
2023-08-20T11:33:41.673794 [PHY-SA ] [D] [ 0] SYNC: received 23040 samples from radio
2023-08-20T11:33:41.673796 [PHY-SA ] [D] [ 0] SYNC: state=IDLE, tti=0
2023-08-20T11:33:41.673796 [PHY-SA ] [D] [ 0] Discarding samples and sending tx_end
2023-08-20T11:33:41.673896 [MAC ] [D] [ 0] Running MAC tti=0
2023-08-20T11:33:41.673896 [MAC ] [D] [ 0] Update Bj: lcid=0, Bj=0
2023-08-20T11:33:41.673897 [MAC ] [D] [ 0] Update Bj: lcid=1, Bj=0
2023-08-20T11:33:41.673901 [MAC ] [D] [ 0] RA: IDLE: rar_window_start=-1, rar_window_length=-1
2023-08-20T11:33:41.673901 [MAC-NR ] [D] [ 0] Running MAC tti=0
2023-08-20T11:33:41.673906 [MAC-NR ] [D] [ 0] nof_lcids_with_data=0, nof_lcgs_with_data=0, last_non_zero_lcg=-1 [lcg0=0, ] [lcid0=0, ]
2023-08-20T11:33:41.673909 [RRC ] [D] State IDLE
2023-08-20T11:33:41.673932 [USIM ] [I] Read Home PLMN Id=46001
2023-08-20T11:33:41.673933 [NAS5G ] [I] Requesting IMSI attach (IMSI=460010103004957)
2023-08-20T11:33:41.673937 [NAS5G ] [D] Starting T3410. Timeout in 15000 ms.
2023-08-20T11:33:41.673937 [NAS5G ] [I] Sending Registration Request
2023-08-20T11:33:41.673938 [NAS5G ] [D] Initiating RRC NR Connection
2023-08-20T11:33:41.673939 [RRC-NR ] [I] Proc "Setup Request" - Initiation of Setup request procedure
2023-08-20T11:33:41.673939 [RRC-NR ] [I] Proc "Cell Selection" - Starting...
2023-08-20T11:33:41.673943 [NAS5G ] [D] Changed to mm5g state: REGISTERED-INITIATED
2023-08-20T11:33:41.673943 [STCK ] [D] tti_tprof: duration=0 msec
2023-08-20T11:33:41.673947 [PHY-SA ] [I] [ 0] Cell Search: Going to IDLE
2023-08-20T11:33:41.673949 [PHY-SA ] [I] [ 0] Tuning Rx channel 0 to 0.50 MHz
2023-08-20T11:33:41.673955 [RF ] [I] Mapping RF channel 0 (device=0, channel=0) to logical carrier 0 on f_rx=0.5 MHz
2023-08-20T11:33:41.674805 [PHY-SA ] [D] [ 0] run_stack_tti: from recv
2023-08-20T11:33:41.674805 [PHY-SA ] [D] [ 0] run_stack_tti: calling stack tti=0, tti_jump=1
2023-08-20T11:33:41.674806 [PHY-SA ] [D] [ 0] run_stack_tti: stack called
2023-08-20T11:33:41.674806 [PHY-SA ] [D] [ 0] SYNC: received 23040 samples from radio
2023-08-20T11:33:41.674806 [PHY-SA ] [D] [ 0] SYNC: state=IDLE, tti=0
2023-08-20T11:33:41.674806 [PHY-SA ] [D] [ 0] Discarding samples and sending tx_end
2023-08-20T11:33:41.674870 [MAC ] [D] [ 0] Running MAC tti=0
2023-08-20T11:33:41.674870 [MAC ] [D] [ 0] Update Bj: lcid=0, Bj=0
2023-08-20T11:33:41.674870 [MAC ] [D] [ 0] Update Bj: lcid=1, Bj=0
2023-08-20T11:33:41.674871 [MAC ] [D] [ 0] RA: IDLE: rar_window_start=-1, rar_window_length=-1
2023-08-20T11:33:41.674871 [MAC-NR ] [D] [ 0] Running MAC tti=0
2023-08-20T11:33:41.674872 [MAC-NR ] [D] [ 0] nof_lcids_with_data=0, nof_lcgs_with_data=0, last_non_zero_lcg=-1 [lcg0=0, ] [lcid0=0, ]
2023-08-20T11:33:41.674873 [STCK ] [D] tti_tprof: duration=0 msec
2023-08-20T11:33:41.675737 [PHY-SA ] [D] [ 0] run_stack_tti: from recv
2023-08-20T11:33:41.675737 [PHY-SA ] [D] [ 0] run_stack_tti: calling stack tti=0, tti_jump=1
2023-08-20T11:33:41.675738 [PHY-SA ] [D] [ 0] run_stack_tti: stack called
2023-08-20T11:33:41.675738 [PHY-SA ] [D] [ 0] SYNC: received 23040 samples from radio
2023-08-20T11:33:41.675738 [PHY-SA ] [D] [ 0] SYNC: state=IDLE, tti=0
2023-08-20T11:33:41.675738 [PHY-SA ] [D] [ 0] Discarding samples and sending tx_end
2023-08-20T11:33:41.675795 [MAC ] [D] [ 0] Running MAC tti=0
2023-08-20T11:33:41.675795 [MAC ] [D] [ 0] Update Bj: lcid=0, Bj=0
2023-08-20T11:33:41.675796 [MAC ] [D] [ 0] Update Bj: lcid=1, Bj=0
2023-08-20T11:33:41.675796 [MAC ] [D] [ 0] RA: IDLE: rar_window_start=-1, rar_window_length=-1
2023-08-20T11:33:41.675796 [MAC-NR ] [D] [ 0] Running MAC tti=0
2023-08-20T11:33:41.675797 [MAC-NR ] [D] [ 0] nof_lcids_with_data=0, nof_lcgs_with_data=0, last_non_zero_lcg=-1 [lcg0=0, ] [lcid0=0, ]
2023-08-20T11:33:41.675797 [STCK ] [D] tti_tprof: duration=0 msec