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.49k stars 1.15k forks source link

srs support for adalmpluto with soapysdr #802

Open fpgasdr opened 2 years ago

fpgasdr commented 2 years ago

Issue Description

Hi, I know the support for the analog devices is limited due timestamp not implemented with analog devices drivers but from other issue I know there is some test than can be made with this devices like cellsearch(it's working in my case and cell are detected) and PDSCH PSSCH examples but the last ones are not working due sample rate error.

Setup Details

I have ubuntu 20 with the last srsRAN version installed from source and soapysdr witha soapysdrpluto installed and try to run the pssch_ue and pdsch_enodeb example from build/lib/examples folder:

Actual Behaviour

the output from running both example are the same:

Soapy has found device #0: device=plutosdr, driver=plutosdr, uri=usb:3.4.5, Soapy has found device #1: device=plutosdr, driver=plutosdr, uri=ip:pluto.local, Selecting Soapy device: 0 Setting up Rx stream with 1 channel(s) [INFO] Using format CF32. [INFO] Auto setting Buffer Size: 32768 [INFO] Set MTU Size: 32768 Setting up Tx stream with 1 channel(s) [INFO] Using format CF32. [INFO] Has direct TX copy: 1 [INFO] Auto setting Buffer Size: 32768 [INFO] Set MTU Size: 32768 Available device sensors:

the sample rate could not be set. how should I deal with this?. what could be done with my setup "out of the box"?.

andrepuschmann commented 2 years ago

You need to set the number of PRBs to 6 to use a sample rate of 1.92Msps. Hope that helps. Feel free to reopen if you still see the issue.

cloudwiser commented 1 year ago

@andrepuschmann Andre - I have the same configuration using Pluto & Soapy - I found, with pdsch_ue, that the sample rate requested and that actually set in AD9363 will differ by 2 Hz hence the strict srate comparison fails. Allowing this 2 Hz delta meant the subsequent decodes worked as expected. I'll test with pssch_ue as well and raise a PR with my fix if it helps?

andrepuschmann commented 1 year ago

Ah ok, that makes sense.

I'll test with pssch_ue as well and raise a PR with my fix if it helps?

That would be nice. Thanks