webcam mode update script

This commit is contained in:
Alfonso Gamboa 2022-05-19 20:00:02 -07:00
parent 15f69c8005
commit f5dc2f673a
4 changed files with 17 additions and 8 deletions

View File

@ -46,6 +46,10 @@ Using this project can potentially expose your device to the open internet depen
## How you can help! ## How you can help!
* Vertical Tilt on the PANv2 doesn't work properly. Only does this on the modified kernel. Need investigation why this happens. * Vertical Tilt on the PANv2 doesn't work properly. Only does this on the modified kernel. Need investigation why this happens.
## Why?
* Most things in life relate to cats somehow. I started this project to track the local feral cat population in my neighborhood using cameras.
## Prerequisites ## Prerequisites
* Person * Person

BIN
SD_ROOT/wz_mini/bin/audioplay_t20 Executable file

Binary file not shown.

View File

@ -19,8 +19,6 @@ echo '
|______| |______|
' '
sleep 2
set -x set -x
#lets test this out and see how it goes, patched udhcpc for iCamera #lets test this out and see how it goes, patched udhcpc for iCamera

View File

@ -17,12 +17,6 @@ WEB_CAM_BIT_RATE=$(cat /opt/wz_mini/run_mmc.sh | grep "WEB_CAM_BIT_RATE\=" | cut
sed -i "s/bitrate :8000/bitrate :$WEB_CAM_BIT_RATE/" "/opt/wz_mini/usr/bin/uvc.config" sed -i "s/bitrate :8000/bitrate :$WEB_CAM_BIT_RATE/" "/opt/wz_mini/usr/bin/uvc.config"
fi fi
cd /sys/class/gpio
echo 39 > export
cd gpio39
echo out > direction
echo 0 > active_low
echo 0 > value
echo 1 > /proc/sys/vm/overcommit_memory echo 1 > /proc/sys/vm/overcommit_memory
mount --bind /opt/wz_mini/usr/bin /system/bin mount --bind /opt/wz_mini/usr/bin /system/bin
@ -37,8 +31,21 @@ insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/usbcamera.ko
cd /system/bin/ cd /system/bin/
/system/bin/ucamera & /system/bin/ucamera &
sleep 1
#Set dwc2 ID_PIN driver memory #Set dwc2 ID_PIN driver memory
devmem 0x13500000 32 0x001100cc devmem 0x13500000 32 0x001100cc
devmem 0x10000040 32 0x0b000096 devmem 0x10000040 32 0x0b000096
#wipe the bits to set the ID_PIN #wipe the bits to set the ID_PIN
devmem 0x10000040 32 0x0b000FFF devmem 0x10000040 32 0x0b000FFF
sleep 1
cd /sys/class/gpio
echo 39 > export
cd gpio39
echo out > direction
echo 0 > active_low
echo 0 > value
/opt/wz_mini/bin/audioplay_t31 /usr/share/notify/binbin.wav 30