ad9361 filter wizard

Hello all,

We are using picozed and our application is for narrow band signals. Our application needs a sampling rate of 532800 sps. we used the MATLAB filter wizard (16.1.3) to get the various clock rates. We changed the values in "default_init_param" from:

/* Rate & BW Control */

// {983040000, 245760000, 122880000, 61440000, 30720000, 30720000},//uint32_t rx_path_clock_frequencies[6] *** adi,rx-path-clock-frequencies

// {983040000, 122880000, 122880000, 61440000, 30720000, 30720000},//uint32_t tx_path_clock_frequencies[6] *** adi,tx-path-clock-frequencies

// 18000000,//rf_rx_bandwidth_hz *** adi,rf-rx-bandwidth-hz

// 18000000,//rf_tx_bandwidth_hz *** adi,rf-tx-bandwidth-hz

To

{818380800, 25574400, 8524800, 4262400, 2131200, 532800},//uint32_t rx_path_clock_frequencies[6] *** adi,rx-path-clock-frequencies

{818380800, 25574400, 8524800, 4262400, 2131200, 532800},//uint32_t tx_path_clock_frequencies[6] *** adi,tx-path-clock-frequencies

200000,//rf_rx_bandwidth_hz *** adi,rf-rx-bandwidth-hz

200000,//rf_tx_bandwidth_hz *** adi,rf-tx-bandwidth-hz

But when we use the console to read the sampling frequency "rx_samp_freq?", we get 2131200 instead of 532800?!

Are we making a mistake mapping the filter wizard values to this array?

we tried committing out:

ad9361_set_tx_fir_config(ad9361_phy, tx_fir_config);

ad9361_set_rx_fir_config(ad9361_phy, rx_fir_config);

we also tried

double param[5] = {532800, 0, 0, 0, 0};

set_tx_samp_freq(param, 1);

set_rx_samp_freq(param, 1);

We also tried keeping the bandwidth to 18000000

an non helped.

btw: we receive the signal correctly but with wrong sampling rate (4 times what we expected)

We are using the example project from GitHub for adc_capture()

Regards,

Murad