Giter Site home page Giter Site logo

Comments (3)

KarlL2 avatar KarlL2 commented on May 23, 2024

Hi Josh,

for now I modified bladeRF_SoapySDR::readStream to add

flags = md.status & (BLADERF_META_FLAG_RX_HW_UNDERFLOW | BLADERF_META_FLAG_RX_HW_MINIEXP1 | BLADERF_META_FLAG_RX_HW_MINIEXP2);

as I just want those flags.

It should be possible to create flags in Soapy to make sure those flags don't collide with Soapy flags.

I could create a pull request, but I'd like to have you opinion on how to do it first.

from soapybladerf.

guruofquality avatar guruofquality commented on May 23, 2024

If you are worried about flags colliding, I would day that the upper 16 bits are pretty much reserved for "advanced" purposes. But you will have to translate the BLADERF_META_FLAG* into something in the upper bits. I have done exactly this to report metadata/bit fields filled into a packet by an FPGA on another SDR and it worked out great FWIW.

I dont really want to add defines in SoapySDR Constants for very esoteric things like BLADERF_META_FLAG_RX_HW_MINIEXP1 So if it came down to it something like SOAPY_SDR_USER_FLAG0, SOAPY_SDR_USER_FLAG1, etc would have to suffice

Its interesting that there is a underflow associated with the rx as metadata. Are there also valid samples? If it can be treated like an error returning an error code would suffice: https://github.com/pothosware/SoapySDR/blob/master/include/SoapySDR/Errors.h#L68 I might not trust the samples to be good after an underflow on rx (whatever that means).

from soapybladerf.

KarlL2 avatar KarlL2 commented on May 23, 2024

Hi Josh,

I added flags SOAPY_SDR_USER_FLAG0 up to SOAPY_SDR_USER_FLAG4 in https://github.com/pothosware/SoapySDR/blob/master/include/SoapySDR/Constants.h as you advised (see pothosware/SoapySDR#353).

I then used those 1st 2 flags to surface BLADERF_META_FLAG_RX_HW_MINIEXP1 & 2 (see #49).

I didn't surface BLADERF_META_FLAG_RX_HW_UNDERFLOW as we don't really know when it happens and what to do with it.

from soapybladerf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.