Skip to content

Single antenna mode (-A 1) for downlink seems to select wrong SDR when UHD/soapy sees multiple devices #72

@hiviah

Description

@hiviah

When using single antenna mode -A 1, LTESniffer seems to ignore -a id=2 selection. E.g. with any SDR this happens:

sudo ./build/src/LTESniffer -A 1 -W 4 -f 1869900e3 -C -m 0 -a "num_recv_frames=512" -a id=2

Result:

/home/gnuradio/persistent/LTESniffer.gnuradio_3.10_docker/build/srsRAN-src/lib/src/phy/rf/rf_uhd_imp.cc:313: UHD unhandled event code 64

Looks like it selected audio card, not the correct SDR.

When using -A 2 with LimeSDR, you can see it chooses the SDR you put in argument:

sudo ./build/src/LTESniffer -A 2 -W 4 -f 1869900e3 -C -m 0 -a "num_recv_frames=512" -a id=2

Soapy has found device #0: default_input=True, default_output=True, device_id=0, driver=audio, label=default, 
Soapy has found device #1: default_input=False, default_output=False, device_id=1, driver=audio, label=hw:HDA Intel PCH,0, 
Soapy has found device #2: addr=1d50:6108, driver=lime, label=LimeSDR-USB [USB 3.0] 9060B00492D13, media=USB 3.0, module=FX3, name=LimeSDR-USB, serial=0009060B00492D13, 
Selecting Soapy device: 2

Then the sniffing works.

Removing the other devices (sound card) from uhd_list_devices by sudo apt remove soapysdr0.8-module-audio makes the single-antenna mode work as LimeSDR remains as the only device.

git commit: 058e05a310dc602a3a2276d36222607fad274264

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions