
ԭָ
һָ
1·ѯݣ{ "cmd": "read", "type": "status"}
ϱݣ
{"cmd":"status",
    "ext":{
        "imei":"3001",
        "iccid":"898607B010173004xxxx",
        "csq":29,
        "alti":50,
        "lat":"34.815187",
        "lng":"113.67336",
        "dtype":7,
        "on_off":0,
        "dver":"1.0.0",
        "v_bat":"24.8",
        "bat_sta":0,
        "usb_sta":0,
        "imgres":7,
        "wind_sw":0,
        "cold_sw":0,
        "coll_time":["8-9","11-12",...],
        "drop_time":1,
        "set_temp":25,
        "pre_temp":0,
        "at":0,
        "ah":0,
        "rps":0,   
        "stamp":"20180301211805",
        "datt":10
        "staytime":10
        "cul_time":24
    }
}


2ѯõıĽṹ
{"cmd": "read","type": "netconf"}
ѯã豸ظıĽṹ
{"cmd":"netconf",
    "mqtt":{
    "ip":"120.xx.xx.xx",
    "port":1883,
    "sub":"/yfkj/bzy/s2c/7001",
    "pub":"/yfkj/bzy/c2s/7001",
    "lastwill":"/yfkj/bzy/offline/",
    "uid":"",
    "pwd":"",
    "qos":0,
    "keepalive":60
    }
    "ftp":{
    "ip":"120.xx.xxx.xx",
    "port":1883,
    "uid":"",
    "pwd":"",
    }
}

·ã
1·ã

{"cmd": "paramconf",
    "ext": {
    "wind_sw": 0,
    "coll_time": ["7-9","10-11",...],
    "set_temp": 25,
    "imgres": 0,
    "datt": 0,
    "drop_time": 0,
    "cul_time":24
    }
 }

2·
Ľṹ
{"cmd":"netset",
    "mqtt":{
    "ip":"120.xx.xx.xx",
    "port":1883,
    "sub":"/yfkj/bzy/s2c/",
    "pub":"/yfkj/bzy/c2s/",
    "lastwill":"/yfkj/bzy/offline/",
    "uid":"",
    "pwd":"",
    "qos":0,
    "keepalive":60
    }
    "ftp":{
    "ip":"120.xx.xxx.xx",
    "port":1883,
    "uid":"",
    "pwd":"",
    }
}

·ƣ
·أ
{"cmd":"poweroff"}   
{"cmd":"poweron"}
 
{"cmd":"update"}

{"cmd":"reboot"}
·俪أ
{"cmd":"coldoff"} 
{"cmd":"coldon"}

{"cmd":"ctrl","ext":{"type": takephoto}}

ġϢ
/yfkj/bzy/offline/<imei>
Ľṹ
{
	"cmd": "offline",
	"ext": {
		"imei": "868575028xxxxxx"
	}
}






ΪкеЭcmd
ã
ȡʱеcmdΪnetconf
ʱеcmdΪnetset

ãΪкͼݷ豸·òʱcmdΪparamconf

·ʱΪparamconf
ȡʱеcmdΪparamѯʱҲparam

·磺
{"cmd": "netset","ftp": {"pwd": "","port": "8088","uid": "","ip": "120.27.222.26"},"mqtt": {"sub": "\/yfkj\/bzy\/s2c\/","pub": "\/yfkj\/bzy\/c2s\/","ip": "39.104.94.153","port": 1883,"lastwill": "\/yfkj\/bzy\/offline\/","pwd": "","uid": "","qos": 0,"keepalive": 60}}


·ѯã
{ "cmd": "read", "type": "param"}
ظ
{"cmd":"param","ext":{"cul_time":12,"drop_time":2,"set_temp":25,"wind_sw":1,"imgres":0,"datt":20,"coll_time":"[ \"8   -  8\", \"1   6    -2     0\",\" 6-  7\",  \"12   -15\",\"21       -2     1\",\"9   -  10\"]"}}

·ã
{"cmd": "paramconf", "ext": {"wind_sw": 0,"coll_time": ["1-2","11-12"],"set_temp": 30,"imgres": 1,"datt": 10,"drop_time": 5,"cul_time":13} }
{"cmd": "paramconf", "ext": {"wind_sw": 1,"coll_time": ["2-3","12-13"],"set_temp": 15,"imgres": 2,"datt": 30,"drop_time": 3,"cul_time":24} }

{"cmd": "paramconf", "ext": {"wind_sw": 1,"coll_time": ["1-2","4-5","7-8","11-12","14-15","17-20"],"set_temp": 15,"imgres": 2,"datt": 30,"drop_time": 3,"cul_time":24} }

·ãֵͳһΪnumber
{"ext": {"drop_time": 1,"cul_time": 12,"datt": 20,"coll_time": ["9-10", "12-13", "16-18"],"set_temp": 25,"wind_sw": 0,"imgres": 0},"cmd": "paramconf"}

{
	"ext": {
		"drop_time": 1,
		"cul_time": 12,
		"datt": 20,
		"coll_time": ["9-10", "12-13", "16-18"],
		"set_temp": 25,
		"wind_sw": 0,
		"imgres": 0
	},
	"cmd": "paramconf"
}


{"cmd": "paramconf", "ext": {"coll_time": ["5-6", "7-8", "9-10"], "drop_time": 5, "wind_sw": 0, "cul_time": 12, "datt": 30, "set_temp": 25, "imgres": 1}}

{"cmd": "photo", "ext": {"photo_num":0, "step_num":0}}