Originally posted by fabio-patrizi June 7, 2023
Hi all,
I'm having troubles in connecting the srsUE to the gNB via ZMQ.
I've followed the steps in the tutorial. I have built open5gs, srsRAN_Project and srsRAN_4G from sources on Ubuntu 22.04.2 LTS (actually, I'm on a Mac M1 Max). Each of them seems to work fine and apparently the gNB and open5gs connect with each other. However, the srsUE seems to fail in connecting. Details follow.
gNB commit is 56a771d
srsUE commit is 921f17484
(Expected behavior)
As per the tutorial, the srsUE output should end by something as follows:
...
RRC Connected
PDU Session Establishment successful. IP: 10.45.10.2
RRC NR reconfiguration successful.
(Observed behavior)
Instead, I get the following:
Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_zmq.so
Inactive RF plugins:
Reading configuration file ./srsRAN_4G/build/ue_zmq.conf...
Built in Release mode using commit 921f17484 on branch master.
Opening 1 channels in RF device=zmq with args=tx_port=tcp://127.0.0.1:2001,rx_port=tcp://127.0.0.1:2000,base_srate=11.52e6
Supported RF device list: UHD zmq file
CHx base_srate=11.52e6
Current sample rate is 1.92 MHz with a base rate of 11.52 MHz (x6 decimation)
CH0 rx_port=tcp://127.0.0.1:2000
CH0 tx_port=tcp://127.0.0.1:2001
Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Waiting PHY to initialize ... done!
Attaching UE...
Random Access Transmission: prach_occasion=0, preamble_index=0, ra-rnti=0x39, tti=334
Random Access Complete. c-rnti=0x4601, ta=0
RRC Connected
In particular, I do not get the lines:
PDU Session Establishment successful. IP: 10.45.10.2
RRC NR reconfiguration successful.
which indicate successful connection (according to the tutorial).
When I test the connection with ping, it doesn't work.
gNB output is:
Lower PHY in executor blocking mode.
--== srsRAN gNB (commit 56a771d) ==--
Connecting to AMF on 127.0.0.5:38412
Available radio types: uhd and zmq.
Cell pci=1, bw=10 MHz, dl_arfcn=368500 (n3), dl_freq=1842.5 MHz, dl_ssb_arfcn=368410, ul_freq=1747.5 MHz
==== gNodeB started ===
Type to view trace
Configuration files are attached below:
open5gs:
amf.yaml.txt
upf.yaml.txt
gNB:
gnb_zmq.yaml.txt
UE:
ue_zmq.conf.txt
Subscriber configuration is attached below. I tried AMF both 8000 and 9000, none work. BTW, where do I get the correct value?
![Screenshot from 2023-06-07 17-56-23](https://private-user-images.githubusercontent.com/55386576/244387846-07f51288-398d-4456-ba53-b2157f055b67.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MjI5OTMsIm5iZiI6MTcyNDQyMjY5MywicGF0aCI6Ii81NTM4NjU3Ni8yNDQzODc4NDYtMDdmNTEyODgtMzk4ZC00NDU2LWJhNTMtYjIxNTdmMDU1YjY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE0MTgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5YWY2ZWQ3YzlmMjcxYTliZDdhNTFkNTM0ZDRkMzU1ZDcwMjM3NTc4ZjMyNmI5MDJmZjg1N2M5YzBkMTlmODgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QZFsiv1lBJzDN36Mso7ecVpSE1TEEeoUaViqNAqCPx8)
![Screenshot from 2023-06-07 17-57-42](https://private-user-images.githubusercontent.com/55386576/244387852-bd7f2088-431e-4e2a-bb98-19d398ec3e12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MjI5OTMsIm5iZiI6MTcyNDQyMjY5MywicGF0aCI6Ii81NTM4NjU3Ni8yNDQzODc4NTItYmQ3ZjIwODgtNDMxZS00ZTJhLWJiOTgtMTlkMzk4ZWMzZTEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE0MTgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTllMDRhODg5MGZlODI0NWJjNzYyMmEyYmM4YTYxMjY5MzQ0YzFjYTkxZDdiMDVjOTU1ZjJjZWEyZmY5ZjcxY2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xHb_2DIp5H48YMUwS5ocmQSIO6nYjwY3jBMViS4JnyY)
![Screenshot from 2023-06-07 17-59-04](https://private-user-images.githubusercontent.com/55386576/244387857-3316fcec-c8a2-4551-8fe7-d9d2dbee3217.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MjI5OTMsIm5iZiI6MTcyNDQyMjY5MywicGF0aCI6Ii81NTM4NjU3Ni8yNDQzODc4NTctMzMxNmZjZWMtYzhhMi00NTUxLThmZTctZDlkMmRiZWUzMjE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE0MTgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2ZGE5Yzk4ZjI4OGZlZGEwYmJhNzc5NzI2MDQwMGNkYzQ5NTA3MzFlZDY4MWE4ODU5ZGU0MzA2NjdhMjE1YzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RoFihGZF3RkKFKWjE_q4Y88xBe5YriLRtFCJOkfiI04)
To reproduce the issue, just run the open5gs, followed by the gNB, then by the srsUE. If needed, I can provide the specific command lines used, as well as the logs.
Thank you in advance for any help you can provide.
Best!