CN114338747A - Cloud scene control system and method supporting user-defined reporting of data messages by equipment - Google Patents
Cloud scene control system and method supporting user-defined reporting of data messages by equipment Download PDFInfo
- Publication number
- CN114338747A CN114338747A CN202111672029.0A CN202111672029A CN114338747A CN 114338747 A CN114338747 A CN 114338747A CN 202111672029 A CN202111672029 A CN 202111672029A CN 114338747 A CN114338747 A CN 114338747A
- Authority
- CN
- China
- Prior art keywords
- data
- field
- equipment
- scene control
- message data
- 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.)
- Granted
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention discloses a cloud scene control system and a cloud scene control method supporting self-defined data message reporting of equipment. After the device end reports the device data, the cloud end can correctly understand and resolve the parameters reported by the device according to the scene control model, perform condition operation by using the parameters reported by the device, and determine whether to trigger the scene according to the result of the condition operation, so that the device end can achieve the purpose of scene triggering under the condition that the message data format reported by the cloud end is freely defined, and the flexibility of butt joint of the device end is improved.
Description
Technical Field
The invention relates to the technical field of Internet of things, in particular to a cloud scene control system and method supporting self-defined data message reporting of equipment.
Background
In the application of the internet of things, the IOT platform and the smart home, a large number of scene control tasks exist, the information flow of the general scene control is as follows: the method comprises the steps that an air conditioner, a smoke sensor, a water sensor and the like actively push the state of equipment to a cloud end, the cloud end carries out operation according to the state of the equipment pushed by the equipment and preset equipment state scene conditions, if the state of the equipment meets the scene condition requirements, a scene control instruction is sent to the equipment, and otherwise, the control instruction is not sent to the equipment. Once a traditional scene control system is released, a hardware manufacturer must be required to report device data according to a message data format specified by a cloud in order to detect whether a state reported by a device meets a condition for triggering a scene, but manufacturers of hardware devices connected to the cloud are different, and message data formats of the devices are different. The requirement that the equipment end needs to report according to a message data format specified by a cloud end reduces the flexibility and the experience of hardware manufacturer access.
Disclosure of Invention
The invention aims to provide a cloud scene control system and a cloud scene control method for supporting equipment to report data messages in a user-defined mode, and the cloud scene control model is established, so that a developer at an equipment end (an air conditioner, a smoke sensor, a water sensor and the like) can independently determine a message data format reported to the cloud according to the actual hardware condition of the equipment end, namely the cloud end does not limit the message data format reported by the equipment end. After the device end reports the device data, the cloud end can correctly understand and resolve the parameters reported by the device according to the scene control model, perform condition operation by using the parameters reported by the device, and determine whether to trigger the scene according to the result of the condition operation, so that the device end can achieve the purpose of scene triggering under the condition that the message data format reported by the cloud end is freely defined, and the flexibility of butt joint of the device end is improved.
The invention realizes the purpose through the following technical scheme:
the cloud scene control system supporting the self-defined reporting of the data messages by the equipment comprises a scene control model identifier, an equipment message data field information descriptor, an equipment message data structure descriptor and a condition arithmetic unit;
the method comprises the following steps that a scene control model identifier is additional information carried by a cloud terminal which is reported by an equipment terminal each time, and after the cloud terminal receives equipment reported data, a corresponding scene control model is found according to the scene control model identifier;
the device message data field information descriptor is used for describing all possible field names and corresponding field types in data reported to the cloud end by the device;
the device message data structure descriptor is used for describing field names and field data organization forms specifically reported by the device, the field names used in the device message data structure descriptor are field names appearing in the device message data field information descriptor, and the data organization forms among the fields are key-value form structures or arrays;
the condition arithmetic unit is used for presetting an arithmetic rule of equipment fields, and the preset fields are field names appearing in the field information descriptor of the equipment message data; and/or after the equipment reports data, the condition arithmetic unit carries out operation according to a preset equipment field arithmetic rule and determines whether to trigger a scene according to an operation result.
The field types include simple data types: int, String, or complex data type: a key-value type structure and an array.
The invention also provides a control method of the cloud scene control system for supporting the user-defined report of the data message by the equipment, which comprises the following steps:
s1, the device developer freely defines the data message format reported by the device to the cloud;
s2, finding out all fields in the message according to the message data defined by the equipment terminal, and storing the field name and the field type in the field information descriptor of the message data of the equipment; the field name and the field type in the field information descriptor of the device message data are completely the same as the field and the type in the message data defined by the device side in s 1;
s3, summarizing an organization structure form among the fields according to the message data defined by the equipment terminal, wherein the organization structure form is one of a key-value structure body or an array; storing the field organization structure form into an equipment message data structure descriptor, wherein the field name of the equipment message data structure descriptor is in the field name range defined by s 2;
s4, defining a condition operator according to the actual scene requirement, wherein the field name defined in the condition operator is in the field name range defined in s2, and the defined field is used for configuring the operand in the logic operation or the numerical operation;
s5, forming a scene control model by the equipment message data field information descriptors, the equipment message data structure descriptors and the condition arithmetic units which are set in s2, s3 and s4, and associating a unique scene control model identifier;
s6, after the device reports the data message according to the self-definition, the scene control system finds the corresponding scene control model according to the scene control model identifier carried by the message; the scene control system correctly understands the equipment message data according to the message data structure descriptor, analyzes the message data into structured data and temporarily stores the structured data;
s7, the scene control system traverses the structured data stored in s6, finds the data type corresponding to each field in the structured data from the device message data field information descriptor, and converts the data type into the corresponding data type storage mode in the computer system according to the data type;
s8, the scene control system traverses the structured data of the device report information obtained in s7, substitutes the corresponding numerical value of each field of the structured data into the same field name in the condition operation set in s4 in sequence to carry out operation, and determines whether to trigger the scene according to the truth and falseness of the condition operation result.
In the step 1, the field name in the message is set arbitrarily; the field types include simple data types: int, String, or complex data type: a key-value form of structure, array; the data between the fields is organized in the form of a key-value structure or array.
The invention has the beneficial effects that:
according to the cloud scene control system and method supporting the user-defined reporting of the data message by the equipment, the equipment end triggers the scene according to the data communication format defined by the equipment end, so that the flexibility and the experience of a hardware manufacturer accessing the cloud scene control system are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the embodiments or the drawings needed to be practical in the prior art description, and obviously, the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of an implementation of the method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
In any embodiment, the cloud scene control system supporting device custom reporting of data packets of the present invention includes: the system comprises a scene control model identifier, an equipment message data field information descriptor, an equipment message data structure descriptor and a condition arithmetic unit;
the method comprises the following steps that a scene control model identifier is additional information carried by a cloud terminal which is reported by an equipment terminal each time, and after the cloud terminal receives equipment reported data, a corresponding scene control model is found according to the scene control model identifier;
the device message data field information descriptor is used for describing all possible field names and corresponding field types in data reported to the cloud end by the device; the field types include simple data types: int, String, or complex data type: a key-value type structure and an array.
The device message data structure descriptor is used for describing field names and field data organization forms specifically reported by the device, the field names used in the device message data structure descriptor are field names appearing in the device message data field information descriptor, and the data organization forms among the fields are key-value form structures or arrays;
the condition arithmetic unit is used for presetting an arithmetic rule of equipment fields, and the preset fields are field names appearing in the field information descriptor of the equipment message data; and/or after the equipment reports data, the condition arithmetic unit carries out operation according to a preset equipment field arithmetic rule and determines whether to trigger a scene according to an operation result.
As shown in fig. 1, the cloud scene control system supporting the user-defined reporting of data packets by the device according to the present invention has the following construction method:
s1, the device developer freely defines the data message format reported by the device to the cloud; in the step 1, the field name in the message is set arbitrarily; the field types include simple data types: int, String, or complex data type: a key-value form of structure, array; the data between the fields is organized in the form of a key-value structure or array.
s2, finding out all fields in the message according to the message data defined by the equipment terminal, and storing the field name and the field type in the field information descriptor of the message data of the equipment; the field name and the field type in the field information descriptor of the device message data are completely the same as the field and the type in the message data defined by the device side in s 1;
s3, summarizing an organization structure form among the fields according to the message data defined by the equipment terminal, wherein the organization structure form is one of a key-value structure body or an array; storing the field organization structure form into an equipment message data structure descriptor, wherein the field name of the equipment message data structure descriptor is in the field name range defined by s 2;
s4, defining a condition operator according to the actual scene requirement, wherein the field name defined in the condition operator is in the field name range defined in s2, and the defined field is used for configuring the operand in the logic operation or the numerical operation;
s5, forming a scene control model by the equipment message data field information descriptors, the equipment message data structure descriptors and the condition arithmetic units which are set in s2, s3 and s4, and associating a unique scene control model identifier;
as shown in fig. 1, the control method of the cloud scene control system for supporting the user-defined reporting of the data packet by the device includes the following steps:
s6, after the device reports the data message according to the self-definition, the scene control system finds the corresponding scene control model according to the scene control model identifier carried by the message; the scene control system correctly understands the equipment message data according to the message data structure descriptor, analyzes the message data into structured data and temporarily stores the structured data;
s7, the scene control system traverses the structured data stored in s6, finds the data type corresponding to each field in the structured data from the device message data field information descriptor, and converts the data type into the corresponding data type storage mode in the computer system according to the data type;
s8, the scene control system traverses the structured data of the device report information obtained in s7, substitutes the corresponding numerical value of each field of the structured data into the same field name in the condition operation set in s4 in sequence to carry out operation, and determines whether to trigger the scene according to the truth and falseness of the condition operation result.
According to the method, on the premise that the reported message data of the equipment is fixed, a data model (a field information descriptor and a data structure descriptor) of communication between the equipment and the cloud is reversely deduced according to the actual data message of the equipment, and according to the data model, the cloud system can convert unknown equipment message data into completely known structured data (comprising a data structure, a field name and a field type);
the cloud end can substitute the field value reported by the equipment into a preset condition for operation through analyzed complete known structured data, so as to realize scene triggering.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims. It should be noted that the various technical features described in the above embodiments can be combined in any suitable manner without contradiction, and the invention is not described in any way for the possible combinations in order to avoid unnecessary repetition. In addition, any combination of the various embodiments of the present invention is also possible, and the same should be considered as the disclosure of the present invention as long as it does not depart from the spirit of the present invention.
Claims (4)
1. The cloud scene control system is characterized by comprising a scene control model identifier, an equipment message data field information descriptor, an equipment message data structure descriptor and a condition arithmetic unit;
the method comprises the following steps that a scene control model identifier is additional information carried by a cloud terminal which is reported by an equipment terminal each time, and after the cloud terminal receives equipment reported data, a corresponding scene control model is found according to the scene control model identifier;
the device message data field information descriptor is used for describing all possible field names and corresponding field types in data reported to the cloud end by the device;
the device message data structure descriptor is used for describing field names and field data organization forms specifically reported by the device, the field names used in the device message data structure descriptor are field names appearing in the device message data field information descriptor, and the data organization forms among the fields are key-value form structures or arrays;
the condition arithmetic unit is used for presetting an arithmetic rule of equipment fields, and the preset fields are field names appearing in the field information descriptor of the equipment message data; and/or after the equipment reports data, the condition arithmetic unit carries out operation according to a preset equipment field arithmetic rule and determines whether to trigger a scene according to an operation result.
2. The cloud scene control system of claim 1, wherein the field types include a simple data type: int, String, or complex data type: a key-value type structure and an array.
3. The method for controlling the cloud scene control system supporting the user-defined reporting of the data packet by the device according to any one of claims 1 to 2, comprising the steps of:
s1, the device developer freely defines the data message format reported by the device to the cloud;
s2, finding out all fields in the message according to the message data defined by the equipment terminal, and storing the field name and the field type in the field information descriptor of the message data of the equipment; the field name and the field type in the field information descriptor of the device message data are completely the same as the field and the type in the message data defined by the device side in s 1;
s3, summarizing an organization structure form among the fields according to the message data defined by the equipment terminal, wherein the organization structure form is one of a key-value structure body or an array; storing the field organization structure form into an equipment message data structure descriptor, wherein the field name of the equipment message data structure descriptor is in the field name range defined by s 2;
s4, defining a condition operator according to the actual scene requirement, wherein the field name defined in the condition operator is in the field name range defined in s2, and the defined field is used for configuring the operand in the logic operation or the numerical operation;
s5, forming a scene control model by the equipment message data field information descriptors, the equipment message data structure descriptors and the condition arithmetic units which are set in s2, s3 and s4, and associating a unique scene control model identifier;
s6, after the device reports the data message according to the self-definition, the scene control system finds the corresponding scene control model according to the scene control model identifier carried by the message; the scene control system correctly understands the equipment message data according to the message data structure descriptor, analyzes the message data into structured data and temporarily stores the structured data;
s7, the scene control system traverses the structured data stored in s6, finds the data type corresponding to each field in the structured data from the device message data field information descriptor, and converts the data type into the corresponding data type storage mode in the computer system according to the data type;
s8, the scene control system traverses the structured data of the device report information obtained in s7, substitutes the corresponding numerical value of each field of the structured data into the same field name in the condition operation set in s4 in sequence to carry out operation, and determines whether to trigger the scene according to the truth and falseness of the condition operation result.
4. The method for controlling the cloud scene control system supporting the device to report the data packet by the self-definition according to claim 1, wherein in the step 1, a field name in the packet is arbitrarily set; the field types include simple data types: int, String, or complex data type: a key-value form of structure, array; the data between the fields is organized in the form of a key-value structure or array.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111672029.0A CN114338747B (en) | 2021-12-31 | 2021-12-31 | Cloud scene control system and method supporting device to report data messages in self-defined mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111672029.0A CN114338747B (en) | 2021-12-31 | 2021-12-31 | Cloud scene control system and method supporting device to report data messages in self-defined mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114338747A true CN114338747A (en) | 2022-04-12 |
CN114338747B CN114338747B (en) | 2023-07-25 |
Family
ID=81021550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111672029.0A Active CN114338747B (en) | 2021-12-31 | 2021-12-31 | Cloud scene control system and method supporting device to report data messages in self-defined mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114338747B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2728428A1 (en) * | 2012-11-02 | 2014-05-07 | Rockwell Automation Technologies, Inc. | Cloud based drive monitoring solution |
CN104469846A (en) * | 2013-09-18 | 2015-03-25 | 华为技术有限公司 | Message processing method and equipment |
CN105224692A (en) * | 2015-11-03 | 2016-01-06 | 武汉烽火网络有限责任公司 | Support the system and method for the SDN multilevel flow table parallel search of polycaryon processor |
CN105743752A (en) * | 2016-04-01 | 2016-07-06 | 深圳蓝奥声科技有限公司 | Wireless linkage node network and node device thereof |
CN106254359A (en) * | 2016-08-11 | 2016-12-21 | 浪潮电子信息产业股份有限公司 | A kind of configurable packet parsing system and method |
CN107733738A (en) * | 2017-10-02 | 2018-02-23 | 衢州职业技术学院 | A kind of computer network cloud management system |
CN108681488A (en) * | 2018-05-19 | 2018-10-19 | 济南浪潮高新科技投资发展有限公司 | A kind of platform of internet of things terminal data report method |
CN110830466A (en) * | 2019-11-04 | 2020-02-21 | 云南电网有限责任公司电力科学研究院 | Method and device for framing DL/T645 protocol message based on XML |
CN111541593A (en) * | 2020-04-16 | 2020-08-14 | 杭州鸿雁电器有限公司 | Home management method, home management system and computer readable storage medium |
US20210105204A1 (en) * | 2018-11-28 | 2021-04-08 | Wangsu Science & Technology Co., Ltd. | Cloud network transmission routing method and system |
CN113225320A (en) * | 2021-04-21 | 2021-08-06 | 南京理工大学 | Network message analysis method for keeping user configurable message format secret |
-
2021
- 2021-12-31 CN CN202111672029.0A patent/CN114338747B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2728428A1 (en) * | 2012-11-02 | 2014-05-07 | Rockwell Automation Technologies, Inc. | Cloud based drive monitoring solution |
CN104469846A (en) * | 2013-09-18 | 2015-03-25 | 华为技术有限公司 | Message processing method and equipment |
CN105224692A (en) * | 2015-11-03 | 2016-01-06 | 武汉烽火网络有限责任公司 | Support the system and method for the SDN multilevel flow table parallel search of polycaryon processor |
CN105743752A (en) * | 2016-04-01 | 2016-07-06 | 深圳蓝奥声科技有限公司 | Wireless linkage node network and node device thereof |
CN106254359A (en) * | 2016-08-11 | 2016-12-21 | 浪潮电子信息产业股份有限公司 | A kind of configurable packet parsing system and method |
CN107733738A (en) * | 2017-10-02 | 2018-02-23 | 衢州职业技术学院 | A kind of computer network cloud management system |
CN108681488A (en) * | 2018-05-19 | 2018-10-19 | 济南浪潮高新科技投资发展有限公司 | A kind of platform of internet of things terminal data report method |
US20210105204A1 (en) * | 2018-11-28 | 2021-04-08 | Wangsu Science & Technology Co., Ltd. | Cloud network transmission routing method and system |
CN110830466A (en) * | 2019-11-04 | 2020-02-21 | 云南电网有限责任公司电力科学研究院 | Method and device for framing DL/T645 protocol message based on XML |
CN111541593A (en) * | 2020-04-16 | 2020-08-14 | 杭州鸿雁电器有限公司 | Home management method, home management system and computer readable storage medium |
CN113225320A (en) * | 2021-04-21 | 2021-08-06 | 南京理工大学 | Network message analysis method for keeping user configurable message format secret |
Non-Patent Citations (3)
Title |
---|
JARED HALL等: "CoMPES: A Command Messaging Service for IoT Policy Enforcement in a Heterogeneous Network", 2017 IEEE/ACM SECOND INTERNATIONAL CONFERENCE ON INTERNET-OF-THINGS DESIGN AND IMPLEMENTATION (IOTDI) * |
毕晓晗: "电动汽车充换电网络中消息传输机制的研究与实现", 中国优秀硕士学位论文全文数据库工程科技II辑 * |
王勇: "面向智能电网的通信数据动态处理研究与实现", 中国优秀硕士学位论文全文数据库工程科技II辑 * |
Also Published As
Publication number | Publication date |
---|---|
CN114338747B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111404883B (en) | Method and device for analyzing Internet of things equipment universal protocol | |
CN111061678B (en) | Service data processing method, device, computer equipment and storage medium | |
CN113596017B (en) | Protocol analysis method and device, soft gateway and storage medium | |
CN112988485A (en) | Simulation test method and device for power Internet of things equipment | |
CN109445820A (en) | A kind of intelligence contract upgrade method, system, equipment and computer storage medium | |
WO2022142153A1 (en) | Electricity meter upgrading method and system, smart meter, and storage medium | |
CN111787098B (en) | Earphone upgrading method and device, earphone and storage medium | |
CN111079383A (en) | Data interaction method, device and system for cloud platform and equipment of Internet of things | |
CN107872363B (en) | Data packet loss processing method and system, readable storage medium and electronic device | |
CN114338747A (en) | Cloud scene control system and method supporting user-defined reporting of data messages by equipment | |
CN108173948B (en) | Distributed test data real-time exchange method | |
CN114268927A (en) | Vehicle-mounted communication method, device, equipment and storage medium | |
CN111405007B (en) | TCP session management method, device, storage medium and electronic equipment | |
CN111131373B (en) | Breathing machine data synchronization system, method, device and storage medium | |
CN109194519B (en) | Configuration method and device of network equipment, controller and computer storage medium | |
CN108663959B (en) | A kind of PTC controller showing software online updating by PWM cause for gossip | |
CN114928562B (en) | Flow processing method and system of graph computing platform | |
CN112367234B (en) | Simulation data generation method, terminal device and computer-readable storage medium | |
Teklemariam et al. | Simple RESTful sensor application development model using CoAP | |
CN112612672B (en) | Embedded software real-time running state monitoring method | |
CN114564882A (en) | Construction and application of edge deep learning simulator based on discrete events | |
CN114745415B (en) | Vehicle service communication data processing method, device, equipment and storage medium | |
CN112702751A (en) | Method for training and upgrading wireless communication model, network equipment and storage medium | |
Miyazaki et al. | Formal approach to produce verified programs for wireless sensor nodes | |
CN110830274A (en) | Communication equipment simulation method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |