Microwave sensor group control method based on bus, computer device and computer readable storage medium
By forming a microwave sensor group in the smart lamp system and using bus communication, the problem of inconsistent brightness of the lamps under the control of multiple microwave sensors is solved, synchronous adjustment of the lamps' brightness is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202111674932.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In a larger area, when multiple smart lamps are controlled by multiple microwave sensors, the brightness of the lamps is inconsistent, and synchronous adjustment cannot be achieved, affecting the user experience.
By forming a microwave sensor group, bus communication is used to synchronize the transmission and reception of lamp brightness control information between each microwave sensor to ensure that the lamp brightness control information of each microwave sensor in the group is consistent.
The synchronous adjustment of the brightness of the lamp by multiple microwave sensors is achieved, avoiding the inconsistency of the brightness control of smart lamps and improving the user experience.
Smart Images

Figure CN114513888B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent lamp control, and in particular to a bus-based microwave sensor group control method, a computer device for implementing the method, and a computer-readable storage medium. Background Art
[0002] In recent years, smart dimming lamps have developed rapidly in the domestic market, and more and more smart lighting lamps use microwave sensors for dimming. Usually, smart lighting lamps use microwave sensors to detect whether there are human activities around the lamps. If no human activities are detected, the microwave sensor is in an idle state. At this time, the lamp brightness control information sent by the microwave sensor to the lamp is 0, that is, the lamp does not emit light. Once the microwave sensor detects human activities, the lamp brightness control information sent to the lamp is L1, usually L1 is 100%, and the smart lamp emits light at 100% brightness. When the microwave sensor detects that the person has left, the microwave sensor will enter the delay state and set the delay time T1. During the delay time T1, the lamp brightness control information set by the microwave sensor is still L1, that is, the delayed brightness is also L1. When the delay time is reached, the lamp brightness control information set by the microwave sensor becomes L2, usually L2 is a value less than 100%, such as 60% or 70%. This is called the waiting state, that is, the waiting brightness in the waiting state is L2, and the waiting time is T2. When the waiting time is reached, the microwave sensor will enter the idle state again, and the set lamp brightness control information is 0.
[0003] In a large area, multiple smart lamps are usually installed, and multiple microwave sensors are also usually installed. Since each microwave sensor can be configured with different parameter values such as delay brightness L1, standby brightness L2, delay time T1 and standby time T2, for occasions where multiple microwave sensors are installed, the brightness control information of the lamps corresponding to the multiple microwave sensors at the same time is often different. If multiple smart lamps are formed into a network, the luminous brightness of multiple smart lamps in the network will not switch synchronously, causing discomfort to users.
[0004] Chinese utility model patent CN 207778239U discloses a lighting remote monitoring automatic control street lamp, including multiple street lamps, multiple groups of delay controllers, the delay controllers are connected to infrared sensing devices, the infrared sensing devices are installed on both sides of the road running in the same direction, and each section of the street lamp control line is provided with an on-off monitoring device and a wireless communication module; each group of delay controllers is also connected to the infrared sensing device of the next control section. However, this method is not for achieving synchronous brightness adjustment of multiple lamps, and cannot solve the problem of synchronous brightness adjustment of multiple microwave sensors for the same group of lamps. Summary of the invention
[0005] The first object of the present invention is to provide a bus-based microwave sensor group control method that can ensure synchronization of each microwave sensor in controlling the brightness of a lamp.
[0006] A second objective of the present invention is to provide a computer device for implementing the above bus-based microwave sensor group control method.
[0007] A third object of the present invention is to provide a computer-readable storage medium for implementing the above-mentioned bus-based microwave sensor group control method.
[0008] To achieve the first objective of the present invention, the bus-based microwave sensor group control method provided by the present invention includes forming a microwave sensor group, the microwave sensor group includes more than two microwave sensors, and the multiple microwave sensors communicate with each other through a bus; when each microwave sensor is in a non-idle state, it sends lamp brightness control information to the bus at a preset interval time; the current microwave sensor obtains the lamp brightness control information sent by other microwave sensors in the microwave sensor group, if any other microwave sensor in the microwave sensor group is in a non-idle state, and the current microwave sensor is also in a non-idle state, then the current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information.
[0009] It can be seen from the above scheme that by forming a microwave sensor group with multiple microwave sensor components, each microwave sensor will adjust its own lamp brightness control information according to the received lamp brightness control information after receiving the lamp brightness control information sent by other microwave sensors in the group, thereby ensuring the consistency of the lamp brightness control information set by each microwave sensor in the group.
[0010] A preferred solution is that the current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information, including: when the received lamp brightness control information is 100%, if the lamp brightness control information of the current microwave sensor is less than 100%, then adjust its own lamp brightness control information to 100%.
[0011] It can be seen that if the received lamp brightness control information is 100%, it means that at least one microwave sensor in the group is in the delay state. At this time, the microwave sensors that are not in the idle state set their own state to the delay state, thereby maintaining the consistency of the working state of each microwave sensor.
[0012] A further solution is that the current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information, including: when the received lamp brightness control information is less than 100%, if the lamp brightness control information of the current microwave sensor is 100%, then keep its own lamp brightness control information unchanged.
[0013] It can be seen that if the received lamp brightness control information is 100%, it means that at least one microwave sensor in the group is in a standby state. If the current microwave sensor is in a delay state, the state of the current microwave sensor is kept unchanged to avoid affecting the operation of the current microwave sensor.
[0014] A further solution is that the current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information, including: when the received lamp brightness control information is less than 100%, if the lamp brightness control information of the current microwave sensor is also less than 100%, then compare the lamp brightness control information of the current microwave sensor with the received lamp brightness control information, if the lamp brightness control information of the current microwave sensor is less than the received lamp brightness control information, then adjust its own lamp brightness control information to the received lamp brightness control information.
[0015] Furthermore, if the lamp brightness control information of the current microwave sensor is greater than the received lamp brightness control information, the lamp brightness control information thereof is kept unchanged.
[0016] It can be seen that if the current microwave sensor is also in the standby state, the lamp brightness control information of the current microwave sensor is adjusted according to the received lamp brightness control information, thereby improving the consistency of the lamp brightness control information of multiple microwave sensors in the standby state.
[0017] A further solution is that after the current microwave sensor adjusts its own lamp brightness control information or confirms that its own lamp brightness control information remains unchanged, it also executes: the current microwave sensor determines whether the remaining time in the current state is less than the preset delay time. If so, the remaining time in the current state is set as the delay time.
[0018] In this way, it can be ensured that the switching of the states of the plurality of microwave sensors is performed synchronously, thereby preventing the plurality of microwave sensors from sending different lamp brightness control information at different times, thereby preventing the brightness control of the intelligent lamp from being confused.
[0019] A further solution is that the delay time is equal to the interval time.
[0020] A further solution is that before the microwave sensor sends the lamp brightness control information to the bus, it confirms that the remaining time in the current state is greater than or equal to the delay time.
[0021] It can be seen that if the remaining time of the current microwave sensor in the current state is short, the lamp brightness control information will no longer be sent to the bus, thereby avoiding affecting the work of other microwave sensors.
[0022] To achieve the second objective, the computer device provided by the present invention includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, each step of the bus-based microwave sensor group control method is implemented.
[0023] To achieve the third objective, the present invention provides a computer readable storage medium storing a computer program, and when the computer program is executed by a processor, each step of the bus-based microwave sensor group control method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a schematic block diagram of a microwave sensor group using an embodiment of a bus-based microwave sensor group control method of the present invention.
[0025] Figure 2 It is the first part of the flowchart of an embodiment of a bus-based microwave sensor group control method of the present invention.
[0026] Figure 3 This is the second part of the flowchart of the embodiment of the bus-based microwave sensor group control method of the present invention.
[0027] Figure 4 This is the third part of the flowchart of the bus-based microwave sensor group control method embodiment of the present invention.
[0028] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION
[0029] The bus-based microwave sensor group control method of the present invention is applied to a microwave sensor group composed of multiple microwave sensors, and each microwave sensor can independently execute the bus-based microwave sensor group control method. Preferably, each microwave sensor is provided with a controller and a memory, and the memory stores a computer program, and when the computer program is executed by the controller, each step of the bus-based microwave sensor group control method can be implemented.
[0030] Microwave sensor group control method embodiment based on bus:
[0031] This embodiment is applied in a microwave sensor group, see Figure 1The microwave sensor group includes four microwave sensors 21, 22, 23, and 24. Preferably, each microwave sensor 21, 22, 23, and 24 is respectively arranged in an area, for example, the microwave sensor 21 is arranged in area A, the microwave sensor 22 is arranged in area B, the microwave sensor 23 is arranged in area C, and the microwave sensor 24 is arranged in area D. In addition, an intelligent lamp can be arranged in each area, for example, an LED lamp 11 is arranged in area A, an LED lamp 12 is arranged in area B, an LED lamp 13 is arranged in area C, and an LED lamp 14 is arranged in area D. It should be noted that the microwave sensor and the intelligent lamp are not in a one-to-one correspondence. Multiple microwave sensors 21, 22, 23, and 24 communicate with multiple intelligent lamps through a bus. For example, each microwave sensor 21, 22, 23, and 24 can send lamp brightness control information to the bus, and each LED lamp 11, 12, 13, and 14 can receive the lamp brightness control information on the bus and control its own brightness according to the received lamp brightness control information.
[0032] In this embodiment, a plurality of microwave sensors 21, 22, 23, 24 are formed into a microwave sensor group. When any microwave sensor 21, 22, 23, 24 is triggered, it will send lamp brightness control information to the bus at a preset interval, for example, the preset interval is 5 seconds. In addition, a plurality of LED lamps 11, 12, 13, 14 are connected to the bus. Therefore, when any microwave sensor 21, 22, 23, 24 sends lamp brightness control information to the bus, all LED lamps 11, 12, 13, 14 connected to the bus adjust their own brightness according to the received lamp brightness information, thereby ensuring that the brightness of the plurality of LED lamps 11, 12, 13, 14 is adjusted synchronously. The bus used in this embodiment is a DALI bus. Of course, this embodiment does not limit the type of the bus.
[0033] In addition, when any microwave sensor 21, 22, 23, 24 sends lamp brightness control information to the bus, other microwave sensors connected to the bus will also receive the lamp brightness control information, and other microwave sensors will adjust their own lamp brightness control information according to the received lamp brightness control information, so as to achieve synchronization of the lamp brightness control information set by multiple microwave sensors 21, 22, 23, 24 themselves, thereby avoiding confusion in the brightness control of multiple LED lamps caused by the lamp brightness control information set by multiple different microwave sensors 21, 22, 23, 24 being out of sync.
[0034] In this embodiment, each microwave sensor has three working states, namely, delay state, standby state and idle state. If the microwave sensor does not detect human activity, the microwave sensor is in idle state. At this time, the microwave sensor will not send lamp brightness control information to the bus, and the brightness of each LED lamp is 0. Once the microwave sensor detects human activity, the lamp brightness control information sent to the bus is L1, usually L1 is 100%, and multiple LED lamps 11, 12, 13, 14 emit light at 100% brightness. When the microwave sensor detects that the person has left, the microwave sensor will enter the delay state and set the delay time T1. During the delay time T1, the lamp brightness control information set by the microwave sensor is still L1, so the delayed brightness is also L1. When the delay time is reached, the microwave sensor enters the standby state, and the lamp brightness control information set by the microwave sensor becomes L2. Usually L2 is a value less than 100%, such as 60% or 70%, and the standby time is T2. When the standby time is reached, the microwave sensor will enter the idle state again.
[0035] Preferably, in order to avoid control confusion, if the remaining time of the microwave sensor in the non-idle state is less than the preset interval time, the lamp brightness control information is not sent to the bus. For example, if the microwave sensor is currently in the delay state, and the remaining time in the delay state is only 3 seconds, the microwave sensor will no longer send the lamp brightness control information to the bus in the current delay state.
[0036] Combine the following Figures 2 to 4 The workflow of the method of this embodiment is introduced. After the microwave sensor group is formed, each microwave sensor executes step S1 to receive the lamp brightness control information sent by other microwave sensors in the microwave sensor group through the bus. Of course, if the lamp brightness control information sent by other microwave sensors is not received, it means that all microwave sensors are in an idle state. It can be considered that no human activity is detected in areas A, B, C, and D, and all microwave sensors will not send lamp brightness control information. Therefore, if the lamp brightness control information sent by other microwave sensors is received, it means that other microwave sensors are in a non-idle state.
[0037] Then, step S2 is executed to determine whether the received lamp brightness control information is 100%. If so, it means that at least one of the other microwave sensors is in a delay state, and the remaining delay time is greater than or equal to 5 seconds. At this time, step S3 is executed to determine whether the current microwave sensor is in an idle state. For example, the current microwave sensor is microwave sensor 21. If microwave sensor 21 receives lamp brightness control information sent by other microwave sensors (such as microwave sensor 22), microwave sensor 21 determines whether its own state is an idle state. If it is an idle state, step S4 is executed, and no response is given to the received lamp brightness control information, that is, no processing is performed.
[0038] If the judgment result of step S3 is yes, indicating that the microwave sensor 21 is currently in a non-idle state, then step S5 is further executed to determine whether the current microwave sensor is in a delayed state. If the microwave sensor 21 is currently in a delayed state, step S7 is executed to determine whether the remaining delay time of the current microwave sensor is less than the preset delay time, for example, the preset delay time is equal to the preset interval time, both of which are 5 seconds. If the judgment result of step S7 is yes, step S9 is executed to set the remaining delay time of the microwave sensor 21 to the preset delay time. If the current remaining delay time of the microwave sensor 21 is 3 seconds, then in step S9, the remaining delay time of the microwave sensor 21 is set to 5 seconds. If the judgment result of step S7 is no, step S8 is executed to maintain the remaining delay time of the current microwave sensor unchanged.
[0039] If the judgment result of step S5 is no, it means that the current microwave sensor is in the standby state, and the brightness of the microwave sensor 21 is the standby brightness, that is, the set lamp brightness information is less than 100%. In order to keep consistent with the lamp brightness information recorded by other microwave sensors, step S6 needs to be executed to set the current microwave sensor state to the delay state, and set the delay remaining time to the preset delay time, that is, 5 seconds.
[0040] If the judgment result of step S2 is no, it means that at least one of the microwave sensor groups is in a standby state, and the remaining delay time is greater than or equal to 5 seconds. At this time, step S10 is executed to determine whether the current microwave sensor is in an idle state. If it is in an idle state, step S11 is executed to not respond to the received lamp brightness control information.
[0041] If the judgment result of step S10 is no, indicating that the microwave sensor 21 is currently in a non-idle state, then step S12 is further executed to determine whether the current microwave sensor is in a delayed state. If the microwave sensor 21 is currently in a delayed state, step S13 is executed to determine whether the remaining delay time of the current microwave sensor is less than the preset delay time, for example, the preset delay time is equal to the preset interval time, both of which are 5 seconds. If the judgment result of step S13 is yes, step S15 is executed to set the remaining delay time of the microwave sensor 21 to the preset delay time. If the judgment result of step S13 is no, step S14 is executed to maintain the remaining delay time of the current microwave sensor unchanged.
[0042] If the judgment result of step S12 is no, it means that the current microwave sensor is in a standby state. Therefore, the current microwave sensor and other microwave sensors that send lamp brightness control information to the bus are all in a standby state. The standby brightness set by the two microwave sensors may be different. Therefore, it is necessary to execute step S16 to determine whether the lamp brightness control information of the microwave sensor set by the current microwave sensor itself is greater than the lamp brightness control information sent by other microwave sensors received from the bus. If the judgment result is yes, then execute step S17 to maintain its own lamp brightness control information unchanged. If the judgment result of step S16 is no, then execute step S18 to adjust its own lamp brightness control information to the received lamp brightness control information. For example, if the lamp brightness control information of the current microwave sensor itself is 60%, and the received lamp brightness control information is 70%, then the lamp brightness control information of the current microwave sensor itself is set to 70%.
[0043] After executing step S17 or step S18, step S19 is executed to determine whether the remaining waiting time of the current microwave sensor is less than the preset delay time. If so, step S21 is executed to set the remaining waiting time of the current microwave sensor to the preset delay time, such as 5 seconds. If the judgment result of step S19 is no, step S20 is executed to maintain the remaining waiting time of the current microwave sensor unchanged.
[0044] It can be seen that this embodiment can keep the lamp brightness control information set by each microwave sensor consistent with the lamp brightness control information transmitted on the bus, preventing different microwave sensors in the microwave sensor group from sending different lamp brightness control information to the bus, resulting in inconsistent switching between different brightness of multiple LED lamps on the bus.
[0045] Computer device embodiment:
[0046] The computer device of this embodiment can be an integrated module arranged in the microwave sensor. The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the above-mentioned bus-based microwave sensor group control method is implemented.
[0047] For example, a computer program may be divided into one or more modules, one or more modules are stored in a memory and executed by a processor to complete each module of the present invention. One or more modules may be a series of computer program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0048] The processor referred to in the present invention may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0049] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0050] Computer readable storage medium embodiment:
[0051] If the computer program stored in the above-mentioned computer device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement each step of the above-mentioned bus-based microwave sensor group control method.
[0052] Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form, etc. Computer readable media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer readable media do not include electric carrier signals and telecommunication signals.
[0053] Finally, it should be emphasized that the present invention is not limited to the above-mentioned embodiments. For example, changes in the number of microwave sensors and LED lamps in a microwave sensor group, or changes in the type of bus used, etc., should also be included in the scope of protection of the claims of the present invention.
Claims
1. A bus-based microwave sensor group control method, characterized in that: include: Establishing a microwave sensor group, wherein the microwave sensor group includes more than two microwave sensors, and the plurality of microwave sensors communicate with each other through a bus; Each of the microwave sensors sends lamp brightness control information to the bus at a preset interval when in a non-idle state; The current microwave sensor obtains the lamp brightness control information sent by other microwave sensors in the microwave sensor group. If any other microwave sensor in the microwave sensor group is in a non-idle state and the current microwave sensor is also in a non-idle state, the current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information; The current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information, including: when the received lamp brightness control information is 100%, if the lamp brightness control information of the current microwave sensor is less than 100%, then adjust its own lamp brightness control information to 100%; when at least one of the microwave sensors in the microwave sensor group is in a delay state, the microwave sensors that are not in an idle state all set their own states to a delay state to maintain consistency in the working states of each microwave sensor.
2. The bus-based microwave sensor group control method according to claim 1, characterized in that: The current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information, including: when the received lamp brightness control information is less than 100%, if the lamp brightness control information of the current microwave sensor is 100%, keeping its own lamp brightness control information unchanged.
3. The bus-based microwave sensor group control method according to claim 1, characterized in that: The current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information, including: when the received lamp brightness control information is less than 100%, if the lamp brightness control information of the current microwave sensor is also less than 100%, then compare the lamp brightness control information of the current microwave sensor with the received lamp brightness control information; if the lamp brightness control information of the current microwave sensor is less than the received lamp brightness control information, then adjust its own lamp brightness control information to the received lamp brightness control information.
4. The bus-based microwave sensor group control method according to claim 1, characterized in that: The current microwave sensor adjusts its own lamp brightness control information according to the received lamp brightness control information, including: when the received lamp brightness control information is less than 100%, if the lamp brightness control information of the current microwave sensor is also less than 100%, then compare the lamp brightness control information of the current microwave sensor with the received lamp brightness control information; if the lamp brightness control information of the current microwave sensor is greater than the received lamp brightness control information, then keep its own lamp brightness control information unchanged.
5. The bus-based microwave sensor group control method according to any one of claims 1 to 4, characterized in that: After the current microwave sensor adjusts its own lamp brightness control information or confirms that its own lamp brightness control information remains unchanged, the current microwave sensor further executes: the current microwave sensor determines whether the remaining time in the current state is less than the preset delay time, and if so, sets the remaining time in the current state to the delay time.
6. The bus-based microwave sensor group control method according to claim 5, characterized in that: The delay time is equal to the interval time.
7. The bus-based microwave sensor group control method according to claim 5, characterized in that: Before the microwave sensor sends the lamp brightness control information to the bus, it is confirmed that the remaining time in the current state is greater than or equal to the delay time.
8. A computer device, characterized in that The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, each step of the bus-based microwave sensor group control method as claimed in any one of claims 1 to 7 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the bus-based microwave sensor group control method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Automatic management and control street lamp of illumination remote monitoring
CN207778239U
Passive human body sensor network-based seamless intelligent lighting system and method
CN105357816A
