|
|
@@ -1,127 +1,165 @@
|
|
|
{
|
|
|
-"def_cfg":{
|
|
|
- "ble_mac": "D5:4F:62:FB:C7:C8",
|
|
|
- "ble_mac4": "7c:b9:4c:da:af:5c",
|
|
|
- "ble_mac7": "7C:B9:4C:DA:61:7C",
|
|
|
- "ble_mac2": "E9:8B:FC:41:3F:CF",
|
|
|
- "ble_mac3": "DB:57:46:A6:14:22",
|
|
|
- "heart_beat_sel": 1,
|
|
|
- "input_interval": 5,
|
|
|
- "heart_beat_interval": 25,
|
|
|
- "notif_char": "0000ffe2-0000-1000-8000-00805f9b34fb",
|
|
|
- "write_char": "0000ffe1-0000-1000-8000-00805f9b34fb",
|
|
|
- "notif_char1": "49535343-8841-43f4-a8d4-ecbe34729bb3",
|
|
|
- "write_char1": "49535343-1e4d-4bd9-ba61-23c647249616",
|
|
|
- "ble_mtu": 0,
|
|
|
- "ble_send_wait": 1.5,
|
|
|
- "head_send": "YL<",
|
|
|
- "head_recv": "YL>",
|
|
|
- "checknum_type": "sum16",
|
|
|
- "checknum_type1": "crc16",
|
|
|
- "aes_cbc_enbable": false,
|
|
|
- "aes_cbc_key_send": "",
|
|
|
- "aes_cbc_key_recv": "",
|
|
|
- "recv_detail_print": false,
|
|
|
- "recv_soc_data_print": true,
|
|
|
- "recv_analysis_data_print": false,
|
|
|
- "auto_send_GetConfigurationNumber": true
|
|
|
-},
|
|
|
-
|
|
|
-"cmd_list":
|
|
|
-[
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:heart_beat",
|
|
|
- "heart_beat_sel"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:version=?",
|
|
|
- "get_soft_version"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:work_status=?",
|
|
|
- "get_work_status"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:fire_status=?",
|
|
|
- "get_fire_status"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:fault_status=?",
|
|
|
- "get_fault_status"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:humidity=?",
|
|
|
- "get_humidity"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:temperature=?",
|
|
|
- "get_temperature"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:cur_photosen0=?",
|
|
|
- "get_photosen"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:photosen0=?",
|
|
|
- "get_photosen"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:get:net=?",
|
|
|
- "get_net"
|
|
|
- ],
|
|
|
+ "def_cfg":{
|
|
|
+ "ble_mac1": "b8:3d:fb:ac:d2:26",
|
|
|
+ "ble_mac": "7C:B9:4C:DA:AF:5C",
|
|
|
+ "ble_mac4": "7C:B9:4C:DA:61:7C",
|
|
|
+ "ble_mac2": "E9:8B:FC:41:3F:CF",
|
|
|
+ "ble_mac3": "DB:57:46:A6:14:22",
|
|
|
+ "heart_beat_sel": 1,
|
|
|
+ "input_interval": 5,
|
|
|
+ "heart_beat_interval": 25,
|
|
|
+ "notif_char": "49535343-8841-43f4-a8d4-ecbe34729bb3",
|
|
|
+ "write_char": "49535343-1e4d-4bd9-ba61-23c647249616",
|
|
|
+ "ble_mtu": 0,
|
|
|
+ "ble_send_wait": 1.5,
|
|
|
+ "head_send3": "",
|
|
|
+ "head_recv3": "",
|
|
|
+ "checknum_type3": "",
|
|
|
+ "head_send": "YL<",
|
|
|
+ "head_recv": "YL>",
|
|
|
+ "checknum_type": "sum16",
|
|
|
+ "checknum_type1": "crc16",
|
|
|
+ "aes_cbc_enbable": false,
|
|
|
+ "aes_cbc_key_send": "",
|
|
|
+ "aes_cbc_key_recv": "",
|
|
|
+ "recv_detail_print": false,
|
|
|
+ "recv_soc_data_print": true,
|
|
|
+ "recv_analysis_data_print": false,
|
|
|
+ "auto_send_GetConfigurationNumber": true
|
|
|
+ },
|
|
|
+
|
|
|
+ "cmd_list":
|
|
|
+ [
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:version=?",
|
|
|
+ "get_soft_version"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:heart_beat=?",
|
|
|
+ "heart_beat_sel"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "get:time=?",
|
|
|
+ "get_time"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:work_status=?",
|
|
|
+ "get_work_status"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:fire_status=?",
|
|
|
+ "get_fire_status"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:fault_status=?",
|
|
|
+ "get_fault_status"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:humidity=?",
|
|
|
+ "get_humidity"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:temperature=?",
|
|
|
+ "get_temperature"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:cur_photosen0=?",
|
|
|
+ "get_cur_photosen"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:photosen0=?",
|
|
|
+ "get_photosen"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:net=?",
|
|
|
+ "get_net"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:event_num=?",
|
|
|
+ "get_event_num"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:get:warning_num=?",
|
|
|
+ "get_warning_num"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:extra_time=180",
|
|
|
+ "set_extra_time"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:standing_time=10",
|
|
|
+ "set_standing_time"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:interval_time=600",
|
|
|
+ "set_interval_time"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:photosen0=6000,6000,6000,6000",
|
|
|
+ "set_photosen"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:time=24,9,21,13,03,0",
|
|
|
+ "set_time"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:reset=1",
|
|
|
+ "set_rest"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:net=WIFI24,12345678,qq.com,1883,user,123456",
|
|
|
+ "set_net"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:event_num=1000",
|
|
|
+ "set_event_num"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:warning_num=1000",
|
|
|
+ "set_warning_num"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:erase_bit=7",
|
|
|
+ "set_erase_bit"
|
|
|
+ ],
|
|
|
+
|
|
|
+ [
|
|
|
+ "",
|
|
|
+ "str:set:upgrade=fire_detector17.bin.sum32[008a7ab8],008000c9,90276",
|
|
|
+ "set_upgrade"
|
|
|
+ ]
|
|
|
+
|
|
|
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:set:extra_time=180",
|
|
|
- "set_extra_time"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:set:standing_time=10",
|
|
|
- "set_standing_time"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:set:interval_time=600",
|
|
|
- "set_interval_time"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "str:set:photosen0=6000,6000,6000,6000",
|
|
|
- "set_photosen"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "set:time=1727107200",
|
|
|
- "set_time"
|
|
|
- ],
|
|
|
- [
|
|
|
- "",
|
|
|
- "set:reset=1",
|
|
|
- "set_rest"
|
|
|
- ],
|
|
|
-
|
|
|
- [
|
|
|
- "",
|
|
|
- "set:net=WIFI24,12345678,qq.com,1883,user,123456",
|
|
|
- "set_net"
|
|
|
- ],
|
|
|
-
|
|
|
- [
|
|
|
- "",
|
|
|
- "set:upgrade=Template.bin.sum32[008000c9],008000c9,84800",
|
|
|
- "set_upgrade"
|
|
|
]
|
|
|
-
|
|
|
-]
|
|
|
-}
|
|
|
+ }
|
|
|
+
|