Method for automatically generating air conditioner and temperature sensing association based on configuration map graphic element position

By parsing the configuration canvas data to identify air conditioning and temperature sensing elements, constructing an object set and verifying it, determining the number and level of associations, and generating air conditioning algorithm binding configurations, the problem of low efficiency and poor consistency in the association configuration of air conditioning equipment and temperature sensors is solved, and efficient and unified association configuration is achieved.

CN123185831APending Publication Date: 2026-11-27SHENZHEN ZTE NETVIEW TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611362105.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing data center monitoring systems, the configuration of air conditioning equipment and temperature sensors is inefficient and inconsistent. This is mainly due to the large workload of manual configuration and the ease with which omissions and misconfigurations occur. The data in the configuration canvas cannot be directly converted into the structured binding configuration required by the air conditioning control algorithm.

Method used

By acquiring and parsing configuration canvas data, air conditioning elements and temperature sensing elements are identified, an object set is constructed and its integrity and repeatability are checked, the number of associated elements is determined based on the ratio of the number of objects and their geometric positions, the association levels are sorted and divided, and an air conditioning algorithm binding configuration is generated.

Benefits of technology

It improves the efficiency and consistency of generating configurations that link air conditioners and temperature sensors, reduces manual operation and configuration differences, and ensures the generation of unified rules for association relationships and weight parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185831A_ABST
    Figure CN123185831A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of machine room air conditioner algorithm configuration, in particular to a method for automatically generating air conditioner and temperature sensing correlation based on configuration graph element positions. The method analyzes configuration canvas data, extracts device binding data and geometric position data of the element, identifies air conditioner and temperature sensing elements according to the device binding data, constructs corresponding object sets in combination with the geometric position data and carries out integrity and repeatability checking, determines the target correlation quantity of each air conditioner object according to the quantity ratio of the two types of objects after the checking, calculates the spatial distance between the air conditioner object and the temperature sensing object and sorts them, selects candidate temperature sensing objects according to the target correlation quantity, divides the correlation level according to the sorted positions of the candidate temperature sensing objects, determines the relationship type and the weight coefficient according to the correlation level and the in-layer sequence, and generates the target air conditioner algorithm binding configuration including the air conditioner device identifier, the temperature sensing device identifier, the temperature measuring point identifier, the relationship type and the weight coefficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer room air conditioning algorithm configuration technology, and in particular to a method for automatically generating the association between air conditioning and temperature sensing based on the position of configuration diagram elements. Background Technology

[0002] As data center server rooms expand, they typically house multiple air conditioning units and temperature sensors. To regulate the server room environment, the air conditioning control algorithm needs to identify the temperature sensors associated with each air conditioning unit and set corresponding control parameters based on the degree of association between different temperature sensors and the air conditioning units, forming a configuration that the air conditioning control algorithm can read. Existing server room monitoring systems usually use a configuration canvas to display objects such as air conditioning units and temperature sensors. Each object is presented as a graphic element in the configuration canvas, and each element is bound to actual equipment or measurement point information and has a corresponding canvas position. However, the association between air conditioning units and temperature sensors is usually determined by engineers based on the relative positions of each graphic element in the configuration canvas, and the relevant equipment identifiers, measurement point identifiers, and association parameters are configured item by item in the background. When there are many air conditioning units and temperature sensors, the workload required for manual configuration is large, and the configuration results are easily affected by the engineers' judgment standards and operating conditions, which may result in omissions, misconfigurations, or inconsistent association parameters. Meanwhile, the existing device binding information and element location data in the configuration canvas could not be directly converted into the structured binding configuration required by the air conditioning control algorithm, resulting in poor efficiency and consistency in the generation of air conditioning and temperature sensor association configurations. Therefore, how to improve the generation efficiency and consistency of air conditioning and temperature sensor association configurations has become an urgent technical problem to be solved. Summary of the Invention

[0003] The main purpose of this application is to provide a method for automatically generating the association between air conditioners and temperature sensors based on the location of configuration diagram elements, aiming to solve the technical problem of how to improve the generation efficiency and consistency of the association configuration between air conditioners and temperature sensors.

[0004] To achieve the above objectives, this application provides a method for automatically generating associations between air conditioners and temperature sensors based on the location of elements in a configuration diagram. The method includes the following steps: Acquire and parse the configuration canvas data to obtain the device binding data and geometric position data of each element; Based on the device binding data, air conditioner elements and temperature sensing elements are identified. Combined with the geometric position data, an air conditioner object set and a temperature sensing object set are constructed. The air conditioner object set and the temperature sensing object set are then subjected to integrity and repeatability checks to obtain the check results. When the verification result passes, the target number of associations for each air conditioner object is determined based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensor object set. The spatial distance between each air conditioning object and each temperature sensing object is determined based on the geometric position data. The temperature sensing objects are sorted according to the spatial distance, and candidate temperature sensing objects are determined from the sorting results based on the target association quantity. The association levels are divided according to the position of the candidate temperature sensing objects in the sorting results. The relationship type and weight coefficient are determined based on the association level and the order within the level. A target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing equipment identifier, temperature measuring point identifier, the relationship type and the weight coefficient are generated.

[0005] In one embodiment, the step of acquiring and parsing configuration canvas data to obtain device binding data and geometric position data for each element includes: Obtain the canvas identifier and authorization information of the target configuration canvas, send a canvas acquisition request to the configuration service based on the canvas identifier and authorization information, receive the response data returned by the configuration service, and extract the canvas content from the response data to obtain the configuration canvas data. The canvas content includes an XML string corresponding to the configuration diagram model or the XML string encapsulated in JSON. The canvas content in the configuration canvas data is inverted and processed, and the processed canvas content is parsed into a configuration diagram model. The root node of the configuration diagram model is traversed to obtain multiple primitive units. From the plurality of graphic element units, a target graphic element unit containing object information and binding data is determined. The device data or measurement point data bound to each target graphic element unit, as well as the horizontal coordinate, vertical coordinate, width and height in the corresponding geometric object, are extracted to obtain the device binding data and geometric position data of each graphic element.

[0006] In one embodiment, the step of identifying air conditioner elements and temperature sensing elements based on the device binding data, constructing an air conditioner object set and a temperature sensing object set by combining the geometric position data, and performing integrity and repeatability checks on the air conditioner object set and the temperature sensing object set to obtain the check results includes: For the device binding data of each graphic element, when the object identifier in the device binding data corresponds to the air conditioning device type and does not contain a sub-object identifier, the corresponding graphic element is determined as an air conditioning graphic element; when the object identifier corresponds to the temperature sensing device type and the sub-object identifier corresponds to the temperature measuring point code, the corresponding graphic element is determined as a temperature sensing graphic element. The air conditioning device identifier is extracted from the device binding data of each of the air conditioning elements, the air conditioning device identifier and the corresponding geometric position data are encapsulated into an air conditioning object, and the air conditioning objects are aggregated to obtain the air conditioning object set; Extract the temperature sensing device identifier, temperature measuring point identifier, and temperature measuring point code from the device binding data of each temperature sensing element. Encapsulate the extraction results and the corresponding geometric position data into a temperature sensing object. Then, aggregate each temperature sensing object to obtain the set of temperature sensing objects. Integrity verification is performed based on whether the set of air conditioning objects and the set of temperature sensing objects are empty. Duplicate air conditioning objects and duplicate temperature sensing points are detected based on the air conditioning device identifier and the temperature measuring point identifier to perform repeatability verification. The verification is determined to be successful when both object sets are not empty and there are no duplicate objects; otherwise, the verification is determined to be unsuccessful, and the verification result is obtained.

[0007] In one embodiment, the step of determining the target association quantity of each air conditioner object based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensing object set when the verification result passes includes: The verification result is parsed. When the verification result indicates that the verification is passed, the number of air conditioner objects in the air conditioner object set and the number of temperature sensor objects in the temperature sensor object set are counted respectively to obtain the number of air conditioner objects and the number of temperature sensor objects. The object quantity ratio is obtained by performing an integer division operation with the number of temperature sensing objects as the dividend and the number of air conditioning objects as the divisor. For each air conditioner object in the set of air conditioner objects, the ratio of the number of objects is determined as the number of temperature sensing objects that the corresponding air conditioner object needs to be associated with, thus obtaining the target association number for each air conditioner object.

[0008] In one embodiment, the steps of determining the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sorting each temperature sensing object according to the spatial distance, and determining candidate temperature sensing objects from the sorting results based on the target association quantity include: The horizontal and vertical coordinates are extracted from the geometric position data corresponding to each air conditioning object and each temperature sensing object, respectively, to obtain the air conditioning position coordinates of each air conditioning object and the temperature sensing position coordinates of each temperature sensing object. For each air conditioner object, the set of temperature sensing objects is traversed. Based on the location coordinates of the air conditioner and the location coordinates of each temperature sensing object, the sum of the squares of the differences in the horizontal coordinates and the squares of the differences in the vertical coordinates is determined as the spatial distance between the corresponding air conditioner object and each temperature sensing object. The temperature sensing objects are then arranged in ascending order of the spatial distances to obtain the sorting result corresponding to each air conditioner object. Based on the sorting results corresponding to each air conditioner object, select temperature sensing objects whose quantity is consistent with the target associated quantity according to the sorting order to obtain the candidate temperature sensing objects corresponding to each air conditioner object.

[0009] In one embodiment, the step of dividing the association hierarchy according to the position of the candidate temperature sensing object in the sorting result, determining the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generating a target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing equipment identifier, temperature measuring point identifier, the relationship type, and the weight coefficient includes: The number of weakly associated objects is determined based on the target number of associated objects and the preset weakly associated allocation ratio. The number of secondary associated objects is determined based on the remaining number after deducting the number of weakly associated objects and the preset secondary associated allocation ratio. The remaining number after deducting the number of secondary associated objects again is determined as the number of strongly associated objects. According to the position of the candidate temperature sensing objects in the sorting result from front to back, the strong association level, secondary association level and weak association level are divided in sequence, and the intra-level order of each candidate temperature sensing object is determined. Obtain the relationship type, initial weight, and weight adjustment amount corresponding to each of the association levels; determine the corresponding relationship type according to the association level of each of the candidate temperature sensing objects; and determine the weight coefficient of each candidate temperature sensing object in sequence according to the order within the layer, based on the corresponding initial weight and weight adjustment amount. Extract the air conditioning device identifier of each air conditioning object and the temperature sensing device identifier and temperature measuring point identifier of each candidate temperature sensing object. Associate and encapsulate the air conditioning device identifier, the temperature sensing device identifier, the temperature measuring point identifier with the corresponding relationship type and weight coefficient to obtain multiple air conditioning algorithm binding configuration items. Summarize the multiple air conditioning algorithm binding configuration items to generate the target air conditioning algorithm binding configuration.

[0010] Furthermore, to achieve the above objectives, this application also proposes a device for automatically generating the association between air conditioners and temperature sensors based on the location of configuration diagram elements. The device for automatically generating the association between air conditioners and temperature sensors based on the location of configuration diagram elements includes: The data parsing module is used to acquire and parse the configuration canvas data to obtain the device binding data and geometric position data of each graphic element; The object verification module is used to identify air conditioner elements and temperature sensing elements based on the device binding data, construct an air conditioner object set and a temperature sensing object set by combining the geometric position data, and perform integrity verification and repeatability verification on the air conditioner object set and the temperature sensing object set to obtain the verification result; The association quantity module is used to determine the target association quantity of each air conditioner object based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensor object set when the verification result passes. The candidate temperature sensing module is used to determine the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sort each temperature sensing object according to the spatial distance, and determine candidate temperature sensing objects from the sorting results based on the target association quantity. The target module is used to divide the association hierarchy according to the position of the candidate temperature sensing object in the sorting result, determine the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generate a target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing device identifier, temperature measuring point identifier, the relationship type and the weight coefficient.

[0011] Furthermore, to achieve the above objectives, this application also proposes a device for automatically generating associations between air conditioners and temperature sensors based on the positions of configuration diagram elements. The device includes: a memory, a processor, and a program stored in the memory and executable on the processor for automatically generating associations between air conditioners and temperature sensors based on the positions of configuration diagram elements. The program for automatically generating associations between air conditioners and temperature sensors based on the positions of configuration diagram elements is configured to implement the steps of the method for automatically generating associations between air conditioners and temperature sensors based on the positions of configuration diagram elements as described above.

[0012] In addition, to achieve the above objectives, this application also proposes a storage medium storing a program that automatically generates the association between air conditioners and temperature sensors based on the positions of configuration diagram elements. When the program that automatically generates the association between air conditioners and temperature sensors based on the positions of configuration diagram elements is executed by a processor, it implements the steps of the method described above for automatically generating the association between air conditioners and temperature sensors based on the positions of configuration diagram elements.

[0013] In addition, to achieve the above objectives, this application also proposes a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the method for automatically generating the association between air conditioner and temperature sensor based on the location of configuration diagram elements as described above.

[0014] This application obtains and parses configuration canvas data to get device binding data and geometric position data for each graphic element; identifies air conditioning graphic elements and temperature sensing graphic elements based on the device binding data, constructs air conditioning object sets and temperature sensing object sets by combining the geometric position data, and performs integrity and repeatability checks on the air conditioning object sets and temperature sensing object sets to obtain the check results; when the check results pass, determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the air conditioning object set to the number of objects in the temperature sensing object set; determines the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sorts each temperature sensing object by spatial distance, and determines candidate temperature sensing objects from the sorting results based on the target association quantity; divides the association hierarchy based on the position of the candidate temperature sensing objects in the sorting results, determines the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generates a target air conditioning algorithm binding configuration including air conditioning device identifier, temperature sensing device identifier, temperature measuring point identifier, relationship type, and weight coefficient. This application directly obtains the device binding data and geometric position data of each graphic element by acquiring and parsing the configuration canvas data. Based on the device binding data, it identifies air conditioning and temperature sensing graphic elements to construct corresponding object sets, enabling existing data in the configuration canvas to directly enter the associated configuration generation process. By performing integrity and duplicate checks on the air conditioning and temperature sensing object sets, and only performing subsequent processing upon passing the checks, it avoids incomplete or duplicate object data from participating in configuration generation. Furthermore, it uniformly determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the two object sets, and determines candidate temperature sensing elements for each air conditioning object according to the same spatial distance calculation, distance sorting, and candidate selection rules. This approach reduces the number of associations and discrepancies in associated objects caused by manual judgment. Based on this, association levels are defined according to the position of candidate temperature sensing objects in the ranking results. Relationship types and weight coefficients are determined according to the association level and the order within each level, ensuring that the association relationships and weight parameters for different air conditioning objects are generated according to unified rules. Finally, air conditioning device identifiers, temperature sensing device identifiers, temperature measurement point identifiers, relationship types, and weight coefficients are encapsulated into a target air conditioning algorithm binding configuration. This reduces the manual operations required for item-by-item identification, filtering, and configuration, improving the efficiency of generating air conditioning and temperature sensing association configurations. Furthermore, unified data verification, object selection, relationship layering, and weight determination rules enhance the consistency of association configurations. Attached Figure Description

[0015] Figure 1 This is a flowchart illustrating the first embodiment of the method for automatically generating associations between air conditioners and temperature sensors based on the location of elements in a configuration diagram, as described in this application. Figure 2 This is a schematic diagram of a sub-process in the second embodiment of the method for automatically generating the association between air conditioner and temperature sensor based on the position of configuration diagram elements in this application; Figure 3This is a schematic diagram of a sub-process in the third embodiment of the method for automatically generating the association between air conditioner and temperature sensor based on the position of configuration diagram elements in this application; Figure 4 This is a schematic diagram illustrating the distance ordering and strong, secondary, and weak relationships between a certain air conditioner and multiple temperature sensors in one embodiment of the method for automatically generating associations between air conditioners and temperature sensors based on the location of primitives in the configuration diagram, as well as an example of the method in this application. Figure 5 This is a schematic diagram of the module structure of the device that automatically generates the association between air conditioning and temperature sensing based on the position of the configuration diagram elements in an embodiment of this application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the method of automatically generating the association between air conditioner and temperature sensor based on the position of configuration diagram elements in the embodiments of this application.

[0016] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0017] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0018] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0019] It should be noted that as data center server rooms expand, they typically house multiple air conditioning units and temperature sensors. To regulate the server room environment, the air conditioning control algorithm needs to identify the temperature sensors associated with each air conditioning unit and set corresponding control parameters based on the degree of association between different temperature sensors and the air conditioning units, forming a configuration that the air conditioning control algorithm can read. Existing server room monitoring systems usually use a configuration canvas to display objects such as air conditioning units and temperature sensors. Each object is presented as a graphic element in the configuration canvas, and each element is bound to actual equipment or measurement point information and has a corresponding canvas position. However, the association between air conditioning units and temperature sensors is usually determined by engineers based on the relative positions of each graphic element in the configuration canvas, and the relevant equipment identifiers, measurement point identifiers, and association parameters are configured item by item in the background. When there are many air conditioning units and temperature sensors, the workload required for manual configuration is substantial, and the configuration results are easily affected by the engineers' judgment standards and operating conditions, which may result in omissions, misconfigurations, or inconsistent association parameters. Meanwhile, the existing device binding information and element location data in the configuration canvas could not be directly converted into the structured binding configuration required by the air conditioning control algorithm, resulting in poor efficiency and consistency in the generation of air conditioning and temperature sensor association configurations. Therefore, how to improve the generation efficiency and consistency of air conditioning and temperature sensor association configurations has become an urgent technical problem to be solved.

[0020] The main solution of this application is as follows: Acquire and parse configuration canvas data to obtain device binding data and geometric position data for each element; identify air conditioning elements and temperature sensing elements based on the device binding data, construct air conditioning object sets and temperature sensing object sets by combining the geometric position data, and perform integrity and repeatability checks on the air conditioning object sets and temperature sensing object sets to obtain the check results; when the check results pass, determine the target association quantity for each air conditioning object based on the ratio of the number of objects in the air conditioning object set to the number of objects in the temperature sensing object set; determine the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sort each temperature sensing object according to the spatial distance, and determine candidate temperature sensing objects from the sorting results based on the target association quantity; divide the association hierarchy according to the position of the candidate temperature sensing objects in the sorting results, determine the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generate a target air conditioning algorithm binding configuration including air conditioning device identifier, temperature sensing device identifier, temperature measuring point identifier, relationship type, and weight coefficient.

[0021] This application directly obtains the device binding data and geometric position data of each graphic element by acquiring and parsing the configuration canvas data. Based on the device binding data, it identifies air conditioning and temperature sensing graphic elements to construct corresponding object sets, enabling existing data in the configuration canvas to directly enter the associated configuration generation process. By performing integrity and duplicate checks on the air conditioning and temperature sensing object sets, and only performing subsequent processing upon passing the checks, it avoids incomplete or duplicate object data from participating in configuration generation. Furthermore, it uniformly determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the two object sets, and determines candidate temperature sensing elements for each air conditioning object according to the same spatial distance calculation, distance sorting, and candidate selection rules. This approach reduces the number of associations and discrepancies in associated objects caused by manual judgment. Based on this, association levels are defined according to the position of candidate temperature sensing objects in the ranking results. Relationship types and weight coefficients are determined according to the association level and the order within each level, ensuring that the association relationships and weight parameters for different air conditioning objects are generated according to unified rules. Finally, air conditioning device identifiers, temperature sensing device identifiers, temperature measurement point identifiers, relationship types, and weight coefficients are encapsulated into a target air conditioning algorithm binding configuration. This reduces the manual operations required for item-by-item identification, filtering, and configuration, improving the efficiency of generating air conditioning and temperature sensing association configurations. Furthermore, unified data verification, object selection, relationship layering, and weight determination rules enhance the consistency of association configurations.

[0022] It should be noted that the executing entity of the method in this embodiment can be a computing service device with data processing, network communication, and program execution functions, or it can be the aforementioned device that automatically generates the association between air conditioners and temperature sensors based on the location of configuration diagram elements, having the same or similar functions. This embodiment and the following embodiments will be described using the device that automatically generates the association between air conditioners and temperature sensors based on the location of configuration diagram elements as an example.

[0023] Based on this, a first embodiment of the method for automatically generating the association between air conditioners and temperature sensors based on the location of configuration diagram elements is proposed in this application. Please refer to [link / reference]. Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the method for automatically generating associations between air conditioners and temperature sensors based on the location of elements in a configuration diagram, as described in this application.

[0024] In this embodiment, the method includes the following steps: S1: Acquire and parse the configuration canvas data to obtain the device binding data and geometric position data of each graphic element; S2: Identify air conditioner elements and temperature sensing elements based on the device binding data, construct an air conditioner object set and a temperature sensing object set by combining the geometric position data, and perform integrity and repeatability checks on the air conditioner object set and the temperature sensing object set to obtain the check results; S3: When the verification result passes, determine the target association quantity of each air conditioner object based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensing object set; It should be noted that configuration canvas data refers to the data used to describe the device elements, element attributes, and element layout relationships in the configuration page, usually stored as XML strings or XML strings encapsulated in JSON format; elements refer to the graphic objects in the configuration canvas used to represent devices or measurement points; device binding data refers to the correspondence information between elements and actual devices or device measurement points, including object identifiers, sub-object identifiers, device identifiers, and measurement point identifiers; geometric position data refers to the position and size information of elements in the configuration canvas, including horizontal and vertical coordinates, width, and height; object identifiers are used to distinguish the device objects to which elements are bound, and sub-object identifiers are used to distinguish the specific measurement points under the device object; air conditioning elements refer to elements bound to air conditioning equipment, and temperature sensing elements refer to elements bound to temperature sensors and their temperature measurement points; air conditioning objects are... The data object is formed by structurally encapsulating the air conditioning equipment identifier and its geometric location data. The temperature sensing object is formed by structurally encapsulating the temperature sensing equipment identifier, temperature measuring point identifier, temperature measuring point code, and their geometric location data. The air conditioning object set and the temperature sensing object set are data sets formed by aggregating multiple air conditioning objects and multiple temperature sensing objects, respectively. The integrity check refers to checking whether the two object sets have been formed and are not empty. The duplication check refers to checking whether there are duplicate objects with the same equipment identifier or temperature measuring point identifier in the object sets. The check result refers to the data that characterizes whether the integrity check and duplication check have passed. The object quantity ratio refers to the quantitative relationship between the number of temperature sensing objects and the number of air conditioning objects. The target association quantity refers to the number of temperature sensing objects to be associated determined for each air conditioning object based on the object quantity ratio.

[0025] During execution of S1, a canvas retrieval request containing a configuration canvas identifier is received, along with corresponding authorization information, to access the configuration service. The configuration service then returns response data containing the canvas content. When the canvas content is an XML string encapsulated in JSON, the corresponding XML string is extracted from the response data, and escape characters in the XML string are reversed. The processed canvas content is then parsed into a configuration diagram model. Subsequently, each element under the root node of the configuration diagram model is traversed, determining whether each element contains object information and binding data. For elements containing both object information and binding data, the bound device data or measurement point data is extracted, and the x-coordinate, y-coordinate, width, and height are extracted from the corresponding geometric object. For elements not containing object information or binding data, the corresponding element is skipped. The extracted binding data and geometric data are associated according to the elements to obtain the device binding data and geometric position data for each element.

[0026] During the execution of S2 and S3, the device binding data of each graphic element is parsed one by one. When the object identifier in the device binding data corresponds to the air conditioning device type and there is no sub-object identifier, the corresponding graphic element is identified as an air conditioning graphic element, and the air conditioning device identifier and the corresponding geometric position data are encapsulated into an air conditioning object. When the object identifier corresponds to the temperature sensing device type and the sub-object identifier corresponds to the temperature measuring point code, the corresponding graphic element is identified as a temperature sensing graphic element, and the temperature sensing device identifier, temperature measuring point identifier, temperature measuring point code, and the corresponding geometric position data are encapsulated into a temperature sensing object. Each air conditioning object and each temperature sensing object are aggregated to form an air conditioning object set and a temperature sensing object set. Then, it is checked whether the two object sets are empty, and it is checked whether there are duplicate air conditioning objects and duplicate temperature sensing points based on the air conditioning device identifier and temperature measuring point identifier, respectively. When either object set is empty or there are duplicate objects, it is determined that the verification has failed and subsequent association processing has stopped. When both object sets are not empty and there are no duplicate objects, it is determined that the verification has passed. If the verification passes, count the number of air conditioning objects and the number of temperature sensing objects respectively, calculate the integer ratio between the number of temperature sensing objects and the number of air conditioning objects, and determine the number of temperature sensing objects that each air conditioning object needs to be associated with, thus obtaining the target association number for each air conditioning object.

[0027] By acquiring and parsing configuration canvas data, existing device binding information and element location and size information in the configuration page can be converted into structured data that can be directly processed, reducing the manual extraction and input of device and measuring point information. By uniformly identifying air conditioning elements and temperature sensing elements based on device binding data, and encapsulating the identification results and geometric position data into corresponding object sets, air conditioning objects and temperature sensing objects have a unified data structure. Furthermore, through integrity and duplicate checks, the cases of empty object sets or duplicate objects are excluded before determining the target association quantity, providing a valid and non-duplicated data foundation for subsequent processing. After the checks pass, the target association quantity of each air conditioning object is uniformly determined according to the quantitative relationship between the number of air conditioning objects and the number of temperature sensing objects, which can reduce the workload and standard differences caused by manually determining the association quantity of each unit, thereby improving the efficiency and consistency of air conditioning and temperature sensing association configuration processing.

[0028] S4: Determine the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sort each temperature sensing object according to the spatial distance, and determine candidate temperature sensing objects from the sorting results based on the target association quantity; S5: Divide the association levels according to the position of the candidate temperature sensing objects in the sorting results, determine the relationship type and weight coefficient based on the association level and the order within the level, and generate a target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing equipment identifier, temperature measuring point identifier, the relationship type and the weight coefficient.

[0029] It should be noted that spatial distance refers to the difference in position between the air conditioner object and the temperature sensor object in the same configuration canvas coordinate system, which can be represented by the sum of the squares of the differences in the horizontal and vertical coordinates; the sorting result refers to the ordered data formed by arranging each air conditioner object in ascending order of its spatial distance from each temperature sensor object; candidate temperature sensor objects refer to the temperature sensor objects selected from the sorting result according to the target number of associations; the association level refers to the classification of the degree of association between the candidate temperature sensor objects and their positions in the sorting result, including strong association level, secondary association level, and weak association level; the intra-level order refers to the order in which candidate temperature sensor objects are arranged in the same association level according to their spatial distance from near to far; the relationship type refers to the type data used to represent the association level between the air conditioner object and the candidate temperature sensor object; the weight coefficient refers to the value used to represent the degree of influence of the candidate temperature sensor object in the association configuration of the corresponding air conditioner object; the target air conditioner algorithm binding configuration refers to the structured configuration data formed by associating and encapsulating the air conditioner device identifier, temperature sensor device identifier, temperature measurement point identifier, relationship type, and weight coefficient according to the preset field structure.

[0030] During S4 execution, the x-coordinate and y-coordinate are extracted from the geometric position data of each air conditioning object and each temperature sensing object, and the extracted coordinates are unified to the configuration canvas coordinate system. For each air conditioning object, the set of temperature sensing objects is traversed, and the coordinate differences between the air conditioning object and each temperature sensing object in the horizontal and vertical directions are determined. The coordinate differences in the two directions are squared and summed, and the result is used as the spatial distance between the corresponding air conditioning object and the temperature sensing object. Each spatial distance is associated with the corresponding temperature sensing object, and the temperature sensing objects are arranged in ascending order of spatial distance, where the smaller the spatial distance, the higher the position of the corresponding temperature sensing object in the sorting result. Subsequently, starting from the starting position of the sorting result, a corresponding number of temperature sensing objects are selected according to the target number of associations, and the spatial distance and sorting position of each temperature sensing object are retained to obtain the candidate temperature sensing objects for each air conditioning object.

[0031] When executing S5, the number of objects corresponding to the strong association level, secondary association level, and weak association level is determined based on the target association quantity. In one optional implementation, one-third of the target association quantity is determined as the number of weakly associated objects, half of the remaining quantity after deducting the number of weakly associated objects is determined as the number of secondary association objects, and the remaining quantity is determined as the number of strongly associated objects. According to the position of the candidate temperature sensing objects in the sorting result from front to back, the candidate temperature sensing objects that are closer are assigned to the strong association level, the subsequently arranged candidate temperature sensing objects are assigned to the secondary association level, and the candidate temperature sensing objects that are farther away are assigned to the weak association level. Simultaneously, the intra-level order of each candidate temperature sensing object within its corresponding association level is determined. Corresponding relationship types and initial weights are configured for the strong association level, secondary association level, and weak association level, and the initial weights are adjusted by decreasing according to the intra-level order. For example, the relationship types for strong association, secondary association, and weak association levels can be set to 2, 1, and 0 respectively, and the corresponding initial weights can be set to 1.0, 0.6, and 0.3 respectively. Furthermore, the weight within the same association level decreases by 0.1 for each subsequent position within the level. Finally, the air conditioning device identifier for the corresponding air conditioning object, as well as the temperature sensing device identifier and temperature measurement point identifier for each candidate temperature sensing object, are extracted. The extracted identifiers, along with their corresponding relationship types and weight coefficients, are encapsulated into air conditioning algorithm binding configuration items. Finally, all air conditioning algorithm binding configuration items are summarized to obtain the target air conditioning algorithm binding configuration.

[0032] By uniformly calculating the spatial distance between each air conditioning object and each temperature sensing object based on geometric location data, and sorting the temperature sensing objects according to spatial distance, the relative positional relationships in the configuration canvas can be transformed into ordered data with a unified comparison basis. Candidate temperature sensing objects are selected from the sorting results according to the target association quantity, so that each air conditioning object determines the associated object according to the same quantity and distance rules, reducing the difference in association range caused by manual selection. Furthermore, strong, secondary, and weak association levels are divided according to the sorting position of the candidate temperature sensing objects, and the relationship type and weight coefficient are determined by combining the association level and the order within the level, so that the association degree and weight parameters are generated according to unified rules. Finally, the device identifier, measurement point identifier, relationship type, and weight coefficient are encapsulated into a structured target air conditioning algorithm binding configuration, thereby reducing the workload of manually filtering, classifying, and entering configuration parameters item by item, and improving the generation efficiency and consistency of air conditioning and temperature sensing association configuration.

[0033] This embodiment acquires and parses configuration canvas data to obtain device binding data and geometric position data for each graphic element; identifies air conditioning graphic elements and temperature sensing graphic elements based on device binding data, constructs air conditioning object sets and temperature sensing object sets by combining geometric position data, and performs integrity and repeatability checks on the air conditioning object sets and temperature sensing object sets to obtain the check results; when the check results pass, determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the air conditioning object set to the number of objects in the temperature sensing object set; determines the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sorts each temperature sensing object according to spatial distance, and determines candidate temperature sensing objects from the sorting results based on the target association quantity; divides the association hierarchy based on the position of the candidate temperature sensing objects in the sorting results, determines the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generates a target air conditioning algorithm binding configuration including air conditioning device identifier, temperature sensing device identifier, temperature measuring point identifier, relationship type, and weight coefficient. This embodiment acquires and parses configuration canvas data to directly obtain device binding data and geometric position data for each element. Based on the device binding data, it identifies air conditioning elements and temperature sensing elements to construct corresponding object sets, allowing existing data in the configuration canvas to directly enter the associated configuration generation process. By performing integrity and duplicate checks on the air conditioning and temperature sensing object sets, and only performing subsequent processing upon passing the checks, it avoids incomplete or duplicate object data from participating in configuration generation. Furthermore, it uniformly determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the two object sets, and determines candidate temperature sensing elements for each air conditioning object according to the same spatial distance calculation, distance sorting, and candidate selection rules. This approach reduces the number of associations and discrepancies in associated objects caused by manual judgment. Based on this, association levels are defined according to the position of candidate temperature sensing objects in the ranking results. Relationship types and weight coefficients are determined according to the association level and the order within each level, ensuring that the association relationships and weight parameters for different air conditioning objects are generated according to unified rules. Finally, air conditioning device identifiers, temperature sensing device identifiers, temperature measurement point identifiers, relationship types, and weight coefficients are encapsulated into a target air conditioning algorithm binding configuration. This reduces the manual operations required for item-by-item identification, filtering, and configuration, improving the efficiency of generating air conditioning and temperature sensing association configurations. Furthermore, unified data verification, object selection, relationship layering, and weight determination rules enhance the consistency of association configurations.

[0034] Based on the first embodiment described above, a second embodiment of the method for automatically generating the association between air conditioners and temperature sensors based on the location of configuration diagram elements is proposed in this application. Please refer to... Figure 2 , Figure 2 This is a schematic diagram of a sub-process in the second embodiment of the method for automatically generating the association between air conditioner and temperature sensor based on the position of configuration diagram elements in this application.

[0035] like Figure 2 As shown, in this embodiment, step S1 includes: S11: Obtain the canvas identifier and authorization information of the target configuration canvas, send a canvas acquisition request to the configuration service based on the canvas identifier and authorization information, receive the response data returned by the configuration service, and extract the canvas content from the response data to obtain the configuration canvas data, wherein the canvas content includes an XML string corresponding to the configuration diagram model or the XML string encapsulated in JSON; S12: Perform inversion processing on the canvas content in the configuration canvas data, and parse the processed canvas content into a configuration diagram model. Traverse the root node of the configuration diagram model to obtain multiple primitive units. S13: Determine the target graphic element unit containing object information and binding data from the plurality of graphic element units, extract the device data or measurement point data bound to each target graphic element unit, as well as the horizontal coordinate, vertical coordinate, width and height in the corresponding geometric object, to obtain the device binding data and geometric position data of each graphic element.

[0036] It should be noted that: Canvas Identifier refers to the identification information used to uniquely identify the target configuration canvas in the configuration system; Authorization Information refers to the identity credentials or access tokens used to indicate that the requester has the authority to access the target configuration canvas; Configuration Service refers to the service interface used to receive canvas query requests and return the corresponding canvas content; Canvas Acquisition Request refers to a canvas data access request that uses the canvas identifier as the query condition and carries authorization information; Response Data refers to the data returned by the configuration service in response to the canvas acquisition request, which includes the response status and canvas content; Canvas Content refers to the payload part in the response data used to describe the primitive structure, primitive attributes, and primitive layout; XML String refers to text data organized according to Extensible Markup Language (XML) for primitive nodes, node attributes, and hierarchical relationships; JSON Encapsulation refers to using the XML string as a field value. The processing method for embedding JSON data structures; unescaping refers to restoring escaped tags, quotation marks, or other special characters in the canvas content to their original form that the XML parser can recognize; the configuration diagram model refers to the configuration canvas object model constructed according to XML nodes and their hierarchical relationships; the root node is the starting node in the configuration diagram model used to carry lower-level graphic element nodes; the graphic element unit is the data unit under the root node used to record the object attributes, binding attributes, and geometric attributes of a single graphic element; object information refers to the attribute data in the graphic element unit used to describe the bound device or measurement point object; the target graphic element unit refers to the graphic element unit that contains both object information and binding data and requires data extraction; the geometric object refers to the structured object in the graphic element unit used to record the horizontal coordinate, vertical coordinate, width, and height of the graphic element.

[0037] First, the canvas identifier of the target configuration canvas is read from the user-submitted canvas access request or the current canvas operation context, and authorization information is obtained from the current user session or access credentials. The canvas identifier is written to the canvas query field of the configuration service, and the authorization information is written to the corresponding authentication field, forming a canvas acquisition request and sending it to the configuration service. The configuration service queries the corresponding canvas record based on the canvas identifier and returns response data after the authorization information is verified. Upon receiving the response data, the response status and data payload are parsed to determine the encapsulation format of the canvas content: if the data payload directly contains an XML string, the XML string is extracted; if the data payload is a JSON structure, the JSON fields are parsed first, and then the encapsulated XML string is extracted from the fields carrying the canvas content, thus obtaining the configuration canvas data. Subsequently, escape characters generated during transmission or JSON encapsulation in the XML string are restored item by item, making XML tags, attribute names, attribute values, and node delimiters parsable again. The restored XML string is loaded into the XML parser, and a configuration diagram model is constructed according to tag nesting relationships, node attributes, and parent-child node relationships, and the root node in the configuration diagram model is located. The model is then traversed according to the order of the child nodes under the root node, and each child node used to describe the graphic element and its associated nodes are identified as graphic element units, resulting in multiple graphic element units.

[0038] Subsequently, for each graphic element, its object attributes are read to determine whether it contains object information, and further, whether binding data is set in the object information. For graphic elements that do not contain object information or do not have binding data, device and location data extraction is not performed. For graphic elements that contain both object information and binding data, they are identified as target graphic elements. For each target graphic element, the object identifier, sub-object identifier, device identifier, or measurement point identifier in the binding data is parsed to extract the device data or measurement point data bound to the target graphic element. At the same time, the corresponding geometric object is located in the node structure of the target graphic element, and the horizontal coordinate, vertical coordinate, width, and height of the geometric object are read sequentially. Using the graphic element identifier of the target graphic element as the association basis, the extracted device data or measurement point data is encapsulated with the horizontal coordinate, vertical coordinate, width, and height of the same target graphic element. The encapsulated data is summarized according to the traversal results of the graphic elements to obtain the device binding data and geometric location data of each graphic element.

[0039] Canvas identification allows for accurate location of the target configuration canvas from the configuration service, and authorization information limits the access scope of canvas data. By identifying directly returned XML strings and JSON-encapsulated XML strings, valid canvas content can be extracted from response data with different encapsulation formats. Furthermore, by re-escaping the XML strings, tags, attributes, and hierarchical structures are restored, and the strings are parsed into an traversable configuration diagram model, transforming the original text-based canvas content into clearly structured graphic units. Target graphic units are further filtered using object information and binding data, and device data or measurement point data, along with corresponding coordinates and dimensions, are extracted from the same target graphic unit. This reduces invalid processing of unbound graphic units and mismatches between binding information and geometric information, thereby improving the efficiency, completeness, and consistency of configuration canvas data parsing and graphic data extraction.

[0040] Based on the first embodiment described above, in this embodiment, step S2 includes: S21: For the device binding data of each graphic element, when the object identifier in the device binding data corresponds to the air conditioning device type and does not contain a sub-object identifier, the corresponding graphic element is determined as an air conditioning graphic element; when the object identifier corresponds to the temperature sensing device type and the sub-object identifier corresponds to the temperature measuring point code, the corresponding graphic element is determined as a temperature sensing graphic element. S22: Extract the air conditioning device identifier from the device binding data of each air conditioning element, encapsulate the air conditioning device identifier and the corresponding geometric position data into an air conditioning object, and aggregate each air conditioning object to obtain the air conditioning object set; S23: Extract the temperature sensing device identifier, temperature measuring point identifier and temperature measuring point code from the device binding data of each temperature sensing element, encapsulate the extraction results and the corresponding geometric position data into a temperature sensing object, and aggregate each temperature sensing object to obtain the temperature sensing object set; S24: Perform integrity verification based on whether the set of air conditioning objects and the set of temperature sensing objects are empty. Detect duplicate air conditioning objects and duplicate temperature sensing points based on the air conditioning device identifier and the temperature measuring point identifier respectively to perform repeatability verification. If both object sets are not empty and there are no duplicate objects, the verification is determined to be successful; otherwise, the verification is determined to be unsuccessful, and the verification result is obtained.

[0041] It should be noted that: Air conditioning equipment type refers to the type attribute used to characterize that the bound object belongs to air conditioning equipment; temperature sensing equipment type refers to the type attribute used to characterize that the bound object belongs to temperature sensor equipment; temperature measurement point code refers to the code used to uniquely identify the temperature measurement point among multiple measurement points contained in the temperature sensing equipment; object-level binding refers to the binding form in which the graphic element is directly bound to the equipment object without further binding to the lower-level measurement points of the equipment; measurement point-level binding refers to the binding form in which the graphic element, in addition to being bound to the equipment object, is also bound to a specific measurement point under the equipment through a sub-object identifier; encapsulation refers to the process of combining the equipment identifier, measurement point identifier, and geometric position data into a data object according to a preset field structure; aggregation refers to the process of grouping multiple data objects of the same type into a corresponding set according to a unified data structure; duplicate air conditioning objects refer to multiple objects with the same air conditioning equipment identifier in the air conditioning object set; duplicate temperature sensing points refer to multiple temperature sensing objects with the same temperature measurement point identifier in the temperature sensing object set.

[0042] First, for each graphic element, its device binding data is read, and the object identifier and sub-object identifier are parsed. The object identifier is matched with pre-recorded device type information to determine the device type corresponding to the object identifier; simultaneously, the existence of sub-object identifiers is checked, and whether existing sub-object identifiers match the temperature measurement point code. When the object identifier corresponds to an air conditioning device type, and the sub-object identifier is empty, missing, or not set, the graphic element is determined to be object-level bound and identified as an air conditioning graphic element; when the object identifier corresponds to a temperature sensing device type, and the sub-object identifier corresponds to a temperature measurement point code, the graphic element is determined to be temperature measurement point-level bound and identified as a temperature sensing graphic element. Graphic elements whose object identifiers do not belong to the air conditioning device type or the temperature sensing device type, as well as graphic elements bound to a temperature sensing device but not a temperature measurement point, are not included in the air conditioning graphic element or temperature sensing graphic element classification. During the identification process, the correspondence between graphic element identifiers and device binding data and geometric position data is preserved, so that the identified air conditioning graphic elements and temperature sensing graphic elements can continue to call the position and size information corresponding to the same graphic element.

[0043] Furthermore, each identified air conditioner element is processed individually. The air conditioner equipment identifier is read from its device binding data, and the corresponding horizontal and vertical coordinates, width, and height are retrieved based on the identifier. According to the data fields of the air conditioner object, the air conditioner equipment identifier and its corresponding position and size information are encapsulated into an air conditioner object, and these objects are aggregated into an air conditioner object set. For temperature sensing elements, the temperature sensing device identifier, temperature measuring point identifier, and temperature measuring point code are read, and the corresponding horizontal and vertical coordinates, width, and height are retrieved for the same temperature sensing element. These fields are encapsulated into a temperature sensing object, and these objects are then aggregated into a temperature sensing object set. After the set is constructed, it is first checked whether there are object records in the two object sets. If either object set is empty, the integrity check is determined to have failed. For non-empty air conditioner object sets, the air conditioner equipment identifier is used as the deduplication field to count the object records corresponding to the same air conditioner equipment identifier; for non-empty temperature sensing object sets, the temperature measuring point identifier is used as the deduplication field to count the temperature sensing object records corresponding to the same temperature measuring point identifier. When the same deduplication field corresponds to multiple objects, it is determined that there are duplicate air conditioner objects or duplicate temperature sensing points. The verification is considered successful only if both object sets are not empty and there are no duplicate objects; otherwise, the verification is considered unsuccessful, and the verification information for empty sets or duplicate objects is recorded to obtain the verification result.

[0044] By simultaneously comparing the device type corresponding to the object identifier and the binding level corresponding to the sub-object identifier, it is possible to distinguish between graphic elements directly bound to air conditioning equipment and graphic elements bound to temperature measuring points under temperature sensing equipment, reducing the possibility of incorrectly including irrelevant device graphic elements or non-temperature measuring point graphic elements in the association process. By encapsulating and classifying the geometric position data corresponding to the same graphic element with the device identifier and measuring point identifier, air conditioning objects and temperature sensing objects have a clear and unified data structure. Furthermore, by using set non-empty detection to exclude cases where any type of associated object is missing, and by performing deduplication by air conditioning equipment identifier and temperature measuring point identifier respectively, it is possible to avoid the same air conditioning equipment or temperature measuring point being recorded repeatedly. As a result, complete, non-duplicate, and structurally consistent object data can be provided for subsequent determination of the target association quantity and generation of association relationships, improving the data processing efficiency and consistency of air conditioning and temperature sensing association configuration.

[0045] This embodiment acquires and parses configuration canvas data to obtain device binding data and geometric position data for each graphic element; identifies air conditioning graphic elements and temperature sensing graphic elements based on device binding data, constructs air conditioning object sets and temperature sensing object sets by combining geometric position data, and performs integrity and repeatability checks on the air conditioning object sets and temperature sensing object sets to obtain the check results; when the check results pass, determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the air conditioning object set to the number of objects in the temperature sensing object set; determines the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sorts each temperature sensing object according to spatial distance, and determines candidate temperature sensing objects from the sorting results based on the target association quantity; divides the association hierarchy based on the position of the candidate temperature sensing objects in the sorting results, determines the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generates a target air conditioning algorithm binding configuration including air conditioning device identifier, temperature sensing device identifier, temperature measuring point identifier, relationship type, and weight coefficient. This embodiment acquires and parses configuration canvas data to directly obtain device binding data and geometric position data for each element. Based on the device binding data, it identifies air conditioning elements and temperature sensing elements to construct corresponding object sets, allowing existing data in the configuration canvas to directly enter the associated configuration generation process. By performing integrity and duplicate checks on the air conditioning and temperature sensing object sets, and only performing subsequent processing upon passing the checks, it avoids incomplete or duplicate object data from participating in configuration generation. Furthermore, it uniformly determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the two object sets, and determines candidate temperature sensing elements for each air conditioning object according to the same spatial distance calculation, distance sorting, and candidate selection rules. This approach reduces the number of associations and discrepancies in associated objects caused by manual judgment. Based on this, association levels are defined according to the position of candidate temperature sensing objects in the ranking results. Relationship types and weight coefficients are determined according to the association level and the order within each level, ensuring that the association relationships and weight parameters for different air conditioning objects are generated according to unified rules. Finally, air conditioning device identifiers, temperature sensing device identifiers, temperature measurement point identifiers, relationship types, and weight coefficients are encapsulated into a target air conditioning algorithm binding configuration. This reduces the manual operations required for item-by-item identification, filtering, and configuration, improving the efficiency of generating air conditioning and temperature sensing association configurations. Furthermore, unified data verification, object selection, relationship layering, and weight determination rules enhance the consistency of association configurations.

[0046] Based on the second embodiment described above, a third embodiment of the method for automatically generating the association between air conditioning and temperature sensing based on the location of configuration diagram elements is proposed in this application. Please refer to... Figure 3 , Figure 3 This is a schematic diagram of a sub-process in the third embodiment of the method for automatically generating the association between air conditioner and temperature sensor based on the position of configuration diagram elements in this application.

[0047] In this embodiment, step S3 includes: S31: Parse the verification result. When the verification result indicates that the verification is passed, count the air conditioning objects in the air conditioning object set and the temperature sensing objects in the temperature sensing object set to obtain the number of air conditioning objects and the number of temperature sensing objects. S32: Perform integer division with the number of temperature-sensing objects as the dividend and the number of air-conditioning objects as the divisor to obtain the object quantity ratio; S33: For each air conditioner object in the set of air conditioner objects, the object quantity ratio is determined as the number of temperature sensing objects that the corresponding air conditioner object needs to be associated with, so as to obtain the target association quantity of each air conditioner object.

[0048] It should be noted that the number of air conditioner objects refers to the total number of valid air conditioner objects contained in the set of air conditioner objects; the number of temperature sensing objects refers to the total number of valid temperature sensing objects contained in the set of temperature sensing objects; the dividend refers to the value used to divide in integer division, which corresponds to the number of temperature sensing objects in this step; the divisor refers to the value used to divide the dividend in integer division, which corresponds to the number of air conditioner objects in this step; integer division refers to the operation of dividing two integers and retaining the integer quotient; the integer quotient refers to the integer result obtained after performing integer division, excluding the remainder that cannot form a complete integer unit.

[0049] First, the verification status in the verification results is read, and the integrity verification status and duplicate verification status are checked respectively. Only when both the integrity verification status and the duplicate verification status indicate that they have passed, the object count processing begins. First, the air conditioner object count is initialized. Air conditioner objects are read one by one according to the order of objects in the air conditioner object set. The air conditioner object count is updated after each object is read, until the entire air conditioner object set is traversed. The final count value is then determined as the number of air conditioner objects. Then, the temperature sensor object set is traversed in the same way, with each temperature sensor object read and its count value updated. The count value after the traversal is completed is determined as the number of temperature sensor objects. Since both object sets have passed the non-empty and duplicate verifications, the counted number of air conditioner objects and temperature sensor objects correspond to unique and valid object records.

[0050] Furthermore, the number of temperature sensing objects is set as the dividend in an integer division operation, and the number of air conditioner objects is set as the divisor. Integer division is then performed, and the integer quotient in the result is used as the object quantity ratio. Since the verification result indicates that the verification passed, there is at least one air conditioner object in the air conditioner object set; therefore, the number of air conditioner objects can be used as a valid divisor. After obtaining the object quantity ratio, each air conditioner object is read one by one according to the order of objects in the air conditioner object set, and the air conditioner device identifier of the current air conditioner object is read. The integer value corresponding to the object quantity ratio is determined as the number of temperature sensing objects that the current air conditioner object needs to be associated with, and a correspondence is established between this number and the current air conditioner device identifier. After traversing all air conditioner objects, an association quantity record is formed for each air conditioner object, resulting in the target association quantity for each air conditioner object.

[0051] By counting the number of air conditioner objects and temperature sensors only after the verification results have passed, the counting can be based on a non-empty set of objects without duplicates, avoiding deviations from the actual object size caused by empty sets or duplicate objects. By iterating through both object sets and counting them separately, a clear number of air conditioner objects and temperature sensors can be formed. Further, integer division is performed on the number of temperature sensors and air conditioner objects to convert the size relationship between the two object sets into an integer association quantity that can be directly used for each air conditioner object. A target association quantity is then determined for each air conditioner object according to a unified rule. This eliminates the need for manually setting the number of temperature sensors to be associated for each unit, improving the efficiency of determining the target association quantity. Furthermore, it ensures that the association quantities for different air conditioner objects are generated according to the same data basis and calculation rules, thereby improving the consistency of the association configuration.

[0052] Based on the second embodiment described above, in this embodiment, step S4 includes: S41: Extract the horizontal and vertical coordinates from the geometric position data corresponding to each air conditioning object and each temperature sensing object respectively to obtain the air conditioning position coordinates of each air conditioning object and the temperature sensing position coordinates of each temperature sensing object. S42: For each of the air conditioning objects, traverse the set of temperature sensing objects, and determine the spatial distance between the corresponding air conditioning object and each temperature sensing object by summing the square of the difference between the horizontal coordinates and the square of the difference between the vertical coordinates according to the coordinates of the air conditioning position and each of the temperature sensing objects. Arrange each temperature sensing object in order of increasing spatial distance to obtain the sorting result corresponding to each air conditioning object. S43: Based on the sorting results corresponding to each air conditioner object, select temperature sensing objects whose quantity is consistent with the target associated quantity according to the sorting order to obtain the candidate temperature sensing objects corresponding to each air conditioner object.

[0053] It should be noted that the air conditioner location coordinates refer to the x and y coordinates extracted from the geometric location data corresponding to the air conditioner object, used to represent the position of the air conditioner element in the configuration canvas coordinate system; the temperature sensor location coordinates refer to the x and y coordinates extracted from the geometric location data corresponding to the temperature sensor object, used to represent the position of the temperature sensor element in the same configuration canvas coordinate system; the x-coordinate difference refers to the difference between the x-coordinate in the air conditioner location coordinates and the x-coordinate in the temperature sensor location coordinates; the y-coordinate difference refers to the difference between the y-coordinate in the air conditioner location coordinates and the y-coordinate in the temperature sensor location coordinates; the distance record refers to the data record formed by associating the air conditioner equipment identifier, temperature sensor equipment identifier, temperature measurement point identifier, and corresponding spatial distance; the sorting order refers to the sequential positional relationship formed by arranging each temperature sensor object according to the spatial distance from smallest to largest.

[0054] First, air conditioner objects are read one by one according to the order of objects in the air conditioner object set. The horizontal and vertical coordinate fields are read from the geometric position data corresponding to the current air conditioner object. The two coordinate fields are combined to form the air conditioner position coordinates of the current air conditioner object, and a correspondence is established between the air conditioner device identifier and the air conditioner position coordinates. The temperature sensor object set is traversed in the same way, and the horizontal and vertical coordinate fields corresponding to each temperature sensor object are read. They are combined to form the temperature sensor position coordinates, and a correspondence is established between the temperature sensor device identifier, the temperature measuring point identifier, and the temperature sensor position coordinates. A distance record set is created for the current air conditioner object, and all temperature sensor objects are traversed. The horizontal and vertical coordinate differences between the current air conditioner object and the current temperature sensor object are determined. The two coordinate differences are squared and summed. The result is determined as the spatial distance between the two objects. Then, the air conditioner device identifier of the current air conditioner object, the temperature sensor device identifier and temperature measuring point identifier of the current temperature sensor object, the spatial distance, and the corresponding position coordinates are written into the same distance record. After traversing the set of temperature-sensing objects, a set of distance records between the current air conditioner object and all temperature-sensing objects is obtained. These records are then sorted in ascending order using spatial distance as the sorting field, placing temperature-sensing objects with smaller spatial distances at the beginning of the sorted results and those with larger spatial distances at the end. This process is repeated for each air conditioner object to obtain a separate sorted result for each object.

[0055] Furthermore, for each air conditioner object, its target associated quantity is read, and the corresponding sorting result is obtained. Starting from the first position of the sorting result, distance records are read one by one according to the sorting order. For each distance record read, the corresponding temperature sensing object is extracted, and the number of selected temperature sensing objects is accumulated. When the number of selected objects reaches the target associated quantity for the current air conditioner object, selection from the sorting result is stopped, and the selected temperature sensing objects are determined as candidate temperature sensing objects for the current air conditioner object. For each candidate temperature sensing object, its temperature sensing device identifier, temperature measuring point identifier, spatial distance, and position in the sorting result are retained, and an association is established with the air conditioning device identifier of the current air conditioner object. All air conditioner objects in the set of air conditioner objects are processed in the above manner to obtain the candidate temperature sensing objects corresponding to each air conditioner object.

[0056] By extracting the x-coordinate and y-coordinate from the geometric position data of air conditioning objects and temperature sensing objects respectively, the positions of the two types of objects can be compared in the same configuration canvas coordinate system. By traversing the set of temperature sensing objects and calculating the sum of squared coordinate differences between each air conditioning object and all temperature sensing objects, the spatial distance for comparison can be obtained directly without changing the order of distance size, reducing the computational processing in the distance comparison process. Furthermore, by forming distance records with the corresponding equipment identifiers and measuring point identifiers and arranging them in ascending order, the spatial proximity relationship of each temperature sensing object relative to each air conditioning object can be converted into a clear sorting order. Based on the target association quantity, temperature sensing objects are selected sequentially from the front of the sorting results, so that each air conditioning object is determined as a candidate temperature sensing object according to the same distance calculation, sorting and quantity truncation rules, thereby reducing the difference in candidate objects caused by manual judgment and improving the processing efficiency and consistency of candidate temperature sensing object determination.

[0057] In this embodiment, step S5 includes: S51: Determine the number of weakly associated objects based on the target number of associated objects and the preset weakly associated allocation ratio; determine the number of secondary associated objects based on the remaining number after deducting the number of weakly associated objects and the preset secondary associated allocation ratio; and determine the remaining number after deducting the number of secondary associated objects again as the number of strongly associated objects. According to the position of the candidate temperature sensing objects in the sorting result from front to back, divide the strong association level, secondary association level and weak association level in sequence, and determine the intra-level order of each candidate temperature sensing object. S52: Obtain the relationship type, initial weight and weight adjustment amount corresponding to each of the association levels, determine the corresponding relationship type according to the association level of each of the candidate temperature sensing objects, and determine the weight coefficient of each candidate temperature sensing object in sequence according to the order within the layer, based on the corresponding initial weight and weight adjustment amount. S53: Extract the air conditioning device identifier of each air conditioning object and the temperature sensing device identifier and temperature measuring point identifier of each candidate temperature sensing object. Associate and encapsulate the air conditioning device identifier, the temperature sensing device identifier, the temperature measuring point identifier with the corresponding relationship type and weight coefficient to obtain multiple air conditioning algorithm binding configuration items. Summarize the multiple air conditioning algorithm binding configuration items to generate the target air conditioning algorithm binding configuration.

[0058] It should be noted that the preset weak association allocation ratio refers to the pre-set proportional parameter used to determine the number of weakly associated objects from the target association quantity; the preset secondary association allocation ratio refers to the pre-set proportional parameter used to determine the number of secondary associated objects from the remaining quantity after deducting the number of weakly associated objects; the number of weakly associated objects, the number of secondary associated objects, and the number of strongly associated objects refer to the number of candidate temperature sensing objects assigned to the corresponding association level; the remaining quantity refers to the number of candidate temperature sensing objects that have not yet been allocated after deducting the number of objects with determined levels from the target association quantity; the initial weight refers to the basic weight corresponding to the candidate temperature sensing object that is at the top of each association level; the weight adjustment amount refers to the magnitude of weight change between adjacent candidate temperature sensing objects within the same association level; the air conditioning algorithm binding configuration item refers to a single configuration record formed by encapsulating the corresponding device identifier, measurement point identifier, relationship type, and weight coefficient according to a preset field structure for the association relationship between a group of air conditioning objects and candidate temperature sensing objects.

[0059] First, for each air conditioner object, obtain its corresponding candidate temperature sensing objects and target association quantity, maintaining the order from front to back according to the position of the candidate temperature sensing objects in the sorting results. Read the preset weak association allocation ratio, process the target association quantity according to the preset weak association allocation ratio, and integerize the resulting quantity to determine the number of weakly associated objects. Subtract the number of weakly associated objects from the target association quantity to obtain the first remaining quantity. Then, process the first remaining quantity according to the preset secondary association allocation ratio and integerize it to determine the number of secondary associated objects. Subtract the number of secondary associated objects from the first remaining quantity to determine the second remaining quantity as the number of strongly associated objects. In an optional implementation, the weak association allocation ratio is one-third, and the secondary association allocation ratio is one-half. That is, first, one-third of the target association quantity is determined as the number of weakly associated objects, and then half of the remaining quantity after subtracting the number of weakly associated objects is determined as the number of secondary associated objects. The remaining candidate temperature sensing objects are assigned to the strong association level. Based on the number of strongly correlated objects, a corresponding number of candidate temperature sensors are selected from the beginning of the sorting results and assigned to the strongly correlated level. Then, based on the number of secondarily correlated objects, the subsequent candidate temperature sensors are assigned to the secondarily correlated level. The remaining candidate temperature sensors at the end of the sorting results are assigned to the weakly correlated level. For each correlation level, the order within the level is re-recorded starting from the first candidate temperature sensor in that level, ensuring that each candidate temperature sensor simultaneously has a corresponding correlation level and position within the level.

[0060] Furthermore, the pre-set hierarchical parameter records are read to obtain the relationship types, initial weights, and weight adjustment amounts corresponding to the strongly correlated, secondarily correlated, and weakly correlated hierarchies. The corresponding relationship types are written according to the correlation hierarchy of each candidate temperature sensing object, and the weight coefficients are determined based on their order within the hierarchy. The candidate temperature sensing object at the beginning of the hierarchy uses the initial weight of the corresponding hierarchy, and for each subsequent candidate temperature sensing object moved to the next position, the weight of the previous position is decreased according to the corresponding weight adjustment amount. In one optional implementation, the relationship types corresponding to the strongly correlated, secondarily correlated, and weakly correlated hierarchies are 2, 1, and 0, respectively, and the corresponding initial weights are 1.0, 0.6, and 0.3, respectively. The weight adjustment amount used for each hierarchy is 0.1. After determining the relationship type and weight coefficients, for each air conditioner object, its air conditioner device identifier is read, and the corresponding candidate temperature sensing objects are read one by one. The temperature sensing device identifier and temperature measurement point identifier are extracted from the candidate temperature sensing objects. The air conditioner device identifier, temperature sensing device identifier, temperature measurement point identifier, and the relationship type and weight coefficients corresponding to the candidate temperature sensing object are written into the same configuration record to obtain the air conditioner algorithm binding configuration item. After processing all air conditioner objects and candidate temperature sensing objects, the air conditioner algorithm binding configuration items are summarized according to a unified field structure to generate the target air conditioner algorithm binding configuration.

[0061] By determining the number of objects at each association level according to preset weak association allocation ratios and preset secondary association allocation ratios, and continuously dividing strong, secondary, and weak association levels based on the position of candidate temperature sensing objects in the sorting results, different air conditioning objects can adopt a unified level number allocation method and position division rules. By setting corresponding relationship types, initial weights, and weight adjustment amounts for each association level, and determining the weight coefficients item by item according to the order within the level, candidate temperature sensing objects with different distances from the sorting position can form different relationship types and weight parameters, while ensuring that the weights within the same level change according to consistent rules. Furthermore, by encapsulating air conditioning equipment identifiers, temperature sensing equipment identifiers, temperature measuring point identifiers, relationship types, and weight coefficients into configuration items with a unified field structure and summarizing them, the manual operation of layering, setting weights, and entering configuration fields can be reduced, thereby improving the generation efficiency and consistency of target air conditioning algorithm binding configuration.

[0062] This embodiment acquires and parses configuration canvas data to obtain device binding data and geometric position data for each graphic element; identifies air conditioning graphic elements and temperature sensing graphic elements based on device binding data, constructs air conditioning object sets and temperature sensing object sets by combining geometric position data, and performs integrity and repeatability checks on the air conditioning object sets and temperature sensing object sets to obtain the check results; when the check results pass, determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the air conditioning object set to the number of objects in the temperature sensing object set; determines the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sorts each temperature sensing object according to spatial distance, and determines candidate temperature sensing objects from the sorting results based on the target association quantity; divides the association hierarchy based on the position of the candidate temperature sensing objects in the sorting results, determines the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generates a target air conditioning algorithm binding configuration including air conditioning device identifier, temperature sensing device identifier, temperature measuring point identifier, relationship type, and weight coefficient. This embodiment acquires and parses configuration canvas data to directly obtain device binding data and geometric position data for each element. Based on the device binding data, it identifies air conditioning elements and temperature sensing elements to construct corresponding object sets, allowing existing data in the configuration canvas to directly enter the associated configuration generation process. By performing integrity and duplicate checks on the air conditioning and temperature sensing object sets, and only performing subsequent processing upon passing the checks, it avoids incomplete or duplicate object data from participating in configuration generation. Furthermore, it uniformly determines the target association quantity for each air conditioning object based on the ratio of the number of objects in the two object sets, and determines candidate temperature sensing elements for each air conditioning object according to the same spatial distance calculation, distance sorting, and candidate selection rules. This approach reduces the number of associations and discrepancies in associated objects caused by manual judgment. Based on this, association levels are defined according to the position of candidate temperature sensing objects in the ranking results. Relationship types and weight coefficients are determined according to the association level and the order within each level, ensuring that the association relationships and weight parameters for different air conditioning objects are generated according to unified rules. Finally, air conditioning device identifiers, temperature sensing device identifiers, temperature measurement point identifiers, relationship types, and weight coefficients are encapsulated into a target air conditioning algorithm binding configuration. This reduces the manual operations required for item-by-item identification, filtering, and configuration, improving the efficiency of generating air conditioning and temperature sensing association configurations. Furthermore, unified data verification, object selection, relationship layering, and weight determination rules enhance the consistency of association configurations.

[0063] In one embodiment, please refer to Figure 4 , Figure 4 This is a schematic diagram illustrating the distance ordering and strong, secondary, and weak relationships between a certain air conditioner and multiple temperature sensors in one embodiment of the method for automatically generating associations between air conditioners and temperature sensors based on the location of configuration diagram elements in this application.

[0064] In this embodiment, automatic configuration generation is based on mxGraph (a configuration platform). The system receives the configuration canvas identifier from the user request and includes authorization information to access the configuration service. The configuration service returns response data containing the canvas content, which is either an mxGraph XML string or an XML string wrapped in JSON.

[0065] The returned content is unescaped and parsed into an mxGraph model. Each primitive cell under the model's root node is traversed. If a primitive cell contains object information and that object information contains bound data, the bound data and its corresponding geometric coordinates are extracted. Geometric coordinates can include x, y, width, and height from mxGeometry. Primitives without object data or bound data are skipped.

[0066] Read cached data. For each piece of bound data, if its object identifier corresponds to an air conditioning device type and has no child object identifier, then an air conditioning object is generated; if its object identifier corresponds to a temperature sensing device type and its child object identifier corresponds to a temperature measuring point code, then a temperature sensing object is generated. An air conditioning object includes at least an air conditioning device identifier and a geometric position of the primitive; a temperature sensing object includes at least a temperature sensing device identifier, a temperature measuring point identifier, a temperature measuring point code, and a geometric position of the primitive.

[0067] Check if the air conditioner object set and the temperature sensor object set are empty, and check for duplicate air conditioner objects and duplicate temperature sensor points. If the verification fails, return an error message and stop writing configuration; if the verification passes, calculate the integer ratio of the number of temperature sensors to the number of air conditioners, as the number of temperature sensors that need to be associated with each air conditioner.

[0068] For each air conditioner, iterate through all temperature sensors, calculate the squared Euclidean distance between the air conditioner's coordinates and the temperature sensor's coordinates, and sort them in ascending order of distance. The formula for calculating the squared Euclidean distance is D = (Xac - Xts)^2 + (Yac - Yts)^2. Xac ranges from the values ​​on the horizontal axis of the configuration canvas, and Yac ranges from the values ​​on the vertical axis of the configuration canvas; Xts and Yts are the horizontal and vertical coordinates of the temperature sensor element in the same canvas coordinate system, respectively. D is a non-negative number; the smaller D is, the closer the air conditioner and temperature sensor elements are in the configuration canvas.

[0069] The top R temperature senses are selected as candidate correlation temperature senses, and these candidate correlation temperature senses are then divided into strong relations, secondary relations, and weak relations based on their distance ranking. In one specific rule, the number of weak relations is R / 3, the number of secondary relations is half of the remaining number, and the remaining candidate temperature senses are strong relations. This hierarchical approach ensures that the closest temperature sense receives the highest influence level, while retaining a certain number of secondary and weak reference temperature senses.

[0070] Each relationship level is converted into an algorithm binding configuration. Strong relationships are encoded as type 2, and the coefficient for ranking the i-th temperature sensor in a strong relationship can be Kstrong(i) = 1.0 - 0.1. The relation type of the i-th temperature sensor in the secondary relation is encoded as 1, and the coefficient for sorting the i-th temperature sensor can be Ksecondary(i) = 0.6 - 0.1. i; The relation type code for a weak relation is 0. The coefficient for ranking the i-th temperature sensor in a weak relation can be Kweak(i) = 0.3 - 0.1. i. i can be counted starting from 0. The generated configuration includes air conditioning device identifier, temperature sensing device identifier, temperature measuring point identifier, relationship type, and weight coefficient.

[0071] Finally, the existing automatic binding configuration is cleared or updated, and the new binding configuration is written to the database for the air conditioning control algorithm to read. Through this process, the system can convert the existing device binding information and spatial position relationships in the configuration canvas into a structured configuration that the air conditioning control algorithm can directly use.

[0072] This application also provides a device for automatically generating associations between air conditioners and temperature sensors based on the positions of configuration diagram elements. Please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a schematic diagram of the module structure of a device for automatically generating the association between air conditioners and temperature sensors based on the position of configuration diagram elements, according to an embodiment of this application. The device for automatically generating the association between air conditioners and temperature sensors based on the position of configuration diagram elements includes: Data parsing module 501 is used to acquire and parse configuration canvas data to obtain device binding data and geometric position data of each graphic element; The object verification module 502 is used to identify air conditioning elements and temperature sensing elements according to the device binding data, construct an air conditioning object set and a temperature sensing object set by combining the geometric position data, and perform integrity verification and repeatability verification on the air conditioning object set and the temperature sensing object set to obtain the verification result; The association quantity module 503 is used to determine the target association quantity of each air conditioner object based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensing object set when the verification result passes. The candidate temperature sensing module 504 is used to determine the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sort each temperature sensing object according to the spatial distance, and determine candidate temperature sensing objects from the sorting results based on the target association quantity. The target module 505 is used to divide the association level according to the position of the candidate temperature sensing object in the sorting result, determine the relationship type and weight coefficient based on the association level and the order within the level, and generate a target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing device identifier, temperature measuring point identifier, the relationship type and the weight coefficient.

[0073] The device for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements provided in this application adopts the method for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements in the above embodiments, which can solve the technical problem of how to improve the generation efficiency and consistency of air conditioner and temperature sensor association configurations. Compared with the prior art, the beneficial effects of the device for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements provided in this application are the same as the beneficial effects of the method for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements provided in the above embodiments, and other technical features in the device for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements are the same as the features disclosed in the method of the above embodiments, and will not be repeated here.

[0074] This application provides a device for automatically generating associations between air conditioners and temperature sensors based on the location of elements in a configuration diagram. The device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for automatically generating associations between air conditioners and temperature sensors based on the location of elements in the configuration diagram as described in the above embodiment.

[0075] The following is for reference. Figure 6 , Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the method of automatically generating the association between air conditioner and temperature sensor based on the position of configuration diagram elements in the embodiments of this application. It shows a schematic diagram of the device structure suitable for implementing the method of automatically generating the association between air conditioner and temperature sensor based on the position of configuration diagram elements in the embodiments of this application. Figure 6 The device shown that automatically generates the association between air conditioner and temperature sensor based on the location of configuration diagram elements is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0076] like Figure 6As shown, the device for automatically generating the association between air conditioner and temperature sensor based on the location of configuration diagram elements may include a processing unit 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the device for automatically generating the association between air conditioner and temperature sensor based on the location of configuration diagram elements. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows devices that automatically generate air conditioning and temperature sensor associations based on configuration diagram element locations to communicate wirelessly or wiredly with other devices to exchange data. Although the figures show devices that automatically generate air conditioning and temperature sensor associations based on configuration diagram element locations with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented alternatively.

[0077] In particular, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. When the computer program is executed by the processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0078] The device for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements provided in this application, employing the method described in the above embodiments, solves the technical problem of improving the generation efficiency and consistency of air conditioner and temperature sensor association configurations. Compared with the prior art, the beneficial effects of the device for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements provided in this application are the same as those of the method described in the above embodiments. Furthermore, other technical features of this device for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements are the same as those disclosed in the previous embodiment, and will not be repeated here.

[0079] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0080] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0081] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the method for automatically generating air conditioning and temperature sensing associations based on the configuration diagram element positions in the above embodiments.

[0082] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by devices that automatically generate associations between air conditioners and temperature sensors based on the positions of configuration diagram elements, the automatic generation of associations between air conditioners and temperature sensors based on the positions of configuration diagram elements results in the following: acquiring and parsing configuration canvas data to obtain device binding data and geometric position data for each element; identifying air conditioner elements and temperature sensor elements based on the device binding data; constructing air conditioner object sets and temperature sensor object sets by combining the geometric position data; and performing integrity and repeatability checks on the air conditioner object sets and temperature sensor object sets to obtain the check results; (The process is repeated in the original text.) When the verification result passes, the target association quantity for each air conditioning object is determined based on the ratio of the number of objects in the air conditioning object set to the number of temperature sensing objects. The spatial distance between each air conditioning object and each temperature sensing object is determined based on geometric location data. The temperature sensing objects are then sorted by spatial distance, and candidate temperature sensing objects are determined from the sorting results based on the target association quantity. Association levels are divided based on the position of the candidate temperature sensing objects in the sorting results. Relationship types and weight coefficients are determined based on the association levels and intra-level order, generating a target air conditioning algorithm binding configuration that includes air conditioning device identifiers, temperature sensing device identifiers, temperature measuring point identifiers, relationship types, and weight coefficients. Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer through any type of network—including a local area network (LAN) or a wide area network (WAN)—or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0084] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0085] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described method for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements. This method can solve the technical problem of how to improve the generation efficiency and consistency of air conditioner and temperature sensor association configurations. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the method for automatically generating air conditioner and temperature sensor associations based on the location of configuration diagram elements provided in the above embodiments, and will not be elaborated upon here.

[0086] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described above for automatically generating the association between air conditioners and temperature sensors based on the position of configuration diagram elements.

[0087] The computer program product provided in this application can solve the technical problem of how to improve the generation efficiency and consistency of air conditioner and temperature sensor association configurations. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the method for automatically generating air conditioner and temperature sensor associations based on configuration diagram element positions provided in the above embodiments, and will not be repeated here.

[0088] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method for automatically generating the association between air conditioners and temperature sensors based on the position of elements in a configuration diagram, characterized in that, The method includes: Acquire and parse the configuration canvas data to obtain the device binding data and geometric position data of each element; Based on the device binding data, air conditioner elements and temperature sensing elements are identified. Combined with the geometric position data, an air conditioner object set and a temperature sensing object set are constructed. The air conditioner object set and the temperature sensing object set are then subjected to integrity and repeatability checks to obtain the check results. When the verification result passes, the target number of associations for each air conditioner object is determined based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensor object set. The spatial distance between each air conditioning object and each temperature sensing object is determined based on the geometric position data. The temperature sensing objects are sorted according to the spatial distance, and candidate temperature sensing objects are determined from the sorting results based on the target association quantity. The association levels are divided according to the position of the candidate temperature sensing objects in the sorting results. The relationship type and weight coefficient are determined based on the association level and the order within the level. A target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing equipment identifier, temperature measuring point identifier, the relationship type and the weight coefficient are generated.

2. The method as described in claim 1, characterized in that, The steps of acquiring and parsing the configuration canvas data to obtain the device binding data and geometric position data of each element include: Obtain the canvas identifier and authorization information of the target configuration canvas, send a canvas acquisition request to the configuration service based on the canvas identifier and authorization information, receive the response data returned by the configuration service, and extract the canvas content from the response data to obtain the configuration canvas data. The canvas content includes an XML string corresponding to the configuration diagram model or the XML string encapsulated in JSON. The canvas content in the configuration canvas data is inverted and processed, and the processed canvas content is parsed into a configuration diagram model. The root node of the configuration diagram model is traversed to obtain multiple primitive units. From the plurality of graphic element units, a target graphic element unit containing object information and binding data is determined. The device data or measurement point data bound to each target graphic element unit, as well as the horizontal coordinate, vertical coordinate, width and height in the corresponding geometric object, are extracted to obtain the device binding data and geometric position data of each graphic element.

3. The method as described in claim 1, characterized in that, The steps of identifying air conditioner elements and temperature sensing elements based on the device binding data, constructing an air conditioner object set and a temperature sensing object set by combining the geometric position data, and performing integrity and duplicate checks on the air conditioner object set and the temperature sensing object set to obtain the check results include: For the device binding data of each graphic element, when the object identifier in the device binding data corresponds to the air conditioning device type and does not contain a sub-object identifier, the corresponding graphic element is determined as an air conditioning graphic element; when the object identifier corresponds to the temperature sensing device type and the sub-object identifier corresponds to the temperature measuring point code, the corresponding graphic element is determined as a temperature sensing graphic element. The air conditioning device identifier is extracted from the device binding data of each of the air conditioning elements, the air conditioning device identifier and the corresponding geometric position data are encapsulated into an air conditioning object, and the air conditioning objects are aggregated to obtain the air conditioning object set; Extract the temperature sensing device identifier, temperature measuring point identifier, and temperature measuring point code from the device binding data of each temperature sensing element. Encapsulate the extraction results and the corresponding geometric position data into a temperature sensing object. Then, aggregate each temperature sensing object to obtain the set of temperature sensing objects. Integrity verification is performed based on whether the set of air conditioning objects and the set of temperature sensing objects are empty. Duplicate air conditioning objects and duplicate temperature sensing points are detected based on the air conditioning device identifier and the temperature measuring point identifier to perform repeatability verification. The verification is determined to be successful when both object sets are not empty and there are no duplicate objects; otherwise, the verification is determined to be unsuccessful, and the verification result is obtained.

4. The method as described in claim 1, characterized in that, The step of determining the target association quantity of each air conditioner object based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensing object set when the verification result passes includes: The verification result is parsed. When the verification result indicates that the verification is passed, the number of air conditioner objects in the air conditioner object set and the number of temperature sensor objects in the temperature sensor object set are counted respectively to obtain the number of air conditioner objects and the number of temperature sensor objects. The object quantity ratio is obtained by performing an integer division operation with the number of temperature sensing objects as the dividend and the number of air conditioning objects as the divisor. For each air conditioner object in the set of air conditioner objects, the ratio of the number of objects is determined as the number of temperature sensing objects that the corresponding air conditioner object needs to be associated with, thus obtaining the target association number for each air conditioner object.

5. The method as described in claim 1, characterized in that, The steps of determining the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sorting each temperature sensing object according to the spatial distance, and determining candidate temperature sensing objects from the sorting results based on the target association quantity include: The horizontal and vertical coordinates are extracted from the geometric position data corresponding to each air conditioning object and each temperature sensing object, respectively, to obtain the air conditioning position coordinates of each air conditioning object and the temperature sensing position coordinates of each temperature sensing object. For each air conditioner object, the set of temperature sensing objects is traversed. Based on the location coordinates of the air conditioner and the location coordinates of each temperature sensing object, the sum of the squares of the differences in the horizontal coordinates and the squares of the differences in the vertical coordinates is determined as the spatial distance between the corresponding air conditioner object and each temperature sensing object. The temperature sensing objects are then arranged in ascending order of the spatial distances to obtain the sorting result corresponding to each air conditioner object. Based on the sorting results corresponding to each air conditioner object, select temperature sensing objects whose quantity is consistent with the target associated quantity according to the sorting order to obtain the candidate temperature sensing objects corresponding to each air conditioner object.

6. The method as described in claim 1, characterized in that, The step of dividing the association hierarchy according to the position of the candidate temperature sensing object in the ranking result, determining the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generating a target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing device identifier, temperature measuring point identifier, the relationship type and the weight coefficient includes: The number of weakly associated objects is determined based on the target number of associated objects and the preset weakly associated allocation ratio. The number of secondary associated objects is determined based on the remaining number after deducting the number of weakly associated objects and the preset secondary associated allocation ratio. The remaining number after deducting the number of secondary associated objects again is determined as the number of strongly associated objects. According to the position of the candidate temperature sensing objects in the sorting result from front to back, the strong association level, secondary association level and weak association level are divided in sequence, and the intra-level order of each candidate temperature sensing object is determined. Obtain the relationship type, initial weight, and weight adjustment amount corresponding to each of the association levels; determine the corresponding relationship type according to the association level of each of the candidate temperature sensing objects; and determine the weight coefficient of each candidate temperature sensing object in sequence according to the order within the layer, based on the corresponding initial weight and weight adjustment amount. Extract the air conditioning device identifier of each air conditioning object and the temperature sensing device identifier and temperature measuring point identifier of each candidate temperature sensing object. Associate and encapsulate the air conditioning device identifier, the temperature sensing device identifier, the temperature measuring point identifier with the corresponding relationship type and weight coefficient to obtain multiple air conditioning algorithm binding configuration items. Summarize the multiple air conditioning algorithm binding configuration items to generate the target air conditioning algorithm binding configuration.

7. A device for automatically generating associations between air conditioners and temperature sensors based on the positions of elements in a configuration diagram, characterized in that, The device includes: The data parsing module is used to acquire and parse the configuration canvas data to obtain the device binding data and geometric position data of each graphic element; The object verification module is used to identify air conditioner elements and temperature sensing elements based on the device binding data, construct an air conditioner object set and a temperature sensing object set by combining the geometric position data, and perform integrity verification and repeatability verification on the air conditioner object set and the temperature sensing object set to obtain the verification result; The association quantity module is used to determine the target association quantity of each air conditioner object based on the ratio of the number of objects in the air conditioner object set to the number of objects in the temperature sensor object set when the verification result passes. The candidate temperature sensing module is used to determine the spatial distance between each air conditioning object and each temperature sensing object based on the geometric position data, sort each temperature sensing object according to the spatial distance, and determine candidate temperature sensing objects from the sorting results based on the target association quantity. The target module is used to divide the association hierarchy according to the position of the candidate temperature sensing object in the sorting result, determine the relationship type and weight coefficient based on the association hierarchy and the order within the hierarchy, and generate a target air conditioning algorithm binding configuration including air conditioning equipment identifier, temperature sensing device identifier, temperature measuring point identifier, the relationship type and the weight coefficient.

8. A computer device, characterized in that, The device includes: a memory, a processor, and a program stored in the memory and executable on the processor for automatically generating associations between air conditioners and temperature sensors based on the positions of configuration diagram elements, wherein the program is configured to implement the steps of the method for automatically generating associations between air conditioners and temperature sensors based on the positions of configuration diagram elements as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium stores a program that automatically generates the association between air conditioners and temperature sensors based on the location of configuration diagram elements. When the program that automatically generates the association between air conditioners and temperature sensors based on the location of configuration diagram elements is executed by the processor, it implements the steps of the method for automatically generating the association between air conditioners and temperature sensors based on the location of configuration diagram elements as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the method for automatically generating the association between air conditioning and temperature sensing based on the location of configuration diagram elements as described in any one of claims 1 to 6.