I'm trying to use my rpi as sdr server, all works perfect, but i'm stucked with one problem:
I'm using SDRSharp via RTL-SDR/TCP to listen, and when i connecting to rpi first time - all perfect, disconnecting also.
But on second connect (not 2 connects at once) my waterfall on sdr# hanged, like no data.
After disconnect there is two variants on rpi server console:
1. 100% cpu load and hanged process (can kill only with sigkill from other session) (code example 1)
2. Segmentation fault error and closed process, need to restart rtl_tcp.
Looks like that Chinese guy have same problem. But it wont work for me. Looks like article too old for new versions.
And this one too.
Code: Select all
root@RPi:~# rtl_tcp -a 10.0.0.101 -p 4444
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuned to 100000000 Hz.
listening...
Use the device argument 'rtl_tcp=10.0.0.101:4444' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
[color=#FF0000]first connect[/color]
client accepted!
set sample rate 2048000
set freq correction 50
set freq 439757000
set agc mode 0
set gain mode 1
set tuner gain by index 29
set freq 440257000
[color=#FF0000]stop (disconnect) pressed[/color]
comm recv bye
Signal caught, exiting!
worker cond timeout
Signal caught, exiting!
all threads dead..
listening...
Use the device argument 'rtl_tcp=10.0.0.101:4444' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
[color=#FF0000]second connect[/color]
client accepted!
set sample rate 2048000
worker cond timeout
Signal caught, exiting!
^X^CSignal caught, exiting!
^CSignal caught, exiting!
[color=#FF0000]process hanged.. only sigkill can kill that process now[/color]
Code: Select all
root@RPi:~# rtl_tcp -a 10.0.0.101 -p 4444
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuned to 100000000 Hz.
listening...
Use the device argument 'rtl_tcp=10.0.0.101:4444' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
[color=#FF0000]first connect[/color]
client accepted!
set sample rate 2048000
set freq correction 0
set freq 440500000
set agc mode 0
set gain mode 1
set tuner gain by index 0
[color=#FF0000]first disconnect[/color]
comm recv bye
Signal caught, exiting!
worker cond timeout
Signal caught, exiting!
all threads dead..
listening...
Use the device argument 'rtl_tcp=10.0.0.101:4444' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
[color=#FF0000]second connect[/color]
client accepted!
set sample rate 2048000
Segmentation fault
root@RPi:~#