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?
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!