signalwareltd / rtl_tcp_andro-

rtl_tcp and libusb-1.0 port for Android modified to support opening devices from Linux file descriptors
GNU General Public License v2.0
339 stars 119 forks source link

direct sampling for rtl_tcp #35

Open luoGanda opened 2 years ago

luoGanda commented 2 years ago

i could be wrong but.. i tested this more times, and it doesn't work as it should.. I set direct sampling, but all i get is static noise with a peak in the middle from 100khz till cca 25MHz. It may be that driver is using I, instead of Q sampling mode.

Maybe this is the issue at librtlsdr.c: / only enable In-phase ADC input / r |= rtlsdr_demod_write_reg(dev, 0, 0x08, 0x4d, 1);

/ swap I and Q ADC, this allows to select between two inputs / r |= rtlsdr_demod_write_reg(dev, 0, 0x06, (on > 1) ? 0x90 : 0x80, 1);