1قB] Щ@6.mac.infoD]]](5JNx"1] hjanyka_cfg.iniD*5 x"1]x"1]x"1]Ub[global] user = admin secret = admin dev_name = ampedrf soft_version = 2000 uid_name = danale.conf [ethernet] dhcp = 1 ipaddr = 192.168.1.87 netmask = 255.255.255.0 gateway = 192.168.1.1 firstdns = 8.8.8.8 backdns = 108.108.108.108 [wireless] ssid = testD*5 x"1]x"1]x"1]^\1234 mode = Infra security = password = 123456789 running = softap [softap] s_ssid = AKIPC_XXX s_password = [pircontrol] ; 0 off, 1 on pir = 0 [recordcontrol] ; 0 both, 1 Stream over Wi-Fi, 2 Store to SD card record = 0 ; camera-video arguments [vidD*5 x"1]x"1]x"1]- 5eo] min_qp = 20 max_qp = 51 v720p_fps = 20 v720p_min_kbps = 512 v720p_max_kbps = 1024 vga_fps = 20 vga_min_kbps = 128 vga_max_kbps = 320 gop_len = 2 quality = 80 pic_ch = 0 ; 0 CBR, 1 VBR video_mode = 1 ; 0 default, 1 ctrl I size, 2 smart h.264 method =D*5 x"1]x"1]x"1]d\;l*Z 0 ; record config info [record] ; 1->enable record server, 0->disable record server record_server = 1 ; 1->plan record, 2->alarm record record_mode = 1 ; time of each record file, unit: second record_time = 60 ; record file saving path record_path = /mD*5 x"1]x"1]x"1]Gnt/CYC_DV/ ; audio sample rate sample_rate = 8000 ; cycle record flag, 1->cycle, 0->normal save_cyc_flag = 1 ; original fps save_file_fps = 10 save_file_kbps = 256 ; min fps when switch record frame min_file_fps = 3 ; record plan 1 plan1_run = 1 plan1_sD*5 x"1]x"1]x"1]yZu,tart_time = 00:00:00 plan1_end_time = 23:59:59 ; 1-7 Monday to Sunday; 1-4 Monday to Thursday ; 1,5 Monday and Friday plan1_week_active = 1-7 ; record plan 2 plan2_run = 0 plan2_start_time = 19:06:00 plan2_end_time = 23:06:00 plan2_week_active = 1 ; recoD*5 x"1]x"1]x"1]XA'rd plan 3 plan3_run = 0 plan3_start_time = 00:00:00 plan3_end_time = 09:23:00 plan3_week_active = 1,4,6 ; time for keeping video and audio before alarm record trigger, unit: second alarm_pre_time = 2 ; after alarm record trigger, stop record after keep siD*5 x"1]x"1]x"1]+5֐lence time, unit: second alarm_stop_time = 60 [alarm] ; motion detection level set, 0 ->close detection md_set = 3 md_level_1 = 20 md_level_2 = 40 md_level_3 = 80 ; sound detection level set, 0 ->close detection sd_set = 0 sd_level_1 = 10 sd_level_2 = 20D*5  x"1]x"1]x"1]" )kf sd_level_3 = 30 i2o_detection = 0 smoke_detection = 0 shadow_detection = 0 other_detection = 0 ; 0 only photo, 1 both record & photo alarm_send_type = 1 ; detection interval, unit: ms alarm_interval_time = 500 ; send message interval time, unit: secondD*5  x"1]x"1]x"1] nygK alarm_send_msg_time = 60 ; cloud supported current, 1 -> supported, 0 -> unsupported [cloud] dana = 0 onvif = 0 rtsp = 1 tencent = 1 [camera] main_width = 1280 main_height = 960 sub_width = 640 sub_height = 360 ; 1->left-bottom, 2->left-top, 3->right-toD*5  x"1]x"1]x"1] rJ|pp, 4->right-bottom osd_position = 1 ; osd display channal name switch, 1 -> on, 0 -> off osd_switch = 0 osd_name = AKWIPC0000000010 ; display rate info OSD, 1->on, 0->off osd_rate = 0 ; time message display switch, 1 -> on, 0 -> off time_switch = 1 date_fo!͕  x"1]x"1]x"1] ɷ[a'rmat = 1 hour_format = 0 week_format = 1 ; LDR-IRCUT: 1->high-high, 2->high-low, 3->low-high, 4->low-low day_ctrl = 2 [onvif] main_fps = 25 main_kbps = 2048 main_quality = 50 sub_fps = 25 sub_kbps = 800 sub_quality = 50  7g]C?(V>hostapd_5G.confD*5]]]@ssid=ART_IPCAM #5G hw_mode=a channel=161 #2.4G #hw_mode=g #channel=11 #interface=p2p0 interface=wlan0 driver=nl80211 macaddr_acl=0 ieee80211n=1 wpa=2 wpa_passphrase=12345678 wpa_key_mgmt=WPA-PSK rsn_pairwise=TKIP CCMP #beacon_int=700 dtim_period=2 #beacon_\mZ ]]]v+b?rate=10 country_code=US 2v7P] mn,pW0;network.shD*5]]]9 _2#!/bin/sh readIni() { file=$1;section=$2;item=$3; val=$(awk -F ' = ' '/\['${section}'\]/{a=1} (a==1 && "'${item}'"==$1){a=0;print $2}' ${file}) echo ${val} } #get wsm version if [ ! -f /etc/jffs2/firmware_version.txt ];then dmesg |sedD*5]]]S,K -n '/WSM firmware/p' |grep -E -o '\[.+\]' > /etc/jffs2/firmware_version.txt fi #ipaddr=$(readIni /etc/jffs2/anyka_cfg.ini ethernet ipaddr) #echo $ipaddr wifimode=$(readIni /etc/jffs2/anyka_cfg.ini wireless running) #echo $wifimode ssid=$(readIni /etD*5]]]KG8 pc/jffs2/anyka_cfg.ini wireless ssid) #echo $ssid password=$(readIni /etc/jffs2/anyka_cfg.ini wireless password) #echo $password mode=$wifimode echo "" > /etc/jffs2/wpa_5G.conf cat > /etc/jffs2/wpa_5G.conf << EOF ap_scan=1 D*5]]] ý ctrl_interface=/var/run/wpa_supplicant network={ ssid="$ssid" psk="$password" D*5]]]L'ôخ } EOF if [ "$mode" == "softap" ] then test -s /etc/jffs2/.mac.info if [ $? -eq 0 ]; then echo "setup wifi driver ok" /etc/jffs2/ssid_name.sh hostapd -B /etc/jffs2/hostapdD*5]]]C%%[i_5G.conf ifconfig wlan0 192.168.60.1 netmask 255.255.255.0 udhcpd /etc/jffs2/udhcpd.conf sleep 2 /etc/jffs2/wifi_adjust.sh & thttpd -C /etc/jffs2/thttpd.conf else D*5]]]swR echo "setup wifi driver fail" fi elif [ "$mode" == "station" ] then wpa_supplicant -B -i wlan0 -c /etc/jffs2/wpa_5G.conf udhcpc -i wlan0& thttpd -C /etc/jffs2/thttpd.conf else echo "wrong mode!" fi #iwconY_t:]]]dpfig wlan0 txpower 18 .ԞJ]Pr7passwd&Mu]]] Jb)_root:x:0:0:root:/:/bin/sh daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh nobody:x:99:99:nobody:/home:/bin/sh 5JN $]  P$pir_config.shD*5* $] $] $]7NI#! /bin/sh ### BEGIN INIT INFO # File: pir_config.sh # Provides: PIR # Required-Start: $ # Required-Stop: # Default-Start: # Default-Stop: # Short-Description:PIR control # Author: # Email: D*5* $] $] $]`2 # Date: 2019-7-3 ### END INIT INFO MODE=$1 usage() { echo "Usage: $0 enable|disable)" exit 3 } readIni() { file=$1;section=$2;item=$3; val=$(awk -F ' = ' '/\['${section}'\]/{a=1} (a==h1@* $] $] $]>U1 && "'${item}'"==$1){a=0;print $2}' ${file}) echo ${val} } pir_enable () { pir=$(readIni /etc/jffs2/anyka_cfg.ini pircontrol pir) #echo $wifimode if [ "$pir" == '1' ]; =+* $] $] $]HHxoڝthen echo "PIR open! stop monitor stop ipc!! " sleep 2 D*5* $] $] $]1&VL killall -15 anyka_ipc echo 1 > /sys/devices/platform/akgpio-keys/disabled_keys elif [ "$pir" == '0' ];then echo "PIR close!" echo 3 > /sys/devices/platform/akgpio-keys/disabled_keys fi } pir_disable () { echo "pir iD*5* $] $] $]BY/rq disable......" echo 3 > /sys/devices/platform/akgpio-keys/disabled_keys } # # main: # case "$MODE" in enable) pir_enable ;; disable) pir_disable ;; *) nGxW* $] $] $]**Y}c usage ;; esac exit 0 3] ffNresolv.confR]]]RR[;Nʡ# Generated by NetworkManager nameserver 202.112.20.131 #nameserver 192.168.1.1 3 ] pPserial_test ]]]z?!v:I#!/bin/sh #get wsm version fw_ver=`cat < firmware_version.txt` echo $fw_ver stty -F /dev/ttySAK1 115200 cs8 -cstopb -parenb echo $fw_ver > /dev/ttySAK1 .ԞJ ]eЎ#shadowi ]]]eZ#root:$1$yu6zTMnb$FihN9mooEpO3CwLutNZPD1:10933:0:99999:7::: bin:*:10933:0:99999:7::: daemon:*:10933:0:99999:7::: nobody:*:10933:0:99999:7::: 4/)\u ] XŊssid_name.shD*5 ]]]v P#!/bin/sh NAME="" get_ssid() { NAME=$(cat /etc/jffs2/.mac.info | sed 's/00:80:E1//g' | sed 's/://g') echo $NAME } replace_ssid() { sed -i "s/ART_IPCAM/ART_IPCAM_$NAME/" /etc/jffs2/hostapd_5G.conf } get_ssid SSID=$(grep "ssid" /etc/jffs2/hostapd_5G.cć ]]]QH'onf) if [ "$SSID" == "ssid=ART_IPCAM" ]; then replace_ssid grep "ssid" /etc/jffs2/hostapd_5G.conf else echo "ssid already ok" fi 3 ] G=BJ2=thttpd.confD*5 ]]]Cc=#/etc/thttpd/thttpd.conf: thttpd configuration file port=80 dir=/etc/jffs2/www # Specifies a wildcard pattern for CGI programs, for instance "**.cgi" or # "/cgi-bin/*". See thttpd(8) for details. cgipat=/cgi-bin/* logfile=/var/log/thttpd.log charset=utf-8 Wl[ ]]]?nochroot user=root 3 ] udhcpd.confD*5  ]]]nE 6# Sample udhcpd configuration file (/etc/udhcpd.conf) # Values shown are defaults # The start and end of the IP lease block start 192.168.60.20 end 192.168.60.254 # The interface that udhcpd will use #interface p2p0 interface wlan0 # The maximim numbD*5  ]]]SG[er of leases (includes addresses reserved # by OFFER's, DECLINE's, and ARP conficts). Will be corrected # if it's bigger than IP lease block, but it ok to make it # smaller than lease block. #max_leases 254 # The time period at which udhcpd will write outD*5  ]]]dt\ a dhcpd.leases # file. If this is 0, udhcpd will never automatically write a # lease file. Specified in seconds. #auto_time 7200 # The amount of time that an IP will be reserved (leased to nobody) # if a DHCP decline message is received (seconds). #decliD*5  ]]] |{ne_time 3600 # The amount of time that an IP will be reserved # if an ARP conflct occurs (seconds). #conflict_time 3600 # How long an offered address is reserved (seconds). #offer_time 60 # If client asks for lease below this value, it will be rounded u D*5  ]]]ȷLp # to this value (seconds). #min_lease 60 # The location of the leases file #lease_file /var/lib/misc/udhcpd.leases # The location of the pid file #pidfile /var/run/udhcpd.pid # Everytime udhcpd writes a leases file, the below script will be called. #nD*5  ]]]ARotify_file # default: no script #notify_file dumpleases # useful for debugging # The following are bootp specific options, settable by udhcpd. #siaddr 192.168.0.22 #default: 0.0.0.0 #sname zorak #default: none #boot_file /var/nfs_root #default: noD*5  ]]]8醴ne # The remainer of options are DHCP options and can be specifed with the # keyword 'opt' or 'option'. If an option can take multiple items, such # as the dns option, they can be listed on the same line, or multiple # lines. The only option with a defaulD*5  ]]]xf : t is 'lease'. # Examples: #opt dns 192.168.1.1 option subnet 255.255.255.0 opt router 192.168.60.1 #opt wins 192.168.10.10 #option dns 129.219.13.81 # appened to above DNS servers for a total of 3 option domain local option lease 864000 # 10 days of secoD*5  ]]]Ѽsnds # Currently supported options (for more info, see options.c): #opt subnet #opt timezone #opt router #opt timesrv #opt namesrv #opt dns #opt logsrv #opt cookiesrv #opt lprsrv #opt bootsize #opt domain #opt swapsrv #opt rootpath #opt ipttl #opt mtu #opti0  ]]] lsFiLj broadcast #opt wins #opt lease #opt ntpsrv #opt tftp #opt bootfile # Static leases map #static_lease 00:60:08:11:CE:4E 192.168.0.54 #static_lease 00:60:08:11:CE:3E 192.168.0.44 6U ]:6½:wifi_adjust.shD*5 ]]].O0 0#!/bin/sh #eval Channel1=2412 #eval Channel2=2417 #eval Channel3=2422 #eval Channel4=2427 #eval Channel5=2432 #eval Channel6=2437 #eval Channel7=2442 #eval Channel8=2447 #eval Channel9=2452 #eval Channel10=2457 #eval Channel11=2462 #eval Channel12=2467 #eD*5 ]]]lè!ijval Channel13=2472 #eval Channel14=2484 #eval Channel34=5170 eval Channel36=5180 #eval Channel38=5190 eval Channel40=5200 #eval Channel42=5210 eval Channel44=5220 #eval Channel46=5230 eval Channel48=5240 #eval Channel52=5260 #eval Channel56=5280 #eval ChanD*5 ]]]3nel60=5300 #eval Channel64=5320 #eval Channel100=5500 #eval Channel104=5520 #eval Channel108=5540 #eval Channel112=5560 #eval Channel116=5580 #eval Channel120=5600 #eval Channel124=5620 #eval Channel128=5640 #eval Channel132=5660 #eval Channel136=5680 #evaD*5 ]]]El Channel140=5700 eval Channel149=5745 eval Channel153=5765 eval Channel157=5785 eval Channel161=5805 eval Channel165=5825 Ch_Cur=0 netif_up() { ifconfig p2p0 up } get_channel() { Ch_Cur=$(grep "channel" /etc/jffs2/hostapd_5G.conf | head -1 | sed 's/D*5 ]]]1achannel=//g') echo $Ch_Cur } wifi_scan() { Freq=0 i=$Ch_Cur if [ $Ch_Cur == 165 ]; then Freq=5805 else while [ $i -le 165 ] do let i++ eval $(echo "Freq=\$Channel$i") if [ "X$Freq" != "X" ]; then #echo $Freq break fi doD*5 ]]]_/7Une fi echo $Freq cnt=1 while [ $cnt -le 2 ] do sleep 80 echo "scan $cnt times" iw dev p2p0 scan freq $Freq > /dev/null let cnt++ done } get_channel netif_up if [ $? -eq 0 ]; then wifi_scan echo "Adjust Temperature Over" else echo "pld#T8 ]]] WHhease insmod wifi ko driver" fi 3 ] %Ewpa_5G.conf D*57]]][[:# request AP scanning and decide which AP to use ap_scan=1 # enable control interface using UNIX domain sockets ctrl_interface=/var/run/wpa_supplicant # you can include one or more network blocks here network={ ssid="wf43s_5G" #key_mgmt=WPA-PSK {07]]]77 u #proto=WPA2 #pairwise=CCMP psk="12345678" } +n&}r!,]Mk{uwwwDAr!,]r!,]r!,]L/Dw.]/ AMPECam D*5/]]]]wik

D*5/]]]Ek[@

2v7Pr!,] 󅿁index.htmlD*5r!,]r!,]r!,]Ȓ AMPECam D*5r!,]r!,]r!,] lI

0x>Q]pf3get_infoD*5JQ]Q]Q]D̎#!/bin/sh readIni() { file=$1;section=$2;item=$3; val=$(awk -F ' = ' '/\['${section}'\]/{a=1} (a==1 && "'${item}'"==$1){a=0;print $2}' ${file}) echo ${val} } #ipaddr=$(readIni /etc/jffs2/anyka_cfg.ini ethernet ipaddr) #echo $ipaddr wifimodeD*5JQ]Q]Q]AG=$(readIni /etc/jffs2/anyka_cfg.ini wireless running) #echo $wifimode ssid=$(readIni /etc/jffs2/anyka_cfg.ini wireless ssid) #echo $ssid password=$(readIni /etc/jffs2/anyka_cfg.ini wireless password) #echo $password record=$(readIni /etc/jffs2/anyka_cfgD*5JQ]Q]Q]OO.ini recordcontrol record) videosize=$(readIni /etc/jffs2/anyka_cfg.ini video record_time) pir=$(readIni /etc/jffs2/anyka_cfg.ini pircontrol pir) #echo $record cat << EOF Content-type: text/plain { "wifimode":"$wifimode", "ssid":"$ssid", "password":"$pasJQ]Q]Q]JJ׵>hsword", "record":"$record", "videosize":"$videosize", "pir":"$pir" } EOF 0x>] k6printenvD*5mV]]]opk4 #!/bin/sh date=`date -u '+%a, %d %b %Y %H:%M:%S %Z'` cat << EOF Content-type: text/plain Expires: $date CGI printenv EOF echo 'Date:' date echo echo 'Id:' id echo echo 'Env:' printenv echo if [ "$CONTENT_LENGTH" != "" ] ; then if [ "$CONTENT_LENGT5|^mV]]]VV{^vH" -ne 0 ] ; then echo 'Input:' echo dd bs=1 count=$CONTENT_LENGTH echo fi fi 0x>,]= l;set_infoD*5c,],],]35x]#!/bin/sh #date=`date -u '+%a, %d %b %Y %H:%M:%S %Z'` #QUERY_STRING="ssid=1234&possword=123456&wifimode=0" ssid=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/ssid/ {print $2}'` password=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/password/ {print @}Wc,],],]9N$2}'` wifimode=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/wifimode/ {print $2}'` record=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/record/ {print $2}'` videosize=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/videosize/ {print $2}'` pir=`ech HD!c,],],]q!kl\to $QD*5c,],],]6wUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/pir/ {print $2}'` sed -i "/^ssid =/s/=.*/= $ssid/" /etc/jffs2/anyka_cfg.ini sed -i "/^password =/s/=.*/= $password/" /etc/jffs2/anyka_cfg.ini if [ "$wifimode" == "0" ] then running="softap" elif [ "$wifimoD*5c,],],]Ob &de" == "1" ] then running="station" fi if [ "$record" == '0' ];then record_server='1' rtsp='1' record='0' elif [ "$record" == '1' ];then record_server='0' rtsp='1' record='1' elif [ "$record" == '2' ];then D*5c,],],](Dg_ record_server='1' rtsp='0' record='2' fi sed -i "/^running =/s/=.*/= $running/" /etc/jffs2/anyka_cfg.ini sed -i "/^record_server =/s/=.*/= $record_server/" /etc/jffs2/anyka_cfg.ini sed -i "/^rtsp =/s/=.*/= $rtsp/" /etc/jffs2/anyka_cfg.ini sed -D*5c,],],] Ti "/^record =/s/=.*/= $record/" /etc/jffs2/anyka_cfg.ini sed -i "/^record_time =/s/=.*/= $videosize/" /etc/jffs2/anyka_cfg.ini if [ "$pir" == '1' ];then pir='1' elif [ "$pir" == '0' ];then pir='0' fi sed -i "/^pir =/s/=.*/= $pir/" /etc/j=\c,],],]ccÆOHffs2/anyka_cfg.ini cat << EOF Content-type: text/plain { "success":"1", } EOF sleep 2 reboot 3] u)wuset_infobakD*5]]]35xӀ#!/bin/sh #date=`date -u '+%a, %d %b %Y %H:%M:%S %Z'` #QUERY_STRING="ssid=1234&possword=123456&wifimode=0" ssid=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/ssid/ {print $2}'` password=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/password/ {print D*5]]]$ם7j$2}'` wifimode=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/wifimode/ {print $2}'` record=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/record/ {print $2}'` videosize=`echo $QUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/videosize/ {print $2}'` pir=`echo $QD*5]]]6AbQUERY_STRING|sed 's/&/\n/g'|awk -F '=' '/pir/ {print $2}'` sed -i "/^ssid =/s/=.*/= $ssid/" /etc/jffs2/anyka_cfg.ini sed -i "/^password =/s/=.*/= $password/" /etc/jffs2/anyka_cfg.ini if [ "$wifimode" == "0" ] then running="softap" elif [ "$wifimoD*5]]]O@3A>de" == "1" ] then running="station" fi if [ "$record" == '0' ];then record_server='1' rtsp='1' record='0' elif [ "$record" == '1' ];then record_server='0' rtsp='1' record='1' elif [ "$record" == '2' ];then D*5]]](D8h record_server='1' rtsp='0' record='2' fi sed -i "/^running =/s/=.*/= $running/" /etc/jffs2/anyka_cfg.ini sed -i "/^record_server =/s/=.*/= $record_server/" /etc/jffs2/anyka_cfg.ini sed -i "/^rtsp =/s/=.*/= $rtsp/" /etc/jffs2/anyka_cfg.ini sed -D*5]]]GsvHi "/^record =/s/=.*/= $record/" /etc/jffs2/anyka_cfg.ini if [ "$videosize" == '0' ];then record_time='60' elif [ "$videosize" == '1' ];then record_time='300' elif [ "$videosize" == '2' ];then record_time='600' elif [ "$videosize" == '3' ];then record_D*5]]]:mžstime='1200' elif [ "$videosize" == '4' ];then record_time='3600' fi sed -i "/^record_time =/s/=.*/= $record_time/" /etc/jffs2/anyka_cfg.ini if [ "$pir" == '1' ];then pir='1' echo 1 > /sys/devices/platform/akgpio-keys/disabled_keys elif [ "$pir"]]]UO{# == '0' ];then pir='0' echo 3 > /sys/devices/platform/akgpio-keys/disabled_keys fi sed -i "/^pir =/s/=.*/= $pir/" /etc/jffs2/anyka_cfg.ini cat %N ]]]``X{6h << EOF Content-type: text/plain { "success":"1", } EOF sleep 2 /etc/jffs2/network.sh /usr/s[Լ ]]], )rbin/service.sh restart