Light control method and device, electronic equipment and storage medium
By setting up detection equipment on the door, using the target access control equipment to determine the user's location, and automatically controlling the opening and closing of the lamps, the problems of poor convenience and energy-saving effects of traditional lighting control systems are solved, and automatic lighting and intelligent lighting management are realized after users enter.
Patent Information
- Application Number
- CN202510397623.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-01
AI Technical Summary
Traditional lighting control systems have problems such as office spaces or dormitory corridors, such as poor convenience and energy saving effects. Voice-controlled light triggers are not sensitive or delayed, resulting in increased energy consumption and poor user experience.
By setting up detection equipment on the door, detecting the target access control equipment entered and carried by the user, determining the user's location using the target access control equipment, and automatically controlling the opening and closing of the lamp, including using the target frequency sound signal and the UWB positioning module for positioning, realizing intelligent control of the light.
It realizes that the user can automatically turn on the light without operating after entering the target space, and intelligently controls the opening and closing of the lamp according to the user's location, improving convenience and energy-saving effects, and solving the problem of poor convenience and energy-saving effects of traditional lighting control systems.
Smart Images

Figure CN120239147A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of lighting control, and more particularly, to a method, device, electronic device, and storage medium for controlling lighting. Background Art
[0002] Currently, voice-activated lights in public scenarios such as office spaces or dormitory corridors generally have problems with insensitive triggering mechanisms or unreasonable delays. For example, some voice-activated lights require a relatively high decibel sound to activate, and normal walking or quiet conversations are difficult to trigger the lighting. Especially in the late night or in a quiet environment, users are forced to deliberately create noise, which instead affects others. In addition, the delay-off time settings of some lamps are fixed and cannot adapt to different scenario requirements: short delays may cause the lighting to be interrupted frequently, while long delays are likely to result in the embarrassing situation of "always on when no one is there". If users need to carry items or stay briefly, they often need to repeatedly trigger the voice-activated switch, and the actual experience far from meets the original design intention of "seamless convenience".
[0003] Moreover, although voice-activated lights are sold as an energy-saving feature with "lights off when people leave", they often have hidden energy consumption due to technical defects in actual operation. On the one hand, the misjudgment rate of sensors is high. For example, environmental noise or activities in adjacent areas may accidentally trigger the switch, resulting in ineffective lighting. More seriously, to make up for the sensitivity problem, many places adopt a compromise solution of "high brightness + long delay", which instead doubles the energy consumption per single lighting. Data shows that the comprehensive electricity consumption of inferior voice-activated systems is even higher than the timed-switching mode of ordinary lamps, and the energy-saving promise becomes meaningless. Summary of the Invention
[0004] An object of the present disclosure is to provide a lighting control device, method, electronic device, and storage medium, which can solve the problems of poor convenience and energy-saving effect in traditional lighting control.
[0005] According to a first aspect of the present disclosure, there is provided a method for controlling lighting, including:
[0006] A detection device is provided on the door entering the target space, and the detection device includes a device for detecting whether the corresponding door is opened and a target access control device carried by the user who opens the door. The method includes:
[0007] In the case of detecting that the door is opened, taking the position corresponding to the door as the initial position and determining the target access control device carried by the user;
[0008] Turning on a first lamp in the target space, the lighting area of the first lamp corresponding to the initial position;
[0009] Determining the position of the user in the target space through the target access control device and controlling the opening and closing of the lamps in the target space based on the position.
[0010] Optionally, determining the position of the user in the target space by the target access control device includes:
[0011] Controlling the target access control device to emit a sound signal with a target frequency, and determining the position of the user in the target space according to the sound signal, where the target frequency is greater than the highest frequency audible to the human ear.
[0012] Optionally, a plurality of receiving devices are preset at different positions in the target space for receiving the sound signal with the target frequency. Determining the position of the user in the target space according to the sound signal includes:
[0013] Determining the number of receiving devices that receive the sound signal;
[0014] In the case where the number is multiple, respectively obtain the transmission time of the sound signal and the reception time of each receiving device, and determine the distance between the user and the receiving device according to the transmission time, reception time and sound propagation speed, and determine the position according to the distance.
[0015] Optionally, determining the position of the user in the target space according to the sound signal includes:
[0016] In the case where the number is single, obtain the transmission time of the sound signal and the reception time of the first receiving device, and determine the first distance between the user and the first receiving device according to the transmission time, reception time and sound propagation speed.
[0017] Based on the first position of the user in the previous sampling period and the first distance, determine the second position of the user in the current sampling period.
[0018] Optionally, based on the first position of the user in the previous sampling period and the first distance, determining the second position of the user in the current sampling period includes:
[0019] Obtain the third position of the first receiving device, and construct a first circular area with the third position as the center and the distance between the user and the first receiving device in the current sampling period as the radius;
[0020] Take the position closest to the first position in the first circular area as the second position.
[0021] Optionally, a UWB positioning module is provided on the target access control device, and at least two UWB positioning devices are provided in the target space. Determining the position of the user in the target space by the target access control device includes:
[0022] Control the UWB positioning module to broadcast UWB signals;
[0023] Determine the time difference between the reception time and the transmission time of the UWB signals received by the at least two UWB positioning devices;
[0024] Determine the distance between the UWB positioning module and the UWB positioning device, where the distance is half of the product of the time difference and the speed of light;
[0025] And determine the position of the user in the target space according to the distances between the UWB positioning module and at least two of the UWB positioning devices.
[0026] Optionally, the receiving device and the UWB positioning device are respectively installed on the lamps in the target space, or the receiving device and the UWB positioning device are respectively installed on the inner side of the door entering the target space.
[0027] According to a second aspect of the present disclosure, there is provided a lighting control device. A detection device is provided on a door entering a target space. The detection device includes a device for detecting whether the corresponding door is opened and a target access control device carried by the user opening the door. The device includes:
[0028] A determination module, configured to, when detecting that the door is opened, use the position corresponding to the door as the initial position and determine the target access control device carried by the user;
[0029] An activation module, configured to activate a first lamp in the target space, where the illumination area of the first lamp corresponds to the initial position;
[0030] A control module, configured to determine the position of the user in the target space through the target access control device and control the opening and closing of the lamps in the target space based on the position.
[0031] According to a third aspect of the present disclosure, there is provided an electronic device, including a processor and a memory. The memory stores computer instructions, and when the computer instructions are executed by the processor, the method according to any one of the first aspect is implemented.
[0032] According to a fourth aspect of the present disclosure, there is provided a storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the steps of the method according to any one of the first aspect are implemented.
[0033] One technical effect of the present disclosure is to provide a method for controlling lights. When a user enters a target space, the detection device on the door can confirm the initial position where the user enters and the target access control device carried by the user, and turn on the lights corresponding to the initial position for lighting. After that, based on the user's target access control device, the position of the user in the target space is determined, and the opening and closing of the lights are controlled based on the user's position. In this way, after the user enters the target space, the lights at the user's position can be automatically turned on without any operation by the user, and when the user is in the target space, the opening and closing of each light are automatically controlled according to the user's position, solving the problems of poor convenience and energy-saving effect in traditional light control.
[0034] Other features and advantages of the embodiments of the present disclosure will become clear through the following detailed description of the exemplary embodiments of the present disclosure with reference to the accompanying drawings. Description of the Drawings
[0035] The drawings forming a part of the specification depict embodiments of the present disclosure and, together with the specification, are used to explain the principles of the embodiments of the present disclosure.
[0036] Figure 1 is a flowchart of the method for controlling lights provided by the present application;
[0037] Figure 2 is a schematic diagram of a target space provided by the present application;
[0038] Figure 3 is a schematic diagram of a target space provided by the present application;
[0039] Figure 4 is a schematic diagram of a target space provided by the present application;
[0040] Figure 5 is a schematic diagram of a target space provided by the present application;
[0041] Figure 6 is a schematic structural diagram of the device for controlling lights provided by the present application. Detailed Embodiments
[0042] Now, various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that: unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions and values set forth in these embodiments do not limit the scope of the present invention.
[0043] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present invention, its application, or its use.
[0044] Technologies and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the technologies and devices should be regarded as part of the specification.
[0045] In all the examples shown and discussed here, any specific values should be construed as merely exemplary, rather than as limitations. Thus, other examples of the exemplary embodiments may have different values.
[0046] It should be noted that like reference numerals and letters denote like items in the following figures, and thus, once an item is defined in one figure, it is not necessary to discuss it further in subsequent figures.
[0047] It should be noted that all actions of obtaining signals, information, or data in the embodiments of the present disclosure are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where the location is located and obtaining authorization from the corresponding device owner.
[0048] In an example of this embodiment, a method for controlling lights is further provided. A detection device is provided on the door entering the target space. The detection device includes a device for detecting whether the corresponding door is opened and the target access control device carried by the user who opens the door, such as Figure 1 As shown, the method includes steps S11 - S13:
[0049] Step S11, when it is detected that the door is opened, taking the position corresponding to the door as the initial position and determining the target access control device carried by the user.
[0050] In the embodiments of the present application, the target space is the space to which the light control method is applied, and there are one or more lamps with different positions inside this space. In this example, the target space may be a public area such as an office or a dormitory corridor.
[0051] In the embodiments of the present application, when the user enters the target space, a detection device may be provided on or near the door entering the target space. The device may include various types of sensors as detection units. When the user opens the door, the sensors can detect that the door is opened and take the position of the door as the initial position of the user entering the target space.
[0052] In this example, the detection device may be an access control device or an intelligent door lock, etc. The sensors may include a pressure sensor provided on the doorknob, a camera sensor that captures the position of the door, or an identity verification sensor in the access control that interacts with the user, etc.
[0053] In this example, an authentication device can be set near the door of the target space to determine the user's identity. For example, an access control device that interacts with the user. The user can open the door by swiping a smart work ID card, a smart access control device, or other devices with access control functions. At the same time, the system can determine the user's identity based on this interaction behavior. Or, a wireless communication module such as Bluetooth, UWB, or NFC is set near the door. A wireless communication connection can be established with the corresponding access control device carried by the user to determine the access control device carried by the user, so as to open the door corresponding to entering the target space and determine the access control device at the same time.
[0054] Step S12: Turn on the first lamp in the target space. The lighting area of the first lamp corresponds to the initial position.
[0055] Step S13: Determine the user's position in the target space through the target access control device, and control the opening and closing of the lamps in the target space based on the position.
[0056] In one example, the target access control device carried by the user refers to a device with access control functions such as a smart work ID card, a smart access control device, a mobile phone, etc. Then, the user's position in the target space is determined through the access control device. For example, a positioning module can be built into the device to directly obtain the user's location. Another example is that the device and the target space can have a UWB positioning module, and the positioning function of UWB is used to realize the positioning of the user in the target space.
[0057] In this example, after determining the user's initial position, the lamp corresponding to the initial position of the lighting in the target space can be controlled to turn on, so as to provide lighting for the user. In the embodiments of the present application, the lighting area corresponding to each lamp inside the target space can be stored in advance. When there is someone in this area, the corresponding lamp is kept on. When there is no one in the corresponding area, the lamp in the corresponding area is turned off. In this example, the lighting areas corresponding to different lamps can have overlapping parts. Then, it can be determined whether the user's position is in the corresponding area. When the user enters the lighting area of a certain lamp, the corresponding lamp is turned on for lighting. When the user leaves the corresponding area, the corresponding lamp can be turned off to save power.
[0058] In this example, a method for controlling lighting is provided. When a user enters a target space, the detection device on the door can confirm the user's initial position when entering and the target access control device carried by the user, and turn on the lighting fixture corresponding to the initial position for illumination. After that, based on the user's target access control device, the user's position in the target space is determined, and the opening and closing of the lighting fixtures are controlled based on the user's position. In this way, after the user enters the target space, the lighting at the user's position can be automatically turned on without any operation by the user, and when the user is in the target space, the opening and closing of each lighting fixture are automatically controlled along with the user's position, solving the problems of poor convenience and energy-saving effect in traditional lighting control.
[0059] In an example of this embodiment, determining the user's position in the target space through the target access control device includes: controlling the target access control device to emit a sound signal with a target frequency, and determining the user's position in the target space according to the sound signal, where the target frequency is greater than the highest frequency that the human ear can hear.
[0060] In this example, the access control device can be controlled to continuously send out a sound signal with a target frequency higher than the highest frequency that the human ear can hear, such as a sound signal greater than 20 kHz, to determine the user's position. In this example, the user's mobile device can be controlled to emit an ultrasonic signal to determine the user's own position in the target space, and since the frequency of the sound signal is higher than the range that the human ear can hear, this method will not cause noise interference to the user and other people in other spaces.
[0061] In an example of this embodiment, one or more receiving devices are preset at different positions in the target space for receiving the sound signal with the target frequency and determining the position according to the sound signal, including: determining the number of receiving devices that receive the sound signal; in the case where the number is multiple, respectively obtaining the sending time of the sound signal and the receiving time of each receiving device, and determining the distance between the user and the receiving device according to the sending time, receiving time, and sound propagation speed, and determining the user's position according to the distance.
[0062] In an example of this embodiment, the receiving devices are installed one-to-one on the lighting fixtures in the target space, or the receiving devices are installed one-to-one on the inner side of the door entering the target space.
[0063] In this example, multiple receiving devices for receiving sound signals can be set at different positions in the target space. The receiving device can be provided with a microphone and a supporting circuit to sample the corresponding sound signal at a fixed frequency, such as 60 Hz. The receiving device can be turned on and sampled only after the user enters the target space. In one example, it can be as Figure 2As shown, a receiving device is provided on each lamp in the target space, and the sound signal emitted by the user's device is obtained through the receiving device on the lamp. In another example, the receiving device can be provided on the inner side of each door in the target space. Moreover, the position of each receiving device can be stored in advance so as to determine the position of the user in the target space based on the position of the receiving device subsequently.
[0064] In the embodiment of the present application, the position of the user can be determined according to the number of receiving devices that receive the sound signal.
[0065] In one example, when the number of receiving devices that receive the sound signal is multiple, such as two or more, the transmission time of the sound signal can be obtained from the user device side, and the reception time of the sound signal can be obtained from the receiving device. The relative distance between the two is determined by the product of the time difference and a factor. According to the distances between the user device and multiple receiving devices, the orientation of the user in the target space can be determined based on the pre-stored positions of the receiving devices. In this example, when three or more receiving devices receive the sound signal, three-point positioning can be achieved based on the positions and distances of these three devices, and the unique position of the user in the space can be obtained. When two receiving devices receive the sound signal, for example, as Figure 3 shown in the figure, a receiving device is provided on the door. The two receiving devices can be respectively provided at the positions of the door pointed by the dotted lines in the figure. Based on the positions of the two receiving devices and the distances between the user and these two receiving devices, it is possible to find the unique position of the user in the space, that is, the position of the black dot. However, it is also possible to find two positions, such as Figure 4 shown in the figure. In this case, the position relatively close to the position of the user in the previous sampling period can be used as the position of the user.
[0066] In one example of this embodiment, determining the position according to the sound signal includes: in the case of a single quantity, obtaining the transmission time of the sound signal and the reception time of the first receiving device, and determining the first distance between the user and the first receiving device according to the transmission time, the reception time, and the sound propagation speed. Based on the first position of the user in the previous sampling period and the first distance, the second position of the user in the current sampling period is determined.
[0067] In one example of this embodiment, determining the second position of the user in the current sampling period based on the first position of the user in the previous sampling period and the first distance includes: obtaining the third position of the first receiving device, and constructing a first circular area with the third position as the center and the distance between the user and the first receiving device in the current sampling period as the radius; taking the position closest to the first position in the first circular area as the second position.
[0068] In this example, the first distance between the user and the first receiving device can be determined based on the transmission time of the sound signal and the receiving time of the first receiving device, and according to the transmission time, the receiving time, and the sound propagation speed. However, when only one receiving device receives the sound signal, the specific position information of the user cannot be obtained solely based on the distance. At this time, a circular area can be constructed with the third position as the center and the distance as the radius, such as Figure 5 the dotted circular area shown, and the position of the circle closest to the position of the user in the previous sampling period ( Figure 5 the small white circle in) ( Figure 5 the black circle in) is used as the position of the user in the current period. In this example, the position of the user in each sampling period is cached until the user leaves the target space.
[0069] In this example, a method for determining the user's position is provided, which can determine the user's position in the space in different ways based on the number of receiving devices that receive the user's sound, so as to control the opening and closing of the lamps and handle various possible situations.
[0070] In an example of this embodiment, a UWB positioning module is provided on the target access control device, and at least two UWB positioning devices are provided in the target space. Determining the position of the user in the target space through the target access control device includes: controlling the UWB positioning module to broadcast a UWB signal; determining the time difference between the receiving time and the transmitting time of the UWB signal received by at least two UWB positioning devices; determining the distance between the UWB positioning module and the UWB positioning device, where the distance is half of the product of the time difference and the speed of light; and determining the position of the user in the target space based on the distances between the UWB positioning module and at least two UWB positioning devices.
[0071] In this embodiment, the installation positions of the UWB positioning devices can be similar to those of the receiving devices, and they can be installed one by one on the lamps in the target space or on the inner side of the door entering the target space. The access control device carried by the user can also have a UWB positioning module, which serves as a UWB positioning tag to perform positioning with the UWB positioning devices in the space. In this example, the transmission time of the UWB signal broadcast by the UWB positioning module and the receiving time when the UWB positioning device receives the signal can be determined respectively to determine the time difference. Then, based on TOF (Time of Flight), the distances between the target access control device and the two UWB positioning devices are determined, where the distance is half of the product of the time difference and the speed of light, so as to determine the position of the target access control device in the space, so as to control the opening or closing of the lamps based on this position subsequently.
[0072] The embodiment of the present application provides a lighting control device 100, such as Figure 6As shown in the figure, a detection device is provided on the door entering the target space. The detection device includes a device for detecting whether the corresponding door is opened and the target access control device carried by the user who opens the door. The device includes: a determination module 101, configured to, when it is detected that the door is opened, use the position corresponding to the door as the initial position and determine the target access control device carried by the user; an opening module 102, configured to turn on the first lamp in the target space, and the lighting area of the first lamp corresponds to the initial position; a control module 103, configured to determine the position of the user in the target space through the target access control device and control the opening and closing of the lamps in the target space based on the position.
[0073] Optionally, determining the position of the user in the target space through the target access control device includes: controlling the target access control device to emit a sound signal with a target frequency and determining the position of the user in the target space according to the sound signal, where the target frequency is greater than the highest frequency audible to the human ear.
[0074] Optionally, a plurality of receiving devices are preset at different positions in the target space for receiving the sound signal with the target frequency. Determining the position of the user in the target space according to the sound signal includes: determining the number of receiving devices that receive the sound signal; when the number is multiple, respectively obtaining the sending time of the sound signal and the receiving time of each receiving device, and determining the distance between the user and the receiving device according to the sending time, the receiving time, and the sound propagation speed, and determining the position according to the distance.
[0075] Optionally, determining the position of the user in the target space according to the sound signal includes: when the number is single, obtaining the sending time of the sound signal and the receiving time of the first receiving device, and determining the first distance between the user and the first receiving device according to the sending time, the receiving time, and the sound propagation speed, and determining the second position of the user in the current sampling period based on the first position of the user in the previous sampling period and the first distance.
[0076] Optionally, determining the second position of the user in the current sampling period based on the first position of the user in the previous sampling period and the first distance includes: obtaining the third position of the first receiving device, and constructing a first circular area with the third position as the center and the distance between the user and the first receiving device in the current sampling period as the radius; using the position closest to the first position in the first circular area as the second position.
[0077] Optionally, a UWB positioning module is provided on the target access control device, and at least two UWB positioning devices are provided in the target space. Determining the position of the user in the target space by the target access control device includes: controlling the UWB positioning module to broadcast UWB signals; determining the time difference between the reception time and the transmission time of the UWB signals received by at least two UWB positioning devices; determining the distance between the UWB positioning module and the UWB positioning devices, where the distance is half of the product of the time difference and the speed of light; and determining the position of the user in the target space based on the distances between the UWB positioning module and at least two UWB positioning devices.
[0078] Optionally, the receiving device and the UWB positioning device are respectively installed on the lamps in the target space in a one-to-one correspondence, or the receiving device and the UWB positioning device are respectively installed on the inner side of the door entering the target space in a one-to-one correspondence.
[0079] The embodiments of the present application also provide an electronic device, including a processor and a memory. The memory stores computer instructions, and when the computer instructions are executed by the processor, any one of the above-mentioned embodiments of the lighting control method is implemented, and the same technical effects can be achieved. To avoid repetition, it will not be elaborated here.
[0080] The embodiments of the present application also provide a storage medium, on which computer instructions are stored. When the computer instructions are executed by the processor, any one of the above-mentioned embodiments of the lighting control method is implemented, and the same technical effects can be achieved. To avoid repetition, it will not be elaborated here.
[0081] Each embodiment in this disclosure is described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0082] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain implementations, multitasking and parallel processing are also possible or may be advantageous.
[0083] The embodiments of the present disclosure can be a system, a method, and / or a computer program product. The computer program product can include a computer-readable storage medium having thereon computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure.
[0084] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example—but not limited to—an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punched card or raised structures in grooves having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not construed to be an instantaneous signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0085] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.
[0086] The computer program instructions for performing the operations of the embodiments of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine - related instructions, microcode, firmware instructions, state - setting data, or source code or object code written in any combination of one or more programming languages, including object - oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer - readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand - alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer - readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field - programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer - readable program instructions to implement various aspects of the embodiments of the present disclosure.
[0087] Aspects of the embodiments of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer - readable program instructions.
[0088] These computer - readable program instructions can be provided to a processor of a general - purpose computer, a special - purpose computer, or other programmable data - processing apparatus to produce a machine such that the instructions, when executed by the processor of the computer or other programmable data - processing apparatus, create a means for implementing the functions / acts specified in one or more blocks of the flowchart and / or block diagram. These computer - readable program instructions can also be stored in a computer - readable storage medium, which causes a computer, a programmable data - processing apparatus, and / or other devices to operate in a particular manner. Thus, the computer - readable medium storing the instructions comprises a manufacture, which includes instructions for implementing various aspects of the functions / acts specified in one or more blocks of the flowchart and / or block diagram.
[0089] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process such that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0090] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of code, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by special-purpose hardware-based systems that perform the specified functions or acts, or by combinations of special-purpose hardware and computer instructions. As will be apparent to those of ordinary skill in the art, implementations using hardware, software, or a combination of software and hardware are equivalent.
[0091] The embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the market, or to enable other ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for controlling lighting, characterized in that: A detection device is provided on the door leading to the target space, the detection device includes a device for detecting whether the corresponding door is opened, and a target access control device carried by a user who opens the door, and the method includes: When it is detected that the door is opened, the position corresponding to the door is used as the initial position, and the target access control device carried by the user is determined; Turning on a first lamp in the target space, wherein a lighting area of the first lamp corresponds to the initial position; The position of the user in the target space is determined by the target access control device, and the lighting in the target space is controlled to turn on and off based on the position.
2. The method according to claim 1, characterized in that The determining the position of the user in the target space by using the target access control device includes: The target access control device is controlled to emit a sound signal of a target frequency, and the position of the user in the target space is determined according to the sound signal, wherein the target frequency is greater than the highest frequency audible to the human ear.
3. The method according to claim 2, characterized in that A plurality of receiving devices are pre-arranged at different positions in the target space for receiving the sound signal of the target frequency, and determining the position of the user in the target space according to the sound signal includes: determining the number of receiving devices that received the sound signal; When the number is multiple, the sending time of the sound signal and the receiving time of each receiving device are obtained respectively, and the distance between the user and the receiving device is determined based on the sending time, receiving time and sound propagation speed, and the position is determined based on the distance.
4. The method according to claim 3, characterized in that The determining the position of the user in the target space according to the sound signal includes: In the case where the number is a single one, obtaining a sending time of the sound signal and a receiving time of the first receiving device, and determining a first distance between the user and the first receiving device according to the sending time, the receiving time and the sound propagation speed; Based on the first position of the user in the previous sampling period and the first distance, a second position of the user in the current sampling period is determined.
5. The method according to claim 4, characterized in that The determining, based on the first position of the user in the previous sampling period and the first distance, the second position of the user in the current sampling period includes: Acquire a third position of the first receiving device, and construct a first circular area with the third position as the center and the distance between the user and the first receiving device in the current sampling period as the radius; The position of the first circular area closest to the first position is used as the second position.
6. The control method according to claim 1, characterized in that: The target access control device is provided with a UWB positioning module, and at least two UWB positioning devices are provided in the target space. The determining the position of the user in the target space by using the target access control device includes: Controlling the UWB positioning module to broadcast UWB signals; Determine a time difference between a receiving time and a transmitting time of the UWB signal received by the at least two UWB positioning devices; Determine the distance between the UWB positioning module and the UWB positioning device, the distance being half the product of the time difference and the speed of light; And according to the distance between the UWB positioning module and at least two of the UWB positioning devices, the position of the user in the target space is determined.
7. The method according to any one of claims 2 to 6, characterized in that: The receiving device and the UWB positioning device are installed on the lamps in the target space in a one-to-one correspondence, or the receiving device and the UWB positioning device are installed on the inner side of the door leading to the target space in a one-to-one correspondence.
8. A lighting control device, characterized in that: A detection device is provided on the door leading to the target space, and the detection device includes a device for detecting whether the corresponding door is opened and a target access control device carried by the user who opens the door. The device includes: A determination module, configured to, when detecting that the door is opened, use the position corresponding to the door as the initial position and determine the target access control device carried by the user; An opening module, used for opening a first lamp in the target space, wherein a lighting area of the first lamp corresponds to the initial position; A control module is used to determine the position of the user in the target space through the target access control device, and control the turning on and off of the lamps in the target space based on the position.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer instructions, and when the computer instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: Computer instructions are stored thereon, and when the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.