bladeRF icon indicating copy to clipboard operation
bladeRF copied to clipboard

BladeRF 2.0 micro xA4 Time Synchronization using Trigger fails

Open omernaeem opened this issue 1 year ago • 1 comments

I have been trying to get time synchronized output from 2x BladeRF 2.0 micros xA4 using trigger functionality but there is a random delay in samples between both streams. My setup is as follows:

I have 2x BladeRF 2.0 micro xA4, which have synchronized clock and are connected as follows:

  1. BladeRF_1 uses onboard clock and outputs clock as well
  2. BladeRF_2 uses external clock
  3. BladeRF_1 outclk is connected to BladeRF_1 inclk
  4. BladeRF_1 uses trigger as slave
  5. BladeRF_2 uses trigger as master
  6. Both are connected to a signal source via a splitter, with equal length paths.

Every time I run the flow graph, I get random delay in samples between both streams. I repeated the test using bladerf-cli similar to the example, https://github.com/Nuand/bladeRF/blob/master/host/examples/bladeRF-cli/sync_trx, and still get random delay in samples in both streams.

The clock looks synchronized, and I can manually delay samples in one stream to make both the signals fully overlap but the trigger functionality seems to have random delay.

Although the clock seems to be in sync just fine. I have tried three setups and all give identical results. a) Both BladeRFs get clock in, from an external source (LeoBodnar GPSDO) b) Both BladeRFs use onboard clock but get REF in from external GPSDO c) BladeRF_1 configured to output clock and use onboard clock, BladeRF_2 configured to use external clock

However the timing isn't synchronized, in any of the scenarios I have tried:

  1. BladeRF_1 uses trigger as slave and BladeRF_2 uses trigger as master
  2. Both BladeRFs are slave, and I use an arduino to provide external trigger

I'm using the latest versions of everything: FPGA Image v0.15.0 FX3 firmware image v2.4.0 Built from source libbladerf and gr-bladerf from 7e26f5a5b66cebb3c7fcea3e96dd5cc6ca0670fd commit

omernaeem avatar Mar 05 '23 20:03 omernaeem