samtap / fang-hacks

Collection of modifications for the XiaoFang WiFi Camera
1.67k stars 340 forks source link

Night Vision Stuck? #346

Open LotusVale00 opened 6 years ago

LotusVale00 commented 6 years ago

Anyone here encounter a situation where night vision mode continues throughout the day? I had this problem before and just rebooted. However, I am trying to make the camera run flawlessly for multiple days without any human interference.

Edit: I believe the issue is in the fang-ir-control file, where the camera cannot turn off the LEDs and thus keeping the camera in Black & White mode (Thinking it is still night time).

vaidyasr commented 6 years ago

I do have the same problem, not sure why

duelago commented 6 years ago

+1 for me as well. Very annoying problem. EDIT: Found the solution by searching this forum

Otherwise if you can ssh to the camera you could try running the the same logic as the ir script that controls the led/filter which seems to be:

gpio_ms1 -n 2 -m 1 -v 1 # filter movement enabled gpio_aud write 1 0 0 # disable ir led and latch the filter in the correct position gpio_ms1 -n 2 -m 1 -v 0 # filter movement disabled echo 0x40 > /proc/isp/filter/saturation from /media/mmcblk0p2/data/usr/bin/fang-ir-control.sh