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

Async read stalled? After weeks of running. How to fix? #3057

Open
MatejsLab opened this issue Sep 19, 2024 · 2 comments
Open

Async read stalled? After weeks of running. How to fix? #3057

MatejsLab opened this issue Sep 19, 2024 · 2 comments

Comments

@MatejsLab
Copy link

MatejsLab commented Sep 19, 2024

Hi,

I am running the rtl_433 on two linux pepermint home servers for a year now, i really like it (when working).

Last few months the issues arised that is stops working and needs manual restart of service, odd right.

The rtl_433 randomly stops working after many weeks of normal runitime, it keeps reocouring lately.

Below is the status data, but how do i fix it so it doesn't stall . Or how it should decide to restart? As service doesn't detect error to restart.

For reference i have one blue and one black RTL stick from Aliexpress. Blue has better range, but both work fine in near proximity of temperature sensors and rain sensors.

I forgot if i wrote the service or it was installed?
I compiled it and it is 1 year ago so i barely remember what i did, and so it is harder to fix.

Help Appriciated,

Matej

rtl_433 
version nightly-10-g07368e73 branch master at 202309251404 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/serveroh2/.config/rtl_433/rtl_433.conf"...
Reading conf from "/home/serveroh2/.config/rtl_433/rtl_433.conf".
[Protocols] Registered 211 out of 246 device decoding protocols [ 1-4 8 10-12 15-17 19-23 25-26 29-36 38-45 47-60 63 67-71 73-100 102-105 108-116 119-121 124-128 130-149 151-161 163-168 170-175 177-197 199-215 217-228 230-232 234-237 239-241 243-244 246 ]
usb_claim_interface error -6
[sdr_open_rtl] Failed to open rtlsdr device #0.
[sdr_open_rtl] Unable to open a device


service rtl_433 status
● rtl_433.service - <rtl_433_MQTT_MK>
   Loaded: loaded (/etc/systemd/system/rtl_433.service; enabled; vendor preset: enable
   Active: active (running) since Mon 2024-08-12 21:57:46 CEST; 1 months 7 days ago
 Main PID: 1488 (rtl_433)
    Tasks: 3 (limit: 4618)
   CGroup: /system.slice/rtl_433.service
           └─1488 rtl_433 -F mqtt://192.168.1.100 1883 retain 0 devices senzorji_RTL_4

sep 17 22:45:11 serveroh2 bash[1488]: Temperature: 23.20 C
sep 17 22:45:11 serveroh2 bash[1488]: Humidity  : 62 %
sep 17 22:45:11 serveroh2 bash[1488]: Modulation: ASK
sep 17 22:45:11 serveroh2 bash[1488]: Freq      : 433.9 MHz
sep 17 22:45:11 serveroh2 bash[1488]: RSSI      : -9.4 dB
sep 17 22:45:11 serveroh2 bash[1488]: SNR       : 18.1 dB
sep 17 22:45:11 serveroh2 bash[1488]: Noise     : -27.5 dB
sep 17 22:45:20 serveroh2 bash[1488]: [Auto Level] Current noise level -28.7 dB, estim
sep 17 22:45:30 serveroh2 bash[1488]: [Auto Level] Current noise level -28.9 dB, estim
sep 17 22:45:54 serveroh2 bash[1488]: [Input] Async read stalled, exiting!

@zuckschwerdt
Copy link
Collaborator

"Async read stalled, exiting!" suggests a hardware failure. The problem is that the RTL-SDR stops sending data -- it is likely locked-up / frozen. That's what the "usb_claim_interface error" also suggests -- the RTL-SDR is not available.

I had this happen with these causes: bad power supply (aging it would undervolt), overheated RTL-SDR (random freezes, days or weeks apart).

@ProfBoc75
Copy link
Collaborator

"Async read stalled, exiting!" suggests a hardware failure. The problem is that the RTL-SDR stops sending data -- it is likely locked-up / frozen. That's what the "usb_claim_interface error" also suggests -- the RTL-SDR is not available.

I had this happen with these causes: bad power supply (aging it would undervolt), overheated RTL-SDR (random freezes, days or weeks apart).

Agree, I was also facing such issues due to bad contacts. My advice is to have a good quality usb extension cable, tighten connectors to force contacts, the USB A ground part of the RTL dongle.

image

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

3 participants