At the moment I try to implement a function that switches between two rf-Frequencies using syncUpdates using a SDRPlay2pro.
I try to switch between 868 and 867 MHz in a synchronized way. The real goal is be @ one frequency for like 99% of the time, switch
to the other frequency for like 10.000 samples and switch back.
I'm currently trying to to it easier with two big time intervals: sampling frequency is 2 MHz and the intervall given to mir_sdr_SetSyncUpdatePeriod is 1.000.000 -> 2 frequency changes per second. The sample number given to mir_sdr_SetSyncUpdateSampleNum is just an arbitrary number.
From the inital value given to mir_sdr_SetSyncUpdateSampleNum I can calculate the exact samplenumbers, where the frequency is switched.
In the callback function I use the rfChanged flag to detect wether a frequency change took place.
Now to my problem: The sample where the frequency changed (calculated by the sync period) is not always located in the buffer where the flag is set.
In my eyes the syncUpdates are useless if they do not work like that?!
Thanks for your help!
Add useful snippets of code or links to entire SDR projects.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests