Automatic grouping method, device, computer equipment and storage medium for air conditioners
By obtaining the unique device identification code, deployment altitude, and Bluetooth signal strength of the air conditioner, and using a preset grouping strategy, the engineering air conditioners are automatically grouped, solving the problem of low efficiency in manual grouping in existing technologies and achieving fast and accurate air conditioner grouping.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-12
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, when grouping engineering air conditioners installed in the same area, it is necessary to manually confirm the naming and grouping of each one, which leads to low efficiency and is prone to errors.
By obtaining the unique device identification code, deployment altitude, and Bluetooth signal strength value of the air conditioner, the system automatically groups the air conditioners using a preset grouping strategy, including grouping based on the same floor and Bluetooth signal strength, and optimizes the grouping results using a community affinity algorithm.
It improves the accuracy and efficiency of air conditioner grouping, reduces human error, and enables fast and accurate air conditioner grouping.
Smart Images

Figure CN116011736B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to an automatic air conditioner grouping method, an air conditioner, and a storage medium. Background Technology
[0002] As users' demand for regulating indoor temperature increases, air conditioning is being used more and more widely. For example, there are increasingly more residential air conditioners installed in homes, as well as commercial air conditioners installed in schools, factories, and office buildings. Among these, commercial air conditioners offer a wider range of cooling and heating capabilities compared to residential air conditioners.
[0003] To achieve unified management and energy conservation of air conditioning systems in engineering projects, it is generally necessary to group the air conditioners by floor and room. The current solution is to manually confirm, name, and group each air conditioner individually. However, when there are many floors and rooms, this method of grouping air conditioners is not only inefficient but also prone to errors. Summary of the Invention
[0004] This invention provides an automatic air conditioner grouping method, device, computer equipment, and storage medium, aiming to solve the problem in the prior art where grouping engineering air conditioners installed in the same area by floor and room requires manual confirmation, naming, and grouping of each engineering air conditioner one by one, resulting in low efficiency and easy grouping errors.
[0005] In a first aspect, embodiments of the present invention provide an automatic air conditioner grouping method, applied to a server, comprising:
[0006] In response to an air conditioning grouping command, obtain the target area corresponding to the air conditioning grouping command;
[0007] Obtain the air conditioner deployment information of each air conditioner in the target area to form a deployment information set; wherein, the air conditioner deployment information includes the unique device identification code of the air conditioner, the altitude of the air conditioner deployment, and a set of Bluetooth signal strength values of the air conditioner;
[0008] Based on the deployment information set and the preset deployment information grouping strategy, obtain the corresponding air conditioner grouping results.
[0009] Secondly, embodiments of the present invention also provide an automatic air conditioning grouping device, configured to operate on a server, comprising:
[0010] The target area acquisition unit is used to acquire the target area corresponding to the air conditioning grouping instruction in response to the air conditioning grouping instruction;
[0011] The deployment information set acquisition unit is used to acquire the air conditioning deployment information of each air conditioner in the target area and form a deployment information set; wherein, the air conditioning deployment information includes the unique device identification code of the air conditioner, the altitude of the air conditioner deployment, and the set of Bluetooth signal strength values of the air conditioner.
[0012] The grouping unit is used to obtain the corresponding air conditioner grouping result based on the deployment information set and the preset deployment information grouping strategy.
[0013] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the first aspect above.
[0014] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, can implement the method described in the first aspect above.
[0015] This invention provides an automatic air conditioner grouping method, an air conditioner, and a storage medium. The method includes: responding to an air conditioner grouping command, obtaining a target area corresponding to the command; obtaining air conditioner deployment information for each air conditioner in the target area to form a deployment information set; wherein the air conditioner deployment information includes a unique device identifier for each air conditioner, an air conditioner deployment altitude, and a set of Bluetooth signal strength values; and obtaining a corresponding air conditioner grouping result based on the deployment information set and a preset deployment information grouping strategy. This invention automatically groups air conditioners based on their deployment altitude and Bluetooth signal strength values, improving grouping accuracy and efficiency. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram illustrating an application scenario of the automatic air conditioner grouping method provided in an embodiment of the present invention;
[0018] Figure 2 This is a flowchart illustrating the automatic grouping method for air conditioners provided in an embodiment of the present invention;
[0019] Figure 3 This is another flowchart illustrating the automatic grouping method for air conditioners provided in an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of a sub-process of the automatic grouping method for air conditioners provided in an embodiment of the present invention;
[0021] Figure 5 A schematic block diagram of an automatic air conditioning grouping device provided in an embodiment of the present invention;
[0022] Figure 6 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0025] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0026] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0027] This invention provides an automatic air conditioner grouping method, an air conditioner, and a storage medium. The automatic air conditioner grouping method is applied to a server, which includes one or more processors, a memory, and one or more application programs. The application programs are stored in the memory and configured to be executed by the processor to implement the automatic air conditioner grouping method.
[0028] like Figure 1 As shown, Figure 1This is a schematic diagram of a scenario for the automatic air conditioner grouping method according to an embodiment of the present invention. The scenario for the automatic air conditioner grouping method in this embodiment includes a server 100 and an air conditioner 200. The server 100 integrates the automatic air conditioner grouping method and the corresponding storage medium for executing the steps of the automatic air conditioner grouping method.
[0029] Understandable Figure 1 The server 100 and the devices included in the server 100 in the specific application scenario of the automatic air conditioning grouping method shown do not constitute a limitation on the embodiments of the present invention. That is, the number and type of devices included in the specific application scenario of the automatic air conditioning grouping method, or the number and type of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of the present invention.
[0030] In this embodiment of the invention, the server is mainly used for: responding to an air conditioner grouping instruction, obtaining a target area corresponding to the air conditioner grouping instruction; obtaining air conditioner deployment information of each air conditioner in the target area to form a deployment information set; wherein, the air conditioner deployment information includes a unique device identification code of the air conditioner, the air conditioner deployment altitude, and a set of air conditioner Bluetooth signal strength values; and obtaining the corresponding air conditioner grouping result according to the deployment information set and a preset deployment information grouping strategy.
[0031] Those skilled in the art will understand that Figure 1 The application environment shown is merely one application scenario of the present invention and does not constitute a limitation on the application scenarios of the present invention. Other application environments may include those that are more specific to the present invention. Figure 1 The number of more or fewer servers 100 or air conditioners 200 shown, for example Figure 1 Only one server 100 is shown in the diagram. It is understood that the specific application scenarios of this automatic air conditioning grouping method may also include one or more servers 100, which are not limited here; the server 100 may also include a memory.
[0032] Figure 2 This is a flowchart illustrating the automatic grouping method for air conditioners provided in an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110-S130.
[0033] S110. In response to the air conditioning grouping command, obtain the target area corresponding to the air conditioning grouping command.
[0034] In this embodiment, the specific scenario is that multiple engineering air conditioners are deployed in multiple areas, and the multiple engineering air conditioners deployed in one of the areas are automatically grouped. Of course, the method for automatically grouping engineering air conditioners in other areas of multiple areas is also the same as the method for automatically grouping multiple engineering air conditioners deployed in one area, which will be described in detail below. For example, in area A (e.g., area A belongs to province A1, city A2, district A3, street A4, address A5), multiple engineering air conditioners are deployed in building B1. In order to achieve automatic grouping of all engineering air conditioners in building B1 in area A based on the server, the server's maintenance personnel can first select a target area (e.g., building B1 in area A in the example above) on the user interface provided by the server and generate an air conditioner grouping instruction based on the area information corresponding to the target area.
[0035] Since the target area can be obtained from the air conditioning grouping command, once the target area is determined, the target grouping object is known, and the engineering air conditioners in the target area can be automatically grouped.
[0036] S120. Obtain the air conditioning deployment information of each air conditioner in the target area to form a deployment information set; wherein, the air conditioning deployment information includes the unique device identification code of the air conditioner, the altitude of the air conditioner deployment, and the set of Bluetooth signal strength values of the air conditioner.
[0037] In this embodiment, referring to the example above, if Building B1 in Area A is taken as the target area, the server can obtain the air conditioning deployment information of each air conditioner (wherein, the aforementioned air conditioners are the engineering air conditioners) based on the background data uploaded to the server by the engineering air conditioners deployed in Building B1 in Area A via the network. Moreover, the deployment information uploaded by each air conditioner in the target area includes at least the unique device identification code of the air conditioner, the altitude of the air conditioner deployment, and the set of Bluetooth signal strength values of the air conditioner.
[0038] The unique device identification code (UID) of the air conditioner is used to identify the unique identification number of the air conditioner, and the UID of different air conditioners is different; the altitude at which the air conditioner is deployed is obtained by detecting the air pressure at the location of the air conditioner and converting it into altitude based on the air pressure sensor module installed in the air conditioner; the set of Bluetooth signal strength values of the air conditioner refers to the Bluetooth signal strength values between the air conditioner and other air conditioners that can successfully establish a Bluetooth Low Energy connection. For example, if air conditioner C1 in building B1 in area A can successfully establish a Bluetooth Low Energy connection with air conditioners C2 and C3, then the set of Bluetooth signal strength values of air conditioner C1 includes the Bluetooth signal strength values between air conditioners C1 and C2, as well as the Bluetooth signal strength values between air conditioners C1 and C3.
[0039] In one embodiment, such as Figure 3 As shown, the procedure before step S120 also includes:
[0040] S111. Obtain the target region identifier corresponding to the target region;
[0041] S112. Obtain a target air conditioner set composed of air conditioners with the target area identifier;
[0042] S113. Send the air conditioner deployment information acquisition request to each target air conditioner in the target air conditioner group; wherein, the air conditioner deployment information acquisition request includes at least a barometric pressure sensor activation request and a low-power Bluetooth module activation request.
[0043] In this embodiment, after the target area is determined to be Building B1 in Area A as in the example above, in order to quickly filter the air conditioners that are currently connected to the network and have established a communication connection with the server, and to quickly determine the air conditioners deployed in the target area, the target area identifier corresponding to the target area can be used as the search condition. Multiple historical air conditioner deployment information records stored in the server are used as the search dataset. Air conditioner deployment information that meets the search conditions is obtained from the search dataset as the target air conditioner deployment information. Finally, the air conditioners corresponding to each target air conditioner deployment information are used to form a target air conditioner set. Each piece of air conditioner deployment information stored in the server includes, in addition to the air conditioner's unique device identification code, the air conditioner's deployment altitude, and a set of Bluetooth signal strength values, an area identifier (e.g., Building B1 in Area A can be considered an area identifier).
[0044] Since the server retrieves the target air conditioner set from historical air conditioner deployment information using the target area identifier as the search condition, to confirm whether each target air conditioner in the target air conditioner set is still located in the target area, the server can send an air conditioner deployment information retrieval request to each target air conditioner in the target air conditioner set. This air conditioner deployment information retrieval request includes at least a barometric pressure sensor activation request and a Bluetooth Low Energy (BLE) module activation request. When each target air conditioner in the target air conditioner set receives the air conditioner deployment information retrieval request (only target air conditioners currently connected to the network and communicating with the server can successfully receive the request), it retrieves the latest air conditioner deployment information and re-uploads it to the server. Specifically, each target air conditioner activates its local barometric pressure sensor based on the barometric pressure sensor activation request to obtain the barometric pressure at its location and convert it into altitude. Furthermore, each target air conditioner establishes a BLE connection with other engineering air conditioners based on the BLE module activation request to obtain the Bluetooth signal strength values between the target air conditioners.
[0045] In one embodiment, step S112 includes:
[0046] The target air conditioner set is composed of air conditioners that have the target area identifier and are currently powered on and online.
[0047] In this embodiment, if the server has a grouping requirement for the engineering air conditioners in the target area at the current moment, since not all engineering air conditioners in the target area are necessarily powered on and connected to the network, and these offline air conditioners cannot upload their air conditioner deployment information before being powered on, after determining the target area, only air conditioners with the target area identifier and currently powered on and online can be selected to form the target air conditioner set.
[0048] In one embodiment, obtaining a target air conditioner set consisting of air conditioners having the target area identifier and currently in an online state includes:
[0049] If an air conditioner with the target area identifier is detected to switch from a powered-off state to a powered-on online state, the corresponding air conditioner deployment information is obtained to update the target air conditioner set.
[0050] In this embodiment, if the air conditioner in the target area is in a powered-off state when the server has a grouping requirement for the engineering air conditioner in the target area, but it is later switched from powered-off state to powered-on online state, the air conditioner can actively obtain the air conditioner deployment information and upload it to the server for storage. The air conditioner deployment information actively uploaded by the air conditioner will be added to the target air conditioner set to update the target air conditioner set.
[0051] S130. Obtain the corresponding air conditioner grouping result according to the deployment information set and the preset deployment information grouping strategy.
[0052] In this embodiment, after obtaining the deployment information set corresponding to the target area, the deployment information set can be grouped based on a deployment information grouping strategy pre-stored locally on the server to obtain air conditioner grouping results corresponding to the deployment information set. The deployment information grouping strategy is used to determine the group to which each air conditioner belongs based on its deployment altitude and Bluetooth signal strength values. For example, if multiple air conditioners in the target area have the same deployment altitude, they can be grouped into the same large group based on the deployment information grouping strategy.
[0053] In one embodiment, such as Figure 4 As shown, step S130 includes:
[0054] S131. Based on the same-floor grouping strategy in the deployment information grouping strategy, the air conditioning deployment information with the same air conditioning deployment altitude in the deployment information set is divided into the same group to obtain the first grouping result; wherein, the first grouping result includes multiple first sub-grouping results, and each first sub-grouping result corresponds to an air conditioning deployment altitude;
[0055] S132. The first subgroup result in the first grouping result is grouped according to the Bluetooth signal strength grouping strategy in the deployment information grouping strategy to obtain the same floor air conditioner grouping result set corresponding to each first subgroup result, so as to form the air conditioner grouping result.
[0056] In this embodiment, the deployment information grouping strategy includes at least a same-floor grouping strategy and a Bluetooth signal strength grouping strategy; the same-floor grouping strategy is used to group air conditioners with the same air conditioner deployment altitude into the same group; the Bluetooth signal strength grouping strategy is used to group air conditioners with the same air conditioner deployment altitude and whose Bluetooth signal strength values satisfy a preset topology network structure relationship into the same group.
[0057] For example, referring to the example above, in Building B1 of Area A, there are air conditioners C1, C2, and C3, as well as air conditioners C4, C5, and C6; where air conditioners C1, C2, and C3 have the same air conditioning deployment altitude H1 meters (H1 is a positive number), and air conditioners C4, C5, and C6 have the same air conditioning deployment altitude H2 meters (H2 is a positive number, and H2>H1). Based on the same-floor grouping strategy in the deployment information grouping strategy, air conditioners C1, C2, and C3 can be assigned to the first subgroup of the first grouping result, and air conditioners C4, C5, and C6 can be assigned to the first subgroup of the second grouping result.
[0058] Then, the first subgroup result of the first group and the first subgroup result of the second group can be obtained from the first group result. The first subgroup result of the first group and the first subgroup result of the second group are grouped according to the Bluetooth signal strength grouping strategy to obtain the air conditioner group result on the same floor corresponding to the first subgroup result of the first group and the air conditioner group result on the same floor corresponding to the first subgroup result of the second group, and finally the air conditioner group result is formed.
[0059] In one embodiment, step S132 includes:
[0060] Obtain the first subgroup result of the i-th group in the first grouping result; where the initial value of i is 1, and the value range of i is [1, N], and N represents the total number of first subgroup results included in the first grouping result;
[0061] Based on the set of air conditioner Bluetooth signal strength values of each air conditioner deployment information in the i-th group of the first subgroup results, an i-th Bluetooth connection topology network is constructed; wherein, each network node in the i-th Bluetooth connection topology network corresponds to an air conditioner in the i-th group of the first subgroup results, and the connection between nodes represents the air conditioner Bluetooth signal strength value between air conditioners.
[0062] Based on the i-th Bluetooth connection topology network and the preset community affinity algorithm strategy, obtain the same-floor air conditioner grouping result set corresponding to the i-th Bluetooth connection topology network;
[0063] Increment i by 1 and update the value of i.
[0064] If it is determined that i does not exceed N, return to the step of obtaining the first subgroup result of the i-th group in the first grouping result;
[0065] If it is determined that i exceeds N, obtain the results of the first subgroup of the first group to the first subgroup of the Nth group to form the air conditioner grouping results.
[0066] In this embodiment, to quickly divide the air conditioners on each floor, each air conditioner on the same floor can be converted into a network node in a Bluetooth connection topology. Connections between network nodes are constructed based on whether the Bluetooth signal strength values between the air conditioners exceed a threshold. Specifically, if the initial Bluetooth signal strength value between network nodes is 0, it indicates that a low-power Bluetooth connection cannot be successfully established between the two air conditioners due to excessive distance.
[0067] For example, air conditioners C1, C2, and C3 in the first subgroup result of group 1 are converted into network nodes D1 (corresponding to air conditioner C1), D2 (corresponding to air conditioner C2), and D3 (corresponding to air conditioner C3) in the first Bluetooth connection topology network. If the Bluetooth signal strength value between network nodes D1 and D2 exceeds the Bluetooth signal strength threshold, a connection is established between network nodes D1 and D2, and the weight of the connection is the Bluetooth signal strength between network nodes D1 and D2. If the Bluetooth signal strength value between network nodes D1 and D2 does not exceed the Bluetooth signal strength threshold, no connection is established between network nodes D1 and D2. After constructing the first Bluetooth connection topology network in the above manner, the same-floor air conditioner group result set corresponding to the first Bluetooth connection topology network can be obtained based on the first Bluetooth connection topology network and the preset community affinity algorithm strategy. For example, network node D1 and network node D2 are grouped into one group, and network node D3 is grouped into another group, thus obtaining the same-floor air conditioner group result set corresponding to the first subgroup result of group 1. Similarly, the first subgroup results of other groups are obtained by referring to the grouping method of the first subgroup result of group 1 to obtain the corresponding same-floor air conditioner group result set.
[0068] The principle behind the community affinity algorithm is as follows: to determine whether a network node belongs to a certain community, it's necessary to determine if the network node has more internal relationships with the community than external relationships. If it has more internal relationships, it's more likely to belong to that community. For example, initially, one network node can be arbitrarily selected as a community in the first Bluetooth connection topology. Then, community discovery is performed based on this community to obtain the grouping result set of air conditioners on the same floor corresponding to the first Bluetooth connection topology. It is evident that the community affinity algorithm strategy in community discovery can quickly and accurately group air conditioners on the same floor automatically.
[0069] In one embodiment, step S131 is followed by:
[0070] Obtain the air conditioner deployment altitude corresponding to each first subgroup result in the first grouping result, and sort each first subgroup result in ascending order according to the corresponding air conditioner deployment altitude to obtain the first grouping result.
[0071] In this embodiment, since the air conditioner deployment altitude of each air conditioner in the target area can also be converted to its corresponding deployment floor, the results of each first subgroup can be sorted in ascending order according to the corresponding air conditioner deployment altitude to obtain the first group results, so that the first subgroup result of the first group corresponds to the lowest floor and the first subgroup result of the Nth group corresponds to the highest floor.
[0072] In summary, this embodiment achieves automatic grouping of air conditioners based on their deployment altitude and Bluetooth signal strength, improving grouping accuracy and efficiency.
[0073] Figure 5 This is a schematic block diagram of an automatic air conditioning grouping device provided in an embodiment of the present invention. Figure 5 As shown, corresponding to the above-mentioned automatic air conditioner grouping method, the present invention also provides an automatic air conditioner grouping device. Please refer to [link to device]. Figure 5 The automatic air conditioning grouping device is configured to operate on server 100 and includes a target area acquisition unit 110, a deployment information set acquisition unit 120, and a grouping unit 130.
[0074] The target area acquisition unit 110 is used to acquire the target area corresponding to the air conditioning grouping instruction in response to the air conditioning grouping instruction.
[0075] In this embodiment, the specific scenario is that multiple engineering air conditioners are deployed in multiple areas, and the multiple engineering air conditioners deployed in one of the areas are automatically grouped. Of course, the method for automatically grouping engineering air conditioners in other areas of multiple areas is also the same as the method for automatically grouping multiple engineering air conditioners deployed in one area, which will be described in detail below. For example, in area A (e.g., area A belongs to province A1, city A2, district A3, street A4, address A5), multiple engineering air conditioners are deployed in building B1. In order to achieve automatic grouping of all engineering air conditioners in building B1 in area A based on the server, the server's maintenance personnel can first select a target area (e.g., building B1 in area A in the example above) on the user interface provided by the server and generate an air conditioner grouping instruction based on the area information corresponding to the target area.
[0076] Since the target area can be obtained from the air conditioning grouping command, once the target area is determined, the target grouping object is known, and the engineering air conditioners in the target area can be automatically grouped.
[0077] The deployment information set acquisition unit 120 is used to acquire the air conditioning deployment information of each air conditioner in the target area and form a deployment information set; wherein, the air conditioning deployment information includes the unique device identification code of the air conditioner, the altitude of the air conditioner deployment and the set of Bluetooth signal strength values of the air conditioner.
[0078] In this embodiment, referring to the example above, if Building B1 in Area A is taken as the target area, the server can obtain the air conditioning deployment information of each air conditioner (wherein, the aforementioned air conditioners are the engineering air conditioners) based on the background data uploaded to the server by the engineering air conditioners deployed in Building B1 in Area A via the network. Moreover, the deployment information uploaded by each air conditioner in the target area includes at least the unique device identification code of the air conditioner, the altitude of the air conditioner deployment, and the set of Bluetooth signal strength values of the air conditioner.
[0079] The unique device identification code (UID) of the air conditioner is used to identify the unique identification number of the air conditioner, and the UID of different air conditioners is different; the altitude at which the air conditioner is deployed is obtained by detecting the air pressure at the location of the air conditioner and converting it into altitude based on the air pressure sensor module installed in the air conditioner; the set of Bluetooth signal strength values of the air conditioner refers to the Bluetooth signal strength values between the air conditioner and other air conditioners that can successfully establish a Bluetooth Low Energy connection. For example, if air conditioner C1 in building B1 in area A can successfully establish a Bluetooth Low Energy connection with air conditioners C2 and C3, then the set of Bluetooth signal strength values of air conditioner C1 includes the Bluetooth signal strength values between air conditioners C1 and C2, as well as the Bluetooth signal strength values between air conditioners C1 and C3.
[0080] In one embodiment, the automatic air conditioning grouping device further includes:
[0081] A target region identifier acquisition unit is used to acquire the target region identifier corresponding to the target region.
[0082] The target air conditioner set acquisition unit is used to acquire air conditioners with the target area identifier to form a target air conditioner set;
[0083] A request distribution unit is used to send an air conditioner deployment information acquisition request to each target air conditioner in the target air conditioner group; wherein, the air conditioner deployment information acquisition request includes at least a barometric pressure sensor activation request and a Bluetooth Low Energy module activation request.
[0084] In this embodiment, after the target area is determined to be Building B1 in Area A as in the example above, in order to quickly filter the air conditioners that are currently connected to the network and have established a communication connection with the server, and to quickly determine the air conditioners deployed in the target area, the target area identifier corresponding to the target area can be used as the search condition. Multiple historical air conditioner deployment information records stored in the server are used as the search dataset. Air conditioner deployment information that meets the search conditions is obtained from the search dataset as the target air conditioner deployment information. Finally, the air conditioners corresponding to each target air conditioner deployment information are used to form a target air conditioner set. Each piece of air conditioner deployment information stored in the server includes, in addition to the air conditioner's unique device identification code, the air conditioner's deployment altitude, and a set of Bluetooth signal strength values, an area identifier (e.g., Building B1 in Area A can be considered an area identifier).
[0085] Since the server retrieves the target air conditioner set from historical air conditioner deployment information using the target area identifier as the search condition, to confirm whether each target air conditioner in the target air conditioner set is still located in the target area, the server can send an air conditioner deployment information retrieval request to each target air conditioner in the target air conditioner set. This air conditioner deployment information retrieval request includes at least a barometric pressure sensor activation request and a Bluetooth Low Energy (BLE) module activation request. When each target air conditioner in the target air conditioner set receives the air conditioner deployment information retrieval request (only target air conditioners currently connected to the network and communicating with the server can successfully receive the request), it retrieves the latest air conditioner deployment information and re-uploads it to the server. Specifically, each target air conditioner activates its local barometric pressure sensor based on the barometric pressure sensor activation request to obtain the barometric pressure at its location and convert it into altitude. Furthermore, each target air conditioner establishes a BLE connection with other engineering air conditioners based on the BLE module activation request to obtain the Bluetooth signal strength values between the target air conditioners.
[0086] In one embodiment, the target air conditioner set acquisition unit is used for:
[0087] The target air conditioner set is composed of air conditioners that have the target area identifier and are currently powered on and online.
[0088] In this embodiment, if the server has a grouping requirement for the engineering air conditioners in the target area at the current moment, since not all engineering air conditioners in the target area are necessarily powered on and connected to the network, and these offline air conditioners cannot upload their air conditioner deployment information before being powered on, after determining the target area, only air conditioners with the target area identifier and currently powered on and online can be selected to form the target air conditioner set.
[0089] In one embodiment, obtaining a target air conditioner set consisting of air conditioners having the target area identifier and currently in an online state includes:
[0090] If an air conditioner with the target area identifier is detected to switch from a powered-off state to a powered-on online state, the corresponding air conditioner deployment information is obtained to update the target air conditioner set.
[0091] In this embodiment, if the air conditioner in the target area is in a powered-off state when the server has a grouping requirement for the engineering air conditioner in the target area, but it is later switched from powered-off state to powered-on online state, the air conditioner can actively obtain the air conditioner deployment information and upload it to the server for storage. The air conditioner deployment information actively uploaded by the air conditioner will be added to the target air conditioner set to update the target air conditioner set.
[0092] Grouping unit 130 is used to obtain the corresponding air conditioner grouping result according to the deployment information set and the preset deployment information grouping strategy.
[0093] In this embodiment, after obtaining the deployment information set corresponding to the target area, the deployment information set can be grouped based on a deployment information grouping strategy pre-stored locally on the server to obtain air conditioner grouping results corresponding to the deployment information set. The deployment information grouping strategy is used to determine the group to which each air conditioner belongs based on its deployment altitude and Bluetooth signal strength values. For example, if multiple air conditioners in the target area have the same deployment altitude, they can be grouped into the same large group based on the deployment information grouping strategy.
[0094] In one embodiment, the grouping unit 130 is used for:
[0095] Based on the same-floor grouping strategy in the deployment information grouping strategy, air conditioning deployment information with the same air conditioning deployment altitude in the deployment information set is divided into the same group to obtain a first grouping result; wherein, the first grouping result includes multiple first sub-grouping results, and each first sub-grouping result corresponds to an air conditioning deployment altitude;
[0096] The first subgroup result in the first grouping result is grouped according to the Bluetooth signal strength grouping strategy in the deployment information grouping strategy to obtain the air conditioner grouping result set corresponding to each first subgroup result, so as to form the air conditioner grouping result.
[0097] In this embodiment, the deployment information grouping strategy includes at least a same-floor grouping strategy and a Bluetooth signal strength grouping strategy; the same-floor grouping strategy is used to group air conditioners with the same air conditioner deployment altitude into the same group; the Bluetooth signal strength grouping strategy is used to group air conditioners with the same air conditioner deployment altitude and whose Bluetooth signal strength values satisfy a preset topology network structure relationship into the same group.
[0098] For example, referring to the example above, in Building B1 of Area A, there are air conditioners C1, C2, and C3, as well as air conditioners C4, C5, and C6; where air conditioners C1, C2, and C3 have the same air conditioning deployment altitude H1 meters (H1 is a positive number), and air conditioners C4, C5, and C6 have the same air conditioning deployment altitude H2 meters (H2 is a positive number, and H2>H1). Based on the same-floor grouping strategy in the deployment information grouping strategy, air conditioners C1, C2, and C3 can be assigned to the first subgroup of the first grouping result, and air conditioners C4, C5, and C6 can be assigned to the first subgroup of the second grouping result.
[0099] Then, the first subgroup result of the first group and the first subgroup result of the second group can be obtained from the first group result. The first subgroup result of the first group and the first subgroup result of the second group are grouped according to the Bluetooth signal strength grouping strategy to obtain the air conditioner group result on the same floor corresponding to the first subgroup result of the first group and the air conditioner group result on the same floor corresponding to the first subgroup result of the second group, and finally the air conditioner group result is formed.
[0100] In one embodiment, the step of grouping the first sub-grouping results in the first grouping result based on the Bluetooth signal strength grouping strategy in the deployment information grouping strategy to obtain the same-floor air conditioner grouping result set corresponding to each first sub-grouping result, to form the air conditioner grouping result, includes:
[0101] Obtain the first subgroup result of the i-th group in the first grouping result; where the initial value of i is 1, and the value range of i is [1, N], and N represents the total number of first subgroup results included in the first grouping result;
[0102] Based on the set of air conditioner Bluetooth signal strength values of each air conditioner deployment information in the i-th group of the first subgroup results, an i-th Bluetooth connection topology network is constructed; wherein, each network node in the i-th Bluetooth connection topology network corresponds to an air conditioner in the i-th group of the first subgroup results, and the connection between nodes represents the air conditioner Bluetooth signal strength value between air conditioners.
[0103] Based on the i-th Bluetooth connection topology network and the preset community affinity algorithm strategy, obtain the same-floor air conditioner grouping result set corresponding to the i-th Bluetooth connection topology network;
[0104] Increment i by 1 and update the value of i.
[0105] If it is determined that i does not exceed N, return to the step of obtaining the first subgroup result of the i-th group in the first grouping result;
[0106] If it is determined that i exceeds N, obtain the results of the first subgroup of the first group to the first subgroup of the Nth group to form the air conditioner grouping results.
[0107] In this embodiment, in order to quickly divide the air conditioners on the same floor, each air conditioner on the same floor can be converted into a network node in the Bluetooth connection topology network structure, and the connection line between the network nodes can be constructed based on whether the Bluetooth signal strength value of the air conditioner between the network nodes exceeds the Bluetooth signal strength threshold.
[0108] For example, air conditioners C1, C2, and C3 in the first subgroup result of group 1 are converted into network nodes D1 (corresponding to air conditioner C1), D2 (corresponding to air conditioner C2), and D3 (corresponding to air conditioner C3) in the first Bluetooth connection topology network. If the Bluetooth signal strength value between network nodes D1 and D2 exceeds the Bluetooth signal strength threshold, a connection is established between network nodes D1 and D2, and the weight of the connection is the Bluetooth signal strength between network nodes D1 and D2. If the Bluetooth signal strength value between network nodes D1 and D2 does not exceed the Bluetooth signal strength threshold, no connection is established between network nodes D1 and D2. After constructing the first Bluetooth connection topology network in the above manner, the same-floor air conditioner group result set corresponding to the first Bluetooth connection topology network can be obtained based on the first Bluetooth connection topology network and the preset community affinity algorithm strategy. For example, network node D1 and network node D2 are grouped into one group, and network node D3 is grouped into another group, thus obtaining the same-floor air conditioner group result set corresponding to the first subgroup result of group 1. Similarly, the first subgroup results of other groups are obtained by referring to the grouping method of the first subgroup result of group 1 to obtain the corresponding same-floor air conditioner group result set.
[0109] The principle behind the community affinity algorithm is as follows: to determine whether a network node belongs to a certain community, it's necessary to determine if the network node has more internal relationships with the community than external relationships. If it has more internal relationships, it's more likely to belong to that community. For example, initially, one network node can be arbitrarily selected as a community in the first Bluetooth connection topology. Then, community discovery is performed based on this community to obtain the grouping result set of air conditioners on the same floor corresponding to the first Bluetooth connection topology. It is evident that the community affinity algorithm strategy in community discovery can quickly and accurately group air conditioners on the same floor automatically.
[0110] In one embodiment, the grouping unit 130 is further configured to:
[0111] Obtain the air conditioner deployment altitude corresponding to each first subgroup result in the first grouping result, and sort each first subgroup result in ascending order according to the corresponding air conditioner deployment altitude to obtain the first grouping result.
[0112] In this embodiment, since the air conditioner deployment altitude of each air conditioner in the target area can also be converted to its corresponding deployment floor, the results of each first subgroup can be sorted in ascending order according to the corresponding air conditioner deployment altitude to obtain the first group results, so that the first subgroup result of the first group corresponds to the lowest floor and the first subgroup result of the Nth group corresponds to the highest floor.
[0113] In summary, this embodiment achieves automatic grouping of air conditioners based on their deployment altitude and Bluetooth signal strength, improving grouping accuracy and efficiency.
[0114] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned automatic air conditioning grouping system and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0115] The aforementioned automatic air conditioning grouping system can be implemented as a computer program, which can, for example... Figure 6 It runs on the computer device shown.
[0116] Please see Figure 6 , Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. This computer device integrates any of the air conditioners provided in the embodiments of the present invention.
[0117] See Figure 6The computer device includes a processor 402, a memory, and a network interface 405 connected via a system bus 401, wherein the memory may include a storage medium 403 and internal memory 404.
[0118] The storage medium 403 may store an operating system 4031 and a computer program 4032. The computer program 4032 includes program instructions that, when executed, cause the processor 402 to perform an automatic air conditioning grouping method.
[0119] The processor 402 provides computing and control capabilities to support the operation of the entire computer device.
[0120] The internal memory 404 provides an environment for the operation of the computer program 4032 in the storage medium 403. When the computer program 4032 is executed by the processor 402, the processor 402 can execute the above-mentioned automatic air conditioning grouping method.
[0121] This network interface 405 is used for network communication with other devices. Those skilled in the art will understand that... Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0122] The processor 402 is used to run a computer program 4032 stored in the memory to perform the following steps:
[0123] In response to an air conditioning grouping command, obtain the target area corresponding to the air conditioning grouping command;
[0124] Obtain the air conditioner deployment information of each air conditioner in the target area to form a deployment information set; wherein, the air conditioner deployment information includes the unique device identification code of the air conditioner, the altitude of the air conditioner deployment, and a set of Bluetooth signal strength values of the air conditioner;
[0125] Based on the deployment information set and the preset deployment information grouping strategy, obtain the corresponding air conditioner grouping results.
[0126] It should be understood that, in this embodiment of the invention, the processor 402 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0127] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which may be a volatile computer-readable storage medium or a non-volatile computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0128] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the following steps:
[0129] In response to an air conditioning grouping command, obtain the target area corresponding to the air conditioning grouping command;
[0130] Obtain the air conditioner deployment information of each air conditioner in the target area to form a deployment information set; wherein, the air conditioner deployment information includes the unique device identification code of the air conditioner, the altitude of the air conditioner deployment, and a set of Bluetooth signal strength values of the air conditioner;
[0131] Based on the deployment information set and the preset deployment information grouping strategy, obtain the corresponding air conditioner grouping results.
[0132] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0133] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0134] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0135] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0136] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0137] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. An air conditioner automatic grouping method applied to a server, characterized by, The method comprises the steps of: in response to an air conditioner grouping instruction, obtaining a target area corresponding to the air conditioner grouping instruction; obtaining air conditioner deployment information of each air conditioner in the target area to form a deployment information set; wherein the air conditioner deployment information comprises an air conditioner unique device identification code, an air conditioner deployment altitude and an air conditioner Bluetooth signal strength value set; obtaining a corresponding air conditioner grouping result according to the deployment information set and a preset deployment information grouping strategy; the air conditioner deployment altitude is obtained based on the air pressure detected by the air pressure sensor module arranged in the air conditioner at the position of the air conditioner and corresponding conversion into an altitude; the air conditioner Bluetooth signal strength value set comprises a Bluetooth signal strength value between the air conditioner and other air conditioners that can successfully establish a Bluetooth connection; the air conditioner deployment information in the deployment information set with the same air conditioner deployment altitude is divided into the same group based on the same floor grouping strategy in the deployment information grouping strategy to obtain a first grouping result; wherein the first grouping result comprises a plurality of first sub-grouping results, and each first sub-grouping result corresponds to an air conditioner deployment altitude; the first sub-grouping result in the first grouping result is grouped based on the Bluetooth signal strength grouping strategy in the deployment information grouping strategy to obtain a same floor air conditioner grouping result set corresponding to each first sub-grouping result to form the air conditioner grouping result; the Bluetooth signal strength grouping strategy is used to divide the air conditioners with the same air conditioner deployment altitude and the air conditioner Bluetooth signal strength values between the air conditioners satisfying a preset topological network structure relationship into the same group; when it is determined that the air conditioners with the same air conditioner deployment altitude and the air conditioner Bluetooth signal strength values between the air conditioners satisfy the preset topological network structure relationship, a community closeness algorithm strategy is used for the Bluetooth connection topological network of each air conditioner to obtain the same floor air conditioner grouping result set. Before the step of obtaining the air conditioner deployment information of each air conditioner in the target area, the method further comprises the steps of:
2. The method of claim 1, wherein, obtaining a target area identifier corresponding to the target area; obtaining a target air conditioner set comprising air conditioners with the target area identifier; sending an air conditioner deployment information acquisition request to each target air conditioner in the target air conditioner set; wherein the air conditioner deployment information acquisition request comprises at least an air pressure sensor start request and a low-power Bluetooth module start request. the first sub-grouping result in the first grouping result is grouped based on the Bluetooth signal strength grouping strategy in the deployment information grouping strategy to obtain a same floor air conditioner grouping result set corresponding to each first sub-grouping result, comprising:
3. The method of claim 1, wherein, obtaining the i-th first sub-grouping result in the first grouping result; wherein the initial value of i is 1, and the value range of i is [1, N], and N represents the total number of first sub-grouping results included in the first grouping result; constructing an ith Bluetooth connection topology network based on the set of air conditioner Bluetooth signal strength values of each air conditioner deployment information in the ith set of first sub-grouping results; wherein each network node in the ith Bluetooth connection topology network corresponds to an air conditioner in the ith set of first sub-grouping results, and the connection between nodes represents the air conditioner Bluetooth signal strength value between air conditioners; obtaining a set of air conditioner grouping results corresponding to the ith Bluetooth connection topology network based on the ith Bluetooth connection topology network and a preset community closeness algorithm strategy; updating the value of i by increasing i by 1; if it is determined that i exceeds N, obtaining the first set of first sub-grouping results to the Nth set of first sub-grouping results to constitute the air conditioner grouping results. After obtaining the first grouping result by grouping the air conditioner deployment information with the same air conditioner deployment altitude in the deployment information set according to the same floor grouping strategy in the deployment information grouping strategy, the method further comprises:
4. The method of claim 1, wherein, obtaining the air conditioner deployment altitude corresponding to each first sub-grouping result in the first grouping result, and sorting each first sub-grouping result in ascending order of the corresponding air conditioner deployment altitude to obtain the first grouping result. The method further comprises:
5. The method of claim 2, wherein, obtaining the target air conditioner set by grouping the air conditioners with the target area identifier and currently in the on-line state. After obtaining the target air conditioner set by grouping the air conditioners with the target area identifier and currently in the on-line state, the method further comprises:
6. The method of claim 5, wherein, if it is detected that the air conditioner with the target area identifier is switched from the off-line state to the on-line state, obtaining the corresponding air conditioner deployment information to update the target air conditioner set. The method further comprises:
7. An automatic air conditioning grouping device, configured and operating on a server, characterized in that, a target area obtaining unit configured to obtain a target area corresponding to an air conditioner grouping instruction in response to the air conditioner grouping instruction; a deployment information set obtaining unit configured to obtain air conditioner deployment information of each air conditioner in the target area to constitute a deployment information set; wherein the air conditioner deployment information comprises an air conditioner unique device identification code, an air conditioner deployment altitude, and a set of air conditioner Bluetooth signal strength values; a grouping unit configured to obtain a corresponding air conditioner grouping result according to the deployment information set and a preset deployment information grouping strategy; The air conditioner deployment altitude is obtained based on the air pressure detected by the air pressure sensor module arranged in the air conditioner at the position of the air conditioner and corresponding conversion into an altitude; and the set of air conditioner Bluetooth signal strength values comprises the Bluetooth signal strength values between the air conditioner and other air conditioners that can successfully establish a Bluetooth connection. The grouping unit is specifically configured to: obtain a first grouping result by grouping the air conditioner deployment information with the same air conditioner deployment altitude in the deployment information set according to the same floor grouping strategy in the deployment information grouping strategy; wherein the first grouping result comprises a plurality of first sub-grouping results, and each first sub-grouping result corresponds to an air conditioner deployment altitude. obtain the air conditioner deployment altitude corresponding to each first sub-grouping result in the first grouping result, and sort each first sub-grouping result in ascending order of the corresponding air conditioner deployment altitude to obtain the first grouping result. The first sub-grouping result in the first grouping result is grouped based on a Bluetooth signal strength grouping policy in the deployment information grouping policy, to obtain a same-floor air conditioner grouping result set corresponding to each first sub-grouping result, to constitute the air conditioner grouping result; the Bluetooth signal strength grouping policy is used to divide air conditioners with the same air conditioner deployment altitude and the air conditioner Bluetooth signal strength values between air conditioners satisfying a preset topological network structure relationship into the same group; when it is determined that the air conditioners have the same air conditioner deployment altitude and the air conditioner Bluetooth signal strength values between air conditioners satisfy the preset topological network structure relationship, a community closeness algorithm policy is used to obtain the same-floor air conditioner grouping result set for the Bluetooth connection topological network of each air conditioner.
8. A computer device, comprising: The air conditioner comprises a memory, which stores at least one instruction; and A processor executes the instruction stored in the memory to implement the method in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, characterized in that: The computer readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the method in any one of claims 1-6.
Citation Information
Patent Citations
Complex network community discovery method based on topological characteristics
CN103810260A
Air conditioning equipment grouping method and device, equipment and storage medium
CN113203193A