-
Notifications
You must be signed in to change notification settings - Fork 8
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 dies, doesn't get restarted #10
Comments
I guess you could add a "while true; do" before the rtl_tcp command and a "done" and the end of the code. Can you try that in the rtl2mqtt.sh ? It will be in \config\rtlamr2mqtt\ accessible via SMB Restart the addon, and report back if it helps. Also, try a hard power-down of your homeassistant, then restart. Could be a sign of the hardware failing, I'm on my 3rd sdr! |
This happens to me as well - it can go from anywhere from 12 hours to 7 days. In each case, I have to either physically remove the USB dongle or power cycle the box (raspberry pi4 in my case). Unfortunately this is the one issue that prevents me from running this inside a virtual server; rebooting the virtual machine does nothing. I have to physically remove the USB dongle which I can't do programmatically. In my case I watch if there is no output for 5 minutes, then I reboot the box. :( If anyone has other ideas I'm open! |
I eventually traced this back to a bad dongle. These things generate a lot of heat, and if they're not built for it, they're not built for 24/7 operation. Don't buy the NooElec NESDR Nano 2 Plus for one. Buy a quality dongle with a good heat-sink. It also may be worth considering the Elonics E4000 based dongles rather than R820T2 as they seem to run a lot cooler. |
This works for me: /usr/sbin/usb_modeswitch -v 0x0bda -p 0x2838 --reset-usb the -v and -p parameters can be found by typing "lsusb". I'm still working around on how to detect this, but if I see there is no output found after some time when I should be expecting it, I can run this command and the next time rtl_tcp starts up again everything works fine again, for another week or so. I agree about the dongle quality - I'm currently using the one sold by rtl-sdr.com and I've run them 24x7 and they last anywhere from 9 months to 2 years on average. My most recent one has been going for 2 years so far. |
Thanks for the usb_modeswitch. It seemed to work for me. However, it needs to be run on the host system, the binary is not in the homeassistant container and many people do not have host access. I added it to this container, to support a future option to call it. It is better than having to shutdown the system. |
My rtl_tcp has a bad habit of dying on a daily basis. It doesn't get restarted when this happens and rtlamr has nothing to connect to. Would it be possible to have an rtl_tcp watchdog?
The text was updated successfully, but these errors were encountered: