Building equipment control method, sensor equipment, building control system and medium

The sensor device generates target control instructions and selects the controller with the largest control weight, which solves the problem of building equipment control failure caused by the downtime of the central controller, and achieves higher control success rate and stability.

CN120469295APending Publication Date: 2025-08-12QINGDAO HISENSE BOSCH AIR CONDITIONING SYSTEM CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510541698.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

The existing building control system cannot effectively control the building equipment when the central controller is down, resulting in control failure.

Method used

Target control instructions are generated by sensor devices, and the controller with the largest control weight is determined as the target controller based on the device weight table, and the instructions are sent to the controller to control the building equipment, and the controller is dynamically allocated to ensure the stability of the communication connection.

Benefits of technology

It improves the success rate of building equipment control, prevents control failure caused by downtime of the central controller, and improves user experience and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469295A_ABST
    Figure CN120469295A_ABST
Patent Text Reader

Abstract

The invention discloses a building equipment control method, sensor equipment, a building control system and a medium, and the method comprises the steps: obtaining a target control instruction which is generated by the sensor equipment according to the collected environment data of a target area; based on an equipment weight table and first target building equipment, a first target controller is determined, the equipment weight table is used for representing the control weight of each controller in the multiple controllers for each building equipment in the multiple building equipment, and the first target controller is the control weight of each controller in the multiple controllers for each building equipment in the multiple building equipment; controlling the controller with the maximum weight for the first target building equipment; and sending the target control instruction to the first target controller, so that the first target controller controls the first target building equipment. According to the method, the target controller of the target building equipment is dynamically allocated according to the topological network connection relation between the multiple pieces of building equipment and the multiple controllers, and the control success rate of control over the building equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of building control technology, and in particular relates to a control method for building equipment, sensor equipment, a building control system, and a medium. Background Art

[0002] At present, building control systems mostly adopt a master-slave communication architecture, which uses a central controller as the core node and is connected to building equipment through serial bus communication. The central controller controls the building equipment through the serial bus.

[0003] However, when the central controller goes down due to hardware failure, software anomaly or network attack, the central controller will be unable to control the building equipment, resulting in failure of building equipment control. Summary of the Invention

[0004] In view of this, embodiments of the present application provide a control method for building equipment, a sensor device, a building control system, and a medium to overcome the above problems of the prior art.

[0005] In a first aspect, embodiments of the present application provide a method for controlling building equipment, which is applied to a sensor device in a building control system. The building control system further includes multiple controllers and multiple building equipment, each controller being configured to connect to and control at least one building equipment. The method for controlling building equipment includes:

[0006] Obtaining a target control instruction, where the target control instruction is generated by the sensor device based on environmental data collected from a target area, and the target control instruction is used to control a first target building device corresponding to the target area among the multiple building devices;

[0007] Determining a first target controller based on a device weight table and the first target building device, wherein the device weight table is used to represent the control weight of each controller in the multiple controllers over each building device in the multiple building devices, and the first target controller is the controller in the multiple controllers that has the largest control weight over the first target building device;

[0008] The target control instruction is sent to the first target controller, so that the first target controller controls the first target building equipment.

[0009] In the solution provided by the present application, a device weight table can be used to characterize the topological network connection relationship between multiple building devices and multiple controllers. In the process of controlling building equipment, the target controller of the target building equipment is dynamically allocated according to the topological network connection relationship between multiple building devices and multiple controllers, and the target building equipment is controlled based on the target controller. This can suppress the master-slave communication connection between the controller and the building equipment and the failure of the building equipment control caused by the controller downtime, which is conducive to improving the control success rate of the building equipment.

[0010] In some optional embodiments, before obtaining the target control instruction, the building equipment control method further includes:

[0011] receiving broadcast information from each controller to obtain a plurality of broadcast information, each broadcast information including position information and signal strength of each building device connected to the corresponding controller relative to the corresponding controller;

[0012] The device weight table is constructed according to the multiple broadcast information, and the control weight of the building device by the controller is obtained based on the corresponding location information and the signal strength representation.

[0013] The solution provided in this embodiment calculates the control weight of the controller over the building equipment based on the location information of the building equipment relative to the controller and the signal strength, thereby improving the accuracy of the control weight.

[0014] In some optional embodiments, determining the first target controller based on the device weight table and the first target building device includes:

[0015] Obtaining a control weight of each controller over the first target building device by performing a weighted sum based on the position information and signal strength of the first target building device relative to the connected controller, as well as a preset position weight and signal weight;

[0016] The controller with the largest control weight is determined as the first target controller.

[0017] The solution provided in this embodiment selects the controller with the largest control weight as the target controller, which is conducive to improving the control success rate of the target building equipment based on the target controller.

[0018] In some optional embodiments, after constructing the device weight table according to the plurality of broadcast information, the building equipment control method further includes:

[0019] receiving updated broadcast information from a second target controller among the plurality of controllers, the updated broadcast information including a current device location and a current signal strength of a second target building device connected to the second target controller relative to the second target controller, the updated broadcast information being generated by the second target controller when monitoring a change in the device location and / or a change in the signal strength of the second target building device;

[0020] The device weight table is updated based on the update broadcast information.

[0021] The solution provided in this embodiment updates the device weight table based on changes in the device location and / or signal strength of the building equipment, which is conducive to improving the accuracy of subsequent determination of the target controller based on the device weight table.

[0022] In some optional embodiments, the target control instruction includes multiple sub-control instructions, the target controller includes multiple sub-controllers, the first target building equipment includes multiple sub-building equipment, and one sub-control instruction is used to instruct one sub-controller to control at least one sub-building equipment;

[0023] The sending the target control instruction to the first target controller so that the first target controller controls the first target building equipment includes:

[0024] determining a priority order of the plurality of sub-control instructions;

[0025] The multiple sub-control instructions are sent to the multiple sub-controllers in sequence at intervals of preset time lengths according to the priority order, so that each sub-controller controls the at least one sub-building device.

[0026] The solution provided in this embodiment sends multiple sub-control instructions in sequence according to their priority order, which can prevent the direct sending of multiple sub-control instructions from causing network congestion and resulting in the failure of sending some sub-control instructions, and is beneficial to improving the success rate of multiple sub-control instructions.

[0027] In some optional embodiments, determining the priority order of the multiple sub-control instructions includes:

[0028] Calculate a hash value for each sub-building device to obtain multiple hash values;

[0029] Assigning each hash value to a control level value of the corresponding sub-control instruction to obtain multiple control level values;

[0030] The order of the plurality of control level values from large to small is determined as the priority order.

[0031] The solution provided by this embodiment determines the priority order of corresponding instructions according to the order of the hash values of the building equipment, thereby improving the accuracy of the priority order.

[0032] In some optional embodiments, obtaining the target control instruction includes:

[0033] collecting the environmental data of the target area;

[0034] When it is determined according to the environmental data that the target area is in an abnormal state, the target control instruction is generated.

[0035] The solution provided in this embodiment automatically triggers the control of building equipment when the target area is detected to be in an abnormal state, eliminating the need for users to manually trigger the control of building equipment, thereby improving the user experience during the process of controlling building equipment.

[0036] In a second aspect, an embodiment of the present application provides a sensor device, comprising an acquisition module and a control module, wherein the acquisition module is connected to the control module;

[0037] The acquisition module is used to collect environmental data of the target area;

[0038] The control module is used to obtain a target control instruction, which is generated by the control module based on the environmental data sent by the acquisition module. The target control instruction is used to control a first target building device corresponding to the target area among multiple building devices, and determine a first target controller based on a device weight table and the first target building device. The device weight table is used to characterize the control weight of each controller among the multiple controllers over each building device among the multiple building devices. The first target controller is the controller among the multiple controllers with the largest control weight over the first target building device, and the target control instruction is sent to the first target controller so that the first target controller controls the first target building device.

[0039] In a third aspect, an embodiment of the present application provides a building control system, including:

[0040] Memory;

[0041] one or more processors coupled to the memory;

[0042] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the building equipment control method provided in the first aspect above.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the control method for building equipment provided in the first aspect above.

[0044] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer device, enables the computer device to execute the building equipment control method provided in the first aspect above.

[0045] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0047] Figure 1 A schematic diagram of a scenario of a building control system provided in an embodiment of the present application is shown.

[0048] Figure 2 A flow chart of a method for controlling building equipment provided in an embodiment of the present application is shown.

[0049] Figure 3 Another flow chart of the building equipment control method provided in an embodiment of the present application is shown.

[0050] Figure 4 A structural block diagram of a sensor device provided in an embodiment of the present application is shown.

[0051] Figure 5 A functional block diagram of a building control system provided in an embodiment of the present application is shown.

[0052] Figure 6 A computer-readable storage medium provided in an embodiment of the present application is shown for storing or carrying program code for implementing a control method for building equipment provided in an embodiment of the present application.

[0053] Figure 7 A computer program product provided in an embodiment of the present application is shown, which is used to store or carry program codes for implementing the control method for building equipment provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0055] It will be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0056] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. 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.

[0057] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0058] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0059] At present, building control systems mostly adopt a master-slave communication architecture, which uses a central controller as the core node and is connected to building equipment through serial bus communication. The central controller controls the building equipment through the serial bus.

[0060] However, when the central controller goes down due to hardware failure, software anomaly or network attack, the central controller will be unable to control the building equipment, resulting in failure of building equipment control.

[0061] To address the above-mentioned issues, embodiments of the present application provide a building equipment control method, sensor device, building control system, and medium. These methods obtain a target control instruction, which is generated by a sensor device based on environmental data collected from a target area. The target control instruction is used to control a first target building device corresponding to the target area among multiple building devices. A first target controller is determined based on a device weight table and the first target building device. The device weight table is used to characterize the control weight of each of the multiple controllers over each of the multiple building devices. The first target controller is the controller with the greatest control weight over the first target building device among the multiple controllers. The target control instruction is sent to the first target controller, causing the first target controller to control the first target building device. The device weight table can be used to characterize the topological network connection relationship between multiple building devices and multiple controllers. During the process of controlling the building devices, a target controller for the target building device is dynamically allocated based on the topological network connection relationship between the multiple building devices and the multiple controllers. The target building device is controlled based on the target controller. This can prevent building device control failures caused by master-slave communication between the controller and the building device and controller downtime, thereby improving the success rate of controlling the building devices.

[0062] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0063] See also Figure 1 , which shows a schematic diagram of an application scenario of the building control system provided in an embodiment of the present application. The building control system may include a sensor device 100, a controller 200 and a building device 300. The controller 200 is connected to the sensor device 100 and the building device 300 through a bus, and exchanges data with the sensor device 100 and the building device 300 through the bus.

[0064] The number of sensor devices 100 may be one or more, and each sensor device 100 may be used to collect environmental data of an area of a building.

[0065] The sensor device 100 may be any one of a light sensor, a temperature sensor, or a smoke sensor, and the environmental data may be any one of the ambient light intensity, ambient temperature, or ambient smoke concentration, which is not limited here.

[0066] The number of the controller 200 may be one or more. Each controller 200 may be used to connect to and control at least one building device 300. The controller 200 is connected to the sensor device 100 via a bus.

[0067] The controller 200 can be any one of a lighting controller, an air conditioning controller, a fire controller, etc., which is not limited here.

[0068] The building equipment 300 may be any one of lighting equipment, air conditioning, elevator or fire-fighting equipment, etc., which is not limited here.

[0069] See also Figure 2 , which shows a flow chart of a control method for building equipment provided by an embodiment of the present application. In a specific embodiment, the control method for building equipment can be applied to Figure 1 The sensor device 100 in the building control system shown in FIG. 1 is taken as an example below. Figure 2 The process shown in FIG. 1 is described in detail. The building equipment control method may include the following steps 110 to 130 .

[0070] Step 110: Obtain target control instructions.

[0071] In an embodiment of the present application, the sensor device can obtain a target control instruction, which can be generated by the sensor device based on the environmental data collected from the target area. The target control instruction can be used to control the first target building device corresponding to the target area among multiple building devices.

[0072] The first target building equipment may be any one of lighting equipment, air conditioning or fire-fighting equipment, and the target control instruction may be any one of lighting control instruction, temperature adjustment instruction or fire-fighting control instruction, which is not limited here.

[0073] Specifically, the sensor device can collect environmental data of the target area and determine whether the target area is in a normal state based on the environmental data. When the target area is determined to be in an abnormal state based on the environmental data, a target control instruction is generated, thereby automatically triggering the control of building equipment when the target area is monitored to be in an abnormal state. There is no need for the user to manually trigger the control of the building equipment, thereby improving the user experience in the process of controlling the building equipment.

[0074] When the environmental data is within the environmental data threshold range, it is determined that the target area is in a normal state; when the environmental data is outside the environmental data threshold range, it is determined that the target area is in an abnormal state.

[0075] Among them, the environmental data threshold range can be used to represent the environmental data range of the target area in a normal state. The environmental data threshold range can be an environmental data range pre-set by the user, or it can be an environmental data range automatically generated by the sensor equipment based on the process of multiple controls on building equipment, etc., which is not limited here.

[0076] In some embodiments, the sensor device may be a light sensor, the environmental data may be the ambient light intensity, the environmental data threshold range may be the ambient light intensity threshold, the first target building device may be a lighting device, the target area may include a first area corresponding to the lighting device, and the target control instruction may be a lighting control instruction for controlling the lighting device.

[0077] The light sensor can collect the ambient light intensity of the first area, and determine whether the first area is in a normal state according to the ambient light intensity, and generate a lighting control instruction when it is determined that the first area is in an abnormal state according to the ambient light intensity.

[0078] When the ambient light intensity is greater than or equal to the ambient light intensity threshold, it is determined that the first area is in a normal state; when the ambient light intensity is less than the ambient light intensity threshold, it is determined that the first area is in an abnormal state.

[0079] Among them, the ambient light intensity threshold can be used to characterize the minimum ambient light intensity when the first area is in a normal state. The ambient light intensity threshold can be the ambient light intensity pre-set by the user, or it can be the ambient light intensity automatically generated by the sensor device based on the process of multiple controls on building equipment, etc., which is not limited here.

[0080] In some embodiments, the sensor device may be a temperature sensor, the environmental data may be the ambient temperature, the environmental data threshold range may be the ambient temperature threshold range, the first target building equipment may be an air conditioner, the target area may include a second area corresponding to the air conditioner, and the target control instruction may be a temperature adjustment instruction for controlling the air conditioner.

[0081] The temperature sensor may collect the ambient temperature of the second area, and determine whether the second area is in a normal state according to the ambient temperature, and generate a temperature adjustment instruction when it is determined that the second area is in an abnormal state according to the ambient temperature.

[0082] When the ambient temperature is within the ambient temperature threshold range, it is determined that the second area is in a normal state; when the ambient temperature is outside the ambient temperature threshold range, it is determined that the second area is in an abnormal state.

[0083] Among them, the ambient temperature threshold range can be used to represent the ambient temperature range in which the second area is in a normal state. The ambient temperature threshold range can be an ambient temperature range pre-set by the user, or it can be an ambient temperature range automatically generated by the sensor device based on the process of multiple controls on building equipment, etc., which is not limited here.

[0084] The temperature adjustment instruction may include a first temperature adjustment instruction for controlling the air conditioner to heat, and a second temperature adjustment instruction for controlling the air conditioner to cool.

[0085] When the ambient temperature is lower than the lower limit of the ambient temperature threshold range, a first temperature adjustment instruction is generated; when the ambient temperature is higher than the upper limit of the ambient temperature threshold range, a second temperature adjustment instruction is generated.

[0086] In some embodiments, the sensor device may be a smoke sensor, the environmental data may be the environmental smoke concentration, the environmental data threshold range may be the environmental smoke concentration threshold, the first target building equipment may be fire-fighting equipment, the target area may include a third area corresponding to the fire-fighting equipment, and the target control instruction may be a fire-fighting control instruction for controlling the fire-fighting equipment.

[0087] The smoke sensor can collect the ambient smoke concentration of the third area, and determine whether the third area is in a normal state according to the ambient smoke concentration, and generate a fire control instruction when the third area is determined to be in an abnormal state according to the ambient smoke concentration.

[0088] When the ambient smoke concentration is less than or equal to the ambient smoke concentration threshold, it is determined that the third area is in a normal state; when the ambient smoke concentration is greater than the ambient smoke concentration threshold, it is determined that the third area is in an abnormal state.

[0089] Among them, the ambient smoke concentration threshold can be used to represent the maximum ambient smoke concentration of the third area in a normal state. The ambient smoke concentration threshold can be the ambient smoke concentration pre-set by the user, or it can be the ambient smoke concentration automatically generated by the sensor device based on the process of multiple controls on building equipment, etc., which is not limited here.

[0090] Step 120: Determine a first target controller based on the device weight table and the first target building device.

[0091] In the embodiment of the present application, the sensor device may determine the first target controller based on the device weight table and the first target building device.

[0092] The device weight table may be used to characterize the control weight of each of the multiple controllers over each of the multiple building devices, that is, the device weight table may be used to characterize the topological network connection relationship between the multiple building devices and the multiple controllers.

[0093] The first target controller may be the controller with the greatest control weight for the first target building equipment among the multiple controllers. For example, the first target controller may be any one of a lighting controller, an air conditioning controller, or a fire controller, etc., which is not limited here.

[0094] The sensor device can determine the control weights of each controller on the first target building device according to the device weight table, obtain multiple control weights, and determine the controller corresponding to the maximum control weight among the multiple control weights as the first target controller.

[0095] In an application scenario, the multiple building devices may include building device 1, building device 2, and building device 3, and the multiple controllers may include controller 1, controller 2, and controller 3.

[0096] The device weight table can be shown as Table 1, where the control weight of controller 1 on building equipment 1 is control weight 1, the control weight of controller 2 on building equipment 1 is control weight 2, and the control weight of controller 3 on building equipment 1 is control weight 3; the control weight of controller 1 on building equipment 2 is control weight 4, the control weight of controller 2 on building equipment 2 is control weight 5, and the control weight of controller 3 on building equipment 2 is control weight 6; the control weight of controller 1 on building equipment 3 is control weight 7, the control weight of controller 2 on building equipment 3 is control weight 8, and the control weight of controller 3 on building equipment 3 is control weight 9.

[0097] Table 1

[0098]

[0099] It should be noted that the categories of controllers, building equipment, and control weights are not limited to those shown in Table 1, and can be specifically set according to actual needs.

[0100] Step 130: Send a target control instruction to the first target controller, so that the first target controller controls the first target building equipment.

[0101] In an embodiment of the present application, the sensor device can send a target control instruction to the first target controller based on the bus. The first target controller receives and responds to the target control instruction to control the first target device. In the process of controlling the building equipment, the target controller of the target building equipment is dynamically allocated according to the topological network connection relationship between multiple building equipment and multiple controllers, and the target building equipment is controlled based on the target controller. This can suppress the master-slave communication connection between the controller and the building equipment and the failure of the building equipment control caused by the controller downtime, which is beneficial to improving the control success rate of the building equipment.

[0102] In some embodiments, the sensor device may be a light sensor, the first target building device may be a lighting device, the target control instruction may be a lighting control instruction for controlling the lighting device, and the first target controller may be a lighting controller.

[0103] The light sensor may send a lighting control instruction to the lighting controller. The lighting controller receives and responds to the lighting control instruction to control the lighting device, for example, to control the lighting device to illuminate.

[0104] In some embodiments, the sensor device may be a temperature sensor, the first target building device may be an air conditioner, the target control instruction may be a temperature adjustment instruction for controlling the air conditioner, and the first target controller may be an air conditioner controller.

[0105] The temperature sensor can send a temperature adjustment instruction to the air conditioner controller. The air conditioner controller receives and responds to the temperature adjustment instruction to control the air conditioner, for example, to control the air conditioner to cool or heat.

[0106] When the temperature adjustment instruction is the first temperature adjustment instruction, the air conditioner is controlled to heat; when the temperature adjustment instruction is the second temperature adjustment instruction, the air conditioner is controlled to cool.

[0107] In some embodiments, the sensor device may be a smoke sensor, the first target building device may be a fire protection device, the target control instruction may be a fire protection control instruction for controlling the fire protection device, and the first target controller may be a fire protection controller.

[0108] The smoke sensor can send a fire control instruction to the fire controller. The fire controller receives and responds to the fire control instruction and controls the fire equipment, for example, controlling the fire equipment to start fire extinguishing.

[0109] In some embodiments, the target control instruction may include multiple sub-control instructions, the target controller may include multiple sub-controllers, the first target building equipment may include multiple sub-building equipment, and one sub-control instruction may be used to instruct a sub-controller to control at least one sub-building equipment.

[0110] The sensor device can determine the priority order of multiple sub-control instructions, and send the multiple sub-control instructions to multiple sub-controllers in sequence according to the priority order at preset time intervals based on the bus. Each sub-controller receives and responds to a sub-control instruction, and controls at least one sub-building device connected to the sub-controller. Sending multiple sub-control instructions in sequence according to the priority order of multiple sub-control instructions can suppress the direct sending of multiple sub-control instructions, which may cause network congestion and lead to the failure of sending some sub-control instructions, and is conducive to improving the success rate of multiple sub-control instructions.

[0111] The priority order of the sub-control instructions can be used to represent the urgency of the sub-control instructions. The higher the priority order, the higher the urgency of the sub-control instruction.

[0112] The preset duration may be a duration pre-set by the user, or a duration automatically generated by the sensor device based on a process of controlling the building equipment multiple times, etc., and is not limited here.

[0113] The sensor device can calculate a hash value for each sub-building device to obtain multiple hash values, and assign each hash value to a control level value of a corresponding sub-control instruction to obtain multiple control level values, and determine the order of the multiple control level values from large to small as the priority order. The priority order of the corresponding instructions is determined according to the size order of the hash values of the building devices, thereby improving the accuracy of the priority order.

[0114] The sensor device can perform MurmurHash3 operation on the device information of each sub-building device to obtain a corresponding hash value.

[0115] Device information may include device ID, timestamp, and random number. The random number is a 16-bit value randomly generated by the corresponding sub-building device, and the hash value is a 32-bit value.

[0116] As an example, the sub-building devices include device A and device B. The device ID of device A is DEV-001, the timestamp of device A is 1717024000123, and the random number of device A is 0x3A7F.

[0117] The device ID of device B is DEV-002, the timestamp of device B is 1717024000123, and the random number of device B is 0x7E29.

[0118] Perform MurmurHash3 on the device information DEV-001+1717024000123+0x3A7F of device A, and the corresponding hash value is 0x58D23B1A.

[0119] Perform MurmurHash3 on the device information DEV-002+1717024000123+0x7E29 of device B, and the corresponding hash value is 0x62F891C4.

[0120] The solution provided in the present application obtains a target control instruction, which is generated by a sensor device based on environmental data collected from a target area. The target control instruction is used to control a first target building device corresponding to a target area among multiple building devices, and a first target controller is determined based on a device weight table and the first target building device. The device weight table is used to characterize the control weight of each controller among the multiple controllers over each building device among the multiple building devices. The first target controller is the controller with the largest control weight over the first target building device among the multiple controllers, and the target control instruction is sent to the first target controller so that the first target controller controls the first target building device. The device weight table can be used to characterize the topological network connection relationship between multiple building devices and multiple controllers. In the process of controlling the building equipment, the target controller of the target building equipment is dynamically allocated according to the topological network connection relationship between the multiple building devices and the multiple controllers, and the target building equipment is controlled based on the target controller. This can suppress the master-slave communication connection between the controller and the building equipment and the failure of the controller to control the building equipment, which is beneficial to improving the control success rate of the building equipment.

[0121] See also Figure 3 , which shows a flow chart of a control method for building equipment provided by another embodiment of the present application. In a specific embodiment, the control method for building equipment can be applied to Figure 1 The sensor device 100 in the building control system shown in FIG. 1 is taken as an example below. Figure 3 The process shown in FIG. 1 is described in detail. The building equipment control method may include the following steps 210 to 250.

[0122] Step 210: Receive broadcast information from each controller to obtain multiple broadcast information.

[0123] In this embodiment, each controller may broadcast one broadcast message, and the sensor device receives the broadcast message of each controller to obtain multiple broadcast messages.

[0124] Each broadcast information may include location information and signal strength of each building device connected to the corresponding controller relative to the corresponding controller.

[0125] The location information may include a distance index. A higher distance index of a building device relative to a corresponding controller indicates that the building device is closer to the corresponding controller.

[0126] Step 220: Construct a device weight table according to the plurality of broadcast information.

[0127] In this embodiment, the sensor device can perform weighted summation based on the position information and signal strength of each building device connected to each controller relative to the controller, as well as the preset position weight and signal weight, to obtain the control weight of each controller over each building device, and generate a corresponding weight table based on the control weight of each controller over each building device. Based on the position information and signal strength of the building device relative to the controller, the control weight of the controller over the building device is calculated, thereby improving the accuracy of the control weight.

[0128] Among them, the sensor device can calculate the weighted sum of the distance index, signal strength, preset location weight and signal weight of each building device relative to the connected controller to obtain the control weight of the controller for each building device.

[0129] In an application scenario, the multiple building devices may include building device 1, building device 2, and building device 3, the multiple controllers may include controller 1, controller 2, and controller 3, the preset location weight is 0.8, and the preset signal weight is 0.2.

[0130] As shown in Table 2, the location information of building equipment 1 relative to controller 1 is a distance index of 90, and the signal strength of building equipment 1 relative to controller 1 is 100 db. Therefore, the control weight of controller 1 on building equipment 1 is 90×0.8+100×0.2=92.

[0131] The location information of building equipment 1 relative to controller 2 is a distance index of 80, and the signal strength of building equipment 1 relative to controller 2 is 85 db. Therefore, the control weight of controller 2 on building equipment 1 is 80×0.8+85×0.2=81.

[0132] The location information of the building equipment 1 relative to the controller 3 is a distance index of 60, and the signal strength of the building equipment 1 relative to the controller 3 is 60 db. Then the control weight of the controller 3 on the building equipment 1 is 60×0.8+60×0.2=60.

[0133] The location information of the building equipment 2 relative to the controller 1 is a distance index of 85, and the signal strength of the building equipment 2 relative to the controller 1 is 90 dB. Therefore, the control weight of the controller 1 on the building equipment 2 is 85×0.8+90×0.2=86.

[0134] The location information of the building equipment 2 relative to the controller 2 is a distance index of 70, and the signal strength of the building equipment 2 relative to the controller 2 is 70 db. Then the control weight of the controller 2 on the building equipment 2 is 70×0.8+70×0.2=70.

[0135] The location information of the building equipment 2 relative to the controller 3 is a distance index of 50, and the signal strength of the building equipment 2 relative to the controller 3 is 50 db. Then the control weight of the controller 3 on the building equipment 2 is 50×0.8+50×0.2=50.

[0136] The location information of the building equipment 3 relative to the controller 1 is a distance index of 70, and the signal strength of the building equipment 3 relative to the controller 1 is 80 dB. Therefore, the control weight of the controller 1 on the building equipment 3 is 70×0.8+80×0.2=72.

[0137] The location information of the building equipment 3 relative to the controller 2 is a distance index of 50, and the signal strength of the building equipment 3 relative to the controller 2 is 60 dB. Then, the control weight of the controller 2 on the building equipment 3 is 50×0.8+60×0.2=52.

[0138] The location information of the building equipment 3 relative to the controller 3 is a distance index of 30, and the signal strength of the building equipment 3 relative to the controller 3 is 20 db. Then the control weight of the controller 3 on the building equipment 3 is 30×0.8+20×0.2=28.

[0139] Table 2

[0140]

[0141] It should be noted that the distance index, signal strength, preset location weight, and preset signal weight of the building equipment relative to the controller are not limited to those shown in Table 2, and can be set according to actual needs.

[0142] In some embodiments, after the sensor device constructs a device weight table based on multiple broadcast information, it can receive updated broadcast information of a second target controller among multiple controllers. The updated broadcast information may include the current device position and current signal strength of the second target building device connected to the second target controller relative to the second target controller. The updated broadcast information can be generated based on the second target controller when it monitors that the device position and / or signal strength of the second target building device have changed, and the device weight table is updated based on the updated broadcast information. Updating the device weight table based on changes in the device position and / or signal strength of the building device is conducive to improving the accuracy of subsequent determination of the target controller based on the device weight table.

[0143] Step 230: Obtain target control instructions.

[0144] In this embodiment, step 230 may refer to the contents of the corresponding steps in the aforementioned embodiments, which will not be repeated here.

[0145] Step 240: Determine a first target controller based on the device weight table and the first target building device.

[0146] In this embodiment, the sensor device can perform weighted summation based on the position information and signal strength of the first target building device relative to the connected controller, as well as the preset position weight and signal weight, to obtain the control weight of each controller on the first target building device, and determine the controller with the largest control weight as the first target controller. Selecting the controller with the largest control weight as the target controller is conducive to improving the control success rate of the target building device based on the target controller.

[0147] Step 250: Send a target control instruction to the first target controller, so that the first target controller controls the first target building equipment.

[0148] In this embodiment, step 250 may refer to the contents of the corresponding steps in the aforementioned embodiments, which will not be repeated here.

[0149] The solution provided in this embodiment receives broadcast information from each controller to obtain multiple broadcast information, and constructs a device weight table based on the multiple broadcast information, obtains target control instructions, and determines the first target controller based on the device weight table and the first target building equipment, and sends the target control instructions to the first target controller, so that the first target controller controls the first target building equipment. The device weight table can be used to characterize the topological network connection relationship between multiple building equipment and multiple controllers. In the process of controlling the building equipment, the target controller of the target building equipment is dynamically allocated according to the topological network connection relationship between the multiple building equipment and the multiple controllers, and the target building equipment is controlled based on the target controller. This can suppress the master-slave communication connection between the controller and the building equipment and the failure of the building equipment control caused by the controller downtime, which is beneficial to improving the control success rate of the building equipment.

[0150] Furthermore, the control weight of the controller over the building equipment is calculated based on the location information of the building equipment relative to the controller and the signal strength, thereby improving the accuracy of the control weight.

[0151] See also Figure 4 , which shows a sensor device 100 provided in one embodiment of the present application. The sensor device 100 may include a collection module 101 and a control module 102 . The collection module 101 may be connected to the control module 102 .

[0152] The acquisition module 101 can be used to collect environmental data of the target area; the control module 102 can be used to obtain target control instructions. The target control instructions can be generated by the control module based on the environmental data sent by the acquisition module. The target control instructions can be used to control the first target building equipment corresponding to the target area among multiple building equipment, and determine the first target controller based on the equipment weight table and the first target building equipment. The equipment weight table can be used to characterize the control weight of each controller among the multiple controllers on each building equipment among the multiple building equipment. The first target controller can be the controller with the largest control weight for the first target building equipment among the multiple controllers, and the target control instruction is sent to the first target controller so that the first target controller controls the first target building equipment.

[0153] In some embodiments, the control module 102 can also be used to receive broadcast information from each controller before obtaining the target control instruction, and obtain multiple broadcast information. Each broadcast information may include the location information and signal strength of each building device connected to the corresponding controller relative to the corresponding controller, and construct a device weight table based on the multiple broadcast information. The control weight of the controller on the building device can be obtained based on the corresponding location information and signal strength representation.

[0154] In some embodiments, the control module 102 can also be used to perform weighted summation based on the location information and signal strength of the first target building device relative to the connected controller, as well as the preset location weight and signal weight, to obtain the control weight of each controller on the first target building device, and determine the controller with the largest control weight as the first target controller.

[0155] In some embodiments, the control module 102 can also be used to receive updated broadcast information of a second target controller among multiple controllers after constructing a device weight table based on multiple broadcast information. The updated broadcast information may include the current device position and current signal strength of the second target building device connected to the second target controller relative to the second target controller. The updated broadcast information is generated based on the second target controller when it monitors changes in the device position and / or signal strength of the second target building device, and the device weight table is updated based on the updated broadcast information.

[0156] In some embodiments, the target control instruction may include multiple sub-control instructions, the target controller may include multiple sub-controllers, the first target building equipment may include multiple sub-building equipment, and one sub-control instruction may be used to instruct a sub-controller to control at least one sub-building equipment; the control module 102 may also be used to determine the priority order of the multiple sub-control instructions, and send the multiple sub-control instructions to the multiple sub-controllers in sequence at preset intervals according to the priority order, so that each sub-controller controls at least one sub-building equipment.

[0157] In some embodiments, the control module 102 can also be used to calculate a hash value for each sub-building device to obtain multiple hash values, and assign each hash value to a control level value of a corresponding sub-control instruction to obtain multiple control level values, and determine the priority order of the multiple control level values from large to small.

[0158] In some embodiments, the control module 102 may also be configured to collect environmental data of the target area, and generate a target control instruction when it is determined based on the environmental data that the target area is in an abnormal state.

[0159] The solution provided in this embodiment obtains a target control instruction. The target control instruction is generated by a sensor device based on environmental data collected from a target area. The target control instruction is used to control a first target building device corresponding to the target area among multiple building devices. A first target controller is determined based on a device weight table and the first target building device. The device weight table is used to represent the control weight of each of the multiple controllers over each of the multiple building devices. The first target controller is the controller with the greatest control weight over the first target building device among the multiple controllers. The target control instruction is sent to the first target controller so that the first target controller controls the first target building device. The device weight table can be used to represent the topological network connection relationship between multiple building devices and multiple controllers. During the process of controlling the building devices, the target controller of the target building device is dynamically allocated based on the topological network connection relationship between the multiple building devices and the multiple controllers. The target building device is controlled based on the target controller. This can prevent building device control failure caused by master-slave communication between the controller and the building device and controller downtime, thereby improving the control success rate of the building device.

[0160] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to in detail. For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiments. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated in detail in the device embodiment.

[0161] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0162] See also Figure 5 , which shows a functional block diagram of a building control system 400 provided by an embodiment of the present application. The building control system 400 may include one or more of the following components: a memory 410, a processor 420, and one or more applications, wherein the one or more applications may be stored in the memory 410 and configured to be executed by the one or more processors 420, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0163] The memory 410 may include a random access memory (RAM) or a read-only memory (ROM). The memory 410 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 410 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as obtaining a target control instruction, collecting environmental data, generating a target control instruction, controlling a first target building device, determining a first target controller, sending a target control instruction, receiving broadcast information, obtaining multiple broadcast information, constructing a device weight table, weighted summation, obtaining a control weight, receiving updated broadcast information, generating updated broadcast information, updating the device weight table, determining a priority order, and calculating a hash value, etc.), instructions for implementing the following various method embodiments, etc. The storage data area can also store data created by the building control system 400 during use (such as building control systems, sensor devices, multiple controllers, multiple building devices, target control instructions, target areas, environmental data, first target building devices, device weight tables, first target controllers, control weights, broadcast information, location information, signal strength, control weights, preset location weights, signal weights, second target controllers, updated broadcast information, second target building devices, current device locations, current signal strength, priority order, preset duration, hash values, and control level values), etc.

[0164] The processor 420 may include one or more processing cores. The processor 420 utilizes various interfaces and circuits to connect various components within the building control system 400. It executes instructions, programs, code sets, or instruction sets stored in the memory 410, as well as accesses data stored in the memory 410, to perform various functions and process data within the building control system 400. Optionally, the processor 420 may be implemented in the form of at least one of a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 420 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 420 and may instead be implemented as a separate communication chip.

[0165] Please refer to Figure 6 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 500 stores program code 510, which can be called by a processor to execute the method described in the above method embodiment.

[0166] The computer-readable storage medium 500 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 500 has storage space for program code 510 for executing any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 510 can be compressed, for example, in a suitable form.

[0167] Please refer to Figure 7, which shows a block diagram of the structure of a computer program product 600 provided in an embodiment of the present application. Computer program product 600 includes a computer program / instructions 610, which is stored in a computer-readable storage medium of a computer device. When computer program product 600 is executed on a computer device, the computer device's processor reads computer program / instructions 610 from the computer-readable storage medium and executes computer program / instructions 610, causing the computer device to perform the method described in the above method embodiment.

[0168] The solution provided in this embodiment obtains a target control instruction. The target control instruction is generated by a sensor device based on environmental data collected from a target area. The target control instruction is used to control a first target building device corresponding to the target area among multiple building devices. A first target controller is determined based on a device weight table and the first target building device. The device weight table is used to represent the control weight of each of the multiple controllers over each of the multiple building devices. The first target controller is the controller with the greatest control weight over the first target building device among the multiple controllers. The target control instruction is sent to the first target controller so that the first target controller controls the first target building device. The device weight table can be used to represent the topological network connection relationship between multiple building devices and multiple controllers. During the process of controlling the building devices, the target controller of the target building device is dynamically allocated based on the topological network connection relationship between the multiple building devices and the multiple controllers. The target building device is controlled based on the target controller. This can prevent building device control failure caused by master-slave communication between the controller and the building device and controller downtime, thereby improving the control success rate of the building device.

[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for controlling building equipment, characterized in that: A sensor device is applied to a building control system, wherein the building control system further comprises a plurality of controllers and a plurality of building devices, each controller being configured to connect to and control at least one building device, and the control method comprises: Obtaining a target control instruction, where the target control instruction is generated by the sensor device based on environmental data collected from a target area, and the target control instruction is used to control a first target building device corresponding to the target area among the multiple building devices; Determining a first target controller based on a device weight table and the first target building device, wherein the device weight table is used to represent the control weight of each controller in the multiple controllers over each building device in the multiple building devices, and the first target controller is the controller in the multiple controllers that has the largest control weight over the first target building device; The target control instruction is sent to the first target controller, so that the first target controller controls the first target building equipment.

2. The control method according to claim 1, characterized in that: Before obtaining the target control instruction, the control method further includes: receiving broadcast information from each controller to obtain a plurality of broadcast information, each broadcast information including position information and signal strength of each building device connected to the corresponding controller relative to the corresponding controller; The device weight table is constructed according to the multiple broadcast information, and the control weight of the building device by the controller is obtained based on the corresponding location information and the signal strength representation.

3. The control method according to claim 2, characterized in that: The determining the first target controller based on the device weight table and the first target building device includes: Obtaining a control weight of each controller over the first target building device by performing a weighted sum based on the position information and signal strength of the first target building device relative to the connected controller, as well as a preset position weight and signal weight; The controller with the largest control weight is determined as the first target controller.

4. The control method according to claim 2 or 3, characterized in that: After constructing the device weight table according to the plurality of broadcast information, the control method further includes: receiving updated broadcast information from a second target controller among the plurality of controllers, the updated broadcast information including a current device location and a current signal strength of a second target building device connected to the second target controller relative to the second target controller, the updated broadcast information being generated by the second target controller when monitoring a change in the device location and / or a change in the signal strength of the second target building device; The device weight table is updated based on the update broadcast information.

5. The control method according to any one of claims 1 to 3, characterized in that: The target control instruction includes multiple sub-control instructions, the target controller includes multiple sub-controllers, the first target building equipment includes multiple sub-building equipment, and one sub-control instruction is used to instruct one sub-controller to control at least one sub-building equipment; The sending the target control instruction to the first target controller so that the first target controller controls the first target building equipment includes: determining a priority order of the plurality of sub-control instructions; The multiple sub-control instructions are sent to the multiple sub-controllers in sequence at intervals of preset time lengths according to the priority order, so that each sub-controller controls the at least one sub-building device.

6. The control method according to claim 5, characterized in that: Determining the priority order of the multiple sub-control instructions includes: Calculate a hash value for each sub-building device to obtain multiple hash values; Assigning each hash value to a control level value of the corresponding sub-control instruction to obtain multiple control level values; The order of the plurality of control level values from large to small is determined as the priority order.

7. The control method according to any one of claims 1 to 3, characterized in that: The obtaining of the target control instruction includes: collecting the environmental data of the target area; When it is determined according to the environmental data that the target area is in an abnormal state, the target control instruction is generated.

8. A sensor device, characterized in that: It includes an acquisition module and a control module, wherein the acquisition module is connected to the control module; The acquisition module is used to collect environmental data of the target area; The control module is used to obtain a target control instruction, which is generated by the control module based on the environmental data sent by the acquisition module. The target control instruction is used to control a first target building device corresponding to the target area among multiple building devices, and determine a first target controller based on a device weight table and the first target building device. The device weight table is used to characterize the control weight of each controller among the multiple controllers over each building device among the multiple building devices. The first target controller is the controller among the multiple controllers with the largest control weight over the first target building device, and the target control instruction is sent to the first target controller so that the first target controller controls the first target building device.

9. A building control system, characterized in that: include: Memory; one or more processors coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Building environment control method, building environment control device, equipment, storage medium and system

    CN110442171A

  • Intelligent equipment control method and device, electronic equipment and computer storage medium

    CN112068510A

  • Intelligent household appliance control method and device, remote controller and storage medium

    CN115202228A

  • Equipment offline control method and device, equipment and storage medium

    CN116112303A

  • Commissioning load control systems

    US20170123390A1