CN111079383A - Data interaction method, device and system for cloud platform and equipment of Internet of things - Google Patents

Data interaction method, device and system for cloud platform and equipment of Internet of things Download PDF

Info

Publication number
CN111079383A
CN111079383A CN201811224013.1A CN201811224013A CN111079383A CN 111079383 A CN111079383 A CN 111079383A CN 201811224013 A CN201811224013 A CN 201811224013A CN 111079383 A CN111079383 A CN 111079383A
Authority
CN
China
Prior art keywords
data
equipment
cloud platform
format
intelligent
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
Application number
CN201811224013.1A
Other languages
Chinese (zh)
Inventor
郭海滔
孔德亮
龚翼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811224013.1A priority Critical patent/CN111079383A/en
Publication of CN111079383A publication Critical patent/CN111079383A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a data interaction method, device and system of an Internet of things cloud platform and equipment. When applied to the cloud platform side, the method comprises the following steps: after an intelligent device is accessed to a cloud platform, receiving a device model constructed by the intelligent device and a configured uniform data coding format for interaction with the cloud platform, wherein the attribute, behavior and event of the intelligent device are defined in the device model; receiving the data in the unified data coding format reported by the intelligent equipment, and processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format; and generating issuing data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, and issuing the issuing data to the intelligent equipment. By constructing the equipment model and adopting a uniform data interactive coding format, the development rhythm is accelerated, and the development cost and the maintenance cost are reduced.

Description

Data interaction method, device and system for cloud platform and equipment of Internet of things
Technical Field
The invention relates to the technical field of Internet of things, in particular to a data interaction method of an Internet of things cloud platform and equipment, a data interaction device of the Internet of things cloud platform and the equipment, a data interaction system of the Internet of things cloud platform and the equipment, a computer storage medium and computing equipment.
Background
The Internet of Things (IoT) concept is a network concept that extends and expands its user end to any article to article for information exchange and communication based on the Internet concept. The internet of things connects all articles with the internet through the information sensing equipment to exchange information, namely, the articles are related to each other, so that intelligent identification and management are realized. The internet of things is being widely applied in the fields of smart home and the like.
The internet of things cloud platform can help a developer (namely, an equipment manufacturer) to easily realize equipment access and equipment connection, realize remote monitoring and operation of internet of things equipment, and provide a comprehensive internet of things solution. However, in the existing internet of things cloud platform solution, in order to implement data interaction between a cloud and a device (smart device), a corresponding data communication protocol needs to be established for each type of device. Moreover, even if the devices are of the same type, if there are differences between the device products of different manufacturers, different data communication formats may need to be established for the devices of the same type produced by different manufacturers. This results in a large amount of labor cost being wasted to formulate a data communication protocol, and a developer also needs to encode each type of device according to the data communication protocol, resulting in slow development speed, high development cost, and high maintenance cost. In addition, when the device interacts with the cloud, if the configuration of the device is high, the device may generally interact with the cloud in a json format. However, if the device configuration is low and the performance is limited, json format data cannot be analyzed, and at this time, the device needs to interact with the cloud terminal by adopting a special data encoding format.
Disclosure of Invention
In view of the above problems, the present invention is provided to provide a data interaction method for an internet of things cloud platform and a device, a data interaction apparatus for an internet of things cloud platform and a device, a data interaction system for an internet of things cloud platform and a device, a computer storage medium and a computing device, which overcome or at least partially solve the above problems.
According to an aspect of the embodiment of the invention, a data interaction method between an internet of things cloud platform and equipment is provided, and the method is applied to a cloud platform side and comprises the following steps:
after an intelligent device is connected to a cloud platform, receiving a device model constructed by the intelligent device and uploaded by the intelligent device and a uniform data coding format which is configured by the intelligent device and interacts with the cloud platform, wherein the device model defines attributes, behaviors and events of the intelligent device;
receiving the data in the unified data coding format reported by the intelligent equipment, and processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format;
and generating issuing data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, and issuing the issuing data to the intelligent equipment.
Optionally, the unified data encoding format includes a json format or a specified binary encoding format.
Optionally, when the unified data coding format is a json format, processing the received reported data according to the device model of the intelligent device and the unified data coding format, where the processing includes:
directly processing the received reported data according to the equipment model and the json format of the intelligent equipment;
generating the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, wherein the generating comprises the following steps:
and directly generating the issuing data in the json format according to the equipment model of the intelligent equipment and the json format.
Optionally, when the unified data coding format is the specified binary coding format, processing the received report data according to the device model of the intelligent device and the unified data coding format, including:
according to the equipment model of the intelligent equipment and the specified binary coding format, analyzing the reported data in the specified binary coding format, converting the reported data into data in a json format, and processing the converted data in the json format;
generating the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, wherein the generating comprises the following steps:
and encoding the original issuing data in the json format according to the equipment model of the intelligent equipment and the specified binary coding format to generate the issuing data in the specified binary coding format.
Optionally, after receiving the data in the unified data encoding format reported by the intelligent device, the method further includes:
and carrying out format validity verification on the received reported data.
Optionally, the data reported by the smart device includes at least one of the following:
attribute reporting data, event reporting data and service calling response data;
the issued data includes service call data and/or attribute setting data.
According to another aspect of the embodiment of the invention, a data interaction method between an internet of things cloud platform and equipment is further provided, and the method is applied to an intelligent equipment side and comprises the following steps:
constructing an equipment model according to the equipment type of the intelligent equipment, wherein the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model;
configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform;
after the Internet of things cloud platform is accessed, uploading the equipment model and the unified data coding format to the Internet of things cloud platform;
generating data in the unified data coding format according to the equipment model, and reporting the data to the Internet of things cloud platform;
and receiving the data in the unified data coding format issued by the Internet of things cloud platform, and analyzing the received data according to the equipment model.
Optionally, the unified data encoding format includes a json format or a specified binary encoding format.
Optionally, configuring a unified data encoding format for interaction between the smart device and the internet of things cloud platform includes:
configuring a uniform data coding format of interaction between the intelligent equipment and an Internet of things cloud platform into a json format for the intelligent equipment with high data analysis performance;
and for the intelligent equipment with low data analysis performance, configuring a uniform data coding format of the intelligent equipment interacting with the Internet of things cloud platform into the specified binary coding format.
Optionally, the data reported to the internet of things cloud platform includes at least one of the following:
attribute reporting data, event reporting data and service calling response data;
the received delivery data includes service invocation data and/or attribute setting data.
According to another aspect of the embodiments of the present invention, there is provided a data interaction apparatus for an internet of things cloud platform and a device, applied to a cloud platform side, including:
the intelligent device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is suitable for receiving an equipment model constructed by the intelligent device and uploaded by the intelligent device and a unified data coding format which is configured by the intelligent device and interacts with a cloud platform after the intelligent device accesses the cloud platform, and attributes, behaviors and events of the intelligent device are defined in the equipment model;
the first receiving module is further adapted to receive the data in the unified data encoding format reported by the intelligent device;
the processing module is suitable for processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format;
the processing module is further adapted to generate the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format; and
and the issuing module is suitable for issuing the issued data to the intelligent equipment.
Optionally, the unified data encoding format includes a json format or a specified binary encoding format.
Optionally, when the unified data encoding format is a json format, the processing module is adapted to:
directly processing the received reported data according to the equipment model and the json format of the intelligent equipment;
the processing module is further adapted to:
and directly generating the issuing data in the json format according to the equipment model of the intelligent equipment and the json format.
Optionally, when the unified data encoding format is the specified binary encoding format, the processing module is adapted to:
according to the equipment model of the intelligent equipment and the specified binary coding format, analyzing the reported data in the specified binary coding format, converting the reported data into data in a json format, and processing the converted data in the json format;
the processing module is further adapted to:
and encoding the original issuing data in the json format according to the equipment model of the intelligent equipment and the specified binary coding format to generate the issuing data in the specified binary coding format.
Optionally, the apparatus further comprises:
and the verification module is suitable for carrying out format validity verification on the received reported data after the first receiving module receives the data in the unified data coding format reported by the intelligent equipment.
Optionally, the data reported by the smart device includes at least one of the following:
attribute reporting data, event reporting data and service calling response data;
the issued data includes service call data and/or attribute setting data.
According to another aspect of the embodiments of the present invention, there is also provided a data interaction apparatus between an internet of things cloud platform and a device, applied to an intelligent device side, including:
the model building module is suitable for building an equipment model according to the equipment type of the intelligent equipment, and the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model;
the format configuration module is suitable for configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform;
the uploading module is suitable for uploading the equipment model and the unified data coding format to the Internet of things cloud platform after the Internet of things cloud platform is accessed;
the uploading module is further adapted to generate the data in the unified data coding format according to the equipment model and report the data to the internet of things cloud platform; and
and the second receiving module is suitable for receiving the data in the unified data coding format issued by the Internet of things cloud platform and analyzing the received data according to the equipment model.
Optionally, the unified data encoding format includes a json format or a specified binary encoding format.
Optionally, the format configuration module is further adapted to:
configuring a uniform data coding format of interaction between the intelligent equipment and an Internet of things cloud platform into a json format for the intelligent equipment with high data analysis performance;
and for the intelligent equipment with low data analysis performance, configuring a uniform data coding format of the intelligent equipment interacting with the Internet of things cloud platform into the specified binary coding format.
Optionally, the data reported to the internet of things cloud platform includes at least one of the following:
attribute reporting data, event reporting data and service calling response data;
the received delivery data includes service invocation data and/or attribute setting data.
According to still another aspect of the embodiment of the present invention, there is further provided a data interaction system of an internet of things cloud platform and a device, including the data interaction device of the internet of things cloud platform and the device applied to any one of the above on the cloud platform side and the data interaction device of the internet of things cloud platform and the device applied to any one of the above on the smart device side.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer storage medium storing computer program code, which, when run on a computing device, causes the computing device to execute the data interaction method applied to the cloud platform-side internet of things cloud platform and device or the data interaction method applied to the smart device-side internet of things cloud platform and device according to any one of the above.
According to yet another aspect of an embodiment of the present invention, there is also provided a computing apparatus including:
a processor; and
a memory storing computer program code;
when executed by the processor, the computer program code causes the computing device to execute the data interaction method applied to the cloud platform side and the device of the internet of things or the cloud platform side and the device of the internet of things according to any one of the above.
According to the data interaction method, device and system of the cloud platform and the equipment of the Internet of things, firstly, an equipment model is built according to the equipment type of the intelligent equipment to be accessed, and the attribute, behavior and event of the intelligent equipment are defined in the equipment model; then, configuring a uniform data coding format for interaction between the intelligent equipment and the cloud platform of the Internet of things; and then, after the intelligent device is connected to the cloud platform, the intelligent device generates data in the unified data coding format according to the device model and reports the data to the Internet of things cloud platform, the Internet of things cloud platform processes the received reported data according to the device model of the intelligent device and the unified data coding format, and the Internet of things cloud platform further generates issuing data in the unified data coding format according to the device model of the intelligent device and the unified data coding format and issues the issuing data to the intelligent device. Through constructing the equipment model, the data interaction between the intelligent equipment and the Internet of things cloud platform is carried out by adopting a uniform data coding format, the waste of labor cost caused by making different data communication formats for each type of equipment in the prior art is avoided, and meanwhile, an equipment developer does not need to know the details of data coding to code each type of equipment, so that the development rhythm is accelerated, and the development cost and the maintenance cost are reduced.
Furthermore, for the intelligent equipment with high data analysis performance, the unified data coding format of the interaction between the intelligent equipment and the cloud platform of the internet of things is configured into a json format, and for the intelligent equipment with low data analysis performance, the unified data coding format of the interaction between the intelligent equipment and the cloud platform of the internet of things is configured into a specified binary coding format, so that the problem of unified coding of the data of the interaction between the equipment and the cloud platform of the internet of things under the condition that the equipment performance is limited is solved, and the development cost and the maintenance cost are further reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a data interaction method applied to an internet of things cloud platform and a device on a cloud platform side according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a data interaction method applied to an internet of things cloud platform and a device on an intelligent device side according to an embodiment of the present invention;
fig. 3 shows a flowchart of a data interaction method between an internet of things cloud platform and a device, which combines a cloud platform side and a smart device side, according to an embodiment of the present invention;
fig. 4 shows a flowchart of a data interaction method of an internet of things cloud platform and a device in combination of a cloud platform side and a smart device side according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data interaction device applied to an internet of things cloud platform and equipment on a cloud platform side according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of a data interaction device applied to an internet of things cloud platform and equipment on a cloud platform side according to another embodiment of the invention;
fig. 7 is a schematic structural diagram of a data interaction device applied to an internet of things cloud platform and a device on a smart device side according to an embodiment of the present invention; and
fig. 8 shows a schematic structural diagram of a data interaction system of an internet of things cloud platform and a device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The inventor finds that in the existing solution of the internet of things, in order to realize data interaction between a cloud and a device (smart device), a corresponding data communication protocol needs to be established for each new type of device product before the device product is accessed. For example, for an intelligent socket, corresponding protocols need to be formulated for attribute reporting, behavior events and the like, including a protocol for reporting data (assumed to be named as/S00/1/1), a protocol for opening a socket (/ S01/1/1), a protocol for closing a socket (/ S01/1/0), and the like. This results in a large amount of labor cost being wasted to formulate the data communication protocol, and the developer also needs to encode each device according to the data communication protocol, resulting in slow development speed, high development cost, and high maintenance cost.
In addition, when the device interacts with the cloud, if the performance of the device is limited and json format data cannot be analyzed, a special data encoding format needs to be adopted for interacting with the cloud, which is not beneficial to unifying data interaction formats.
In order to solve the technical problem, the embodiment of the invention provides a data interaction method for an internet of things cloud platform and equipment. Fig. 1 shows a flowchart of a data interaction method applied to an internet of things cloud platform and a device on a cloud platform side according to an embodiment of the present invention. Referring to fig. 1, the method is applied to the cloud platform side, and may include at least the following steps S102 to S106.
Step S102, after the intelligent device is connected to the cloud platform, receiving a device model constructed by the intelligent device and uploaded by the intelligent device and a uniform data coding format which is configured by the intelligent device and interacts with the cloud platform, wherein the device model defines attributes, behaviors and events of the intelligent device.
And step S104, receiving the data in the unified data coding format reported by the intelligent equipment, and processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format.
And S106, generating issuing data in a unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, and issuing the issuing data to the intelligent equipment.
It should be noted that the order of step S104 and step S106 may be interchanged, and the present invention is not limited thereto.
According to the data interaction method of the Internet of things cloud platform and the equipment, the equipment model is built, the data interaction between the intelligent equipment and the Internet of things cloud platform is carried out by adopting the uniform data coding format, the waste of labor cost caused by the fact that different data communication formats are formulated for each type of equipment in the prior art is avoided, meanwhile, an equipment developer does not need to know details of data coding to code each type of equipment, the development rhythm is accelerated, and the development cost and the maintenance cost are reduced.
The smart devices mentioned above may include air conditioners, air purifiers, refrigerators, televisions, table lamps, etc. The internet of things cloud platform may include one or more server clusters. The intelligent device can access the Internet of things cloud platform through a server (called a browser) which receives connection in a server cluster on the Internet of things cloud platform.
The device model mentioned in step S102 above may be constructed on the smart device side by the following two ways:
in the first mode, a device developer writes standard development documents according to device types on the intelligent device side for construction.
In the second mode, initial models of various types of equipment are pre-constructed by the Internet of things cloud platform, the initial models are provided for equipment developers through specific interfaces, and then the equipment developers select and refine parameters in the initial models according to the equipment types to generate final equipment models.
In the embodiment of the present invention, attributes (attribute, which may also be referred to as state), behaviors (which may also be referred to as service, i.e., device behaviors executed in response to a call of a cloud platform), and events (events) of a smart device are defined in the constructed device model. For example, for an air purifier, the attributes defined in the device model may include PM2.5 values, gear, bulb on/off state, functional mode, etc., the behavior may include operations of turning on, turning off, adjusting gear, setting mode, etc., and the event may include human body sensor detecting human body movement, etc.
In addition, the unified data coding format for interaction between the intelligent device and the cloud platform can be configured on the intelligent device side according to the data analysis performance of the intelligent device.
In an alternative embodiment, the unified data encoding format may include a json format or a specified binary encoding format. The specified binary coding format mentioned here is not called xlink format, and is a format for coding data by using binary, and the requirement on the data analysis performance of the device is low, and the method is particularly suitable for configuring low-performance devices.
Further, for an intelligent device with high data analysis performance, a uniform data coding format of interaction between the intelligent device and the internet of things cloud platform is preferably configured to be a json format. For the intelligent device with low data analysis performance, the unified data coding format for interaction between the intelligent device and the internet of things cloud platform is preferably configured to be an xlink format.
Further, when the unified data encoding format configured by the intelligent device is the json format, in step S104, after the data in the json format reported by the intelligent device is received, the received reported data is directly processed according to the device model and the json format of the intelligent device. Meanwhile, in step S106, the assignment data in the json format may be directly generated according to the equipment model and the json format of the intelligent device, and the assignment data in the json format may be issued to the intelligent device.
When the unified data encoding format configured by the intelligent device is an xlink format, in step S104, after receiving the xlink format data reported by the intelligent device, the received xlink format reported data is analyzed and converted into json format data according to the device model of the intelligent device and the xlink format, and then the json format data obtained by conversion is processed. Meanwhile, in step S106, the original issuing data in json format is encoded according to the device model and xlink format of the intelligent device to generate issuing data in xlink format, and then the generated issuing data in xlink format is issued to the intelligent device.
In an optional embodiment, when the unified data encoding format configured by the intelligent device is an xlink format, in step S104, after receiving xlink format data reported by the intelligent device, the method further includes a step of performing format validity verification on the received reported data. Through format validity verification, the accuracy of subsequent data analysis is guaranteed, and the data interaction efficiency of the intelligent device and the cloud platform is improved.
In an optional embodiment, the data reported by the smart device may include at least one of attribute reporting data, event reporting data, and service call response data. The issued data of the cloud platform may include service call data and/or attribute setting data.
The following describes, by specific examples, situations of performing data interaction with an internet of things cloud platform by using a json format and an xlink format respectively.
Firstly, a device model of an intelligent device (e.g., a color desk lamp) to be accessed is constructed, and device attributes such as color (color), brightness (brightness), on-off state (light switch) and the like, device behaviors such as set _ work mode (set _ work) and the like, and events such as light-on events (open _ light-event) and the like are defined in the device model.
If the configuration of the intelligent device to be accessed is high and the intelligent device to be accessed has high data analysis performance, the data interaction format of the intelligent device to be accessed can be configured into a json format. Specific examples of json format data of the intelligent device interacting with the internet of things cloud platform under different conditions are listed below.
When the cloud platform calls the service to the intelligent device, the issued data may be:
{
"id":125000,
"version":1,
"data":{"color":"#00ff00","brightness":2},
"action":"dsl.service.set_workmode"
}
correspondingly, the service call response data sent by the intelligent device to the cloud platform is as follows:
{
"id":125000,
"version":1,
"data":{},
"action":"dsl.service.set_workmode",
"errno":0
}
when the attribute setting of the intelligent device is performed on the cloud platform side, the data issued by the cloud platform may be:
{
"id":100000,
"version":1,
"data":{"brightness":5,"color":"#ff0000","lightswitch":1},
"action":"dsl.property.set"
}
when the intelligent device reports the attributes to the cloud platform, the reported data may be:
{
"id":100000,
"version":1,
"data":{”brightness”:5,”color”:“#ff0000”,“lightswitch”:1},
"action":"dsl.property.post"
}
when the intelligent device reports an event to the cloud platform, the reported data may be:
{
"id":100000,
"version":1,
"data":{},
"action":"dsl.event.post.open_light_event"
}
if the configuration of the intelligent device to be accessed is low and only has low data analysis performance, the data interaction format of the intelligent device to be accessed can be configured into an xlink format.
In one embodiment, an xlink formatted packet may include six portions, a header (head), a length (length), a version number (version), a device identification (id), a payload (payload), and a checksum (checksum).
In practical applications, the byte length of each part can be defined as follows:
head length version id payload checksum
2byte 2byte 1byte 4byte N byte 1byte
wherein the byte length of the payload part is determined according to the definition of the equipment model.
Length is the sum of the byte lengths of version, id, payload, and checksum, i.e., Length + version + id + payload + checksum.
checksum=(length+version+id+payload)&0xff。
Checksum refers to the accumulation of the number of transmission bits, and when the transmission is finished, the receiver can determine whether all data has been received according to the number. If the values match, the transfer is said to have been completed. The following schematic lists the calculation procedure for checksum:
Figure BDA0001835478710000091
in an xlink-format packet, payload data is described in a payload section. Specifically, for different interaction scenarios, the payload section may adopt the following corresponding data format.
For the case of attribute setting or attribute reporting, the payload part may adopt a data format as follows:
action attr1_id value1 attr2_id value2 attrN_id valueN
1byte 1byte N byte 1byte N byte 1byte N byte
for the case of service invocation, service invocation response or event reporting, the payload part may adopt the following data format:
action serviceid/eventid errno value1 value2 valueN
1byte 1byte 1byte N byte N byte N byte
wherein, only when the service call is responded, the payload part of the data packet contains errno. When the errno value is 0x00, the call is successful, otherwise, the call is failed.
The action in the above table is used to identify the purpose of part of the payload data in the xlink format data packet, including attribute reporting (dsl. performance. post), attribute setting (dsl. performance. set), service calling (dsl. service), event reporting (dsl. event. post), and the like.
In practical applications, action can be defined as follows:
dsl.property.post=0x00
dsl.property.set=0x01
dsl.service=0x02
dsl.event.post=0x03
the byte length of each value (value1, value2, value n) in the table above is determined by the type of data it defines.
Typically, the data type of value and the corresponding relation of the byte length can be shown as the following table:
Figure BDA0001835478710000101
further, the following constant definitions may also be made in the device model:
Figure BDA0001835478710000111
by the definition of the xlink format, the interactive data are coded by a simple binary system, and the conversion between the data in the binary coding format and the data in the json format is realized, so that the method is particularly suitable for data interaction between intelligent equipment with limited performance and an Internet of things cloud platform.
Correspondingly, fig. 2 shows a flowchart of a data interaction method applied to an internet of things cloud platform and a device on an intelligent device side according to an embodiment of the present invention. Referring to fig. 2, the method is applied to the smart device side, and may include at least the following steps S202 to S210.
Step S202, an equipment model is built according to the equipment type of the intelligent equipment, and the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model.
Step S204, configuring a unified data coding format for interaction between the intelligent equipment and the Internet of things cloud platform.
And S206, after the Internet of things cloud platform is accessed, uploading the constructed equipment model and the configured uniform data coding format to the Internet of things cloud platform.
And S208, generating data in a unified data coding format according to the equipment model, and reporting the data to the Internet of things cloud platform.
Step S210, receiving data in a unified data coding format issued by the Internet of things cloud platform, and analyzing the received data according to the equipment model.
It should be noted that the order of step S208 and step S210 may be interchanged, and the present invention is not limited thereto.
In an alternative embodiment, the above-mentioned unified data encoding format may comprise a json format or a specified binary encoding format. The designated binary encoding format referred to herein is not referred to as xlink format, and its specific definition is as described above.
Further, the above step S204 may be embodied as:
configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform into a json format for the intelligent equipment with high data analysis performance;
for the intelligent device with low data analysis performance, configuring a uniform data coding format of the intelligent device interacting with the internet of things cloud platform into the specified binary coding format (namely, xlink format).
In an optional embodiment, the data reported by the smart device may include at least one of attribute reporting data, event reporting data, and service call response data. The issued data of the cloud platform may include service call data and/or attribute setting data.
In the above, various implementation manners of each link of the embodiments shown in fig. 1 and fig. 2 are introduced, and an implementation process of the data interaction method between the internet of things cloud platform and the device of the present invention is described in detail through a specific embodiment.
Fig. 3 is a schematic flowchart illustrating a data interaction method between an internet of things cloud platform and a device, which combines a cloud platform side and an intelligent device side, according to an embodiment of the present invention. In this embodiment, the smart device to be accessed is a smart device with high data resolution performance, such as an air purifier, a television, a refrigerator, and the like. As shown in fig. 3, the method may include the following steps S302 to S316.
Step S302, an equipment model is built on the intelligent equipment side according to the equipment type of the intelligent equipment, and the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model.
Step S304, configuring a unified data coding format of interaction between the intelligent equipment and the Internet of things cloud platform into a json format.
Step S306, after the Internet of things cloud platform is accessed, the intelligent device uploads the constructed device model and information indicating that the json format is configured to the Internet of things cloud platform.
Step S308, the Internet of things cloud platform receives the equipment model uploaded by the intelligent equipment and information indicating that a json format is configured.
And S310, the intelligent equipment generates report data in a json format according to the equipment model and reports the report data to the Internet of things cloud platform.
And step S312, the Internet of things cloud platform receives the report data in the json format and transmits the report data to the back-end system for processing.
And S314, generating json-format issuing data according to the equipment model by the Internet of things cloud platform, and issuing the data to the intelligent equipment.
And step S316, the intelligent equipment receives the issued data in the json format and analyzes the received data according to the equipment model.
Fig. 4 is a schematic flowchart illustrating a data interaction method between an internet of things cloud platform and a device, which combines a cloud platform side and an intelligent device side, according to another specific embodiment of the present invention. In this embodiment, the smart device to be accessed is a smart device with low data resolution performance, such as a smart strip, a desk lamp, and the like. As shown in fig. 4, the method may include the following steps S402 to S418.
Step S402, an equipment model is built on the intelligent equipment side according to the equipment type of the intelligent equipment, and the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model.
Step S404, configuring a uniform data coding format of the interaction between the smart device and the internet of things cloud platform into a specified binary coding format (i.e., xlink format).
Step S406, after the Internet of things cloud platform is accessed, the intelligent device uploads the constructed device model and information indicating that the xlink format is configured to the Internet of things cloud platform.
Step 408, the internet of things cloud platform receives the equipment model uploaded by the intelligent equipment and information indicating that an xlink format is configured.
And S410, generating reporting data in an xlink format by the intelligent equipment according to the equipment model, and reporting the data to the Internet of things cloud platform.
Step S412, the Internet of things cloud platform receives the reported data in the xlink format, and format validity verification is carried out on the received reported data.
And S414, after the verification is passed, the Internet of things cloud platform analyzes the reported data in the xlink format according to the equipment model and converts the reported data into data in a json format, and the obtained data in the json format is transmitted to a back-end system for processing.
Step S416, the Internet of things cloud platform encodes the json format original issuing data according to the equipment model and the xlink format, generates xlink format issuing data and issues the data to the intelligent equipment.
And step S418, the intelligent equipment receives the issued data in the xlink format and analyzes the received data according to the equipment model.
According to the data interaction method of the Internet of things cloud platform and the equipment, provided by the embodiment of the invention, the equipment model is constructed, and the data interaction between the intelligent equipment and the Internet of things cloud platform is carried out by adopting a uniform data coding format, so that the waste of labor cost caused by setting different data communication formats for each type of equipment in the prior art is avoided, and meanwhile, an equipment developer does not need to know details of data coding to code each type of equipment, so that the development rhythm is accelerated, and the development cost and the maintenance cost are reduced.
Furthermore, for the intelligent equipment with high data analysis performance, the unified data coding format of the interaction between the intelligent equipment and the cloud platform of the internet of things is configured into a json format, and for the intelligent equipment with low data analysis performance, the unified data coding format of the interaction between the intelligent equipment and the cloud platform of the internet of things is configured into a specified binary coding format, so that the problem of unified coding of the data of the interaction between the equipment and the cloud platform of the internet of things under the condition that the equipment performance is limited is solved, and the development cost and the maintenance cost are further reduced.
It should be noted that, in practical applications, all the above optional embodiments may be combined in a combined manner at will to form an optional embodiment of the present invention, and details are not described here any more.
Based on the same inventive concept, the embodiment of the invention also provides a data interaction device of the internet of things cloud platform and the equipment, which is used for supporting the data interaction method of the internet of things cloud platform and the equipment provided by any one of the embodiments or the combination thereof. Fig. 5 is a schematic structural diagram illustrating a data interaction apparatus 500 applied to an internet of things cloud platform and device on a cloud platform side according to an embodiment of the present invention. Referring to fig. 5, the apparatus 500 may include at least: a first receiving module 510, a processing module 520, and a sending down module 530.
The functions of the components or devices of the data interaction device 500 of the internet of things cloud platform and the equipment and the connection relationship between the components are described as follows:
the first receiving module 510 is adapted to receive, after the smart device accesses the cloud platform, a device model constructed by the smart device and uploaded by the smart device and a uniform data coding format configured by the smart device and interacting with the cloud platform, where attributes, behaviors, and events of the smart device are defined in the device model.
The first receiving module 510 is further adapted to: and receiving data in a unified data coding format reported by the intelligent equipment.
The processing module 520 is connected to the first receiving module 510 and is adapted to process the received reported data according to the device model and the uniform data encoding format of the smart device.
The processing module 520 is further adapted to: and generating the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format.
And the issuing module 530 is connected with the processing module 520 and is suitable for issuing the issued data to the intelligent device.
In an alternative embodiment, the above-mentioned unified data encoding format may include a json format or a specified binary encoding format (i.e., xlink format).
Further, when the unified data encoding format is json format, the processing module 520 is adapted to:
and directly processing the received reported data according to the equipment model and the json format of the intelligent equipment.
The processing module 520 is further adapted to:
and directly generating the issuing data in the json format according to the equipment model of the intelligent equipment and the json format.
When the unified data encoding format is xlink format, the processing module 520 is adapted to:
according to the equipment model and the xlink format of the intelligent equipment, the reported data in the xlink format is analyzed and converted into data in a json format, and the converted data in the json format is processed.
The processing module 520 is further adapted to:
and coding the original issuing data in the json format according to the equipment model of the intelligent equipment and the xlink format to generate issuing data in the xlink format.
In an optional embodiment, as shown in fig. 6, the data interaction apparatus 500 of the internet of things cloud platform and device shown in fig. 5 may further include:
the verifying module 640 is respectively connected to the first receiving module 510 and the processing module 520, and is adapted to perform format validity verification on the received reported data after the first receiving module 510 receives the data in the specified binary code format reported by the smart device.
In an optional embodiment, the data reported by the smart device may include at least one of attribute reporting data, event reporting data, and service call response data. The issued data of the cloud platform may include service call data and/or attribute setting data.
Correspondingly, the embodiment of the invention also provides a data interaction device of the Internet of things cloud platform and the equipment, which is applied to the intelligent equipment side. Fig. 7 shows a schematic structural diagram of a data interaction apparatus 700 applied to an internet of things cloud platform and a device on a smart device side according to an embodiment of the present invention. Referring to fig. 7, the apparatus 700 may include at least: a model building module 710, a format configuration module 720, an upload module 730, and a second receiving module 740.
The functions of the components or devices of the data interaction device 700 applied to the internet of things cloud platform and the equipment on the intelligent equipment side and the connection relationship between the components are described as follows:
the model building module 710 is adapted to build an equipment model according to the equipment type of the intelligent equipment, and the attributes, behaviors and events of the intelligent equipment are defined in the equipment model.
And the format configuration module 720 is suitable for configuring a uniform data coding format for interaction between the intelligent device and the internet of things cloud platform.
The uploading module 730 is respectively connected with the model building module 710 and the format configuring module 720, and is adapted to upload the built equipment model and the configured uniform data encoding format to the internet of things cloud platform after accessing the internet of things cloud platform.
The upload module 730 is further adapted to: and generating data in a unified data coding format according to the equipment model, and reporting the data to the Internet of things cloud platform.
The second receiving module 740 is connected to the model building module 710 and the format configuration module 720, and is adapted to receive data in a uniform data coding format issued by the internet of things cloud platform and analyze the received data according to the device model.
In an alternative embodiment, the unified data encoding format may include a json format or a specified binary encoding format (i.e., xlink format).
Further, the format configuration module 720 is further adapted to:
configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform into a json format for the intelligent equipment with high data analysis performance;
for the intelligent equipment with low data analysis performance, configuring a unified data coding format of interaction between the intelligent equipment and the Internet of things cloud platform into a specified binary coding format.
In an optional embodiment, the data reported by the smart device may include at least one of attribute reporting data, event reporting data, and service call response data. The issued data of the cloud platform may include service call data and/or attribute setting data.
Based on the same inventive concept, the embodiment of the invention also provides a data interaction system of the Internet of things cloud platform and the equipment. Referring to fig. 8, the system may include the data interaction apparatus 500 applied to the internet of things cloud platform and device on the cloud platform side as described in any one of the above embodiments or combinations thereof, and the data interaction apparatus 700 applied to the internet of things cloud platform and device on the smart device side as described in any one of the above embodiments or combinations thereof.
Based on the same inventive concept, the embodiment of the invention also provides a computer storage medium. The computer storage medium stores computer program code, which, when run on a computing device, causes the computing device to execute the data interaction method applied to the internet of things cloud platform and device on the cloud platform side or the data interaction method applied to the internet of things cloud platform and device on the smart device side according to any one or combination of the above embodiments.
Based on the same inventive concept, the embodiment of the invention also provides the computing equipment. The computing device may include:
a processor; and
a memory storing computer program code;
when executed by a processor, the computer program code causes the computing device to execute the data interaction method applied to the internet of things cloud platform and device on the cloud platform side or the data interaction method applied to the internet of things cloud platform and device on the smart device side according to any one or combination of the above embodiments.
According to any one or a combination of multiple optional embodiments, the embodiment of the present invention can achieve the following advantages:
according to the data interaction method, device and system of the cloud platform and the equipment of the Internet of things, firstly, an equipment model is built according to the equipment type of the intelligent equipment to be accessed, and the attribute, behavior and event of the intelligent equipment are defined in the equipment model; then, configuring a uniform data coding format for interaction between the intelligent equipment and the cloud platform of the Internet of things; and then, after the intelligent device is connected to the cloud platform, the intelligent device generates data in the unified data coding format according to the device model and reports the data to the Internet of things cloud platform, the Internet of things cloud platform processes the received reported data according to the device model of the intelligent device and the unified data coding format, and the Internet of things cloud platform further generates issuing data in the unified data coding format according to the device model of the intelligent device and the unified data coding format and issues the issuing data to the intelligent device. Through constructing the equipment model, the data interaction between the intelligent equipment and the Internet of things cloud platform is carried out by adopting a uniform data coding format, the waste of labor cost caused by making different data communication formats for each type of equipment in the prior art is avoided, and meanwhile, an equipment developer does not need to know the details of data coding to code each type of equipment, so that the development rhythm is accelerated, and the development cost and the maintenance cost are reduced.
Furthermore, for the intelligent equipment with high data analysis performance, the unified data coding format of the interaction between the intelligent equipment and the cloud platform of the internet of things is configured into a json format, and for the intelligent equipment with low data analysis performance, the unified data coding format of the interaction between the intelligent equipment and the cloud platform of the internet of things is configured into a specified binary coding format, so that the problem of unified coding of the data of the interaction between the equipment and the cloud platform of the internet of things under the condition that the equipment performance is limited is solved, and the development cost and the maintenance cost are further reduced.
It is clear to those skilled in the art that the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.
According to an aspect of the embodiment of the invention, A1. a data interaction method for an Internet of things cloud platform and equipment is provided, and is applied to a cloud platform side, and comprises the following steps:
after an intelligent device is connected to a cloud platform, receiving a device model constructed by the intelligent device and uploaded by the intelligent device and a uniform data coding format which is configured by the intelligent device and interacts with the cloud platform, wherein the device model defines attributes, behaviors and events of the intelligent device;
receiving the data in the unified data coding format reported by the intelligent equipment, and processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format;
and generating issuing data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, and issuing the issuing data to the intelligent equipment.
A2. The data interaction method according to a1, wherein the uniform data coding format comprises a json format or a specified binary coding format.
A3. The data interaction method according to a2, wherein, when the unified data coding format is a json format, processing the received report data according to the equipment model of the intelligent device and the unified data coding format includes:
directly processing the received reported data according to the equipment model and the json format of the intelligent equipment;
generating the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, wherein the generating comprises the following steps:
and directly generating the issuing data in the json format according to the equipment model of the intelligent equipment and the json format.
A4. The data interaction method according to a2, wherein, when the unified data coding format is the specified binary coding format, processing the received report data according to the device model of the smart device and the unified data coding format includes:
according to the equipment model of the intelligent equipment and the specified binary coding format, analyzing the reported data in the specified binary coding format, converting the reported data into data in a json format, and processing the converted data in the json format;
generating the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, wherein the generating comprises the following steps:
and encoding the original issuing data in the json format according to the equipment model of the intelligent equipment and the specified binary coding format to generate the issuing data in the specified binary coding format.
A5. The data interaction method according to a4, wherein after receiving the data in the uniform data coding format reported by the smart device, the method further includes:
and carrying out format validity verification on the received reported data.
A6. The data interaction method according to any one of A1-A5, wherein the data reported by the smart device includes at least one of the following:
attribute reporting data, event reporting data and service calling response data;
the issued data includes service call data and/or attribute setting data.
According to another aspect of the embodiment of the present invention, there is further provided B7. a data interaction method between an internet of things cloud platform and a device, applied to an intelligent device side, including:
constructing an equipment model according to the equipment type of the intelligent equipment, wherein the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model;
configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform;
after the Internet of things cloud platform is accessed, uploading the equipment model and the unified data coding format to the Internet of things cloud platform;
generating data in the unified data coding format according to the equipment model, and reporting the data to the Internet of things cloud platform;
and receiving the data in the unified data coding format issued by the Internet of things cloud platform, and analyzing the received data according to the equipment model.
B8. The data interaction method of B7, wherein the uniform data encoding format includes a json format or a specified binary encoding format.
B9. The data interaction method according to B8, wherein configuring a uniform data encoding format for interaction between the smart device and an internet of things cloud platform includes:
configuring a uniform data coding format of interaction between the intelligent equipment and an Internet of things cloud platform into a json format for the intelligent equipment with high data analysis performance;
and for the intelligent equipment with low data analysis performance, configuring a uniform data coding format of the intelligent equipment interacting with the Internet of things cloud platform into the specified binary coding format.
B10. The data interaction method according to any one of B7-B9, wherein the data reported to the Internet of things cloud platform includes at least one of the following:
attribute reporting data, event reporting data and service calling response data;
the received delivery data includes service invocation data and/or attribute setting data.
According to another aspect of the embodiments of the present invention, there is provided a c11. a data interaction device between an internet of things cloud platform and a device, applied to a cloud platform side, includes:
the intelligent device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is suitable for receiving an equipment model constructed by the intelligent device and uploaded by the intelligent device and a unified data coding format which is configured by the intelligent device and interacts with a cloud platform after the intelligent device accesses the cloud platform, and attributes, behaviors and events of the intelligent device are defined in the equipment model;
the first receiving module is further adapted to receive the data in the unified data encoding format reported by the intelligent device;
the processing module is suitable for processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format;
the processing module is further adapted to generate the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format; and
and the issuing module is suitable for issuing the issued data to the intelligent equipment.
C12. The data interaction device of C11, wherein the uniform data encoding format comprises a json format or a specified binary encoding format.
C13. The data interaction device according to C12, wherein, when the unified data encoding format is json format, the processing module is adapted to:
directly processing the received reported data according to the equipment model and the json format of the intelligent equipment;
the processing module is further adapted to:
and directly generating the issuing data in the json format according to the equipment model of the intelligent equipment and the json format.
C14. The data interaction device according to C12, wherein when the uniform data encoding format is the specified binary encoding format, the processing module is adapted to:
according to the equipment model of the intelligent equipment and the specified binary coding format, analyzing the reported data in the specified binary coding format, converting the reported data into data in a json format, and processing the converted data in the json format;
the processing module is further adapted to:
and encoding the original issuing data in the json format according to the equipment model of the intelligent equipment and the specified binary coding format to generate the issuing data in the specified binary coding format.
C15. The data interaction device according to C14, further comprising:
and the verification module is suitable for carrying out format validity verification on the received reported data after the first receiving module receives the data in the unified data coding format reported by the intelligent equipment.
C16. The data interaction device according to any one of C11-C15, wherein the data reported by the smart device includes at least one of:
attribute reporting data, event reporting data and service calling response data;
the issued data includes service call data and/or attribute setting data.
According to another aspect of the embodiments of the present invention, there is provided a data interaction apparatus between an internet of things cloud platform and a device, applied to an intelligent device side, including:
the model building module is suitable for building an equipment model according to the equipment type of the intelligent equipment, and the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model;
the format configuration module is suitable for configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform;
the uploading module is suitable for uploading the equipment model and the unified data coding format to the Internet of things cloud platform after the Internet of things cloud platform is accessed;
the uploading module is further adapted to generate the data in the unified data coding format according to the equipment model and report the data to the internet of things cloud platform; and
and the second receiving module is suitable for receiving the data in the unified data coding format issued by the Internet of things cloud platform and analyzing the received data according to the equipment model.
D18. The data interaction device of D17, wherein the unified data encoding format includes a json format or a specified binary encoding format.
D19. The data interaction device of D18, wherein the format configuration module is further adapted to:
configuring a uniform data coding format of interaction between the intelligent equipment and an Internet of things cloud platform into a json format for the intelligent equipment with high data analysis performance;
and for the intelligent equipment with low data analysis performance, configuring a uniform data coding format of the intelligent equipment interacting with the Internet of things cloud platform into the specified binary coding format.
D20. The data interaction device according to any one of D17-D19, wherein the data reported to the Internet of things cloud platform includes at least one of:
attribute reporting data, event reporting data and service calling response data;
the received delivery data includes service invocation data and/or attribute setting data.
According to still another aspect of the embodiment of the invention, an internet of things cloud platform and equipment data interaction system is further provided, and comprises an internet of things cloud platform and equipment data interaction device applied to the cloud platform side and according to any one of C11-C16 and an internet of things cloud platform and equipment data interaction device applied to the intelligent equipment side and according to any one of D17-D20.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to execute the data interaction method applied to the internet of things cloud platform and device on the cloud platform side according to any one of a1-a6 or the data interaction method applied to the internet of things cloud platform and device on the smart device side according to any one of B7-B10.
According to yet another aspect of the embodiments of the present invention, there is also provided a computing device, including:
a processor; and
a memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform the method of data interaction applied to an internet of things cloud platform and device on a cloud platform side according to any of a1-a6 or the method of data interaction applied to an internet of things cloud platform and device on a smart device side according to any of B7-B10.

Claims (10)

1. A data interaction method of an Internet of things cloud platform and equipment is applied to the cloud platform side and comprises the following steps:
after an intelligent device is connected to a cloud platform, receiving a device model constructed by the intelligent device and uploaded by the intelligent device and a uniform data coding format which is configured by the intelligent device and interacts with the cloud platform, wherein the device model defines attributes, behaviors and events of the intelligent device;
receiving the data in the unified data coding format reported by the intelligent equipment, and processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format;
and generating issuing data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, and issuing the issuing data to the intelligent equipment.
2. The data interaction method of claim 1, wherein the unified data encoding format comprises a json format or a specified binary encoding format.
3. The data interaction method according to claim 2, wherein when the unified data coding format is a json format, processing the received report data according to the equipment model of the smart device and the unified data coding format includes:
directly processing the received reported data according to the equipment model and the json format of the intelligent equipment;
generating the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, wherein the generating comprises the following steps:
and directly generating the issuing data in the json format according to the equipment model of the intelligent equipment and the json format.
4. The data interaction method according to claim 2, wherein when the unified data encoding format is the specified binary encoding format, processing the received report data according to the device model of the smart device and the unified data encoding format includes:
according to the equipment model of the intelligent equipment and the specified binary coding format, analyzing the reported data in the specified binary coding format, converting the reported data into data in a json format, and processing the converted data in the json format;
generating the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format, wherein the generating comprises the following steps:
and encoding the original issuing data in the json format according to the equipment model of the intelligent equipment and the specified binary coding format to generate the issuing data in the specified binary coding format.
5. A data interaction method of an Internet of things cloud platform and equipment is applied to an intelligent equipment side and comprises the following steps:
constructing an equipment model according to the equipment type of the intelligent equipment, wherein the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model;
configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform;
after the Internet of things cloud platform is accessed, uploading the equipment model and the unified data coding format to the Internet of things cloud platform;
generating data in the unified data coding format according to the equipment model, and reporting the data to the Internet of things cloud platform;
and receiving the data in the unified data coding format issued by the Internet of things cloud platform, and analyzing the received data according to the equipment model.
6. The utility model provides a data interaction device of thing networking cloud platform and equipment, is applied to cloud platform side, includes:
the intelligent device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is suitable for receiving an equipment model constructed by the intelligent device and uploaded by the intelligent device and a unified data coding format which is configured by the intelligent device and interacts with a cloud platform after the intelligent device accesses the cloud platform, and attributes, behaviors and events of the intelligent device are defined in the equipment model;
the first receiving module is further adapted to receive the data in the unified data encoding format reported by the intelligent device;
the processing module is suitable for processing the received reported data according to the equipment model of the intelligent equipment and the unified data coding format;
the processing module is further adapted to generate the issued data in the unified data coding format according to the equipment model of the intelligent equipment and the unified data coding format; and
and the issuing module is suitable for issuing the issued data to the intelligent equipment.
7. The utility model provides a data interaction device of thing networking cloud platform and equipment, is applied to the smart machine side, includes:
the model building module is suitable for building an equipment model according to the equipment type of the intelligent equipment, and the attribute, the behavior and the event of the intelligent equipment are defined in the equipment model;
the format configuration module is suitable for configuring a uniform data coding format for interaction between the intelligent equipment and the Internet of things cloud platform;
the uploading module is suitable for uploading the equipment model and the unified data coding format to the Internet of things cloud platform after the Internet of things cloud platform is accessed;
the uploading module is further adapted to generate the data in the unified data coding format according to the equipment model and report the data to the internet of things cloud platform; and
and the second receiving module is suitable for receiving the data in the unified data coding format issued by the Internet of things cloud platform and analyzing the received data according to the equipment model.
8. A data interaction system of an Internet of things cloud platform and equipment comprises the data interaction device of the Internet of things cloud platform and equipment according to claim 6 applied to the cloud platform side and the data interaction device of the Internet of things cloud platform and equipment according to claim 7 applied to the intelligent equipment side.
9. A computer storage medium storing computer program code which, when run on a computing device, causes the computing device to execute the method of any one of claims 1-4 applied to a cloud platform-side internet of things cloud platform-to-device data interaction or the method of claim 5 applied to a smart device-side internet of things cloud platform-to-device data interaction.
10. A computing device, comprising:
a processor; and
a memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform the method of data interaction applied to an internet of things cloud platform and device on a cloud platform side of any one of claims 1-4 or the method of data interaction applied to an internet of things cloud platform and device on a smart device side of claim 5.
CN201811224013.1A 2018-10-19 2018-10-19 Data interaction method, device and system for cloud platform and equipment of Internet of things Pending CN111079383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811224013.1A CN111079383A (en) 2018-10-19 2018-10-19 Data interaction method, device and system for cloud platform and equipment of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811224013.1A CN111079383A (en) 2018-10-19 2018-10-19 Data interaction method, device and system for cloud platform and equipment of Internet of things

Publications (1)

Publication Number Publication Date
CN111079383A true CN111079383A (en) 2020-04-28

Family

ID=70308533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811224013.1A Pending CN111079383A (en) 2018-10-19 2018-10-19 Data interaction method, device and system for cloud platform and equipment of Internet of things

Country Status (1)

Country Link
CN (1) CN111079383A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286701A (en) * 2020-10-27 2021-01-29 深圳市拓邦软件技术有限公司 Internet of things communication method and system, Internet of things equipment and cloud
CN112565379A (en) * 2020-11-30 2021-03-26 上海瑞眼科技有限公司 Data reporting method and system for fire-fighting Internet of things data access platform
CN114422555A (en) * 2022-03-28 2022-04-29 成都柔水科技有限公司 CIM platform based method for self-defined configuration of IoT data analysis
CN115118794A (en) * 2022-06-17 2022-09-27 北京亚华物联科技发展有限公司 Data standardization processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471982A (en) * 2015-11-20 2016-04-06 中国石油天然气股份有限公司华北油田分公司 Interaction method and system for internet-of-things gateway and cloud platform
CN106685934A (en) * 2016-12-14 2017-05-17 镇江恒驰科技有限公司 Method of parameter monitoring and optimization calibration by using mobile phone
CN108173874A (en) * 2018-01-29 2018-06-15 海尔优家智能科技(北京)有限公司 A kind of intelligent device management method, platform, system, medium and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471982A (en) * 2015-11-20 2016-04-06 中国石油天然气股份有限公司华北油田分公司 Interaction method and system for internet-of-things gateway and cloud platform
CN106685934A (en) * 2016-12-14 2017-05-17 镇江恒驰科技有限公司 Method of parameter monitoring and optimization calibration by using mobile phone
CN108173874A (en) * 2018-01-29 2018-06-15 海尔优家智能科技(北京)有限公司 A kind of intelligent device management method, platform, system, medium and equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286701A (en) * 2020-10-27 2021-01-29 深圳市拓邦软件技术有限公司 Internet of things communication method and system, Internet of things equipment and cloud
CN112565379A (en) * 2020-11-30 2021-03-26 上海瑞眼科技有限公司 Data reporting method and system for fire-fighting Internet of things data access platform
CN112565379B (en) * 2020-11-30 2023-01-20 上海瑞眼科技有限公司 Data reporting method and system for fire-fighting Internet of things data access platform
CN114422555A (en) * 2022-03-28 2022-04-29 成都柔水科技有限公司 CIM platform based method for self-defined configuration of IoT data analysis
CN115118794A (en) * 2022-06-17 2022-09-27 北京亚华物联科技发展有限公司 Data standardization processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN110933146B (en) Data conversion method and device and server
CN111079383A (en) Data interaction method, device and system for cloud platform and equipment of Internet of things
CN108683636B (en) Charging pile communication method and system
CN112822276B (en) Substation control layer communication method and system, electronic equipment and storage medium
CN104521219A (en) Message tunneling in industrial networks
CN110943853A (en) Transmission method
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN112087426A (en) Dynamic control protocol analysis method based on Internet of things and IOT (Internet of things) equipment
CN113992348B (en) Monitoring method and system of all-in-one machine
CN114979296A (en) Internet of things communication method, related terminal and storage medium
CN117278661B (en) Industrial Internet of things multi-protocol analysis method and system
CN114827287B (en) Data compression method and system
CN115903733A (en) Remote diagnosis method for vehicle, server, terminal and storage medium
CN114268650A (en) Configuration method and system for establishing communication connection
CN109753399A (en) Automatic notification and response method for system unit state change
CN113381880A (en) Internet of things equipment management method, device and system
CN114576828A (en) Communication management method, branching box, multi-split air conditioning system and storage medium
CN115361282B (en) Model configuration method and device, electronic equipment and storage medium
CN114172974B (en) Protocol conversion method, device and system
US20240064506A1 (en) Customized code bundle to enable secure communication from internet of things devices at wireless networks
CN111510505A (en) Sensor data distribution method and system
Liu Research and Implementation of PLC Remote Monitoring System Based on Embedded System
CN114338747B (en) Cloud scene control system and method supporting device to report data messages in self-defined mode
CN117135011B (en) Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428