Am 30.07.2016 um 15:41 schrieb Greg Troxel:
>
...
> wofritzyt <
wolfgan...@gmx.net> writes:
>
> Thanks for posting your actual measurements with the scope. I'm having
> trouble reading the time scale; is that 50 ms/division?
>
Yes
> Is this a CW signal and the receiver is in USB or equivalent mode,
> already listening, so this is really just steady state processing, vs
> squelch?
>
Yes it's an unmodulated carrier received in USB mode
> My impression is that 100 ms of delay or even twice that is really not
> bad. I ran gqrx with an nooelec rtl-sdr, and for reasons that are
> unclear to me (but are perhaps about lack of X11 optimization) my
> computer seemed to be having trouble keeping up. I was hearing about 2s
> of delay from speaking into a 446 MHz Ht and hearing audio.
>
That's a lot of delay! Yes for receiving alone 200ms it's OK, even more
as long as the delay does not make tuning difficult. But I am using the
SDRPlay as an auxiliary receiver in my amateur radio station, and here
the delay is quite a problem if you hear your own transmit signal.
Solution would be to mute the receiver during transmission, but I have
not found an easy way to to this so far.
> I would be very surprised if the USB bus itself had any significant
> delay. I would expect the issues are buffering in many places and
> perhaps some batching for FFT computation.
>
At least I have not found a dependency on the sample rate. I can not say
if there is a dependency at all or not.
I don't know if there is any FFT involved in the receive path, but there
is an indication that there is some delay in the audio processing that
you can see in the scope screen shot: Just before the audio signal the
background noise disappears, so the AGC kicks in before the demodulated
audio appears.
> The first thing I'd want to do is add logging for buffer sizes as many
> places as possible. I think there is already overflow/underrun
> detection; the next thing I would look at is the algorithms for deciding
> on the buffer sizes and trying to shrink them.
>
I've done this in the audio driver. The original pulse audio driver
configures a buffer configuration that is far too small for my bad USB
sound stick and even gives underruns with the much better built-in sound
chip.
Right now I am running an experimental audio driver that adjusts the
pulse audio buffer configuration if the underruns are over a certain
limit. This at least makes my USB sound chip usable at the cost of a
higher delay.
Regards,
Wolf, DK7OB
> 73 de n1dam
>