mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-14 08:02:16 +00:00
hs303v2 fixes
This commit is contained in:
14
devices/hi3518ev200_lite_switcam-hs303-v2/general/overlay/etc/wireless/usb
Executable file
14
devices/hi3518ev200_lite_switcam-hs303-v2/general/overlay/etc/wireless/usb
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set_gpio() {
|
||||||
|
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
|
||||||
|
sleep 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$1" = "rtl8188eus-switcam-hs303v2" ]; then
|
||||||
|
gpio set 54
|
||||||
|
modprobe 8188eu
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 1
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Perform basic settings on a known IP camera
|
||||||
|
#
|
||||||
|
# Set custom upgrade url
|
||||||
|
#
|
||||||
|
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/hi3518ev200_lite_switcam-hs303-v2-nor.tgz'
|
||||||
|
#
|
||||||
|
# Set wlan device and credentials if need
|
||||||
|
#
|
||||||
|
fw_setenv wlandev rtl8188eus-switcam-hs303v2
|
||||||
|
#fw_setenv wlanssid Router
|
||||||
|
#fw_setenv wlanpass 12345678
|
||||||
|
#
|
||||||
|
# Set majestic settings
|
||||||
|
#
|
||||||
|
cli -s .system.staticDir /var/www/majestic
|
||||||
|
|
||||||
|
cli -s .isp.iqProfile /etc/sensors/iq/ov9732.ini
|
||||||
|
|
||||||
|
cli -s .nightMode.enabled true
|
||||||
|
cli -s .nightMode.irCutPin1 2
|
||||||
|
cli -s .nightmode.irSensorPin 62
|
||||||
|
cli -s .nightmode.irSensorPinInvert true
|
||||||
|
cli -s .nightMode.backlightPin 56
|
||||||
|
|
||||||
|
cli -s .audio.enabled true
|
||||||
|
cli -s .audio.volume 70
|
||||||
|
cli -s .audio.srate 8000
|
||||||
|
cli -s .audio.codec alaw
|
||||||
|
cli -s .audio.outputEnabled true
|
||||||
|
cli -s .audio.speakerPin 53
|
||||||
|
cli -s .audio.speakerPinInvert true
|
||||||
|
|
||||||
|
cli -s .rtsp.enabled true
|
||||||
|
cli -s .onvif.enabled false
|
||||||
|
|
||||||
|
cli -s .video0.fps 20
|
||||||
|
cli -s .video0.codec h264
|
||||||
|
|
||||||
|
cli -s .jpeg.enabled true
|
||||||
|
|
||||||
|
cli -s .mjpeg.size 640x360
|
||||||
|
cli -s .mjpeg.fps 5
|
||||||
|
cli -s .mjpeg.bitrate 2048
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
/etc/sensors/imx291_i2c_lvds_1080p.ini
|
/etc/sensors/imx291_i2c_lvds_1080p.ini
|
||||||
/etc/sensors/imx323_i2c_dc_1080p.ini
|
/etc/sensors/imx323_i2c_dc_1080p.ini
|
||||||
/etc/sensors/imx323_spi_dc_1080p.ini
|
/etc/sensors/imx323_spi_dc_1080p.ini
|
||||||
|
/etc/sensors/jxf22_i2c_1080p.ini
|
||||||
/etc/sensors/jxf23_i2c_1080p.ini
|
/etc/sensors/jxf23_i2c_1080p.ini
|
||||||
/etc/sensors/jxh62_i2c_720p.ini
|
/etc/sensors/jxh62_i2c_720p.ini
|
||||||
/etc/sensors/jxh65_i2c_960p.ini
|
/etc/sensors/jxh65_i2c_960p.ini
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
/usr/lib/sensors/libsns_imx291.so
|
/usr/lib/sensors/libsns_imx291.so
|
||||||
/usr/lib/sensors/libsns_imx323_i2c_dc.so
|
/usr/lib/sensors/libsns_imx323_i2c_dc.so
|
||||||
/usr/lib/sensors/libsns_imx323_i2c_dc_v1.so
|
/usr/lib/sensors/libsns_imx323_i2c_dc_v1.so
|
||||||
|
/usr/lib/sensors/libsns_jxf22.so
|
||||||
/usr/lib/sensors/libsns_jxf23.so
|
/usr/lib/sensors/libsns_jxf23.so
|
||||||
/usr/lib/sensors/libsns_jxh62.so
|
/usr/lib/sensors/libsns_jxh62.so
|
||||||
/usr/lib/sensors/libsns_jxh65.so
|
/usr/lib/sensors/libsns_jxh65.so
|
||||||
|
|||||||
Reference in New Issue
Block a user