Page 1 of 1

BladeRF 2.0 Synchronous MIMO with Timestamps

Posted: Thu Aug 08, 2019 7:22 am
by Fpieterse99
Good day.

I would like to find out whether there is a way to transmit and receive synchronously on two MIMO channels simultaneously on a chosen timestamp using the BladeRF 2.0?

When I set my sync config to

Code: Select all

bladerf_sync_config(dev, BLADERF_RX_X2, BLADERF_FORMAT_SC16_Q11_META, num_buffers, buffer_size, num_transfers, timeout);
and enable both RX channels' RF frontends using

Code: Select all

status = bladerf_enable_module(dev,BLADERF_CHANNEL_RX(0) , true);
status = bladerf_enable_module(dev,BLADERF_CHANNEL_RX(1) , true);
I do not manage to get reception on either channels.

My receive code (omitting the error checking on the status) is

Code: Select all

struct bladerf_metadata meta;
status = bladerf_get_timestamp(dev, BLADERF_RX, &meta.timestamp);
status = bladerf_sync_rx(dev, rx, rx_length, &meta,NULL);
Any assistance will be much appreciated!

Re: BladeRF 2.0 Synchronous MIMO with Timestamps

Posted: Tue Aug 20, 2019 2:50 am
by robert.ghilduta
By the time get_timestamp returns, a good amount of time my have passed and may be outside of the time window. Consider adding a delta of few milliseconds to meta.timestamp.

Also consider memset()ing the bladerf_metadata struct to all zeros so it is in a known state.

What does bladerf_sync_rx() return upon return?