Update qtech-qvc-ipc-136w

This commit is contained in:
Signor Pellegrino
2024-08-03 14:50:28 +03:00
parent dcc15c64cf
commit ae4e79b218
8 changed files with 53 additions and 11 deletions

View File

@@ -101,13 +101,11 @@ BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
BR2_PACKAGE_WIREGUARD_TOOLS=y
# MQTT
# BR2_PACKAGE_MOSQUITTO is not set
BR2_PACKAGE_MOSQUITTO=y
# BR2_PACKAGE_MOSQUITTO_BROKER is not set
# FEATURES
# BR2_PACKAGE_COMGT is not set
# EXPERIMENTAL
# BR2_PACKAGE_COMGT is not set
# BR2_PACKAGE_ONVIF_SIMPLE_SERVER is not set
# DEBUG

View File

@@ -0,0 +1 @@
MSK-3

View File

@@ -0,0 +1 @@
/dev/mtd1 0 0x10000 0x10000 0x1

View File

@@ -0,0 +1,7 @@
#!/bin/sh
case "$1" in
start)
qrscan.sh >/dev/null 2>&1 &
;;
esac

View File

@@ -0,0 +1 @@
Europe/Moscow

View File

@@ -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

View File

@@ -10,15 +10,20 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/h
#
# Set custom majestic settings
#
cli -s .system.staticDir /var/www/majestic
cli -s .nightMode.irCutPin1 48
cli -s .nightMode.irCutPin2 47
cli -s .nightMode.backlightPin 59
cli -s .audio.enabled true
cli -s .audio.volume 40
cli -s .audio.speakerPin 53
cli -s .audio.outputEnabled false
cli -s .nightMode.lightMonitor false # can set true
cli -s .nightMode.minThreshold 2000
cli -s .nightMode.maxThreshold 10000
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
@@ -26,5 +31,8 @@ cli -s .video0.codec h264
fw_setenv wlandev rtl8188eu-hi3518ev200-qvc-ipc-136w
#fw_setenv wlanssid Router
#fw_setenv wlanpass 12345678
exit 0
fw_setenv extras initcall_blacklist=hisi_femac_driver_init
fw_setenv board hs303-v3
#fw_setenv osmem 45M
#
exit 0