mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-13 23:52:17 +00:00
Update qtech-qvc-ipc-136w
This commit is contained in:
@@ -101,13 +101,11 @@ BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
|||||||
BR2_PACKAGE_WIREGUARD_TOOLS=y
|
BR2_PACKAGE_WIREGUARD_TOOLS=y
|
||||||
|
|
||||||
# MQTT
|
# MQTT
|
||||||
# BR2_PACKAGE_MOSQUITTO is not set
|
BR2_PACKAGE_MOSQUITTO=y
|
||||||
# BR2_PACKAGE_MOSQUITTO_BROKER is not set
|
# BR2_PACKAGE_MOSQUITTO_BROKER is not set
|
||||||
|
|
||||||
# FEATURES
|
|
||||||
# BR2_PACKAGE_COMGT is not set
|
|
||||||
|
|
||||||
# EXPERIMENTAL
|
# EXPERIMENTAL
|
||||||
|
# BR2_PACKAGE_COMGT is not set
|
||||||
# BR2_PACKAGE_ONVIF_SIMPLE_SERVER is not set
|
# BR2_PACKAGE_ONVIF_SIMPLE_SERVER is not set
|
||||||
|
|
||||||
# DEBUG
|
# DEBUG
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
MSK-3
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/dev/mtd1 0 0x10000 0x10000 0x1
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
qrscan.sh >/dev/null 2>&1 &
|
||||||
|
;;
|
||||||
|
esac
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Europe/Moscow
|
||||||
Binary file not shown.
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
n=0
|
||||||
|
|
||||||
|
gpio clear 1 | logger -t gpio # RED led, hi3518ev200_lite_switcam-hs303-v3
|
||||||
|
|
||||||
|
while true ; do
|
||||||
|
if [ "$n" -ge 30 ]; then
|
||||||
|
logger -t qrscan "Recognition timeout exceeded, reboot camera and try again..."
|
||||||
|
gpio set 1 | logger -t gpio
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
timeout 1 wget -q -O /tmp/image.jpg http://127.0.0.1/image.jpg
|
||||||
|
data=$(qrscan -p /tmp/image.jpg)
|
||||||
|
if [[ -n "$data" ]]; then
|
||||||
|
fw_setenv $(echo $data | cut -d " " -f 1 | sed 's/=/ /')
|
||||||
|
fw_setenv $(echo $data | cut -d " " -f 2 | sed 's/=/ /')
|
||||||
|
logger -t qrscan "Recognition successfully, wlanssid and wlanpass is writed to env. Reboot required."
|
||||||
|
curl --data-binary @/usr/lib/sounds/ready_48k.pcm http://localhost/play_audio
|
||||||
|
sleep 3
|
||||||
|
reboot -f
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
n=$((n + 1))
|
||||||
|
done
|
||||||
|
|
||||||
@@ -10,15 +10,20 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/h
|
|||||||
#
|
#
|
||||||
# Set custom majestic settings
|
# Set custom majestic settings
|
||||||
#
|
#
|
||||||
cli -s .system.staticDir /var/www/majestic
|
|
||||||
cli -s .nightMode.irCutPin1 48
|
cli -s .nightMode.irCutPin1 48
|
||||||
cli -s .nightMode.irCutPin2 47
|
cli -s .nightMode.irCutPin2 47
|
||||||
cli -s .nightMode.backlightPin 59
|
cli -s .nightMode.backlightPin 59
|
||||||
cli -s .audio.enabled true
|
cli -s .nightMode.lightMonitor false # can set true
|
||||||
cli -s .audio.volume 40
|
cli -s .nightMode.minThreshold 2000
|
||||||
cli -s .audio.speakerPin 53
|
cli -s .nightMode.maxThreshold 10000
|
||||||
cli -s .audio.outputEnabled false
|
|
||||||
cli -s .video0.codec h264
|
cli -s .video0.codec h264
|
||||||
|
cli -s .audio.enabled true
|
||||||
|
cli -s .audio.codec opus
|
||||||
|
cli -s .audio.srate 48000
|
||||||
|
cli -s .audio.volume 40
|
||||||
|
cli -s .audio.outputEnabled true
|
||||||
|
cli -s .audio.outputVolume 80
|
||||||
|
cli -s .audio.speakerPin 53
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Set wlan device and credentials if need
|
# Set wlan device and credentials if need
|
||||||
@@ -26,5 +31,8 @@ cli -s .video0.codec h264
|
|||||||
fw_setenv wlandev rtl8188eu-hi3518ev200-qvc-ipc-136w
|
fw_setenv wlandev rtl8188eu-hi3518ev200-qvc-ipc-136w
|
||||||
#fw_setenv wlanssid Router
|
#fw_setenv wlanssid Router
|
||||||
#fw_setenv wlanpass 12345678
|
#fw_setenv wlanpass 12345678
|
||||||
|
fw_setenv extras initcall_blacklist=hisi_femac_driver_init
|
||||||
|
fw_setenv board hs303-v3
|
||||||
|
#fw_setenv osmem 45M
|
||||||
|
#
|
||||||
exit 0
|
exit 0
|
||||||
Reference in New Issue
Block a user