Fighting with the sync TX interface - MinGW32 and Windows 7
Posted: Thu Jul 10, 2014 12:18 pm
Hi all,
I am fighting to have transmit working ...
Briefly:
- Compiled host code under MinGW32, ok with tricks (functions missing in MinGW)
- Implementing Qt wrapper around sync interface
- Rx is ok : using external generator, I am able to see my signal at correct location on spectrum, fine & good.
Here I am using settings given as example in libBladeRF.h :
#define DEFAULT_STREAM_XFERS 64
#define DEFAULT_STREAM_BUFFERS 5600
#define DEFAULT_STREAM_SAMPLES 2048
#define DEFAULT_STREAM_TIMEOUT 0
rc = bladerf_sync_config(this->bladerf_device,
BLADERF_MODULE_RX,
BLADERF_FORMAT_SC16_Q12,
DEFAULT_STREAM_BUFFERS,
DEFAULT_STREAM_SAMPLES,
4,
DEFAULT_STREAM_TIMEOUT
);
Rocks, great.
- Tx : depending on config settings, never gets correct transmit or gets timeouts.
Sampling rate set at 1MHz, I fill a 1024x1024 sample array, containing a complex sine, expecting to see just a single carrier for 1 second (ok, 1024*1024 at 1MHZ is a bit more than 1 sec).
Depending on settings, sometimes works but transmission is less than 1 second (about 300 millisecs on waterfall), or transmission dies with timeout in the middle, never at the same amount of samples.
setting verbose mode does not help, no message explaining where the problem is.
Googling on bladerf_sync_tx just shows OpenBTS code (https://github.com/Nuand/OpenBTS/blob/m ... Device.cpp), and using same parameters does not fix the issue.
Does anybody use this interface with success ? What should be correct settings for bladerf_sync_config ?
Last question... does bladerf_sync_tx free the passed samples ? looks like yes ..
thanks for your help
sylvain - F4GKR
I am fighting to have transmit working ...
Briefly:
- Compiled host code under MinGW32, ok with tricks (functions missing in MinGW)
- Implementing Qt wrapper around sync interface
- Rx is ok : using external generator, I am able to see my signal at correct location on spectrum, fine & good.
Here I am using settings given as example in libBladeRF.h :
#define DEFAULT_STREAM_XFERS 64
#define DEFAULT_STREAM_BUFFERS 5600
#define DEFAULT_STREAM_SAMPLES 2048
#define DEFAULT_STREAM_TIMEOUT 0
rc = bladerf_sync_config(this->bladerf_device,
BLADERF_MODULE_RX,
BLADERF_FORMAT_SC16_Q12,
DEFAULT_STREAM_BUFFERS,
DEFAULT_STREAM_SAMPLES,
4,
DEFAULT_STREAM_TIMEOUT
);
Rocks, great.
- Tx : depending on config settings, never gets correct transmit or gets timeouts.
Sampling rate set at 1MHz, I fill a 1024x1024 sample array, containing a complex sine, expecting to see just a single carrier for 1 second (ok, 1024*1024 at 1MHZ is a bit more than 1 sec).
Depending on settings, sometimes works but transmission is less than 1 second (about 300 millisecs on waterfall), or transmission dies with timeout in the middle, never at the same amount of samples.
setting verbose mode does not help, no message explaining where the problem is.
Googling on bladerf_sync_tx just shows OpenBTS code (https://github.com/Nuand/OpenBTS/blob/m ... Device.cpp), and using same parameters does not fix the issue.
Does anybody use this interface with success ? What should be correct settings for bladerf_sync_config ?
Last question... does bladerf_sync_tx free the passed samples ? looks like yes ..
thanks for your help
sylvain - F4GKR