Skip to content

NetSDR rate-test anomaly #7

Description

@gvanem

Using this command to do a rate-test of my Afedri-SDR LAN receiver:

  SoapySDRUtil.exe --args=driver=netsdr --rate=2E6 --direction=RX

gives:

######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Found hostAddr 10.0.0.50, port 50000.
Using Afedri AFEDRI-SDR SN 31351F39 BOOT 1 FW 106 HW 5
getNativeStreamFormat
Stream format: CF32
Num channels: 1
Element size: 8 bytes
Begin RX rate test at 2 Msps
getStreamMTU
Starting stream loop, press Ctrl+C to exit...
activateStream + start 00000002 0 0 0
0 Msps  0 MBps
-deactivateStream
closeStream

The report on the transfer rate is always 0 MBps and no report on dropped packets or anything.

Looking at the code in NetSDR_Streaming.cpp, the call to ::select() looks funny:

int ret = ::select((int)(_udp+1), NULL, &fds, NULL, &tv);

Should it not test for a readable socket?

Tracing the rate-test, I off-course see a huge amount of calls to the above ::select().
But the ::recvfrom() never gets called!?

I'm on Win-10 using a x86 version of Soapy.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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