mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-01-03 07:00:04 +01:00
Now OpenWebRX works with ddcd (-d1).
This commit is contained in:
parent
91c193c378
commit
f59cb2f854
|
|
@ -82,7 +82,9 @@ start_rtl_thread=True
|
|||
|
||||
# >> RTL-SDR via rtl_sdr
|
||||
|
||||
start_rtl_command="rtl_sdr -s {samp_rate} -f {center_freq} -p {ppm} -g {rf_gain} - | nc -vvl 127.0.0.1 8888".format(rf_gain=rf_gain, center_freq=center_freq, samp_rate=samp_rate, ppm=ppm)
|
||||
iq_server_port = 4951
|
||||
|
||||
start_rtl_command="rtl_sdr -s {samp_rate} -f {center_freq} -p {ppm} -g {rf_gain} - | ddcd -p{iq_server_port} -d1".format(rf_gain=rf_gain, center_freq=center_freq, samp_rate=samp_rate, ppm=ppm, iq_server_port=iq_server_port)
|
||||
format_conversion="csdr convert_u8_f"
|
||||
|
||||
# >> Sound card SDR (needs ALSA)
|
||||
|
|
@ -112,5 +114,4 @@ client_audio_buffer_size = 5
|
|||
start_freq = center_freq
|
||||
start_mod = "nfm" #nfm, am, lsb, usb, cw
|
||||
|
||||
iq_server_port = 4951
|
||||
# (if ncat is not available on your system, rtl_mus will be used, thus you will have to set the same port as "my_listening_port" in config_rtl.py as well)
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ def main():
|
|||
rtl_thread.start()
|
||||
print "[openwebrx-main] Started rtl_thread: "+cfg.start_rtl_command
|
||||
|
||||
""" #Now we use ddcd instead of this.
|
||||
#Run rtl_mus.py in a different OS thread
|
||||
python_command="pypy" if pypy else "python2"
|
||||
rtl_mus_cmd = python_command+" rtl_mus.py config_rtl"
|
||||
|
|
@ -132,6 +133,7 @@ def main():
|
|||
rtl_mus_thread.start() # The new feature in GNU Radio 3.7: top_block() locks up ALL python threads until it gets the TCP connection.
|
||||
print "[openwebrx-main] Started rtl_mus."
|
||||
time.sleep(1) #wait until it really starts
|
||||
"""
|
||||
|
||||
#Initialize clients
|
||||
clients=[]
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class dsp_plugin:
|
|||
def chain(self,which):
|
||||
any_chain_base="nc -v localhost {nc_port} | csdr setbuf {start_bufsize} | csdr through | "+self.format_conversion+(" | " if self.format_conversion!="" else "") ##"csdr flowcontrol {flowcontrol} auto 1.5 10 | "
|
||||
if which == "fft":
|
||||
fft_chain_base = "sleep 1; "+any_chain_base+"csdr fft_cc {fft_size} {fft_block_size} | csdr logpower_cf -70 | csdr fft_exchange_sides_ff {fft_size}"
|
||||
fft_chain_base = "sleep 1.5; "+any_chain_base+"csdr fft_cc {fft_size} {fft_block_size} | csdr logpower_cf -70 | csdr fft_exchange_sides_ff {fft_size}"
|
||||
if self.fft_compression=="adpcm":
|
||||
return fft_chain_base+" | csdr compress_fft_adpcm_f_u8 {fft_size}"
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue