diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/br-ext-chip-hisilicon/configs/hi3518ev200_lite_qtech-qvc-ipc-136w_defconfig b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/br-ext-chip-hisilicon/configs/hi3518ev200_lite_qtech-qvc-ipc-136w_defconfig index dddf166..915d464 100644 --- a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/br-ext-chip-hisilicon/configs/hi3518ev200_lite_qtech-qvc-ipc-136w_defconfig +++ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/br-ext-chip-hisilicon/configs/hi3518ev200_lite_qtech-qvc-ipc-136w_defconfig @@ -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 diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/TZ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/TZ new file mode 100644 index 0000000..8d44087 --- /dev/null +++ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/TZ @@ -0,0 +1 @@ +MSK-3 \ No newline at end of file diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/fw_env.config b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/fw_env.config new file mode 100644 index 0000000..15bc133 --- /dev/null +++ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/fw_env.config @@ -0,0 +1 @@ +/dev/mtd1 0 0x10000 0x10000 0x1 diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/init.d/S97qrscan b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/init.d/S97qrscan new file mode 100755 index 0000000..7afc62a --- /dev/null +++ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/init.d/S97qrscan @@ -0,0 +1,7 @@ +#!/bin/sh + +case "$1" in + start) + qrscan.sh >/dev/null 2>&1 & + ;; +esac diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/timezone b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/timezone new file mode 100644 index 0000000..b1f078f --- /dev/null +++ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/etc/timezone @@ -0,0 +1 @@ +Europe/Moscow \ No newline at end of file diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/lib/sounds/ready_48k.pcm b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/lib/sounds/ready_48k.pcm new file mode 100644 index 0000000..d615825 Binary files /dev/null and b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/lib/sounds/ready_48k.pcm differ diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/sbin/qrscan.sh b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/sbin/qrscan.sh new file mode 100755 index 0000000..99338b1 --- /dev/null +++ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/sbin/qrscan.sh @@ -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 + diff --git a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/share/openipc/customizer.sh b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/share/openipc/customizer.sh index d3286d2..8c9f28c 100644 --- a/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/share/openipc/customizer.sh +++ b/devices/hi3518ev200_lite_qtech-qvc-ipc-136w/general/overlay/usr/share/openipc/customizer.sh @@ -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 \ No newline at end of file +fw_setenv extras initcall_blacklist=hisi_femac_driver_init +fw_setenv board hs303-v3 +#fw_setenv osmem 45M +# +exit 0