Skip to content

查询设备业务属性

接口地址:/v2/binding/enduserapi/getDeviceBusinessAttributes

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

查询设备的物模型的值

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
dkDevice Keyquerytruestring
pkProduct Keyquerytruestring
codeList要查询的属性标识符
和查询类型配合使用,如果查询多个属性,使用英文逗号分隔
queryfalsestring
gatewayDk网关设备的 Device Keyqueryfalsestring
gatewayPk网关设备的 Product Keyqueryfalsestring
type查询类型
1 查询设备基础属性
2 查询物模型属性
3 查询定位信息
查询类型可以单选和多选,如果需要查询多个类型的属性值,使用英文逗号分隔
queryfalsestring

响应状态:

状态码说明schema
200查询设备业务属性成功返回注册码响应数据«InnerApiDeviceDetailV2»
5032token 验证失败
5041无权限
5047用户鉴权不匹配
5052设备未绑定
5106请输入token
5114DMP业务属性查询失败
5471请输入要查询的属性标识符的查询类型

响应参数:

参数名称参数说明类型schema
code响应状态码integer(int32)integer(int32)
data响应数据InnerApiDeviceDetailV2InnerApiDeviceDetailV2
  customizeTslInfo自定义物模型数据上报列表array自定义物模型数据
    abId功能IDinteger
    dataType数据类型string
    name功能名称string
    resourceCode功能标识符string
    resourceValce功能值string
    subType数据操作类型string
    type功能类型string
  deviceData资源物模型数据列表(电量、电压等。设备上报,才有数据)设备资源数据设备资源数据
    battery电池电量number
    cellId基站idinteger
    comProtocolVer通信协议版本string
    dataProtocolVer数据协议版本string
    deviceKeyDevice Keystring
    iccidICCID号string
    lac位置区代码integer
    locator定位支持功能string
    mcc移动国家代码integer
    mcuVersionMCU版本string
    memoryFree剩余空间integer
    mnc移动网络代码integer
    phoneNumphone号string
    productKeyProduct Keystring
    rsrp参考信号接收功率integer
    rsrqLTE参考信号接收质量integer
    sdkVersionSDK版本string
    signalStrength信号强度integer
    simSIM号string
    snr信号与干扰加噪声比integer
    type模组型号string
    version模组版本string
    voltage电压number
  deviceLocateInfo设备定位信息数据QdLocationLatestQdLocationLatest
    createTime创建时间string
    createTimeTsinteger
    deviceKey设备keystring
    hdop水平精度因子string
    lat维度string
    latType纬度半球 N/Sstring
    lng经度string
    lngType经度半球 W/Estring
    locateRaw原始数据string
    locateStatus差分定位/非差分定位string
    locateTime定位时间string
    locateTimeTsinteger
    locateType定位类型string
    productKey产品keystring
    satellites当前卫星数string
extMsg扩展消息string
msg响应消息string

响应示例:

javascript
{
	"code": 0,
	"data": {
		"customizeTslInfo": [
			{
				"abId": 0,
				"dataType": "",
				"name": "",
				"resourceCode": "",
				"resourceValce": "",
				"subType": "",
				"type": ""
			}
		],
		"deviceData": {
			"battery": 0,
			"cellId": 0,
			"comProtocolVer": "",
			"dataProtocolVer": "",
			"deviceKey": "",
			"iccid": "",
			"lac": 0,
			"locator": "",
			"mcc": 0,
			"mcuVersion": "",
			"memoryFree": 0,
			"mnc": 0,
			"phoneNum": "",
			"productKey": "",
			"rsrp": 0,
			"rsrq": 0,
			"sdkVersion": "",
			"signalStrength": 0,
			"sim": "",
			"snr": 0,
			"type": "",
			"version": "",
			"voltage": 0
		},
		"deviceLocateInfo": {
			"createTime": "",
			"createTimeTs": 0,
			"deviceKey": "",
			"hdop": "",
			"lat": "",
			"latType": "",
			"lng": "",
			"lngType": "",
			"locateRaw": "",
			"locateStatus": "",
			"locateTime": "",
			"locateTimeTs": 0,
			"locateType": "",
			"productKey": "",
			"satellites": ""
		}
	},
	"extMsg": "",
	"msg": ""
}