Comments (3)
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.
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.
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)
- Access quick tune API HOT 6
- How to use XB200 transverter board? HOT 2
- Activating the PLL clock refrerence HOT 11
- BladeRf 2.0 multiple input - 2 different frequences on 2 different inputs HOT 2
- Issue with Bladerf2 + soapy (+ osmosdr) HOT 2
- Libbladerf 2.4 and loss of manual gain control
- Add setting for "verbose"
- Unable to enable Bias-T with Soapy Sink and/or Source blocks for the BladeRF (2.0 xA4). HOT 2
- 2-Channel Receive Error with libbladerf 2021.10 HOT 2
- SoapyBladeRF usb timeout errors HOT 2
- More problems with 2 channel reception HOT 4
- Update dual streaming patch not building HOT 3
- ‘SOAPY_SDR_USER_FLAG1’ was not declared in this scope HOT 2
- Consider supplying the quick_tune parameter to bladerf_schedule_retune() when the XB-200 is enabled. HOT 4
- Add new release tag HOT 1
- (Request) Add ability to specify new sample format and oversample settings
- BladeRF wait_for_buffer error HOT 1
- Multiple Blades must be loaded in a specific order
- Units for timestamp keyword on setFrequency() are inconsistent with the rest of SoapySDR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soapybladerf.