CN114338747B - Cloud scene control system and method supporting device to report data messages in self-defined mode - Google Patents

Cloud scene control system and method supporting device to report data messages in self-defined mode Download PDF

Info

Publication number
CN114338747B
CN114338747B CN202111672029.0A CN202111672029A CN114338747B CN 114338747 B CN114338747 B CN 114338747B CN 202111672029 A CN202111672029 A CN 202111672029A CN 114338747 B CN114338747 B CN 114338747B
Authority
CN
China
Prior art keywords
data
field
equipment
scene control
cloud
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.)
Active
Application number
CN202111672029.0A
Other languages
Chinese (zh)
Other versions
CN114338747A (en
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.)
Sichuan Qiruike Technology Co Ltd
Original Assignee
Sichuan Qiruike 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 Sichuan Qiruike Technology Co Ltd filed Critical Sichuan Qiruike Technology Co Ltd
Priority to CN202111672029.0A priority Critical patent/CN114338747B/en
Publication of CN114338747A publication Critical patent/CN114338747A/en
Application granted granted Critical
Publication of CN114338747B publication Critical patent/CN114338747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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 for supporting equipment to report data messages in a self-defined manner, wherein a cloud scene control model is established, so that an equipment end developer can independently determine a message data format reported to a cloud according to the actual hardware condition of the equipment end, namely the cloud cannot limit the message data format reported by the equipment end. After the equipment terminal reports the equipment data, the cloud terminal can correctly understand and analyze parameters reported by the equipment according to the scene control model, and the parameters reported by the equipment are used for carrying out conditional operation, and whether the scene is triggered or not is determined according to the result of the conditional operation, so that the equipment terminal can achieve the purpose of triggering the scene under the condition of freely defining the message data format of the reported cloud terminal, and the flexibility of the butt joint of the equipment terminal is improved.

Description

Cloud scene control system and method supporting device to report data messages in self-defined mode
Technical Field
The invention relates to the technical field of the Internet of things, in particular to a cloud scene control system and a cloud scene control method for supporting equipment to report data messages in a self-defined mode.
Background
In the applications of internet of things, IOT platforms and smart home, there are a large number of scene control tasks, and the general scene control information flow is that the device end: the air conditioner, the smoke sensor, the water immersion sensor and the like actively push the equipment state to the cloud, the cloud calculates according to the equipment state pushed by the equipment and the preset equipment state scene conditions, if the equipment state 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 the traditional scene control system is released, the cloud end is required to report the device data according to the message data format specified by the cloud end in order to detect whether the state reported by the device meets the condition of the triggering scene, but the manufacturers of the hardware device actually butt-jointed with the cloud end are different from each other, the message data format of the device is different from each other, the current solution is mainly that the hardware device is required to report the device state according to the message data format specified by the cloud end, so that the hardware manufacturer is required to report according to the parameter format specified by the cloud end, the cloud end can accurately analyze the state reported by the device, further, the condition operation is carried out according to the device state, and finally the scene execution is triggered. The equipment end has to report according to the message data format specified by the cloud, so that the flexibility and experience of access of hardware manufacturers are reduced.
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 self-defined manner, and by establishing a cloud scene control model, developers at the equipment end (an air conditioner, a smoke sensor, a water immersion 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 does not limit the message data format reported by the equipment end. After the equipment terminal reports the equipment data, the cloud terminal can correctly understand and analyze parameters reported by the equipment according to the scene control model, and the parameters reported by the equipment are used for carrying out conditional operation, and whether the scene is triggered or not is determined according to the result of the conditional operation, so that the equipment terminal can achieve the purpose of triggering the scene under the condition of freely defining the message data format of the reported cloud terminal, and the flexibility of the butt joint of the equipment terminal is improved.
The invention realizes the above purpose through the following technical scheme:
the cloud scene control system supporting the self-defined reporting of the data message 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 scene control model identifier is additional information carried by the cloud end when the equipment end reports the additional information to the cloud end each time, and the cloud end finds a corresponding scene control model according to the scene control model identifier after receiving the data reported by the equipment;
the device message data field information descriptor is used for describing all possible field names and corresponding field types in the data reported to the cloud 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 a device field, wherein the preset field is a field name appearing in the device message data field information descriptor; and/or the condition arithmetic unit is used for carrying out operation according to a preset equipment field arithmetic rule after the equipment reports the data, and determining whether to trigger a scene according to an operation result.
The field types include simple data types: int, string, or complex data types: a key-value form structure, an array.
The invention also provides a control method of the cloud scene control system supporting the self-defined reporting of the data message by the equipment, which comprises the following steps:
s1, a developer at the equipment end freely defines a data message format reported by equipment to a cloud;
s2, according to the message data defined by the equipment end, finding out all fields in the message, and storing the field names and the field types in a field information descriptor of the message data of the equipment; the field name and the field type in the field information descriptor of the equipment message data are identical to the field and the type in the message data defined by the equipment terminal in s 1;
s3, summarizing an organization structure form among fields according to message data defined by the equipment end, wherein the organization structure form is one of a key-value structure body or an array; storing the field organization structure form into a device message data structure descriptor, wherein the field name of the device message data structure descriptor is within the field name range defined by s 2;
s4, defining a conditional arithmetic unit according to actual scene requirements, wherein the field names defined in the conditional arithmetic unit are in the field name range defined in s2, and the defined fields are used for being configured as operands in logic operation or numerical operation;
s5, forming a scene control model by the device message data field information descriptors, the device message data structure descriptors and the condition arithmetic unit which are set in the s2, the s3 and the s4, and associating a unique scene control model identifier;
s6, after the equipment reports the data message according to the user definition, the scene control system finds out a 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 stores the structured data temporarily;
s7, traversing the temporarily stored structured data in s6 by the scene control system, finding the data type corresponding to each field in the structured data from the device message data field information descriptor, and converting the data type into a corresponding data type storage mode in the computer system;
and S8, traversing the structured data of the information reported by the equipment obtained in the step S7 by the scene control system, substituting the numerical value corresponding to each field of the structured data into the same field name in the conditional operation set in the step S4 in sequence to perform operation, and determining whether to trigger the scene according to the true or false of the conditional operation result.
In the step 1, the field names in the message are arbitrarily set; the field types include simple data types: int, string, or complex data types: a key-value form of structure, array; the data organization between the fields is in the form of a structure or array in the form of a key-value.
The invention has the beneficial effects that:
according to the cloud scene control system and the cloud scene control method for supporting the self-defined reporting of the data message by the equipment, the equipment end realizes the triggering of the scene according to the self-defined data communication format, so that the flexibility and experience of accessing the cloud scene control system by hardware manufacturers are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the practical drawings required in the embodiments or the prior art description, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
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 will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
In any embodiment, the cloud scene control system for supporting the self-defined reporting of the data message by the equipment of the present invention includes: the device comprises a scene control model identifier, a device message data field information descriptor, a device message data structure descriptor and a condition arithmetic unit;
the scene control model identifier is additional information carried by the cloud end when the equipment end reports the additional information to the cloud end each time, and the cloud end finds a corresponding scene control model according to the scene control model identifier after receiving the data reported by the equipment;
the device message data field information descriptor is used for describing all possible field names and corresponding field types in the data reported to the cloud by the device; the field types include simple data types: int, string, or complex data types: a key-value form structure, 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 a device field, wherein the preset field is a field name appearing in the device message data field information descriptor; and/or the condition arithmetic unit is used for carrying out operation according to a preset equipment field arithmetic rule after the equipment reports the data, and determining whether to trigger a scene according to an operation result.
As shown in fig. 1, the cloud scene control system supporting the self-defined reporting of the data message by the equipment of the present invention has the following construction method:
s1, a developer at the equipment end freely defines a data message format reported by equipment to a cloud; in the step 1, the field names in the message are arbitrarily set; the field types include simple data types: int, string, or complex data types: a key-value form of structure, array; the data organization between the fields is in the form of a structure or array in the form of a key-value.
S2, according to the message data defined by the equipment end, finding out all fields in the message, and storing the field names and the field types in a field information descriptor of the message data of the equipment; the field name and the field type in the field information descriptor of the equipment message data are identical to the field and the type in the message data defined by the equipment terminal in s 1;
s3, summarizing an organization structure form among fields according to message data defined by the equipment end, wherein the organization structure form is one of a key-value structure body or an array; storing the field organization structure form into a device message data structure descriptor, wherein the field name of the device message data structure descriptor is within the field name range defined by s 2;
s4, defining a conditional arithmetic unit according to actual scene requirements, wherein the field names defined in the conditional arithmetic unit are in the field name range defined in s2, and the defined fields are used for being configured as operands in logic operation or numerical operation;
s5, forming a scene control model by the device message data field information descriptors, the device message data structure descriptors and the condition arithmetic unit which are set in the s2, the s3 and the s4, and associating a unique scene control model identifier;
as shown in fig. 1, the control method of the cloud scene control system supporting the device to report the data message in a self-defined manner includes the following steps:
s6, after the equipment reports the data message according to the user definition, the scene control system finds out a 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 stores the structured data temporarily;
s7, traversing the temporarily stored structured data in s6 by the scene control system, finding the data type corresponding to each field in the structured data from the device message data field information descriptor, and converting the data type into a corresponding data type storage mode in the computer system;
and S8, traversing the structured data of the information reported by the equipment obtained in the step S7 by the scene control system, substituting the numerical value corresponding to each field of the structured data into the same field name in the conditional operation set in the step S4 in sequence to perform operation, and determining whether to trigger the scene according to the true or false of the conditional operation result.
According to the invention, on the premise that the data of the device report message is fixed, a data model (a field information descriptor and a data structure descriptor) of the device and the cloud communication is reversely pushed out according to the actual data message of the device, and according to the data model, the cloud system can convert the unknown device message data into completely known structured data (comprising a data structure, a field name and a field type);
the cloud can substitute the field value reported by the equipment into a preset condition for operation through the analyzed completely known structured data, so that scene triggering is realized.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims. In addition, the specific features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various possible combinations are not described further. Moreover, any combination of the various embodiments of the invention can be made without departing from the spirit of the invention, which should also be considered as disclosed herein.

Claims (3)

1. The cloud scene control system supporting the self-defined reporting of the data message by the equipment 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 scene control model identifier is additional information carried by the cloud end when the equipment end reports the additional information to the cloud end each time, and the cloud end finds a corresponding scene control model according to the scene control model identifier after receiving the data reported by the equipment;
the device message data field information descriptor is used for describing all possible field names and corresponding field types in the data reported to the cloud 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 a device field, wherein the preset field is a field name appearing in the device message data field information descriptor; and/or the condition arithmetic unit is used for carrying out operation according to a preset equipment field arithmetic rule after the equipment reports the data, and determining whether to trigger a scene according to an operation result;
a control method of a cloud scene control system supporting self-defined reporting of data messages by a device comprises the following steps:
s1, a developer at the equipment end freely defines a data message format reported by equipment to a cloud;
s2, according to the message data defined by the equipment end, finding out all fields in the message, and storing the field names and the field types in a field information descriptor of the message data of the equipment; the field name and the field type in the field information descriptor of the equipment message data are identical to the field and the type in the message data defined by the equipment terminal in s 1;
s3, summarizing an organization structure form among fields according to message data defined by the equipment end, wherein the organization structure form is one of a key-value structure body or an array; storing the field organization structure form into a device message data structure descriptor, wherein the field name of the device message data structure descriptor is within the field name range defined by s 2;
s4, defining a conditional arithmetic unit according to actual scene requirements, wherein the field names defined in the conditional arithmetic unit are in the field name range defined in s2, and the defined fields are used for being configured as operands in logic operation or numerical operation;
s5, forming a scene control model by the device message data field information descriptors, the device message data structure descriptors and the condition arithmetic unit which are set in the s2, the s3 and the s4, and associating a unique scene control model identifier;
s6, after the equipment reports the data message according to the user definition, the scene control system finds out a 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 stores the structured data temporarily;
s7, traversing the temporarily stored structured data in s6 by the scene control system, finding the data type corresponding to each field in the structured data from the device message data field information descriptor, and converting the data type into a corresponding data type storage mode in the computer system;
and S8, traversing the structured data of the information reported by the equipment obtained in the step S7 by the scene control system, substituting the numerical value corresponding to each field of the structured data into the same field name in the conditional operation set in the step S4 in sequence to perform operation, and determining whether to trigger the scene according to the true or false of the conditional operation result.
2. The cloud scenario control system supporting device-specific reporting of data messages according to claim 1, wherein said field types comprise simple data types: int, string, or complex data types: a key-value form structure, an array.
3. The cloud scene control system for supporting device custom reporting of data messages according to claim 1, wherein in step 1, field names in the messages are arbitrarily set; the field types include simple data types: int, string, or complex data types: a key-value form of structure, array; the data organization between the fields is in the form of a structure or array in the form of a key-value.
CN202111672029.0A 2021-12-31 2021-12-31 Cloud scene control system and method supporting device to report data messages in self-defined mode Active CN114338747B (en)

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 CN114338747A (en) 2022-04-12
CN114338747B true 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 (10)

* Cited by examiner, † Cited by third party
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
CN113225320A (en) * 2021-04-21 2021-08-06 南京理工大学 Network message analysis method for keeping user configurable message format secret

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109412942B (en) * 2018-11-28 2020-12-29 网宿科技股份有限公司 Cloud network transmission routing method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
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
CN113225320A (en) * 2021-04-21 2021-08-06 南京理工大学 Network message analysis method for keeping user configurable message format secret

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CoMPES: A Command Messaging Service for IoT Policy Enforcement in a Heterogeneous Network;Jared Hall等;2017 IEEE/ACM Second International Conference on Internet-of-Things Design and Implementation (IoTDI);全文 *
电动汽车充换电网络中消息传输机制的研究与实现;毕晓晗;中国优秀硕士学位论文全文数据库工程科技II辑;全文 *
面向智能电网的通信数据动态处理研究与实现;王勇;中国优秀硕士学位论文全文数据库工程科技II辑;全文 *

Also Published As

Publication number Publication date
CN114338747A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN110474896B (en) Data communication method based on Modbus protocol standard and related equipment
CN108572916B (en) Pressure testing method, device, equipment and storage medium based on Jmeter
CN112087454A (en) Communication method, device, equipment and storage medium of Internet of things gateway equipment
CN107450899B (en) Method and device for generating terminal control script
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN107968805B (en) Event notification method and server
US10715628B2 (en) Attribute operating method and device
CN113596017A (en) Protocol analysis method, device, soft gateway and storage medium
CN112861346A (en) Data processing system, method and electronic equipment
CN107562426B (en) Method and system for collecting and analyzing Trace of browser in non-embedded cloud
US11088989B2 (en) Semantic validation method and apparatus
CN114338747B (en) Cloud scene control system and method supporting device to report data messages in self-defined mode
CN111597559B (en) System command injection vulnerability detection method and device, equipment and storage medium
CN112583617B (en) Fault determination method, server, control terminal and storage medium
CN114371858A (en) Code processing system, method, device and storage medium based on application component
CN113703996B (en) Access control method, equipment and medium based on user and YANG model grouping
CN115878860A (en) Menu generation method, device, server equipment and medium
CN115203008A (en) Test method, test device, storage medium and equipment
CN109413452B (en) Bullet screen checking method and device based on different modes, terminal and storage medium
CN104426916A (en) Activation code processing method and system
CN110830274A (en) Communication equipment simulation method and device
CN116028598B (en) File generation method and device based on ES and computer readable medium
CN114745415B (en) Vehicle service communication data processing method, device, equipment and storage medium
CN112468358B (en) Protocol detection method, system, equipment and computer readable storage medium
CN115038089B (en) Multi-terminal data monitoring and collecting method based on information extraction

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