diff --git a/README.md b/README.md index a690e0e..2185d53 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ Many devices sold in online stores are clones of original devices or, more often ``` Model names Our firmware +Dahua IPC-C22C-LC => Imou IPC-С22CP Imou IPC-С22EP-A => Imou IPC-С22CP Switcam HS303 v3 => Qtech QVC-IPC-136W Tiandy TC-C320N => Tiandy TC-C321N diff --git a/devices/ssc325_lite_imou-c22cp/general/overlay/etc/wireless/usb b/devices/ssc325_lite_imou-c22cp/general/overlay/etc/wireless/usb new file mode 100755 index 0000000..667862c --- /dev/null +++ b/devices/ssc325_lite_imou-c22cp/general/overlay/etc/wireless/usb @@ -0,0 +1,14 @@ +#!/bin/sh + +set_gpio() { + [ "$2" -eq 1 ] && gpio set $1 || gpio clear $1 + sleep 1 +} + +if [ "$1" = "rtl8188fu-ssc325-imou-c22cp" ]; then + set_gpio 46 1 + modprobe 8188fu + exit 0 +fi + +exit 1 diff --git a/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh index d926551..3b5a2bb 100644 --- a/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh +++ b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh @@ -11,16 +11,18 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/s # Set custom majestic settings # cli -s .video0.codec h264 +cli -s .nightMode.irCutPin1 76 +cli -s .nightMode.irCutPin2 77 cli -s .nightMode.colorToGray true +#cli -s .audio.speakerPin 15 cli -s .audio.outputEnabled true cli -s .audio.outputVolume 80 -#cli -s .audio.speakerPin 15 cli -s .audio.srate 48000 # # # Set wlan device and credentials if need # -#fw_setenv wlandev rtl8188fu-ssc325-imou-c22cp +fw_setenv wlandev rtl8188fu-ssc325-imou-c22cp #fw_setenv wlanssid Router #fw_setenv wlanpass 12345678 diff --git a/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/gpio.conf b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/gpio.conf index e69de29..f1db6ff 100644 --- a/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/gpio.conf +++ b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/gpio.conf @@ -0,0 +1,13 @@ +alarm_in=-1 +alarm_out=-1 +button=66 +ircut1=76 +ircut2=77 +led1=61 +led2=79 +light_ir=-1 +light_wl=-1 +light_sensor=-1 +mmc_pwr=-1 +speaker=-1 +usb=46