Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTL_TCP quits #267

Open
chalupien opened this issue Nov 10, 2022 · 6 comments
Open

RTL_TCP quits #267

chalupien opened this issue Nov 10, 2022 · 6 comments

Comments

@chalupien
Copy link

Hi Im running two separate windows cmd prompts. One running RTL_TCP and ONE Running RTLAMR | RTLAMR-COLLECT.

It appears RTL_TCP quits unexpectedly and I have to restart both. The timing does not match to anything in particular. I have read that the quality of the SDR dongle can help with this "crash". Just wanted to get some more info on what others have done to remedy this issue.

I have also heard of others writing a "watchdog" program to determine a crash. Any help would be great.

Thanks

@Nils154
Copy link

Nils154 commented Nov 10, 2022 via email

@chalupien
Copy link
Author

Great tip, ill try that

@chalupien
Copy link
Author

Seems to be working without quitting. Any idea how to monitor the rtl_tcp service and restart if it quits?

@chalupien
Copy link
Author

Well just stopped. So that did not help. Any other ideas?

@XjSv
Copy link

XjSv commented Dec 29, 2022

I'm having the same issue. When I run rtlamr with --single=true, the first time it runs fine and returns the json. Although I do see this message:

21:05:34.448953 main.go:343: Receiver context cancelled.

But on the second run rtl_tcp crashes.

Command: rtlamr -msgtype=scm --format=json --filterid=00000000 --single=true

Log

Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Fitipower FC0012 tuner
Tuned to 100000000 Hz.
listening...
Use the device argument 'rtl_tcp=127.0.0.1:1234' in OsmoSDR (gr-osmosdr) source <---- * 1st RUN *
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
client accepted!
set freq 912600155
set sample rate 2359296
set gain mode 0
comm recv bye
Signal caught, exiting!
worker cond timeout
Signal caught, exiting!
all threads dead..
listening...
Use the device argument 'rtl_tcp=127.0.0.1:1234' in OsmoSDR (gr-osmosdr) source <---- * 2nd RUN *
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
client accepted!
set freq 912600155
<---- * CRASH *

While testing I've also come across this message:

client accepted!
set freq 9c1b2 6t0r0a1n5s5f
er status: 1, canceling...
<---- * CRASH *

I just started using rtlamr and rtl_tcp, so it's possible that I'm doing something wrong.

@infecticide
Copy link

infecticide commented Jan 25, 2024

I run my rtl_tcp with a systemd unit:

[Unit]
Description=RTL-SDR TCP Server
Wants=network-online.target
After=network-online.target

[Service]
ExecStartPre=-/bin/echo 0 > /sys/module/usbcore/parameters/usbfs_memory_mb
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/rtl_tcp -g 0 -d 0
WorkingDirectory=/home/infecticide
StandardOutput=inherit
StandardError=inherit
Restart=always

[Install]
WantedBy=multi-user.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants