-
Notifications
You must be signed in to change notification settings - Fork 112
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
Frequent connection drops #149
Comments
It could be a memory and/or cpu usage problem. Try to disable unnecessary services. |
I think unnecessary services are already disabled. This was and still is my configuration:
Another detail (maybe important): I can randomly hear a sound from the cameras as if were reboot (like a click), but they continue working after this "click". Never understood meaning and reason of this random sound. Thanks for all your work! |
Did you noticed the same behavior with the original fw? |
I don't know because I flashed with your firmware 5 min after unboxing and didn't backup the original firmware (at my own risk, I know). |
A serial log would be useful. |
do you mean I have to follow the first part of this guide: https://github.com/roleoroleo/yi-hack-MStar/wiki/Dump-your-backup-firmware ? |
Yes. |
here is the putty log with internet access blocked by firewall: I noticed a different log when internet access is allowed: both finish with line '[PWM] mstar_pwm_enable', which is the last line even after some minutes. |
The logs are ok. |
Just an update: after 3 days my cam is still online (unfortunately, I'd say...) and the log still keep changing as shown in the previous picture. On the other cam I applied the new firmware release (0.3.1). I'm monitoring the updated cam to see if anything changes |
Another update: I noticed that the camera with v0.3.1 (not under log recording) worked fine for some days until I blocked its traffic from firewall. after more or less 24h it stopped working: it disconnected from wifi network and blue led started blinking |
it finally stopped working under monitoring. I found the led blinking, the cam disconnected from wifi and here there is the serial log: hope this can help in finding the issue |
Unfortunately the log doesn't show any problem. |
ok, thank you. I'll try by disabling one by one all features and check if one of them can cause the crash |
Just an update: the cam seems to stop working when it can't communicate with the cloud. I tried the following scenarios: SCENARIO 1 SCENARIO 2 SCENARIO 3 |
I have the same behavior regarding scenarios 2 and 3 but not for scenario 1. |
Sorry but I don't remember. I thought it doesn't affect the behaviour and I didn't take note of this. |
ok, i've got news regarding the regarding the SCENARIO 1.2 the cam (firmware 0.3.1) is still working |
Ok. So, when the cam can't access to internet, it stops working. |
thank you very much! |
another update on the following scenario:
after weeks, the cam stopped working. EDIT: p2p_tnp.c(state_statistics-6242) check_login fail 0 and some blocks like: ][7/6/14:25:35:588]: p2p_tnp.c(tnp_proc-6389) PPPP_API Version: d2020f04 210.2.15.4 this is the output of In two or three hours the free memory decreased of 1mb. I'm start suspecting that the cams work fine until they run out of memory, then crash. Could it be possible? |
Sorry for the delay in the response. I tried again your scenario and I think your idea is correct. |
just to let you know my other progresses in investigating this issue: it happens also when the cam is regularly accessing internet both from router (internet connection allowed from firewall) and from firmware (option "disable cloud" off). at the moment the cams are useless, hope you'll find the issue soon. If there are tests I can do to help, let me know. |
Im having exactly the same problem @fabiosci , but with https://github.com/roleoroleo/yi-hack-Allwinner firmware |
I need more info. I will check if there is a memory leak. |
I'm experiencing the issue as well on the Allwinner firmware/device. I have cloud disabled, but I do see the device making DNS lookups for |
I run the script from #215 with |
I don't know how to help you. |
thanks anyway. |
The problem still exists, but the effect is probably less.
Yes, but check if all the commands exist.
If you add it to the sd card, it will not be deleted. |
I finally found some time to spend on this issue. I prepared the script and it works (i'm trying to reset only the wifi connection rather than reboot the cam) but it seems that crond is not running. the output of ps command doesn't show crond.
do I miss something? EDIT: crond enabled |
I'm working on a new version where you can configure cron through the web interface. |
thank you! the possibility to schedule a custom script it's a good news |
Release in 0.3.9 |
just upgraded. but crontab -l doesn't seems to work:
the root file in /var/spool/cron/crontabs/ exists and its content is just I tried the new feature by adding in "Configurations" page the following: this is my wd_wifi.sh
and it is executable. If I manually execute it, it works as expected. |
I tested your line and it works.
|
thanks, from another browser (so clean cache) it worked and both system.conf and root contains the new job (which is shown also in Configurations page after rebooting the cam). |
Try to remove "root" from the line. |
it works, thanks! |
Hi @fabiosci, I got the same issue with yi-hack-Allwinner. Could you share your solution/workaround? |
Hi, Before closing the ticket I'd like to investigate on the random drops by reading the logs created by the scheduled script |
after several months, logs and tests now I can say that the connection is correctly established and maintained day after day. in case it could help someone else, i post here my current solution:
I put the watchdog folder into /tmp/sd to keep it after a firmware update. This is my watchdog.sh
Thanks roleoroleo for this firmware and your support! |
Hi, thanks for this script. I am trying to do it but it doesn't execute. I've tried changing permissions with chmod via SSH, connected as root (without password) and it doesn't seem to be applying the changes: `/tmp/sd/watchdog # chmod -c 777 watchdog.sh mode of 'watchdog.sh' changed to 0777 (rwxrwxrwx) /tmp/sd/watchdog # ls -la total 96 drwx------ 2 root 0 32768 Oct 29 11:35 . drwx------ 7 root 0 32768 Nov 10 13:26 .. -rwx------ 1 root 0 825 Nov 10 13:51 watchdog.sh` Do you have any idea on why and what I should be doing? Thanks in advance. |
You can't change permission on a fat32 filesystem. |
Thank you. The reason it didn't execute was that I wrote the .sh file in Notepad++ for Windows and it doesn't use the "Unix" file format by default. It can be solved in the Edit menu>EOL conversion. |
Hi, I have the same problem with freezing of my 3 cameras as described above. I have to restart them to make them work again. Could someone explain to me step by step how to upload the watchdog.sh file to my camera? Thank you |
Hey @mhensema did you solve this? as far as I can see I have the same problem: the rtsp stream disappears in motioneye for 5 seconds, but the cam stays up and does not reboot. So there is no wifi issue here, as far as I can see. Did you find out what was behind this problem? |
@roleoroleo So I seem to have found a way to stabilise the connection by having 3 things running:
Looking at the logs all three happen at random (sometimes a few times a day, other days OK), but recover by scheduling this script to run every 5 mins. This is still with the Cloud enabled and almost everything but RTSP (this one only low, have others with both ) enabled. I will let this run for a week or so and then disable cloud again.
restart.sh
Note: The killall is redundant, but I keep it in there to manually do the restart and a 60 second wait since the restart fails otherwise. |
What's the problem of your cam? |
Generally the WiFi, but this is a problem of my creation with the location of the cameras. It mainly started when I used the “static IP startup.sh” trick that they seemed to disappear. Turned out that Yi restores the original IP, or gives it a different one after the WiFi reconnects, this script fixes that behaviour. The RTSP one happens every so often, the process dies and this restarts it. Now for the past week, the camera’s keep running (except for the odd 5 minutes with the WiFi) and I am slowly starting to re-enable some features to see if it breaks again - like disabling the cloud. |
The new hack version has the "Static IP feature". Try it. |
I will give it a try after my holidays, I figured out the issue with the IP - it was conflicting with one of my Tuya Wifi accessories that wakes up every so often to update metrics taking the same IP... That explained the "randomness", it wakes up every x time based on temperature changes reaching a threshold - making it very unpredictable (kinda). |
Hi,
I own two 9FUS with stock firmare 4.2.0*. Inside the camera is written "Y203C_MB_RT2.0 2019/008/08". I successfully flashed both with y25 firmware and everything went fine and the cameras seem to work as expected. At the moment one camera has been flashed with the 0.2.9 version and the other one with the 0.3.0.
After a while (hours or days, randomly) the cameras disconnect from wifi network (they appear not connected in my router page) and the only way to recover them is to unplug the power supply. This behaviour is not synchronized between the two cameras but occurs with both firmware versions. The 0.2.9 seems to be more stable than the 0.3.0.
Another info: I turn off wifi network during the night but in the morning the cameras usually connect normally.
The text was updated successfully, but these errors were encountered: