CN106899688A - A kind of Internet of Things data exchange method, internet of things equipment and platform of internet of things - Google Patents
A kind of Internet of Things data exchange method, internet of things equipment and platform of internet of things Download PDFInfo
- Publication number
- CN106899688A CN106899688A CN201710153359.6A CN201710153359A CN106899688A CN 106899688 A CN106899688 A CN 106899688A CN 201710153359 A CN201710153359 A CN 201710153359A CN 106899688 A CN106899688 A CN 106899688A
- Authority
- CN
- China
- Prior art keywords
- data
- internet
- unit
- things
- interaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000003993 interaction Effects 0.000 claims abstract description 202
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明提供一种物联网数据交互方法、物联网设备和物联网平台。该物联网数据交互方法包括:向物联网平台注册,并在注册时向物联网平台提交数据描述配置信息;数据描述配置信息包括数据描述单元,数据描述单元与同一类型的数据对应,用于描述同一类型的数据的含义;向物联网平台发送数据交互载荷;数据交互载荷包括数据交互单元,数据交互单元与数据值对应;数据交互单元包括数据变量名和数据值。该物联网数据交互方法不仅能使物联网平台按照上传的数据的含义对后续上传数据进行自行解析理解;而且能实现在向物联网平台上传数据时,只上传包括数据变量名和数据值的数据交互单元,从而降低了向物联网平台上传数据时的数据交互载荷。
The invention provides an Internet of Things data interaction method, an Internet of Things device and an Internet of Things platform. The Internet of Things data interaction method includes: registering with the Internet of Things platform, and submitting data description configuration information to the Internet of Things platform during registration; the data description configuration information includes a data description unit, and the data description unit corresponds to the same type of data and is used to describe The meaning of the same type of data; send the data interaction load to the IoT platform; the data interaction load includes the data interaction unit, and the data interaction unit corresponds to the data value; the data interaction unit includes the data variable name and the data value. The Internet of Things data interaction method can not only enable the Internet of Things platform to analyze and understand the subsequent uploaded data according to the meaning of the uploaded data; but also realize that when uploading data to the Internet of Things platform, only the data interaction including the data variable name and data value is uploaded unit, thereby reducing the data interaction load when uploading data to the IoT platform.
Description
技术领域technical field
本发明涉及通信技术领域,具体地,涉及一种物联网数据交互方法、物联网设备和物联网平台。The present invention relates to the field of communication technologies, and in particular, to an Internet of Things data interaction method, an Internet of Things device, and an Internet of Things platform.
背景技术Background technique
随着物联网的快速发展,物联网设备日益增多,物联网设备的数据价值也越来越大。物联网设备的数据交互成为物联网设备接入的一个重要方面。由于低功耗物联网设备的需求,在物联网设备进行数据交互时,都希望采用的数据交互模型具有很轻的载荷,这样可以节省数据交互时设备消耗的功率。然而在另一方面,又需要利用会消耗数据载荷的标签来保留数据的含义,使得平台可以自行对数据进行理解,挖掘出设备数据的价值。With the rapid development of the Internet of Things, the number of Internet of Things devices is increasing day by day, and the data value of Internet of Things devices is also increasing. Data interaction of IoT devices has become an important aspect of IoT device access. Due to the demand for low-power IoT devices, when IoT devices perform data interaction, it is hoped that the data interaction model adopted has a very light load, which can save the power consumed by the device during data interaction. However, on the other hand, it is necessary to use tags that consume data loads to preserve the meaning of the data, so that the platform can understand the data by itself and dig out the value of device data.
目前采用的数据交互方式主要有两类,一种是基于标签的数据交互方式,这种方式可以自由地定义标签的数据表示方法来进行交互数据的描述,这能让平台根据标签来理解和挖掘设备数据的价值;但这种数据交互方式使设备在数据交互时消耗的功率较大。另一种是基于数据点字段的数据交互方式,这种数据交互方式在数据交互时设备具有很低的载荷,但是数据的含义只有设备开发者才知道,平台不能自行理解。There are two main types of data interaction methods currently used. One is the data interaction method based on tags. In this method, the data representation method of tags can be freely defined to describe the interactive data, which allows the platform to understand and mine based on tags. The value of device data; but this data interaction method makes the device consume more power during data interaction. The other is the data interaction method based on the data point field. This data interaction method has a very low load on the device during data interaction, but only the device developer knows the meaning of the data, and the platform cannot understand it by itself.
因此,如何在数据交互过程中既很好地保留数据含义,以使平台能够自行理解,又降低设备进行数据交互的载荷已成为目前亟待解决的问题。Therefore, how to preserve the meaning of the data in the process of data interaction, so that the platform can understand it by itself, and reduce the load of the device for data interaction has become an urgent problem to be solved.
发明内容Contents of the invention
本发明针对现有技术中存在的上述技术问题,提供一种物联网数据交互方法、物联网设备和物联网平台。该物联网数据交互方法能将向物联网平台上传的数据的含义在注册时提交给物联网平台,从而便于物联网平台能够按照该上传的数据的含义对后续上传数据进行自行解析理解;同时,能实现在向物联网平台上传数据时,可以只上传包括数据变量名和数据值的数据交互单元,从而降低了向物联网平台上传数据时的数据交互载荷。The present invention aims at the above-mentioned technical problems existing in the prior art, and provides an Internet of Things data interaction method, an Internet of Things device, and an Internet of Things platform. The Internet of Things data interaction method can submit the meaning of the data uploaded to the Internet of Things platform to the Internet of Things platform during registration, so that the Internet of Things platform can analyze and understand subsequent uploaded data by itself according to the meaning of the uploaded data; at the same time, It can realize that when uploading data to the Internet of Things platform, only data interaction units including data variable names and data values can be uploaded, thereby reducing the data interaction load when uploading data to the Internet of Things platform.
本发明提供一种物联网数据交互方法,包括:The present invention provides a data interaction method of the Internet of Things, including:
向物联网平台注册,并在注册时向所述物联网平台提交数据描述配置信息;Register with the IoT platform, and submit data description configuration information to the IoT platform when registering;
所述数据描述配置信息包括数据描述单元,所述数据描述单元与同一类型的数据对应,用于描述所述同一类型的数据的含义;The data description configuration information includes a data description unit, the data description unit corresponds to the same type of data, and is used to describe the meaning of the same type of data;
向所述物联网平台发送数据交互载荷;Sending a data interaction load to the Internet of Things platform;
所述数据交互载荷包括数据交互单元,所述数据交互单元与数据值对应;所述数据交互单元包括数据变量名和所述数据值。The data interaction load includes a data interaction unit corresponding to a data value; the data interaction unit includes a data variable name and the data value.
优选地,所述数据描述单元包括数据名称标签、所述数据变量名和数据值类型标签;Preferably, the data description unit includes a data name tag, the data variable name and a data value type tag;
所述数据描述配置信息包括一个或多个所述数据描述单元,每个所述数据描述单元对应一个类型的所述数据;The data description configuration information includes one or more of the data description units, each of the data description units corresponds to a type of the data;
所述数据交互载荷包括一个或多个所述数据交互单元;每个所述数据交互单元对应一个所述数据值。The data interaction payload includes one or more data interaction units; each data interaction unit corresponds to one data value.
本发明还提供一种物联网数据交互方法,包括:The present invention also provides a data interaction method of the Internet of Things, including:
接收物联网设备发送的数据交互载荷,并提取所述数据交互载荷中的数据交互单元;所述数据交互单元与数据值对应,所述数据交互单元包括数据变量名和所述数据值;Receiving the data interaction load sent by the Internet of Things device, and extracting the data interaction unit in the data interaction load; the data interaction unit corresponds to the data value, and the data interaction unit includes a data variable name and the data value;
根据所述物联网设备注册的设备标识找到其注册时提交的数据描述配置信息;所述数据描述配置信息包括数据描述单元,所述数据描述单元与同一类型的数据对应,用于描述所述同一类型的数据的含义;Find the data description configuration information submitted during registration according to the device identifier registered by the IoT device; the data description configuration information includes a data description unit, and the data description unit corresponds to the same type of data and is used to describe the same the meaning of the type of data;
根据提取的所述数据交互单元中的所述数据变量名将相应的所述数据描述单元中的同一参数替换为所述数据值。The same parameter in the corresponding data description unit is replaced with the data value according to the extracted data variable name in the data interaction unit.
优选地,所述数据描述单元包括数据名称标签、所述数据变量名和数据值类型标签;Preferably, the data description unit includes a data name tag, the data variable name and a data value type tag;
所述根据提取的所述数据交互单元中的所述数据变量名将相应的所述数据描述单元中的同一参数替换为所述数据值包括:The replacing the same parameter in the corresponding data description unit with the data value according to the extracted data variable name in the data interaction unit includes:
根据提取的所述数据交互单元中的所述数据变量名找到所述数据描述单元中的对应所述数据变量名;Find the corresponding data variable name in the data description unit according to the extracted data variable name in the data interaction unit;
根据所述数据描述单元中的所述数据变量名对应的所述数据描述单元中的所述数据值类型标签,从所述数据交互单元中提取所述数据值;Extracting the data value from the data interaction unit according to the data value type label in the data description unit corresponding to the data variable name in the data description unit;
将所述数据描述单元中的所述数据变量名替换为所述数据交互单元中的所述数据值,形成包括所述数据名称标签、所述数据值和所述数据值类型标签的所述物联网设备上传数据;replacing the data variable name in the data description unit with the data value in the data interaction unit to form the object including the data name label, the data value and the data value type label Internet-connected devices upload data;
所述物联网数据交互方法还包括存储所述物联网设备上传数据。The IoT data interaction method further includes storing the data uploaded by the IoT device.
优选地,所述数据描述配置信息包括一个或多个所述数据描述单元,每个所述数据描述单元对应一个类型的所述数据;Preferably, the data description configuration information includes one or more of the data description units, each of the data description units corresponds to a type of the data;
所述数据交互载荷包括一个或多个所述数据交互单元;每个所述数据交互单元对应一个所述数据值。The data interaction payload includes one or more data interaction units; each data interaction unit corresponds to one data value.
本发明还提供一种物联网设备,包括:The present invention also provides an Internet of Things device, including:
注册提交模块,用于向物联网平台注册,并在注册时向所述物联网平台提交数据描述配置信息;The registration submission module is used to register with the Internet of Things platform, and submit data description configuration information to the Internet of Things platform during registration;
所述数据描述配置信息包括数据描述单元,所述数据描述单元与同一类型的数据对应,用于描述所述同一类型的数据的含义;The data description configuration information includes a data description unit, the data description unit corresponds to the same type of data, and is used to describe the meaning of the same type of data;
发送模块,用于向所述物联网平台发送数据交互载荷;A sending module, configured to send a data interaction load to the Internet of Things platform;
所述数据交互载荷包括数据交互单元,所述数据交互单元与数据值对应;所述数据交互单元包括数据变量名和所述数据值。The data interaction load includes a data interaction unit corresponding to a data value; the data interaction unit includes a data variable name and the data value.
优选地,所述数据描述单元包括数据名称标签、所述数据变量名和数据值类型标签;Preferably, the data description unit includes a data name tag, the data variable name and a data value type tag;
所述数据描述配置信息包括一个或多个所述数据描述单元,每个所述数据描述单元对应一个类型的所述数据;The data description configuration information includes one or more of the data description units, each of the data description units corresponds to a type of the data;
所述数据交互载荷包括一个或多个所述数据交互单元;每个所述数据交互单元对应一个所述数据值。The data interaction payload includes one or more data interaction units; each data interaction unit corresponds to one data value.
本发明还提供一种物联网平台,包括:The present invention also provides an Internet of Things platform, comprising:
接收提取模块,用于接收物联网设备发送的数据交互载荷,并提取所述数据交互载荷中的数据交互单元;所述数据交互单元与数据值对应,所述数据交互单元包括数据变量名和所述数据值;The receiving and extracting module is used to receive the data interaction load sent by the Internet of Things device, and extract the data interaction unit in the data interaction load; the data interaction unit corresponds to the data value, and the data interaction unit includes the data variable name and the data value;
查找模块,用于根据所述物联网设备注册的设备标识找到其注册时提交的数据描述配置信息;所述数据描述配置信息包括数据描述单元,所述数据描述单元与同一类型的数据对应,用于描述所述同一类型的数据的含义;The search module is used to find the data description configuration information submitted during registration according to the device identification registered by the Internet of Things device; the data description configuration information includes a data description unit, and the data description unit corresponds to the same type of data. to describe the meaning of data of the same type;
替换模块,用于根据提取的所述数据交互单元中的所述数据变量名将相应的所述数据描述单元中的同一参数替换为所述数据值。A replacement module, configured to replace the same parameter in the corresponding data description unit with the data value according to the extracted data variable name in the data interaction unit.
优选地,所述数据描述单元包括数据名称标签、所述数据变量名和数据值类型标签;Preferably, the data description unit includes a data name tag, the data variable name and a data value type tag;
所述替换模块包括:第一查询单元,用于根据提取的所述数据交互单元中的所述数据变量名找到所述数据描述单元中的对应所述数据变量名;The replacement module includes: a first query unit, configured to find the corresponding data variable name in the data description unit according to the extracted data variable name in the data interaction unit;
提取单元,用于根据所述数据描述单元中的所述数据变量名对应的所述数据描述单元中的所述数据值类型标签,从所述数据交互单元中提取所述数据值;An extracting unit, configured to extract the data value from the data interaction unit according to the data value type label in the data description unit corresponding to the data variable name in the data description unit;
替代单元,用于将所述数据描述单元中的所述数据变量名替换为所述数据交互单元中的所述数据值,形成包括所述数据名称标签、所述数据值和所述数据值类型标签的所述物联网设备上传数据;a replacement unit, configured to replace the data variable name in the data description unit with the data value in the data interaction unit to form a label that includes the data name, the data value and the data value type The IoT device of the tag uploads data;
所述物联网平台还包括存储模块,用于存储所述物联网设备上传数据。The IoT platform also includes a storage module for storing the data uploaded by the IoT device.
优选地,所述数据描述配置信息包括一个或多个所述数据描述单元,每个所述数据描述单元对应一个类型的所述数据;Preferably, the data description configuration information includes one or more of the data description units, each of the data description units corresponds to a type of the data;
所述数据交互载荷包括一个或多个所述数据交互单元;每个所述数据交互单元对应一个所述数据值。The data interaction payload includes one or more data interaction units; each data interaction unit corresponds to one data value.
本发明还提供一种物联网数据交互系统,包括上述物联网设备和上述物联网平台。The present invention also provides an Internet of Things data interaction system, including the above-mentioned Internet of Things device and the above-mentioned Internet of Things platform.
本发明的有益效果:本发明所提供的物联网数据交互方法,能将向物联网平台上传的数据的含义在注册时提交给物联网平台,从而便于物联网平台能够按照该上传的数据的含义对后续上传数据进行自行解析理解;同时,能实现在向物联网平台上传数据时,可以只上传包括数据变量名和数据值的数据交互单元,相比于现有技术中上传数据及其含义同时进行上传的情况(如基于标签的数据交互方式),降低了向物联网平台上传数据时的数据交互载荷;从而使该物联网数据交互方法在数据交互过程中不仅能使物联网平台自行理解上传数据的含义,而且还降低了上传数据时的数据交互载荷。Beneficial effects of the present invention: the Internet of Things data interaction method provided by the present invention can submit the meaning of the data uploaded to the Internet of Things platform to the Internet of Things platform during registration, so that the Internet of Things platform can follow the meaning of the uploaded data Self-analyze and understand the subsequent uploaded data; at the same time, when uploading data to the Internet of Things platform, only the data interaction unit including the data variable name and data value can be uploaded, compared with the prior art of uploading data and its meaning at the same time The situation of uploading (such as the data interaction method based on tags) reduces the data interaction load when uploading data to the Internet of Things platform; so that the Internet of Things data interaction method can not only make the Internet of Things platform understand the uploaded data by itself during the data interaction process meaning, and also reduces the data interaction load when uploading data.
本发明所提供的物联网设备,通过设置注册提交模块,能将向物联网平台上传的数据的含义在注册时提交给物联网平台,从而便于物联网平台能够按照该上传的数据的含义对后续上传数据进行自行解析理解;同时,通过设置发送模块,能实现在向物联网平台上传数据时,可以只上传包括数据变量名和数据值的数据交互单元,相比于现有技术中上传数据及其含义同时进行上传的情况(如基于标签的数据交互方式),降低了向物联网平台上传数据时的数据交互载荷;从而使该物联网设备在数据交互过程中不仅能使物联网平台自行理解上传数据的含义,而且还降低了其上传数据时的数据交互载荷。The Internet of Things device provided by the present invention can submit the meaning of the data uploaded to the Internet of Things platform to the Internet of Things platform at the time of registration by setting the registration submission module, so that the Internet of Things platform can follow-up according to the meaning of the uploaded data. Upload data for self-analysis and understanding; at the same time, by setting the sending module, when uploading data to the Internet of Things platform, only the data interaction unit including the data variable name and data value can be uploaded. It means that the situation of uploading at the same time (such as data interaction based on tags) reduces the data interaction load when uploading data to the IoT platform; so that the IoT device can not only make the IoT platform understand the uploaded data during the data interaction process The meaning of the data, but also reduces the data interaction load when uploading data.
本发明所提供的物联网平台,通过设置接收提取模块、查找模块和替换模块,使物联网平台实现了按照物联网设备上传的数据的含义对物联网设备后续上传的数据进行自行解析理解,从而使物联网平台能够对上传数据的含义进行自行理解,同时还降低了物联网设备上传数据的载荷。The Internet of Things platform provided by the present invention enables the Internet of Things platform to analyze and understand the subsequent data uploaded by the Internet of Things devices according to the meaning of the data uploaded by the Internet of Things devices by setting the receiving and extracting module, the search module and the replacement module, thereby It enables the Internet of Things platform to understand the meaning of the uploaded data by itself, and also reduces the load of the data uploaded by the Internet of Things devices.
附图说明Description of drawings
图1为本发明实施例1中物联网数据交互方法的流程图;Fig. 1 is the flow chart of the Internet of Things data interaction method in Embodiment 1 of the present invention;
图2为本发明实施例2中物联网设备的原理框图;FIG. 2 is a functional block diagram of an Internet of Things device in Embodiment 2 of the present invention;
图3为本发明实施例3中物联网数据交互方法的流程图;Fig. 3 is a flow chart of the Internet of Things data interaction method in Embodiment 3 of the present invention;
图4为本发明实施例4中物联网平台的原理框图;Fig. 4 is a functional block diagram of the Internet of Things platform in Embodiment 4 of the present invention;
图5为本发明实施例5中物联网数据交互系统的原理框图。FIG. 5 is a functional block diagram of an Internet of Things data interaction system in Embodiment 5 of the present invention.
其中的附图标记说明:The reference signs therein explain:
1.注册提交模块;2.发送模块;3.接收提取模块;4.查找模块;5.替换模块;51.第一查询单元;52.提取单元;53.替代单元;6.存储模块;7.物联网设备;8.物联网平台。1. Registration submission module; 2. Sending module; 3. Receiving and extracting module; 4. Finding module; 5. Replacement module; 51. First query unit; 52. Extracting unit; .Internet of things equipment; 8. Internet of things platform.
具体实施方式detailed description
为使本领域的技术人员更好地理解本发明的技术方案,下面结合附图和具体实施方式对本发明所提供的一种物联网数据交互方法、物联网设备和物联网平台作进一步详细描述。In order for those skilled in the art to better understand the technical solution of the present invention, the following describes in detail an Internet of Things data interaction method, an Internet of Things device, and an Internet of Things platform provided by the present invention with reference to the accompanying drawings and specific embodiments.
实施例1:Example 1:
本实施例提供一种物联网数据交互方法,如图1所示,包括:This embodiment provides an Internet of Things data interaction method, as shown in Figure 1, including:
步骤S101:向物联网平台注册,并在注册时向物联网平台提交数据描述配置信息。Step S101: Register with the Internet of Things platform, and submit data description configuration information to the Internet of Things platform during registration.
其中,数据描述配置信息包括数据描述单元,数据描述单元与同一类型的数据对应,用于描述同一类型的数据的含义。即数据描述单元用于描述向物联网平台上传的数据的含义。Wherein, the data description configuration information includes a data description unit, and the data description unit corresponds to the same type of data, and is used to describe the meaning of the same type of data. That is, the data description unit is used to describe the meaning of the data uploaded to the IoT platform.
该步骤中,数据描述单元包括数据名称标签、数据变量名和数据值类型标签。In this step, the data description unit includes a data name label, a data variable name and a data value type label.
另外,数据描述配置信息包括一个或多个数据描述单元,每个数据描述单元对应一个类型的数据。In addition, the data description configuration information includes one or more data description units, and each data description unit corresponds to a type of data.
步骤S102:向物联网平台发送数据交互载荷。Step S102: Send the data interaction payload to the IoT platform.
其中,数据交互载荷包括数据交互单元,数据交互单元与数据值对应;数据交互单元包括数据变量名和数据值。Wherein, the data interaction load includes a data interaction unit, and the data interaction unit corresponds to a data value; the data interaction unit includes a data variable name and a data value.
该步骤中,数据交互载荷包括一个或多个数据交互单元;每个数据交互单元对应一个数据值。In this step, the data interaction load includes one or more data interaction units; each data interaction unit corresponds to a data value.
例如:物联网设备家庭传感器D1向物联网平台P1发起设备注册,提交如下数据描述配置信息F1到物联网平台P1,即步骤S101:For example: the IoT device home sensor D1 initiates device registration to the IoT platform P1, and submits the following data description configuration information F1 to the IoT platform P1, that is, step S101:
{{
"id":"HomeSensor__123","id": "HomeSensor__123",
"type":"sensor","type": "sensor",
"temperature":{"temperature": {
"value":a"value": a
"type":"Number""type": "Number"
},},
"humidity":{"humidity": {
"value":b"value":b
"type":"Number""type": "Number"
},},
"PM 2.5":{"PM 2.5": {
"value":c"value":c
"type":"Number""type": "Number"
},},
"Time":{"Time":{
"value":d,"value": d,
"type":"DateTime""type": "DateTime"
},},
}}
}}
上述数据描述配置信息包括四个数据描述单元:即温度(temperature);湿度(humidity);PM 2.5和时间(Time)。The above data description configuration information includes four data description units: temperature (temperature); humidity (humidity); PM 2.5 and time (Time).
物联网设备D1在2016年12月12日10点51分10秒采集到如下家庭温度、湿度和PM2.5的数据:温度23度,湿度54,PM2.5为100,需要跟物联网平台P1进行交互。根据温度、湿度、PM2.5和时间的变量名,形成以下四个数据交互单元a 23;b 54;c 100;d20161212105110;并由四个数据交互单元构成数据交互载荷:[a 23,b 54,c 100,d20161212105110];然后将该数据交互载荷发送给物联网平台P1,即步骤S102。The IoT device D1 collected the following household temperature, humidity, and PM2.5 data at 10:51:10 on December 12, 2016: the temperature was 23 degrees, the humidity was 54, and the PM2.5 was 100. It needs to communicate with the IoT platform P1 to interact. According to the variable names of temperature, humidity, PM2.5 and time, the following four data interaction units a 23; b 54; c 100; d20161212105110 are formed; and the data interaction load is composed of four data interaction units: [a 23,b 54 ,c 100,d20161212105110]; then send the data interaction payload to the IoT platform P1, that is, step S102.
实施例1的有益效果:实施例1中所提供的物联网数据交互方法,通过步骤S101能将向物联网平台上传的数据的含义在注册时提交给物联网平台,从而便于物联网平台能够按照该上传的数据的含义对后续上传数据进行自行解析理解;同时,通过步骤S102能实现在向物联网平台上传数据时,可以只上传包括数据变量名和数据值的数据交互单元,相比于现有技术中上传数据及其含义同时进行上传的情况(如基于标签的数据交互方式),降低了向物联网平台上传数据时的数据交互载荷;从而使该物联网数据交互方法在数据交互过程中不仅能使物联网平台自行理解上传数据的含义,而且还降低了上传数据时的数据交互载荷。Beneficial effects of Embodiment 1: The Internet of Things data interaction method provided in Embodiment 1 can submit the meaning of the data uploaded to the Internet of Things platform to the Internet of Things platform during registration through step S101, so that the Internet of Things platform can follow the The meaning of the uploaded data is analyzed and understood by the subsequent uploaded data; at the same time, when uploading data to the Internet of Things platform through step S102, only the data interaction unit including the data variable name and data value can be uploaded, compared with the existing The situation of uploading data and its meaning in the technology at the same time (such as the data interaction method based on tags) reduces the data interaction load when uploading data to the Internet of Things platform; thus making the Internet of Things data interaction method not only It enables the Internet of Things platform to understand the meaning of uploaded data by itself, and also reduces the data interaction load when uploading data.
实施例2:Example 2:
基于实施例1中的物联网数据交互方法,本实施例提供一种物联网设备,如图2所示,包括:注册提交模块1,用于向物联网平台注册,并在注册时向物联网平台提交数据描述配置信息。其中,数据描述配置信息包括数据描述单元,数据描述单元与同一类型的数据对应,用于描述同一类型的数据的含义。发送模块2,用于向物联网平台发送数据交互载荷。其中,数据交互载荷包括数据交互单元,数据交互单元与数据值对应;数据交互单元包括数据变量名和数据值。Based on the Internet of Things data interaction method in Embodiment 1, this embodiment provides an Internet of Things device, as shown in FIG. The platform submits data describing the configuration information. Wherein, the data description configuration information includes a data description unit, and the data description unit corresponds to the same type of data, and is used to describe the meaning of the same type of data. The sending module 2 is used to send the data interaction payload to the IoT platform. Wherein, the data interaction load includes a data interaction unit, and the data interaction unit corresponds to a data value; the data interaction unit includes a data variable name and a data value.
本实施例中,数据描述单元包括数据名称标签、数据变量名和数据值类型标签。数据描述配置信息包括一个或多个数据描述单元,每个数据描述单元对应一个类型的数据。数据交互载荷包括一个或多个数据交互单元,每个数据交互单元对应一个数据值。In this embodiment, the data description unit includes a data name tag, a data variable name, and a data value type tag. The data description configuration information includes one or more data description units, and each data description unit corresponds to a type of data. The data interaction payload includes one or more data interaction units, and each data interaction unit corresponds to a data value.
实施例2的有益效果:实施例2中所提供的物联网设备,通过设置注册提交模块,能将向物联网平台上传的数据的含义在注册时提交给物联网平台,从而便于物联网平台能够按照该上传的数据的含义对后续上传数据进行自行解析理解;同时,通过设置发送模块,能实现在向物联网平台上传数据时,可以只上传包括数据变量名和数据值的数据交互单元,相比于现有技术中上传数据及其含义同时进行上传的情况(如基于标签的数据交互方式),降低了向物联网平台上传数据时的数据交互载荷;从而使该物联网设备在数据交互过程中不仅能使物联网平台自行理解上传数据的含义,而且还降低了其上传数据时的数据交互载荷。Beneficial effects of embodiment 2: the IoT device provided in embodiment 2, by setting the registration submission module, can submit the meaning of the data uploaded to the IoT platform to the IoT platform during registration, so that the IoT platform can According to the meaning of the uploaded data, the subsequent uploaded data can be analyzed and understood by itself; at the same time, by setting the sending module, when uploading data to the IoT platform, only the data interaction unit including the data variable name and data value can be uploaded. In the case of uploading data and its meaning at the same time in the prior art (such as a tag-based data interaction method), the data interaction load when uploading data to the Internet of Things platform is reduced; Not only can the Internet of Things platform understand the meaning of uploaded data by itself, but also reduce the data interaction load when it uploads data.
实施例3:Example 3:
本实施例提供一种物联网数据交互方法,如图3所示,包括:This embodiment provides an Internet of Things data interaction method, as shown in Figure 3, including:
步骤S201:接收物联网设备发送的数据交互载荷,并提取数据交互载荷中的数据交互单元。Step S201: Receive the data interaction payload sent by the IoT device, and extract the data interaction unit in the data interaction payload.
其中,数据交互单元与数据值对应,数据交互单元包括数据变量名和数据值。Wherein, the data interaction unit corresponds to the data value, and the data interaction unit includes a data variable name and a data value.
该步骤中,数据交互载荷包括一个或多个数据交互单元;每个数据交互单元对应一个数据值。In this step, the data interaction load includes one or more data interaction units; each data interaction unit corresponds to a data value.
步骤S202:根据物联网设备注册的设备标识找到其注册时提交的数据描述配置信息。Step S202: According to the device identifier registered by the IoT device, find the data description configuration information submitted during its registration.
其中,数据描述配置信息包括数据描述单元,数据描述单元与同一类型的数据对应,用于描述同一类型的数据的含义。数据描述单元包括数据名称标签、数据变量名和数据值类型标签。Wherein, the data description configuration information includes a data description unit, and the data description unit corresponds to the same type of data, and is used to describe the meaning of the same type of data. The data description unit includes data name label, data variable name and data value type label.
该步骤中,数据描述配置信息包括一个或多个数据描述单元,每个数据描述单元对应一个类型的数据。In this step, the data description configuration information includes one or more data description units, and each data description unit corresponds to a type of data.
步骤S203:根据提取的数据交互单元中的数据变量名将相应的数据描述单元中的同一参数替换为数据值。Step S203: Replace the same parameter in the corresponding data description unit with the data value according to the extracted data variable name in the data interaction unit.
该步骤具体包括:步骤S2031:根据提取的数据交互单元中的数据变量名找到数据描述单元中的对应数据变量名。This step specifically includes: Step S2031: Find the corresponding data variable name in the data description unit according to the extracted data variable name in the data interaction unit.
步骤S2032:根据数据描述单元中的数据变量名对应的数据描述单元中的数据值类型标签,从数据交互单元中提取数据值。Step S2032: According to the data value type label in the data description unit corresponding to the data variable name in the data description unit, extract the data value from the data interaction unit.
该步骤中,只有根据数据变量名对应的数据值类型标签,才能从数据交互单元中提取出相应数据类型的数据值。In this step, the data value of the corresponding data type can be extracted from the data interaction unit only according to the data value type label corresponding to the data variable name.
步骤S2033:将数据描述单元中的数据变量名替换为数据交互单元中的数据值,形成包括数据名称标签、数据值和数据值类型标签的物联网设备上传数据。Step S2033: Replace the data variable name in the data description unit with the data value in the data interaction unit to form the IoT device upload data including the data name tag, data value and data value type tag.
通过步骤S2031~步骤S2033,物联网平台实现了按照物联网设备上传的数据的含义对物联网设备后续上传的数据进行自行解析理解的过程,从而使物联网平台能够对上传数据的含义进行自行理解,同时还降低了物联网设备上传数据的载荷。Through steps S2031 to S2033, the Internet of Things platform realizes the process of self-analyzing and understanding the subsequent data uploaded by the Internet of Things device according to the meaning of the data uploaded by the Internet of Things device, so that the Internet of Things platform can understand the meaning of the uploaded data by itself , while also reducing the load of data uploaded by IoT devices.
本实施例中,物联网数据交互方法还包括:步骤S204:存储物联网设备上传数据。In this embodiment, the IoT data interaction method further includes: Step S204: storing data uploaded by the IoT device.
在实施例1中所举实例的基础上,本实施例中的物联网数据交互方法步骤举例如下:On the basis of the examples cited in Embodiment 1, the steps of the Internet of Things data interaction method in this embodiment are exemplified as follows:
物联网平台P1收到数据交互载荷后,根据物联网设备D1的标识,找到数据描述配置信息F1。从数据交互载荷中提取出数据交互单元:a 23;b 54;c 100;d 20161212105110;根据变量名a找到数据描述配置信息F1中与变量名匹配的数据描述单元;如:After receiving the data interaction load, the IoT platform P1 finds the data description configuration information F1 according to the identifier of the IoT device D1. Extract the data interaction unit from the data interaction load: a 23; b 54; c 100; d 20161212105110; find the data description unit matching the variable name in the data description configuration information F1 according to the variable name a; for example:
"temperature":{"temperature": {
"value":a"value": a
"type":"Number""type": "Number"
},},
并根据数据值类型标签“Number”;将数据值23替换变量名a后,形成上传温度数据:And according to the data value type label "Number"; after the data value 23 is replaced by the variable name a, the uploaded temperature data is formed:
"temperature":{"temperature": {
"value":23"value":23
"type":"Number""type": "Number"
},},
类似的根据b 54得到:Similarly from b 54:
"humidity":{"humidity": {
"value":54"value":54
"type":"Number""type": "Number"
},},
根据c 100得到:From c 100 we get:
"PM 2.5":{"PM 2.5": {
"value":100"value": 100
"type":"Number""type": "Number"
},},
根据d 20161212105110得到:According to d 20161212105110:
"Time":{"Time":{
"value":"2016-12-12T10:51:10”,"value": "2016-12-12T10:51:10",
"type":"DateTime""type": "DateTime"
},},
最后形成此次物联网设备D1的完整上传数据,并存入物联网平台数据库中,该步骤具体如下:Finally, the complete upload data of the IoT device D1 is formed and stored in the database of the IoT platform. The steps are as follows:
{{
"id":"HomeSensor__123","id": "HomeSensor__123",
"type":"sensor","type": "sensor",
"temperature":{"temperature": {
"value":23"value":23
"type":"Number""type": "Number"
},},
"humidity":{"humidity": {
"value":54"value":54
"type":"Number""type": "Number"
},},
"PM 2.5":{"PM 2.5": {
"value":100"value": 100
"type":"Number""type": "Number"
},},
"Time":{"Time":{
"value":"2016-12-12T10:51:10”,"value": "2016-12-12T10:51:10",
"type":"DateTime""type": "DateTime"
},},
}}
}}
实施例3的有益效果:实施例3中的数据交互方法,使物联网平台实现了按照物联网设备上传的数据的含义对物联网设备后续上传的数据进行自行解析理解,从而使物联网平台能够对上传数据的含义进行自行理解,同时还降低了物联网设备上传数据的载荷。Beneficial effects of Embodiment 3: The data interaction method in Embodiment 3 enables the Internet of Things platform to analyze and understand the subsequent data uploaded by the Internet of Things devices according to the meaning of the data uploaded by the Internet of Things devices, so that the Internet of Things platform can Understand the meaning of uploaded data by yourself, and also reduce the load of data uploaded by IoT devices.
实施例4:Example 4:
基于实施例3中的物联网数据交互方法,本实施例提供一种物联网平台,如图4所示,包括:接收提取模块3,用于接收物联网设备发送的数据交互载荷,并提取数据交互载荷中的数据交互单元。其中,数据交互单元与数据值对应,数据交互单元包括数据变量名和数据值。查找模块4,用于根据物联网设备注册的设备标识找到其注册时提交的数据描述配置信息。其中,数据描述配置信息包括数据描述单元,数据描述单元与同一类型的数据对应,用于描述同一类型的数据的含义。替换模块5,用于根据提取的数据交互单元中的数据变量名将相应的数据描述单元中的同一参数替换为数据值。Based on the Internet of Things data interaction method in Embodiment 3, this embodiment provides an Internet of Things platform, as shown in Figure 4, including: a receiving and extracting module 3, which is used to receive the data interaction load sent by the Internet of Things device and extract the data The data interaction unit in the interaction payload. Wherein, the data interaction unit corresponds to the data value, and the data interaction unit includes a data variable name and a data value. The search module 4 is used to find the data description configuration information submitted during the registration of the IoT device according to the device identifier registered by the IoT device. Wherein, the data description configuration information includes a data description unit, and the data description unit corresponds to the same type of data, and is used to describe the meaning of the same type of data. The replacement module 5 is used to replace the same parameter in the corresponding data description unit with the data value according to the extracted data variable name in the data interaction unit.
其中,数据描述配置信息包括一个或多个数据描述单元,每个数据描述单元对应一个类型的数据。数据交互载荷包括一个或多个数据交互单元;每个数据交互单元对应一个数据值。Wherein, the data description configuration information includes one or more data description units, and each data description unit corresponds to a type of data. The data interaction payload includes one or more data interaction units; each data interaction unit corresponds to a data value.
本实施例中,数据描述单元包括数据名称标签、数据变量名和数据值类型标签。替换模块5包括:第一查询单元51,用于根据提取的数据交互单元中的数据变量名找到数据描述单元中的对应数据变量名。提取单元52,用于根据数据描述单元中的数据变量名对应的数据描述单元中的数据值类型标签,从数据交互单元中提取数据值。替代单元53,用于将数据描述单元中的数据变量名替换为数据交互单元中的数据值,形成包括数据名称标签、数据值和数据值类型标签的物联网设备上传数据。In this embodiment, the data description unit includes a data name tag, a data variable name, and a data value type tag. The replacement module 5 includes: a first query unit 51, configured to find the corresponding data variable name in the data description unit according to the extracted data variable name in the data interaction unit. The extraction unit 52 is configured to extract the data value from the data interaction unit according to the data value type label in the data description unit corresponding to the data variable name in the data description unit. The replacement unit 53 is used to replace the data variable name in the data description unit with the data value in the data interaction unit to form the IoT device upload data including data name tags, data values and data value type tags.
通过设置第一查询单元51、提取单元52和替代单元53,物联网平台实现了按照物联网设备上传的数据的含义对物联网设备后续上传的数据进行自行解析理解的过程,从而使物联网平台能够对上传数据的含义进行自行理解,同时还降低了物联网设备上传数据的载荷。By setting the first query unit 51, the extraction unit 52 and the replacement unit 53, the Internet of Things platform realizes the process of self-parsing and understanding the subsequent data uploaded by the Internet of Things device according to the meaning of the data uploaded by the Internet of Things device, so that the Internet of Things platform It can understand the meaning of uploaded data by itself, and at the same time, it also reduces the load of data uploaded by IoT devices.
本实施例中,物联网平台还包括存储模块6,用于存储物联网设备上传数据。In this embodiment, the IoT platform further includes a storage module 6 for storing data uploaded by IoT devices.
实施例4的有益效果:实施例4中所提供的物联网平台,通过设置接收提取模块、查找模块和替换模块,使物联网平台实现了按照物联网设备上传的数据的含义对物联网设备后续上传的数据进行自行解析理解,从而使物联网平台能够对上传数据的含义进行自行理解,同时还降低了物联网设备上传数据的载荷。Beneficial effects of embodiment 4: the Internet of Things platform provided in Embodiment 4, by setting the receiving and extracting module, the search module and the replacement module, the Internet of Things platform realizes follow-up to the Internet of Things device according to the meaning of the data uploaded by the Internet of Things device The uploaded data is analyzed and understood by itself, so that the Internet of Things platform can understand the meaning of the uploaded data by itself, and it also reduces the load of the uploaded data of the Internet of Things devices.
实施例5:Example 5:
本实施例提供一种物联网数据交互系统,如图5所示,包括实施例2中的物联网设备7和实施例4中的物联网平台8。This embodiment provides an Internet of Things data interaction system, as shown in FIG. 5 , including the Internet of Things device 7 in Embodiment 2 and the Internet of Things platform 8 in Embodiment 4.
该物联网数据交互系统,通过采用实施例2中的物联网设备和实施例4中的物联网平台,不仅能使物联网平台按照上传的数据的含义对后续上传数据进行自行解析理解;而且能实现在向物联网平台上传数据时,只上传包括数据变量名和数据值的数据交互单元,从而降低了向物联网平台上传数据时的数据交互载荷。The Internet of Things data interaction system, by adopting the Internet of Things device in Embodiment 2 and the Internet of Things platform in Embodiment 4, not only enables the Internet of Things platform to analyze and understand subsequent uploaded data according to the meaning of the uploaded data; When uploading data to the Internet of Things platform, only data interaction units including data variable names and data values are uploaded, thereby reducing the data interaction load when uploading data to the Internet of Things platform.
可以理解的是,以上实施方式仅仅是为了说明本发明的原理而采用的示例性实施方式,然而本发明并不局限于此。对于本领域内的普通技术人员而言,在不脱离本发明的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本发明的保护范围。It can be understood that, the above embodiments are only exemplary embodiments adopted for illustrating the principle of the present invention, but the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also regarded as the protection scope of the present invention.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710153359.6A CN106899688A (en) | 2017-03-15 | 2017-03-15 | A kind of Internet of Things data exchange method, internet of things equipment and platform of internet of things |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710153359.6A CN106899688A (en) | 2017-03-15 | 2017-03-15 | A kind of Internet of Things data exchange method, internet of things equipment and platform of internet of things |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106899688A true CN106899688A (en) | 2017-06-27 |
Family
ID=59192249
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710153359.6A Pending CN106899688A (en) | 2017-03-15 | 2017-03-15 | A kind of Internet of Things data exchange method, internet of things equipment and platform of internet of things |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106899688A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107147754A (en) * | 2017-07-13 | 2017-09-08 | 冯贵良 | A kind of coding method of Internet of Things mark and system |
| CN107749806A (en) * | 2017-10-31 | 2018-03-02 | 普天东方通信集团有限公司 | Equipment cut-in method, device and its cloud platform used of a kind of cloud platform |
| CN113676555A (en) * | 2021-09-24 | 2021-11-19 | 迈迪信息技术有限公司 | Compatible platform and method for multilevel code pool |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103067475A (en) * | 2012-12-21 | 2013-04-24 | 北京邮电大学 | Data transmission method and web of things system |
| CN104092659A (en) * | 2014-06-03 | 2014-10-08 | 珠海格力电器股份有限公司 | General protocol data analysis method |
| CN104967595A (en) * | 2014-10-31 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for registering devices on Internet of things platform |
| CN105187233A (en) * | 2015-08-05 | 2015-12-23 | 广东长天思源环保科技股份有限公司 | System for reporting terminal data of IOT (Internet of Things) and working method thereof |
| CN105337850A (en) * | 2014-08-11 | 2016-02-17 | 无锡市嘉邦电力管道厂 | Internet of Things data processing method and internet of Things gateway |
| WO2016111916A1 (en) * | 2015-01-06 | 2016-07-14 | Afero, Inc. | System and method for implementing internet of things (iot) remote control applications |
| CN106230957A (en) * | 2016-08-09 | 2016-12-14 | 大连理工大学 | A kind of platform of internet of things based on stm32108w |
-
2017
- 2017-03-15 CN CN201710153359.6A patent/CN106899688A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103067475A (en) * | 2012-12-21 | 2013-04-24 | 北京邮电大学 | Data transmission method and web of things system |
| CN104092659A (en) * | 2014-06-03 | 2014-10-08 | 珠海格力电器股份有限公司 | General protocol data analysis method |
| CN105337850A (en) * | 2014-08-11 | 2016-02-17 | 无锡市嘉邦电力管道厂 | Internet of Things data processing method and internet of Things gateway |
| CN104967595A (en) * | 2014-10-31 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for registering devices on Internet of things platform |
| WO2016111916A1 (en) * | 2015-01-06 | 2016-07-14 | Afero, Inc. | System and method for implementing internet of things (iot) remote control applications |
| CN105187233A (en) * | 2015-08-05 | 2015-12-23 | 广东长天思源环保科技股份有限公司 | System for reporting terminal data of IOT (Internet of Things) and working method thereof |
| CN106230957A (en) * | 2016-08-09 | 2016-12-14 | 大连理工大学 | A kind of platform of internet of things based on stm32108w |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107147754A (en) * | 2017-07-13 | 2017-09-08 | 冯贵良 | A kind of coding method of Internet of Things mark and system |
| CN107147754B (en) * | 2017-07-13 | 2018-06-29 | 中联惠众信息技术(北京)有限公司 | A kind of coding method of Internet of Things mark and system |
| CN107749806A (en) * | 2017-10-31 | 2018-03-02 | 普天东方通信集团有限公司 | Equipment cut-in method, device and its cloud platform used of a kind of cloud platform |
| CN113676555A (en) * | 2021-09-24 | 2021-11-19 | 迈迪信息技术有限公司 | Compatible platform and method for multilevel code pool |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11108863B2 (en) | Tag operating system | |
| US20200364525A1 (en) | Rf tag operating system with iot connector core | |
| CN103402194B (en) | A kind of method recommending software when software upgrading and realize the system of the method | |
| US10999357B1 (en) | Data transmission system and data transmission method | |
| CN106899688A (en) | A kind of Internet of Things data exchange method, internet of things equipment and platform of internet of things | |
| CN112364102A (en) | Block chain-based big data transaction method, device, medium and equipment | |
| CN103996014A (en) | Operation and maintenance method and system for cables in comprehensive wiring process | |
| CN109495492A (en) | Communication system for intelligent water utilities industry | |
| CN115129753B (en) | Data kinship analysis method, device, electronic device and storage medium | |
| CN115481104A (en) | Data query method and device, electronic equipment and storage medium | |
| CN202177927U (en) | Material uniformly-coding checking management system | |
| CN107749806A (en) | Equipment cut-in method, device and its cloud platform used of a kind of cloud platform | |
| CN115033605A (en) | Data query method and device, electronic equipment and storage medium | |
| CN105573774A (en) | Application parameter managing and configuring method | |
| CN105549978A (en) | A configuration method for solving drop-down list parameters of web foreground page | |
| CN111325012B (en) | Word report generation method and system | |
| CN106685729A (en) | Method and system for service configuration management | |
| CN116821532A (en) | Template-based WEB page element positioning method, device, equipment and storage medium | |
| CN105357267A (en) | Method, device and system for obtaining server information | |
| CN111581187B (en) | Data management method, device, computer equipment and storage medium of smart park | |
| CN114461531A (en) | Platform adaptability testing method, device, equipment and storage medium of test case | |
| CN112685115A (en) | International cue language generating method, system, computer equipment and storage medium | |
| CN112559919A (en) | Checking method and device for online document uploading, electronic equipment and storage medium | |
| CN105191419B (en) | Enables devices to discover services via a network controller or group owner | |
| CN114003661B (en) | Offline data entry method, device, electronic device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170627 |
|
| RJ01 | Rejection of invention patent application after publication |