{
	"profile":{
		"tslVersion":"1.1.0",
		"productKey":"p11275",
		"version":"20220622194658344"
	},
	"services":[
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"inputData":[
				{
					"$ref":"#/properties/id/2"
				}
			],
			"code":"test_service",
			"name":"test_service",
			"subType":"ASYNC",
			"id":5,
			"sort":38,
			"type":"SERVICE",
			"desc":""
		}
	],
	"properties":[
		{
			"specs":{
				"length":"512"
			},
			"code":"query_device_info",
			"dataType":"TEXT",
			"name":"查询设备信息",
			"subType":"RW",
			"id":2,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"power_switch",
			"dataType":"BOOL",
			"name":"开关机",
			"subType":"RW",
			"id":9,
			"sort":0,
			"type":"PROPERTY",
			"desc":"开关机时，主动上报开关机状态"
		},
		{
			"specs":{
				"unit":"",
				"min":"0",
				"max":"100",
				"step":"1"
			},
			"code":"energy",
			"dataType":"INT",
			"name":"电量",
			"subType":"R",
			"id":4,
			"sort":1,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"length":"11"
			},
			"code":"phone_num",
			"dataType":"TEXT",
			"name":"电话号码",
			"subType":"RW",
			"id":23,
			"sort":2,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"specs":[
						{
							"dataType":"BOOL",
							"name":"启用",
							"value":"true"
						},
						{
							"dataType":"BOOL",
							"name":"禁用",
							"value":"false"
						}
					],
					"code":"gps",
					"dataType":"BOOL",
					"name":"GPS",
					"id":1
				},
				{
					"specs":[
						{
							"dataType":"BOOL",
							"name":"启用",
							"value":"true"
						},
						{
							"dataType":"BOOL",
							"name":"禁用",
							"value":"false"
						}
					],
					"code":"cell",
					"dataType":"BOOL",
					"name":"基站",
					"id":2
				},
				{
					"specs":[
						{
							"dataType":"BOOL",
							"name":"启用",
							"value":"true"
						},
						{
							"dataType":"BOOL",
							"name":"禁用",
							"value":"false"
						}
					],
					"code":"wifi",
					"dataType":"BOOL",
					"name":"Wifi",
					"id":3
				}
			],
			"code":"loc_method",
			"dataType":"STRUCT",
			"name":"定位方式",
			"subType":"RW",
			"id":24,
			"sort":3,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"ENUM",
					"name":"周期性模式",
					"value":"1"
				},
				{
					"dataType":"ENUM",
					"name":"智能模式",
					"value":"2"
				}
			],
			"code":"work_mode",
			"dataType":"ENUM",
			"name":"工作模式",
			"subType":"RW",
			"id":25,
			"sort":4,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"s",
				"min":"5",
				"max":"2147483647",
				"step":"1"
			},
			"code":"work_cycle_period",
			"dataType":"INT",
			"name":"工作模式循环周期",
			"subType":"RW",
			"id":26,
			"sort":5,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"code":"local_time",
			"dataType":"DATE",
			"name":"本地时间",
			"subType":"R",
			"id":19,
			"sort":6,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"",
				"min":"5",
				"max":"30",
				"step":"1"
			},
			"code":"low_power_alert_threshold",
			"dataType":"INT",
			"name":"低电报警阈值",
			"subType":"RW",
			"id":15,
			"sort":7,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"",
				"min":"5",
				"max":"30",
				"step":"1"
			},
			"code":"low_power_shutdown_threshold",
			"dataType":"INT",
			"name":"低电关机阈值",
			"subType":"RW",
			"id":16,
			"sort":8,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_ota",
			"dataType":"BOOL",
			"name":"OTA功能",
			"subType":"RW",
			"id":12,
			"sort":9,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_ota_auto_upgrade",
			"dataType":"BOOL",
			"name":"OTA自动升级",
			"subType":"RW",
			"id":13,
			"sort":10,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_voice_listen",
			"dataType":"BOOL",
			"name":"语音监听",
			"subType":"RW",
			"id":10,
			"sort":11,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_voice_record",
			"dataType":"BOOL",
			"name":"录音上报",
			"subType":"RW",
			"id":11,
			"sort":12,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_fault_alert",
			"dataType":"BOOL",
			"name":"故障报警功能",
			"subType":"RW",
			"id":27,
			"sort":13,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_low_power_alert",
			"dataType":"BOOL",
			"name":"低电报警功能",
			"subType":"RW",
			"id":28,
			"sort":14,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_over_speed_alert",
			"dataType":"BOOL",
			"name":"超速报警功能",
			"subType":"RW",
			"id":29,
			"sort":15,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_sim_abnormal_alert",
			"dataType":"BOOL",
			"name":"SIM卡异常报警功能",
			"subType":"RW",
			"id":30,
			"sort":16,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_disassemble_alert",
			"dataType":"BOOL",
			"name":"拆卸报警功能",
			"subType":"RW",
			"id":31,
			"sort":17,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"BOOL",
					"name":"开",
					"value":"true"
				},
				{
					"dataType":"BOOL",
					"name":"关",
					"value":"false"
				}
			],
			"code":"sw_drive_behavior_alert",
			"dataType":"BOOL",
			"name":"异常驾驶行为报警功能",
			"subType":"RW",
			"id":32,
			"sort":18,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"ENUM",
					"name":"无",
					"value":"0"
				},
				{
					"dataType":"ENUM",
					"name":"急起",
					"value":"1"
				},
				{
					"dataType":"ENUM",
					"name":"急停",
					"value":"2"
				},
				{
					"dataType":"ENUM",
					"name":"左急转弯",
					"value":"3"
				},
				{
					"dataType":"ENUM",
					"name":"右急转弯",
					"value":"4"
				}
			],
			"code":"drive_behavior_code",
			"dataType":"ENUM",
			"name":"异常驾驶行为",
			"subType":"R",
			"id":21,
			"sort":19,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"ENUM",
					"name":"重启",
					"value":"1"
				}
			],
			"code":"power_restart",
			"dataType":"ENUM",
			"name":"模块重启",
			"subType":"RW",
			"id":33,
			"sort":26,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"km/h",
				"min":"0",
				"max":"132",
				"step":"1"
			},
			"code":"over_speed_threshold",
			"dataType":"INT",
			"name":"超速报警阈值",
			"subType":"RW",
			"id":34,
			"sort":27,
			"type":"PROPERTY",
			"desc":"单位km/h"
		},
		{
			"specs":[
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"异常",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"正常",
							"value":"1"
						}
					],
					"code":"net",
					"dataType":"ENUM",
					"name":"网络状态",
					"id":1,
					"desc":""
				},
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"异常",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"正常",
							"value":"1"
						}
					],
					"code":"location",
					"dataType":"ENUM",
					"name":"定位状态",
					"id":2,
					"desc":""
				},
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"异常",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"正常",
							"value":"1"
						}
					],
					"code":"temp_sensor",
					"dataType":"ENUM",
					"name":"温湿度传感器状态",
					"id":3,
					"desc":""
				},
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"异常",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"正常",
							"value":"1"
						}
					],
					"code":"light_sensor",
					"dataType":"ENUM",
					"name":"光照传感器状态",
					"id":4,
					"desc":""
				},
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"异常",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"正常",
							"value":"1"
						}
					],
					"code":"move_sensor",
					"dataType":"ENUM",
					"name":"三轴加速传感器状态",
					"id":5,
					"desc":""
				},
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"异常",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"正常",
							"value":"1"
						}
					],
					"code":"mike",
					"dataType":"ENUM",
					"name":"麦克风状态",
					"id":6,
					"desc":""
				}
			],
			"code":"device_module_status",
			"dataType":"STRUCT",
			"name":"设备模块状态",
			"subType":"R",
			"id":36,
			"sort":29,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"ENUM",
					"name":"无GPS模块",
					"value":"0"
				},
				{
					"dataType":"ENUM",
					"name":"内置GPS模块",
					"value":"1"
				},
				{
					"dataType":"ENUM",
					"name":"外置GPS模块",
					"value":"2"
				}
			],
			"code":"gps_mode",
			"dataType":"ENUM",
			"name":"GPS模块类型",
			"subType":"R",
			"id":37,
			"sort":30,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"dataType":"ENUM",
					"name":"取消升级",
					"value":"0"
				},
				{
					"dataType":"ENUM",
					"name":"确认升级",
					"value":"1"
				}
			],
			"code":"user_ota_action",
			"dataType":"ENUM",
			"name":"确认OTA升级",
			"subType":"RW",
			"id":38,
			"sort":31,
			"type":"PROPERTY",
			"desc":"当OTA自动升级关闭时, 用户通过查看设备当前是否有OTA升级来进行自主选择升级或不升级"
		},
		{
			"specs":{
				"unit":"mV",
				"min":"0",
				"max":"2147483647",
				"step":"1"
			},
			"code":"voltage",
			"dataType":"INT",
			"name":"电池电压",
			"subType":"R",
			"id":41,
			"sort":32,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":[
				{
					"specs":{
						"length":"1024"
					},
					"code":"sys_current_version",
					"dataType":"TEXT",
					"name":"系统当前版本",
					"id":1,
					"desc":""
				},
				{
					"specs":{
						"length":"1024"
					},
					"code":"sys_target_version",
					"dataType":"TEXT",
					"name":"系统目标版本",
					"id":2,
					"desc":""
				},
				{
					"specs":{
						"length":"1024"
					},
					"code":"app_current_version",
					"dataType":"TEXT",
					"name":"应用当前版本",
					"id":3,
					"desc":""
				},
				{
					"specs":{
						"length":"1024"
					},
					"code":"app_target_version",
					"dataType":"TEXT",
					"name":"应用目标版本",
					"id":4,
					"desc":""
				},
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"无",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"系统",
							"value":"1"
						},
						{
							"dataType":"ENUM",
							"name":"应用",
							"value":"2"
						}
					],
					"code":"upgrade_module",
					"dataType":"ENUM",
					"name":"当前升级模块",
					"id":5,
					"desc":""
				},
				{
					"specs":[
						{
							"dataType":"ENUM",
							"name":"无",
							"value":"0"
						},
						{
							"dataType":"ENUM",
							"name":"待升级",
							"value":"1"
						},
						{
							"dataType":"ENUM",
							"name":"升级中",
							"value":"2"
						},
						{
							"dataType":"ENUM",
							"name":"升级成功",
							"value":"3"
						},
						{
							"dataType":"ENUM",
							"name":"升级失败",
							"value":"4"
						}
					],
					"code":"upgrade_status",
					"dataType":"ENUM",
					"name":"当前升级状态",
					"id":6,
					"desc":""
				}
			],
			"code":"ota_status",
			"dataType":"STRUCT",
			"name":"OTA升级",
			"subType":"R",
			"id":42,
			"sort":33,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"km/h",
				"min":"0",
				"max":"200.00",
				"step":"0.01"
			},
			"code":"current_speed",
			"dataType":"FLOAT",
			"name":"当前时速",
			"subType":"R",
			"id":43,
			"sort":34,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"s",
				"min":"-1",
				"max":"2147483647",
				"step":"1"
			},
			"code":"loc_gps_read_timeout",
			"dataType":"INT",
			"name":"GPS信息读取超时时间",
			"subType":"RW",
			"id":45,
			"sort":36,
			"type":"PROPERTY",
			"desc":"-1：一直等待直到读取到数据才进行返回\n0：不等待，读取接口返回数据后立即返回\n>0: 等待超时时间，单位秒"
		},
		{
			"specs":{
				"unit":"s",
				"min":"3600",
				"max":"2147483647",
				"step":"1"
			},
			"code":"work_mode_timeline",
			"dataType":"INT",
			"name":"休眠策略参考时间",
			"subType":"RW",
			"id":1,
			"sort":37,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"℃",
				"min":"-40",
				"max":"125",
				"step":"0.01"
			},
			"code":"temperature",
			"dataType":"DOUBLE",
			"name":"设备温度",
			"subType":"R",
			"id":7,
			"sort":39,
			"type":"PROPERTY",
			"desc":""
		},
		{
			"specs":{
				"unit":"%",
				"min":"0",
				"max":"100",
				"step":"0.01"
			},
			"code":"humidity",
			"dataType":"DOUBLE",
			"name":"设备湿度",
			"subType":"R",
			"id":39,
			"sort":40,
			"type":"PROPERTY",
			"desc":""
		}
	],
	"events":[
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"code":"sos_alert",
			"name":"SOS报警",
			"subType":"WARN",
			"id":6,
			"sort":20,
			"type":"EVENT",
			"desc":""
		},
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"code":"fault_alert",
			"name":"故障报警",
			"subType":"ERROR",
			"id":14,
			"sort":21,
			"type":"EVENT",
			"desc":""
		},
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"code":"low_power_alert",
			"name":"低电报警",
			"subType":"WARN",
			"id":17,
			"sort":22,
			"type":"EVENT",
			"desc":""
		},
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"code":"sim_abnormal_alert",
			"name":"SIM卡异常报警",
			"subType":"WARN",
			"id":18,
			"sort":23,
			"type":"EVENT",
			"desc":""
		},
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"code":"drive_behavior_alert",
			"name":"异常驾驶行为报警",
			"subType":"WARN",
			"id":22,
			"sort":24,
			"type":"EVENT",
			"desc":""
		},
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"code":"disassemble_alert",
			"name":"拆卸报警",
			"subType":"WARN",
			"id":20,
			"sort":25,
			"type":"EVENT",
			"desc":""
		},
		{
			"outputData":[
				{
					"$ref":"#/properties/id/19"
				}
			],
			"code":"over_speed_alert",
			"name":"超速报警",
			"subType":"WARN",
			"id":35,
			"sort":28,
			"type":"EVENT",
			"desc":""
		}
	]
}