-
Notifications
You must be signed in to change notification settings - Fork 46
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
Software gets stuck until restart #98
Comments
Hello, Some meters don't advertise all the time, it might be the problem here. My USB device stops to work sometimes and I have to do a full reboot on my Pi to make it work again. Since I added a cooler this problem went away. Have you tried to change the By the logs,there is no problem anywhere. |
My meter always sends info every 5 minutes. But the value only changes every hour. It’s never where it doesn’t run from what I saw, just the container fails. sometimes I have to reboot as well for it to work. So something is getting stuck at the usb level, or os maybe? Is there a usb stick that works better? I didn’t know about that parameter. I’ll give it a shot, thanks! |
I am using this device. I had other similar reports with people using this same device. My guess is a problem with the USB device itself... My device is working flawless for the past month now. I've changed it to a different USB port on my Pi and installed a small fan/cooler |
I have one from the same company, but its the nano 2. I have set the parameter tickle_rtl_tcp to true, and it was still causing me issues. I have since then created a script to restart the container every hour, and it has been almost a day that it has been running fine. Here is how I did the container restart in my stack:
Ill add another note here in a day or 2 to confirm that things are still working. |
With those 2 changes (tickle and restarting container every hour), I still get the issue where it just gets stuck till I reboot. Any way of SSHing into the container and running a shell command to see if the USB is working or connected? Any way to troubleshoot there? |
You can access the container with:
|
To shell into the container I know how to do. But was wondering if there is any commands I can run within the container to see if the usb device is functioning? |
When I was experiencing this behavior, what I did was:
Basically is the same as the python program executes. What fixed the issue was adding a cooling/fan to my Pi. |
I compiled this program at the link below and set it run against the RTL device every day at 1AM. This consistently works for me.
crontab-entry
|
I am going to make some tests and will try to incorporate this USB reset code in the docker container. |
Just for reference, the code to reset the USB is this:
|
Function added on #101 If you want to test, use the |
Thanks, I updated mine, will see how it does over the next couple days. |
I forgot to mention: To test this new feature you need to add a new parameter
You can get the bus and device number from |
Good timing, I got the alert I mentioned in #85 (comment) this morning. I hadn't updated my home assistant add-on, but I ran the python commands manually:
And that does seem to have fixed the dongle. The home assistant add-on was able to get a reading |
Added on version 1.7.0 by PR #104 |
I too have the "NooElec NESDR Mini" from Amazon. I contacted the manufacturer complaining about the issue of the device failing to respond until I restarted it (after a few hours of it running) and they suggested that it is a power problem from the device I have it plugged into (in my case, a proxmox server). They suggested a powered USB hub. I bought this one on amazon and have been using it for over a week now without the issue occurring. |
Thank you for the heads up. |
@kspearrin are you passing the "USB Vendor/Device ID" or the "USB port" to your HA VM? I have a very similar setup and I'm trying to dig into my issue (#181 ) which may be related to this. Here is how I'm currently passing it in. |
@ADeadPixel I use proxmox and pass it through like so: |
Is there anything that can be done to prevent the container from being stuck and not processing anything until I restart? Here is an example of my log:
You can see march 2nd it stopped updating, and something is not running. Then I just restarted it and it continues on again until it gets stuck. Usually lasts a few hours to a day before it is stuck like this.
Let me know what info you need from me.
The text was updated successfully, but these errors were encountered: