srsran / srsRAN_4G

Open source SDR 4G software suite from Software Radio Systems (SRS) https://docs.srsran.com/projects/4g
https://www.srsran.com
GNU Affero General Public License v3.0
3.36k stars 1.1k forks source link

Error running make test #1303

Open raul-parada opened 3 months ago

raul-parada commented 3 months ago

When running make test from the latest version, it didn't pass the whole suite of tests:

image

I'm using this tutorial: https://docs.srsran.com/projects/project/en/latest/tutorials/source/srsUE/source/index.html#multi-ue-emulation

Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

While running docker-5gc correctly, I'll try to run the gNB I got this error:

user@pc:~/srsRAN_Project/build/apps/gnb$ sudo ./gnb -c gnb_zmq.yaml

The PRACH detector will not meet the performance requirements with the configuration {Format 0, ZCZ 0, SCS 1.25kHz, Rx ports 1}.
Lower PHY in executor blocking mode.

--== srsRAN gNB (commit 4d9f22329) ==--

Connecting to AMF on 10.53.1.2:38412
Available radio types: zmq.
srsGNB ERROR: Unable to create radio session.

I don't know if it is correlated.

pgawlowicz commented 3 months ago

Could you provide gnb and srsUE logs?

raul-parada commented 3 months ago

Please, tell me how to get them.

pgawlowicz commented 3 months ago

They are located at /tmp/gnb.log, and /tmp.ueX.log

Could you try running this command in the srsRAN-4G build directory:

./lib/src/radio/test/benchmark_radio -d zmq -a "tx_port=tcp://*:2000,rx_port=tcp://localhost:2000,tx_port=tcp://*:2001,rx_port=tcp://localhost:2001,tx_port=tcp://*:2002,rx_port=tcp://localhost:2002,tx_port=tcp://*:2003,rx_port=tcp://localhost:2003" -p 4 -g 100

and post its output here.

raul-parada commented 3 months ago

They are located at /tmp/gnb.log, and /tmp.ueX.log

Could you try running this command in the srsRAN-4G build directory:

./lib/src/radio/test/benchmark_radio -d zmq -a "tx_port=tcp://*:2000,rx_port=tcp://localhost:2000,tx_port=tcp://*:2001,rx_port=tcp://localhost:2001,tx_port=tcp://*:2002,rx_port=tcp://localhost:2002,tx_port=tcp://*:2003,rx_port=tcp://localhost:2003" -p 4 -g 100

and post its output here.

Active RF plugins: libsrsran_rf_zmq.so Inactive RF plugins: Instantiating objects and allocating memory... Initialising instances... Opening 4 channels in RF device=zmq with args=tx_port=tcp://:2000,rx_port=tcp:/ /localhost:2000,tx_port=tcp://:2001,rx_port=tcp://localhost:2001,tx_port=tcp:// :2002,rx_port=tcp://localhost:2002,tx_port=tcp://:2003,rx_port=tcp://localhost :2003 Supported RF device list: zmq file Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation) CH0 rx_port=tcp://localhost:2000 CH0 tx_port=tcp://:2000 Error: binding transmitter socket (tcp://:2000): Address already in use [zmq] Error: opening transmitter Error: Calling radio_multi constructor Tearing down... Failed! gnb.log ue.log

pgawlowicz commented 3 months ago

It seems that some active process is already using the socket. Please kill the process and try again. You can find out the process ID with:

sudo netstat -nlp | grep 2000
raul-parada commented 3 months ago

It seems that some active process is already using the socket. Please kill the process and try again. You can find out the process ID with:

sudo netstat -nlp | grep 2000

is it possible to change the port of gNB (2000) for another one? another required software is using it.

pgawlowicz commented 3 months ago

Sure, you can set any port you want. You have to change the port number in the srsgnb config and also in gnuradio-compantion.