Heating and ventilation unit control method and device, heating and ventilation unit and computer readable medium
By detecting and converting the protocol data of HVAC units, the problems of low control adaptability and high management costs in the prior art are solved, and communication and centralized management of cross-manufacturers equipment are realized, and management costs are reduced.
Patent Information
- Application Number
- CN202411988678.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-16
AI Technical Summary
The existing HVAC control methods have problems of low adaptability and high management costs, especially when multi-manufacturer equipment integration and management.
By obtaining the pending HVAC protocol data and detecting whether there is matching integrated protocol data in the preset rule library. If present, perform a protocol data conversion and send to the target HVAC unit. If it does not exist, the protocol data is parsed and converted through preset parsing algorithms and conversion scripts, and the newly generated protocol rules are stored in the rule library.
It realizes communication and interoperability between HVAC units across manufacturers or brands, improves equipment adaptability, and centralized control and management through a single system or software, reducing management costs.
Smart Images

Figure CN120017725A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of heating control technology, and in particular to a HVAC unit control method, device, HVAC unit and computer-readable medium. Background Art
[0002] In today's era of smart Internet of Things, linkage and intelligent control between devices are the general trend. The HVAC industry is no exception. It is necessary to keep up with the pace of the times and realize intelligent control and efficient energy management of HVAC units. However, traditional HVAC units have certain limitations in operation and management. HVAC units from different manufacturers often use different control protocols and interface standards, which brings great difficulties to the integration and management of HVAC systems.
[0003] For example, in an industrial park, HVAC units from multiple manufacturers are used. To manage these devices, there are generally two ways. The first method is to use corresponding software or hardware to control the equipment of each manufacturer, which will result in the coexistence of multiple software or hardware of the same type (all related to HVAC units). This method is simple and direct, but it will complicate management because each device requires a dedicated management system and operator; the second method is to redevelop and debug these devices and management software. This method is costly and expensive, making it impractical for multi-region or scenario applications and too cumbersome to expand.
[0004] It can be seen that the existing control methods for HVAC units have technical problems of low adaptability and high management costs. Summary of the invention
[0005] The present application provides a HVAC unit control method, device, HVAC unit and computer-readable medium to solve the technical problems of high cost and low adaptability of the HVAC unit control method in the above-mentioned prior art.
[0006] According to one aspect of an embodiment of the present application, the present application provides a HVAC unit control method, the method comprising: obtaining HVAC unit protocol data to be processed; detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in a preset rule base, the preset rule base pre-integrating multiple integrated protocol data; if there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, converting the HVAC unit protocol data to be processed into target protocol data; and sending the target protocol data to a target HVAC unit.
[0007] Optionally, after detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, the method further includes: if there is no integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, parsing the HVAC unit protocol data to be processed by a preset parsing algorithm and a preset conversion script to obtain a parsing result; generating new protocol rules according to the parsing result; after storing the new protocol rules and the HVAC unit protocol data to be processed in the preset rule base, detecting again whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base.
[0008] Optionally, after obtaining the HVAC unit protocol data to be processed, the method also includes: identifying the protocol data type of the HVAC unit protocol data to be processed; judging whether the same protocol data type exists in the preset rule base; if the same protocol data type exists in the preset rule base, detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base based on the same protocol data type; if the same protocol data type does not exist in the preset rule base, parsing the HVAC unit protocol data to be processed by the preset parsing algorithm to obtain the parsing result.
[0009] Optionally, converting the HVAC unit protocol data to be processed into target protocol data includes: converting the HVAC unit protocol data to be processed into standard protocol data according to preset protocol rules; converting the standard protocol data into target protocol data according to the type of protocol data of the target HVAC unit to be sent.
[0010] Optionally, the HVAC unit protocol data to be processed is parsed by a preset parsing algorithm and a preset conversion script to obtain a parsing result, including: parsing the HVAC unit protocol data to be processed according to the protocol data type of the HVAC unit protocol data to be processed by the preset parsing algorithm to obtain parsed protocol data; converting the parsed protocol data into new standard protocol data by the preset conversion script; and converting the new standard protocol data into new target protocol data.
[0011] Optionally, identifying the protocol data type of the HVAC unit protocol data to be processed includes: extracting protocol data features of the HVAC unit protocol data to be processed; comparing the protocol data features with preset protocol data type features, and determining the protocol data type of the HVAC unit protocol data to be processed based on the comparison result.
[0012] Optionally, before obtaining the HVAC unit protocol data to be processed, the method also includes: creating the preset rule base; creating the preset parsing algorithm, the preset parsing algorithm including a word analysis algorithm and a grammatical analysis algorithm for parsing the HVAC unit protocol data to be processed; and / or creating the preset conversion script, the preset conversion script including multiple protocol data conversion functions for converting the HVAC unit protocol data to be processed.
[0013] According to another aspect of an embodiment of the present application, the present application provides a HVAC unit control device, the device comprising: an acquisition module, used to acquire HVAC unit protocol data to be processed; a detection module, used to detect whether there is integrated protocol data matching the HVAC unit protocol data to be processed in a preset rule base; the preset rule base is pre-integrated with multiple integrated protocol data; a conversion module, used to convert the HVAC unit protocol data to be processed into target protocol data if there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base; and a sending module, used to send the target protocol data to a target HVAC unit.
[0014] According to another aspect of an embodiment of the present application, the present application provides a HVAC unit, which performs communication control through the HVAC unit control method.
[0015] According to another aspect of an embodiment of the present application, the present application provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the steps of the HVAC unit control method.
[0016] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:
[0017] The present application can be applied to cross-manufacturer or cross-brand HVAC unit communication control scenarios. The present application obtains the HVAC unit protocol data to be processed, and detects whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base. If so, the HVAC unit protocol data to be processed is converted into target protocol data based on the preset protocol rules and then sent to the target HVAC unit. This method can search and match protocol data in a rule base that integrates a large number of existing protocol data, and convert the received protocol data through preset protocol rules to achieve communication and interoperability between HVAC units across manufacturers or brands, thereby improving the adaptability of the equipment; at the same time, a single system or software can be used to centrally control and manage HVAC units across manufacturers or brands, reducing the cost of specialized management systems and operators, thereby reducing the management cost of HVAC units. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 A schematic diagram of an optional digital base for connecting a HVAC unit based on script parsing adaptation according to an embodiment of the present application;
[0021] Figure 2 A schematic flow chart of an optional HVAC unit control method provided according to an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the composition of an optional protocol data provided according to an embodiment of the present application;
[0023] Figure 4 A schematic diagram of an optional protocol data conversion provided according to an embodiment of the present application;
[0024] Figure 5 A schematic diagram of an optional HVAC unit control device provided according to an embodiment of the present application;
[0025] Figure 6 A schematic diagram of an optional electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0027] In order to solve the problems mentioned in the background technology, according to one aspect of an embodiment of the present application, an embodiment of a HVAC unit control method is provided.
[0028] like Figure 1 As shown, the above HVAC unit control method can be applied to Figure 1In the system framework shown. The system framework is a digital base 100 based on script parsing adaptation connection HVAC units, including protocol data 101 of different HVAC units, a script parser 103, and a platform management system 105. The protocol data 101 of different HVAC units is transmitted to the script parser 103 through the network, and the script parser 103 communicates with the platform management system 105 through the network for data transmission. Among them, the network can include various connection types, such as wired, wireless communication links or optical fiber cables.
[0029] The protocol data 101 of different HVAC units can be the protocol data of cross-manufacturer or cross-brand HVAC units in different application scenarios, and the protocol data of each HVAC unit carries a corresponding conversion script. The number of protocol data 101 of different HVAC units can be determined according to the actual situation of the application scenario. Among them, different application scenarios can be actual application scenarios such as residential areas, hospitals, laboratories, industrial parks, etc. The protocol data includes network protocols, electronic control protocols, and point parameter data. The network protocol and the electronic control protocol are necessary protocols for the interconnection of HVAC units. The network protocol realizes mutual communication, and the electronic control protocol realizes the control of the unit. Point parameter data includes but is not limited to outdoor temperature, humidity, and air conditioning preset temperature, etc., which provide a basis for platform system data analysis.
[0030] The script parser 103 is used to parse and analyze the protocol data 101 of different HVAC units to adapt to the management and control of different HVAC units. The script parser 103 includes a rule base and a preset parsing algorithm. The rule base is a database that integrates many common (standard) protocols (such as modbus, bacnet protocol, etc.) in advance, also known as a protocol library, which can more quickly match the data protocols from various HVAC equipment and convert them into target data protocols. The preset parsing algorithm is an alternative solution. If there is no corresponding matching protocol data in the rule base, the received protocol data can be converted into target protocol data through the preset parsing algorithm.
[0031] The platform management system 105 includes data integration analysis and intelligent control decision-making. The received protocol data is synchronized to the platform management system 105 through the script parser 103. The platform collects point data for a period of time (such as outdoor temperature, humidity and current air-conditioning setting temperature, etc.). The first step to obtain data is to clean the data and improve the data quality. The data is then stored to achieve open sharing of data across systems. In addition, the collected data is analyzed to discover the patterns, trends and correlations hidden behind the data. This is very important for the subsequent platform system to give optimization strategies through intelligent control decisions.
[0032] It should be noted that the HVAC unit control method provided in the embodiment of the present application is generally executed by a script parser, and accordingly, the HVAC unit control device is generally set in the script parser. And it should be understood that, Figure 1 The number of protocol data 101, script parser 103, and platform management system 105 of different HVAC units is only illustrative. According to the implementation requirements, there can be any number of protocol data 101, script parser 103, and platform management system 105 of different HVAC units.
[0033] like Figure 2 As shown, Figure 2 A flow chart of a HVAC unit control method provided by an embodiment of the present invention. Taking the HVAC unit control method executed by a script parser as an example, a HVAC unit control method includes the following steps:
[0034] Step S202, obtaining HVAC unit protocol data to be processed.
[0035] In this embodiment, the provided HVAC unit control method is applicable to cross-manufacturer or cross-brand HVAC unit communication control scenarios, which can be practical scenarios such as residential areas, hospitals, laboratories, industrial parks, etc. that require communication control of cross-manufacturer HVAC units, and of course, can also be communication control scenarios for HVAC units of different brands from the same manufacturer. During the HVAC unit control process, the control system of the HVAC unit can monitor the protocol data of the HVAC units of each manufacturer involved in all links in real time, including real-time data reading, analysis, judgment, control and other processes.
[0036] In this embodiment, the above-mentioned HVAC unit protocol data to be processed may include protocol data corresponding to HVAC units of different manufacturers or brands that need to be controlled for communication in a certain scenario; for example, in a community, each household may use a different brand of HVAC, and the interface protocol data used by each brand is different, some are protocol data 1, some are protocol data 2, and some are protocol data 3. The number of the above-mentioned HVAC unit protocol data to be processed can be single or multiple. For example, if there is one HVAC unit to be controlled, the acquired HVAC unit protocol data to be processed can be one. Of course, when 10 different HVAC units need to be controlled, the acquired HVAC unit protocol data to be processed is 10. In this embodiment, the number of HVAC unit protocol data to be processed can be determined according to the actual number of HVAC units to be controlled, and the number of HVAC unit protocol data to be processed is not limited here. The above-mentioned HVAC units may include various HVAC air conditioners, heaters and other heating equipment.
[0037] Among them, Figure 3As shown in the figure, the protocol data includes network protocol, electric control protocol and point parameter data. Network protocol and electric control protocol are necessary protocols for HVAC unit interconnection. Network protocol realizes mutual communication, while electric control protocol realizes control of the unit. Point parameter data includes but is not limited to outdoor temperature, humidity and air conditioning preset temperature, etc., which provides a basis for platform system data analysis.
[0038] The above-mentioned HVAC unit protocol data to be processed all carry corresponding conversion scripts for converting the HVAC unit protocol data to be processed. The conversion script contains many conversion functions, mainly the conversion function of certain protocol data to standard protocol data. Among them, the conversion function can be customized and can be selected according to different protocol data.
[0039] In some embodiments, when it is necessary to communicate and control multiple HVAC units of different manufacturers or brands in a certain scenario, the protocol data corresponding to the HVAC unit can be obtained first. The HVAC unit protocol data to be processed can be the protocol data sent by the HVAC unit in real time, or it can be the pre-stored HVAC unit protocol data.
[0040] Step S204, detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base; the preset rule base is pre-integrated with a plurality of integrated protocol data.
[0041] In some embodiments, the preset rule library integrates a database of many common (standard) protocols (such as modbus, bacnet protocols, etc.) in advance, also known as a protocol library, which can more quickly match the protocol data from each HVAC device and convert it into target protocol data. The above-mentioned integrated protocol data is the protocol data pre-integrated and stored in the above-mentioned preset rule library. The number of integrated protocol data can be multiple. When it is necessary to control many HVAC devices, the corresponding protocol data can be integrated in the preset rule library to facilitate reading and control during communication control.
[0042] In some embodiments, after the HVAC unit protocol data to be processed is obtained, the HVAC unit protocol data to be processed can be compared with the multiple integrated protocol data integrated in the preset rule library. According to the comparison result, it is determined whether there is protocol data matching the HVAC unit protocol data to be processed in the preset rule library. If the protocol to be processed matches a certain integrated protocol data in the preset rule library, it means that there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule library. If the HVAC unit protocol data to be processed does not match any of the integrated protocol data in the preset rule library, it means that there is no integrated protocol data matching it in the preset rule library. When there is no integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule library, it means that the HVAC unit corresponding to the HVAC unit protocol data to be processed is a new device with a different access protocol launched by a certain manufacturer, and the corresponding protocol standard is not integrated in the rule library.
[0043] Step S206: If there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, the HVAC unit protocol data to be processed is converted into target protocol data.
[0044] In some embodiments, the preset protocol rules are pre-set protocol conversion rules for converting between protocol data. Figure 4 As shown, the preset protocol rules can be used to execute: the protocol intercommunication process of converting A protocol data into standard protocol data, and then converting the standard protocol into B data protocol. Among them, A protocol data can refer to the HVAC unit protocol data to be processed, B protocol data can be the target protocol data, and standard protocol data can refer to the general protocol conversion standard for converting between the HVAC unit protocol data to be processed and the target protocol data.
[0045] In some embodiments, when it is determined that integrated protocol data matching the HVAC unit protocol data to be processed exists in the preset rule base, the HVAC unit protocol data to be processed can be converted into corresponding target protocol data through the preset protocol rules.
[0046] Step S208, sending the target protocol data to the target HVAC unit.
[0047] Among them, the above-mentioned target HVAC unit may be the HVAC unit corresponding to the HVAC unit protocol data to be processed.
[0048] In this embodiment, after the HVAC unit protocol data to be processed is converted into target protocol data, the target protocol data can be sent to the corresponding target HVAC unit to facilitate communication control of the target HVAC unit.
[0049] In an embodiment of the present invention, by obtaining the HVAC unit protocol data to be processed and detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, if there is, the HVAC unit protocol data to be processed is converted into target protocol data based on the preset protocol rules and then sent to the target HVAC unit. This method can search and match protocol data in a rule base that integrates a large amount of existing protocol data, and convert the received protocol data through preset protocol rules to achieve communication and interoperability between HVAC units across manufacturers or brands, thereby improving the adaptability of the equipment; at the same time, a single system or software can be used to centrally control and manage HVAC units across manufacturers or brands, reducing the cost of specialized management systems and operators, thereby reducing the management cost of HVAC units.
[0050] In an optional embodiment, after step S204, the method further includes:
[0051] If there is no integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, the HVAC unit protocol data to be processed is parsed by a preset parsing algorithm and a preset conversion script to obtain a parsing result;
[0052] Generate new protocol rules according to the analysis results;
[0053] After storing the new protocol rules and the HVAC unit protocol data to be processed in the preset rule base, it is again detected whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base.
[0054] In this embodiment, the preset parsing algorithm is used to parse the HVAC unit protocol data to be processed. The preset parsing algorithm generally includes lexical analysis and grammatical analysis, wherein the lexical analysis includes a finite automaton algorithm that can identify words in the script, and the grammatical analysis includes a recursive descent analysis method, an operator finite analysis method, etc., and the grammatical analysis is performed by constructing a grammatical parsing tree. In short, the preset parsing algorithm can convert the script code into an internal representation that can be understood by the computer. The preset parsing algorithm is an alternative solution. If there is no matching integrated protocol data in the rule base, the received protocol data can be converted into the target protocol data through the preset parsing algorithm.
[0055] The above-mentioned preset conversion script is a pre-set conversion script, and is a conversion script carried by each protocol data itself, which can convert the corresponding protocol data. Each protocol data corresponds to a conversion script. Among them, the conversion script includes many conversion functions, mainly the conversion function of certain protocol data to standard protocol data.
[0056] The above new protocol rules are new protocol rules set for new protocol data. That is, when the HVAC unit protocol data to be processed does not find matching integrated protocol data in the preset rule library, it means that the HVAC unit protocol data to be processed is new protocol data. At this time, new protocol rules need to be set for the new protocol data.
[0057] In this embodiment, when there is no integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, it means that the HVAC unit protocol data to be processed is new protocol data, that is, the HVAC unit protocol data to be processed is not stored and recorded in the preset rule base, and the corresponding protocol rules are not integrated in the preset rule base. This means that the HVAC equipment corresponding to the HVAC unit protocol data to be processed may be a new device with a different access protocol launched by a certain manufacturer, or a device from another new manufacturer. At this time, it is necessary to parse and analyze the HVAC unit protocol data to be processed and generate new protocol rules. After storing the new protocol rules and the HVAC unit protocol data to be processed in the preset rule base, it is again detected whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base. In this way, when the protocol data is obtained next time, the corresponding protocol data can be directly found from the preset rule base, and the corresponding target HVAC unit can be controlled and managed for communication.
[0058] In this embodiment, new protocol rules are generated after parsing the new HVAC unit protocol data to be processed, and the new HVAC unit protocol data to be processed and the protocol rules are archived and stored in the warehouse to facilitate centralized control and management, thereby improving the adaptability of HVAC units across manufacturers or brands. At the same time, archiving in the existing rule library and managing on the existing management platform can reduce management costs.
[0059] In an optional embodiment, after step S202, the method further includes:
[0060] Identify the protocol data type of the HVAC unit protocol data to be processed;
[0061] Determine whether there is a same protocol data type in the preset rule base;
[0062] If the same protocol data type exists in the preset rule base, detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base based on the same protocol data type;
[0063] If the same protocol data type does not exist in the preset rule base, the HVAC unit protocol data to be processed is parsed using the preset parsing algorithm to obtain the parsing result.
[0064] In this embodiment, the above-mentioned protocol data types include CAN network communication protocol, Modbus protocol, 485 communication protocol, BMS building protocol, etc. Among them, different protocols have different characteristics, such as protocol header, data format or encoding method, etc. Protocol header: Many protocols contain a specific header at the beginning of the data packet to identify the protocol type and version. Data format: Different protocols have different data formats, for example, JSON, XML, HTTP, etc. have their own unique formats. Encoding method: The encoding method of data is also an important feature for identifying the protocol, such as UTF-8, ASCII, etc.
[0065] Specifically, first read the protocol data and preliminarily filter out irrelevant blank characters, comments, etc., then perform feature detection, that is, check the header of the data packet to identify the specific protocol type. After identifying the protocol data type of the HVAC unit protocol data to be processed, compare it with the protocol data type integrated in the preset rule library to determine whether there is the same protocol data type in the preset rule library. If the preset rule library has the same protocol data type, it means that the corresponding protocol data type has been integrated in the preset rule library, and it is necessary to execute step S204 to determine whether the corresponding protocol data type module matches the protocol data already integrated in the preset rule library.
[0066] In some examples, when the preset rule base does not have the same protocol data type, it means that the preset rule base does not have the corresponding protocol data type integrated, and the HVAC unit may be from another manufacturer or a new brand of equipment. At this time, it is necessary to execute step S206 to parse the HVAC unit protocol data to be processed through a preset parsing algorithm to obtain a parsing result to complete the addition of new protocol data.
[0067] In this embodiment, the protocol data type is first compared and judged. After the type of HVAC unit protocol data to be processed is determined, it is only necessary to match the protocol data under the protocol data type. There is no need to match all the protocol data in the preset rule library. This can greatly improve the matching time of the protocol data and improve the matching speed of the protocol data.
[0068] In an optional embodiment, the above step 206 specifically includes:
[0069] Converting the HVAC unit protocol data to be processed into standard protocol data according to preset protocol rules;
[0070] The standard protocol data is converted into target protocol data according to the protocol data type of the target HVAC unit to be sent.
[0071] In this embodiment, the above-mentioned target HVAC unit is a HVAC unit that needs to be controlled by communication. After matching the corresponding integrated protocol data in the preset rule base, the HVAC unit protocol data to be processed can be converted into standard protocol data according to the preset protocol rules and protocol data types, and then the standard protocol data is converted into the target protocol data of the corresponding target HVAC unit, so as to facilitate communication control of the target HVAC unit through the target protocol data. In this way, the target protocol data can be directly converted according to the preset protocol rules and protocol data types, which can improve the conversion speed of the target protocol data. This will improve the adaptability and efficiency of the HVAC unit.
[0072] In an optional embodiment, the HVAC unit protocol data to be processed is parsed by a preset parsing algorithm and a preset conversion script to obtain a parsing result, which specifically includes:
[0073] Parsing the HVAC unit protocol data to be processed according to the protocol data type of the HVAC unit protocol data to be processed by the preset parsing algorithm to obtain parsed protocol data;
[0074] Converting the parsed protocol data into new standard protocol data by using the preset conversion script;
[0075] The new standard protocol data is converted into new target protocol data.
[0076] In this embodiment, after determining that there is no corresponding protocol data type in the preset rule library, or no corresponding integrated protocol data is matched, the HVAC unit protocol data to be processed can be analyzed by the preset parsing algorithm and the identified protocol data type, and then converted into new standard protocol data by the preset conversion script, and then the new standard protocol data is converted into new target protocol data. This facilitates the generation of protocol rules for new protocol data, realizes the inverse operation of protocol conversion, and facilitates the control of new HVAC units according to the new protocol rules in the later stage, so as to improve the adaptability of HVAC units and reduce management costs.
[0077] In an optional embodiment, the above-mentioned identification of the protocol data type of the HVAC unit protocol data to be processed specifically includes:
[0078] Extracting protocol data features of the HVAC unit protocol data to be processed;
[0079] The protocol data feature is compared with a preset protocol data type feature, and the protocol data type of the HVAC unit protocol data to be processed is determined according to the comparison result.
[0080] In this embodiment, in the process of processing the HVAC unit protocol data, the protocol data features of the HVAC unit protocol data to be processed can be first extracted, such as extracting the features of the protocol header in the HVAC unit protocol data to be processed, because many protocols contain a specific header at the beginning of the data packet, which is used to identify the protocol type and version. As long as the features of the protocol header are identified, the protocol data type of the corresponding HVAC unit protocol data to be processed can be known. Of course, in many known protocol data, the corresponding protocol data type features are also known. After obtaining the protocol data type features of the HVAC unit protocol data to be processed, the protocol data type of the HVAC unit protocol data to be processed can be obtained after comparison with the known protocol data type features. In this way, comparison with the preset protocol data type features can quickly identify the protocol data category of the HVAC unit protocol data to be processed, thereby improving the adaptability of the protocol data of different HVAC units, and at the same time improving the centralized control management cost of different HVAC units.
[0081] In an optional embodiment, before the above step S202, the above method further includes:
[0082] Creating the preset rule base;
[0083] Creating the preset parsing algorithm, wherein the preset parsing algorithm includes a word analysis algorithm and a grammar analysis algorithm for parsing the HVAC unit protocol data to be processed; and / or
[0084] The preset conversion script is created, wherein the preset conversion script includes a plurality of protocol data conversion functions for converting the HVAC unit protocol data to be processed.
[0085] In this embodiment, a preset parsing algorithm, a preset conversion script, and a preset rule base are first created. The protocol data corresponding to the HVAC unit that needs to be centrally controlled and managed is parsed and converted to determine the protocol data type, convert the standard protocol data, and generate preset protocol rules. Then, the mapping relationship between the protocol data type, standard protocol data, and preset protocol rules corresponding to the protocol data of the HVAC unit is integrated in a database, and then a preset rule base is obtained, so that when communicating and controlling with the HVAC unit, it can quickly identify the match, and then communicate with the target HVAC unit, so as to achieve the centralized control adaptability of cross-manufacturer or cross-brand HVAC units and reduce the centralized management cost.
[0086] According to another aspect of the embodiment of the present application, Figure 5 As shown, corresponding to the HVAC unit control method in the above embodiment, this embodiment provides a HVAC unit control device 500, the device comprising:
[0087] An acquisition module 501 is used to acquire HVAC unit protocol data to be processed;
[0088] The detection module 503 is used to detect whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base; the preset rule base is pre-integrated with a plurality of integrated protocol data;
[0089] A conversion module 505, configured to convert the HVAC unit protocol data to be processed into target protocol data if there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base;
[0090] The sending module 507 is used to send the target protocol data to the target HVAC unit.
[0091] It should be noted that the acquisition module 501 in this embodiment can be used to execute step S202 in the embodiment of the present application, the detection module 503 in this embodiment can be used to execute step S204 in the embodiment of the present application, the conversion module 505 in this embodiment can be used to execute step S206 in the embodiment of the present application, and the sending module 507 in this embodiment can be used to execute step S208 in the embodiment of the present application.
[0092] In an embodiment of the present invention, by obtaining the HVAC unit protocol data to be processed and detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, if there is, the HVAC unit protocol data to be processed is converted into target protocol data based on the preset protocol rules and then sent to the target HVAC unit. This method can search and match protocol data in a rule base that integrates a large amount of existing protocol data, and convert the received protocol data through preset protocol rules to achieve communication and interoperability between HVAC units across manufacturers or brands, thereby improving the adaptability of the equipment; at the same time, a single system or software can be used to centrally control and manage HVAC units across manufacturers or brands, reducing the cost of specialized management systems and operators, thereby reducing the management cost of HVAC units.
[0093] Optionally, the device also includes: a parsing module, which is used to parse the HVAC unit protocol data to be processed by using a preset parsing algorithm and a preset conversion script to obtain a parsing result if there is no integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base; a generation module, which is used to generate new protocol rules according to the parsing result; and a storage module, which is used to store the new protocol rules and the HVAC unit protocol data to be processed into the preset rule base, and then to detect again whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base.
[0094] In this embodiment, new protocol rules are generated after parsing the new HVAC unit protocol data to be processed, and the new HVAC unit protocol data to be processed and the protocol rules are archived and stored in the warehouse to facilitate centralized control and management, thereby improving the adaptability of HVAC units across manufacturers or brands. At the same time, archiving in the existing rule library and managing on the existing management platform can reduce management costs.
[0095] Optionally, the device also includes: an identification module, used to identify the protocol data type of the HVAC unit protocol data to be processed; a judgment module, used to judge whether the same protocol data type exists in the preset rule base; a first execution module, used to detect whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base based on the same protocol data type if the same protocol data type exists in the preset rule base; a second execution module, used to parse the HVAC unit protocol data to be processed by the preset parsing algorithm to obtain the parsing result if the same protocol data type does not exist in the preset rule base.
[0096] In this embodiment, the protocol data type is first compared and judged. After the type of HVAC unit protocol data to be processed is determined, it is only necessary to match the protocol data under the protocol data type. There is no need to match all the protocol data in the preset rule library. This can greatly improve the matching time of the protocol data and improve the matching speed of the protocol data.
[0097] Optionally, the conversion module 505 includes: a first conversion unit, used to convert the HVAC unit protocol data to be processed into standard protocol data according to preset protocol rules; a second conversion unit, used to convert the standard protocol data into target protocol data according to the protocol data type of the target HVAC unit to be sent.
[0098] In this embodiment, after the corresponding integrated protocol data is matched in the preset rule base, the HVAC unit protocol data to be processed can be converted into standard protocol data according to the preset protocol rules and protocol data types, and then the standard protocol data can be converted into the target protocol data corresponding to the target HVAC unit, so as to facilitate communication control of the target HVAC unit through the target protocol data. In this way, the target protocol data can be directly converted according to the preset protocol rules and protocol data types, which can improve the conversion speed of the target protocol data. This can improve the adaptability and efficiency of the HVAC unit.
[0099] Optionally, the parsing module includes: a parsing unit, used to parse the HVAC unit protocol data to be processed according to the protocol data type of the HVAC unit protocol data to be processed through the preset parsing algorithm to obtain parsed protocol data; a third conversion unit, used to convert the parsed protocol data into new standard protocol data through the preset conversion script; and a fourth conversion unit, used to convert the new standard protocol data into new target protocol data.
[0100] In this embodiment, after determining that there is no corresponding protocol data type in the preset rule library, or no corresponding integrated protocol data is matched, the HVAC unit protocol data to be processed can be analyzed by the preset parsing algorithm and the identified protocol data type, and then converted into new standard protocol data by the preset conversion script, and then the new standard protocol data is converted into new target protocol data. This facilitates the generation of protocol rules for new protocol data, realizes the inverse operation of protocol conversion, and facilitates the control of new HVAC units according to the new protocol rules in the later stage, so as to improve the adaptability of HVAC units and reduce management costs.
[0101] Optionally, the identification module includes: an extraction unit, used to extract protocol data features of the HVAC unit protocol data to be processed; a comparison unit, used to compare the protocol data features with preset protocol data type features, and determine the protocol data type of the HVAC unit protocol data to be processed based on the comparison results.
[0102] In this embodiment, in the process of processing the HVAC unit protocol data, the protocol data features of the HVAC unit protocol data to be processed can be first extracted, such as extracting the features of the protocol header in the protocol data, because many protocols contain a specific header at the beginning of the data packet, which is used to identify the protocol type and version. As long as the features of the protocol header are identified, the protocol data type of the corresponding protocol data can be known. Of course, in many known protocol data, the corresponding protocol data type features are also known. After obtaining the protocol data type features of the HVAC unit protocol data to be processed, the protocol data type of the HVAC unit protocol data to be processed can be obtained after comparison with the known protocol data type features. In this way, comparison with the preset protocol data type features can quickly identify the protocol data category of the HVAC unit protocol data to be processed, thereby improving the adaptability of the protocol data of different HVAC units, and at the same time improving the centralized control management cost of different HVAC units.
[0103] Optionally, the device also includes: a first creation module, used to create the preset rule base; a second creation module, used to create the preset parsing algorithm, the preset parsing algorithm includes a word analysis algorithm and a grammatical analysis algorithm for parsing the HVAC unit protocol data to be processed; and / or and / or a third creation module, used to create the preset conversion script, the preset conversion script includes multiple protocol data conversion functions for converting the HVAC unit protocol data to be processed.
[0104] In this embodiment, firstly, a parsing algorithm, a preset conversion script, and a preset rule base are preset. The protocol data corresponding to the HVAC unit that needs to be centrally controlled and managed is parsed and converted to determine the protocol data type, convert the standard protocol data, and generate preset protocol rules. Then, the mapping relationship of the protocol data is correspondingly integrated in a database, and then a preset rule base is obtained, so that when communicating and controlling with the HVAC unit, it can quickly identify the match, and then communicate with the target HVAC unit, so as to achieve the centralized control adaptability of cross-manufacturer or cross-brand HVAC units and reduce the centralized management cost.
[0105] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware.
[0106] It should be noted here that the suffixes such as module, component, unit, sub-module, and sub-unit used to represent elements described in the above device are only for the convenience of description of this application and have no specific meaning in themselves. Therefore, they can be used in combination.
[0107] According to another aspect of the embodiment of the present application, the present application provides a HVAC unit, which is controlled by communication through the HVAC unit control method described in the above embodiment. Therefore, not only can the HVAC unit control method described in the above embodiment be implemented, but also the corresponding technical effects can be achieved, which will not be elaborated here.
[0108] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Figure 6 As shown, it includes a memory 601, a processor 603, a communication interface 605 and a communication bus 607. The memory 601 stores a computer program that can be run on the processor 603. The memory 601 and the processor 603 communicate through the communication interface 605 and the communication bus 607. When the processor 603 executes the computer program, the steps of the above-mentioned HVAC unit control method are implemented.
[0109] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
[0110] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0111] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0112] According to another aspect of the embodiments of the present application, a computer-readable medium having a non-volatile program code executable by a processor is also provided. The processor of the electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the steps of the HVAC unit control method in any of the above embodiments.
[0113] Optionally, in an embodiment of the present application, the computer-readable medium is configured to store a program code for the processor to execute the steps of the HVAC unit control method described in the above embodiment, and the steps of the HVAC unit control method include:
[0114] Step S202, obtaining HVAC unit protocol data to be processed;
[0115] Step S204, detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, wherein the preset rule base is pre-integrated with a plurality of integrated protocol data;
[0116] Step S206, if there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, converting the HVAC unit protocol data to be processed into target protocol data;
[0117] Step S208, sending the target protocol data to the target HVAC unit.
[0118] Optionally, the specific examples in this embodiment can refer to the examples described in the above embodiments, and this embodiment will not be repeated here. And when the embodiments of this application are specifically implemented, they can refer to the above embodiments and have corresponding technical effects.
[0119] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0120] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0123] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0124] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0125] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0126] It should be noted that, in this article, relational terms such as first, second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms include, include or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0127] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for controlling a heating and ventilation unit, characterized in that: The method comprises: Get the HVAC unit protocol data to be processed; Detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in a preset rule base, wherein the preset rule base is pre-integrated with a plurality of integrated protocol data; If there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, converting the HVAC unit protocol data to be processed into target protocol data; The target protocol data is sent to the target HVAC unit.
2. The HVAC unit control method according to claim 1, characterized in that: After detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, the method further includes: If there is no integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base, the HVAC unit protocol data to be processed is parsed by a preset parsing algorithm and a preset conversion script to obtain a parsing result; Generate new protocol rules according to the analysis results; After storing the new protocol rule and the HVAC unit protocol data to be processed in the preset rule base, it is again detected whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base.
3. The HVAC unit control method according to claim 2, characterized in that: After obtaining the HVAC unit protocol data to be processed, the method further includes: Identify the protocol data type of the HVAC unit protocol data to be processed; Determine whether there is a same protocol data type in the preset rule base; If the same protocol data type exists in the preset rule base, detecting whether there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base based on the same protocol data type; If the same protocol data type does not exist in the preset rule base, the HVAC unit protocol data to be processed is parsed using the preset parsing algorithm to obtain the parsing result.
4. The HVAC unit control method according to claim 3, characterized in that: The converting the HVAC unit protocol data to be processed into target protocol data comprises: Converting the HVAC unit protocol data to be processed into standard protocol data according to preset protocol rules; The standard protocol data is converted into target protocol data according to the protocol data type of the target HVAC unit to be sent.
5. The HVAC unit control method according to claim 3, characterized in that: The HVAC unit protocol data to be processed is parsed by a preset parsing algorithm and a preset conversion script to obtain a parsing result, including: Parsing the HVAC unit protocol data to be processed according to the protocol data type of the HVAC unit protocol data to be processed by the preset parsing algorithm to obtain parsed protocol data; Converting the parsed protocol data into new standard protocol data by using the preset conversion script; The new standard protocol data is converted into new target protocol data.
6. The HVAC unit control method according to claim 3, characterized in that: The protocol data type of the HVAC unit protocol data to be processed is identified, including: Extracting protocol data features of the HVAC unit protocol data to be processed; The protocol data feature is compared with a preset protocol data type feature, and the protocol data type of the HVAC unit protocol data to be processed is determined according to the comparison result.
7. The HVAC unit control method according to any one of claims 2 to 6, characterized in that: Before obtaining the HVAC unit protocol data to be processed, the method further includes: Creating the preset rule base; Creating the preset parsing algorithm, wherein the preset parsing algorithm includes a word analysis algorithm and a grammar analysis algorithm for parsing the HVAC unit protocol data to be processed; and / or The preset conversion script is created, wherein the preset conversion script includes a plurality of protocol data conversion functions for converting the HVAC unit protocol data to be processed.
8. A HVAC unit control device, characterized in that: include: An acquisition module is used to acquire the HVAC unit protocol data to be processed; A detection module, used to detect whether there is integrated protocol data matching the HVAC unit protocol data to be processed in a preset rule base; The preset rule base is pre-integrated with a plurality of integrated protocol data; A conversion module, configured to convert the HVAC unit protocol data to be processed into target protocol data if there is integrated protocol data matching the HVAC unit protocol data to be processed in the preset rule base; The sending module is used to send the target protocol data to the target HVAC unit.
9. A HVAC unit, characterized in that: The HVAC unit is controlled by communication through the HVAC unit control method described in any one of claims 1 to 7.
10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the HVAC unit control method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Configuration logic generation method and device for building systems and building system
CN110362009A
Industrial gateway and protocol conversion method
CN116137586A
Substation power environment centralized management method and system based on protocol management
CN118488124A
System and method for management of data exchange with multiple protocols in a computer network
US20220012695A1