Control method, system, medium and device of gateway type Internet of Things lamps

By dynamically adjusting the brightness of gateway-type IoT lamps, combining radar sensing and object motion vectors, the high energy consumption problem caused by the unified brightness of the lamps in traditional systems is solved, and the energy-saving effect and the immediacy of brightness adjustment are improved.

CN117440581BActive Publication Date: 2024-11-26GUANGDONG AURORA LINGHANG ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311386728.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2024-11-26
Estimated Expiration
2043-10-24

AI Technical Summary

Technical Problem

Traditional gateway-type IoT lamp systems can only implement one policy management, resulting in the unified brightness of large-area lamps, consume more electricity, and have lower energy saving effects.

Method used

The radar senses the lighting request generated by the object, obtains the set of adjacent lamps within the preset range of the target lamp, dynamically adjusts the brightness of the lights of adjacent lamps, and combines the set of motion vectors and relative vectors of the object to adjust the lights in real time. Brightness to avoid uniform brightness turning on.

Benefits of technology

Dynamic adjustment of the brightness of the lamp is realized, unnecessary energy consumption is avoided, energy saving is improved, and the immediacy and accuracy of lighting adjustment is achieved through pre-calculated relative vector sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117440581B_ABST
    Figure CN117440581B_ABST
Patent Text Reader

Abstract

A control method, system, medium and device for a gateway-type Internet of Things lamp. Relating to the field of lamp control technology, the method includes: receiving a lighting request sent by a gateway of a target lamp, obtaining a set of adjacent lamps within a preset range of the target lamp based on the lighting request, and the distance from the target lamp to each adjacent lamp in the set of adjacent lamps; determining the light brightness of each corresponding adjacent lamp according to each distance, and controlling the target lamp and each adjacent lamp in the set of adjacent lamps to turn on with the corresponding light brightness; obtaining the motion vector of the object, and calling a preset relative vector set between the target lamp and each adjacent vector in the set of adjacent lamps, and adjusting the light brightness of the target lamp and each adjacent lamp based on the motion vector and the relative vector set. Implementing the technical solution provided in the present application can avoid turning on lamps with uniform brightness, thereby improving energy-saving effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of lamp control technology, and in particular to a control method, system, medium and device for a gateway-type Internet of Things lamp. Background Art

[0002] Gateway IoT lamps are intelligent lighting devices that connect and interact with other devices and systems through IoT technology. They have the basic lighting functions of lamps, and also integrate components such as sensors, communication modules and control chips, enabling them to sense environmental information, achieve remote control and exchange data with other devices.

[0003] Gateway-based IoT lamps connect lamps to a central gateway device to achieve centralized control and management of lamps. In traditional gateway-based IoT lamp systems, usually only one strategy can be implemented to manage the entire network, which will cause lamps in a large area to turn on at a uniform brightness, consuming more electricity, and resulting in lower energy-saving effects. Summary of the invention

[0004] The present application provides a control method, system, medium and device for a gateway-type IoT lamp, which can prevent the lamps from turning on at a uniform brightness, thereby improving energy-saving effects.

[0005] In a first aspect, the present application provides a control method for a gateway-type IoT lamp, which is applied to a cloud platform, wherein the cloud platform is connected to a plurality of lamps through the IoT, and each of the lamps is provided with a radar and a gateway, and the method comprises:

[0006] receiving a lighting request sent by a gateway of a target lamp, wherein the lighting request is generated when a radar of the target lamp senses an object;

[0007] Acquire a set of adjacent lamps within a preset range of the target lamp, and a distance from the target lamp to each adjacent lamp in the set of adjacent lamps;

[0008] Determine the light brightness of each of the corresponding adjacent lamps according to each of the distances, and control the target lamp and each of the adjacent lamps in the set of adjacent lamps to turn on with the corresponding light brightness;

[0009] The motion vector of the object is obtained, and a relative vector set between the preset target lamp and each adjacent vector in the adjacent lamp set is called, and the light brightness of the target lamp and each adjacent lamp is adjusted based on the motion vector and the relative vector set.

[0010] By adopting the above technical solution, the lighting request generated when the radar of the target lamp senses the object is obtained, and the light brightness of the adjacent lamps is determined according to the set of adjacent lamps and their distances within the preset range of the target lamp, and each lamp is controlled to be turned on with the corresponding light brightness, which can avoid turning on the lamps with uniform brightness and improve the energy saving effect. Then, the motion vector of the object is obtained and the preset relative vector set between the target lamp and the adjacent lamps is called. In combination with the motion vector and the relative vector set, the light brightness of the target lamp and the adjacent lamps is adjusted, so that the light brightness of the lamp can be adjusted by following the movement of the object, further improving the energy saving effect.

[0011] Optionally, before obtaining the motion vector of the object and calling the preset target lamp to the relative vector set between each adjacent vector in the adjacent lamp set, it includes: obtaining the lamp layout diagram of the target site; for any current lamp in the lamp layout diagram, calculating the relative vector between the current lamp and all adjacent lamps within a preset range of the current lamp, obtaining the relative vector set corresponding to all current lamps in the lamp layout diagram, and saving each relative vector set.

[0012] By adopting the above technical solution, the brightness of the lamp can be quickly adjusted according to the object's motion vector and the relative vector set during real-time operation through the saved relative vector set. No more complicated calculations are required, and the pre-calculated relative vector set can be directly used for lighting adjustment, making the lighting adjustment more immediate and real-time.

[0013] Optionally, obtaining the lighting layout map of the target site includes: obtaining a floor plan of the target site; in response to personnel performing a virtual lighting layout operation based on the floor plan of the target site, obtaining the lighting layout map of the target site, wherein all the lighting fixtures in the lighting layout map are in the same network.

[0014] By adopting the above technical solution, convenient and intuitive lighting control settings can be achieved by responding to personnel performing virtual lighting control operations on the target site plan. Personnel can freely adjust the position, direction, brightness and other parameters of the lighting in the virtual environment to meet specific lighting needs.

[0015] Optionally, the calculation of the relative vector between the lamp and all adjacent lamps within the preset range of the lamp includes: establishing a coordinate system according to the lamp layout diagram; obtaining the position coordinates of each lamp in the lamp layout diagram in the coordinate system; obtaining the target position coordinates of any lamp in the lamp layout diagram, and the position coordinates of all adjacent lamps within the preset range of the lamp; calculating the initial relative vector between the target position coordinates and the position coordinates of all adjacent lamps within the preset range of the lamp; and standardizing each of the initial relative vectors to obtain a relative vector.

[0016] By adopting the above technical solution, by establishing a coordinate system, obtaining the position coordinates of each lamp in the lamp layout diagram in the coordinate system, and calculating the initial relative vector between the target position coordinates and the position coordinates of the adjacent lamps, the relative position relationship between the lamps can be accurately described. In this way, the brightness and direction of the light can be adjusted more accurately in the subsequent lighting control, further improving the energy saving effect.

[0017] Optionally, determining the light brightness of each of the adjacent lamps corresponding to each of the distances according to each of the distances, and controlling the target lamp and each of the adjacent lamps in the set of adjacent lamps to turn on with the corresponding light brightness, includes: determining the light brightness of each of the adjacent lamps corresponding to each of the distances according to each of the distances and a preset relationship between the distance and the light brightness, wherein the preset relationship between the distance and the light brightness is that the closer the adjacent lamp is to the target lamp, the greater the light brightness of the corresponding adjacent lamp will be when it is turned on; controlling the target lamp to turn on with the preset light brightness, and simultaneously controlling each of the adjacent lamps to turn on with the corresponding light brightness.

[0018] By adopting the above technical solution, energy consumption can be optimized by dynamically adjusting the light brightness of adjacent lamps. Adjacent lamps that are closer can provide higher light brightness, while adjacent lamps that are farther away can reduce light brightness to reduce energy consumption. By determining light brightness based on distance, fine energy consumption control can be achieved, unnecessary energy waste can be reduced, and energy saving effects can be further improved.

[0019] Optionally, before obtaining the motion vector of the object, the method includes: within a preset time of receiving the lighting request sent by the gateway of the target lamp, determining whether there is a target adjacent lamp that sends a brightness adjustment request in the adjacent lamp set, the brightness adjustment request being generated when the radar of the target adjacent lamp senses the object; and calculating the motion vector of the object from the target lamp to the target adjacent lamp.

[0020] By adopting the above technical solution, by judging the brightness adjustment request and calculating the motion vector, the object can be tracked and located. According to the position of the target adjacent lamp with the brightness adjustment request and the motion vector of the object from the target lamp to the target adjacent lamp, the current position and motion direction of the object can be determined.

[0021] Optionally, adjusting the light brightness of the target lamp and each of the adjacent lamps based on the motion vector and the relative vector set includes: comparing the motion vector with each of the relative vectors in the relative vector set; determining a target relative vector consistent with the motion vector in the relative vector set; determining the target adjacent lamp corresponding to the target relative vector, adjusting the light brightness of the target lamp to a first light brightness, and adjusting the light brightness of the target adjacent lamp to a second light brightness, wherein the second light brightness is greater than the first light brightness; taking the target adjacent lamp as the target lamp, executing the steps of obtaining a set of adjacent lamps within a preset range of the target lamp, and a distance from the target lamp to each adjacent lamp in the set of adjacent lamps, determining the corresponding light brightness of each of the adjacent lamps according to each distance, and controlling each of the adjacent lamps to adjust to the corresponding light brightness.

[0022] By adopting the above technical scheme, according to the motion vector of the object, a target relative vector consistent with the motion vector is determined in the relative vector set, and the light brightness of the target lamp corresponding to the target relative vector is adjusted to be smaller than the light brightness of the target adjacent lamp, so that the light brightness of the lamp in front of the object is brighter, and the light brightness of the lamp behind the object is darker, thereby further improving the energy-saving effect.

[0023] In a second aspect of the present application, a control system for a gateway-type IoT lamp is provided, the system comprising:

[0024] A lighting request acquisition module, used to receive a lighting request sent by a gateway of a target lamp, wherein the lighting request is generated when a radar of the target lamp senses an object;

[0025] An adjacent lamp acquisition module, used for acquiring a set of adjacent lamps within a preset range of the target lamp, and a distance from the target lamp to each adjacent lamp in the set of adjacent lamps based on the lighting request;

[0026] A lamp turning on module, used to determine the light brightness of each of the corresponding adjacent lamps according to each of the distances, and control the target lamp and each of the adjacent lamps in the adjacent lamp set to turn on with the corresponding light brightness;

[0027] The light brightness adjustment module is used to obtain the motion vector of the object and call a preset relative vector set between the target lamp and each adjacent vector in the adjacent lamp set, and adjust the light brightness of the target lamp and each adjacent lamp based on the motion vector and the relative vector set.

[0028] In a third aspect of the present application, a computer storage medium is provided, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above method steps.

[0029] In a fourth aspect of the present application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0030] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0031] The present application obtains the lighting request generated when the radar of the target lamp senses an object, and determines the light brightness of the adjacent lamps according to the set of adjacent lamps and their distances within a preset range of the target lamp, and controls each lamp to turn on with the corresponding light brightness, which can avoid turning on the lamps with a uniform brightness and improve the energy-saving effect. The motion vector of the object is then obtained and the preset relative vector set between the target lamp and the adjacent lamps is called. The light brightness of the target lamp and the adjacent lamps is adjusted in combination with the motion vector and the relative vector set, so that the light brightness of the lamp can be adjusted by following the movement of the object, further improving the energy-saving effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a schematic diagram of a control architecture of a gateway-type IoT lamp provided in an embodiment of the present application;

[0033] Figure 2 This is a schematic diagram of lamp control at a target site provided by an embodiment of the present application;

[0034] Figure 3 It is a flow chart of a control method of a gateway-type IoT lamp provided in an embodiment of the present application;

[0035] Figure 4 It is a schematic diagram of a scene in which a lamp is turned on with corresponding light brightness provided by an embodiment of the present application;

[0036] Figure 5 is a scene schematic diagram of a target lamp and adjacent lamps provided in an embodiment of the present application;

[0037] Figure 6is a schematic diagram of a scene of lamp brightness adjustment provided in an embodiment of the present application;

[0038] Figure 7 This is a module schematic diagram of a control system for a gateway-type IoT lamp provided in an embodiment of the present application;

[0039] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0040] Explanation of the accompanying drawings: 1. Lighting request acquisition module; 2. Adjacent lamp acquisition module; 3. Lamp activation module; 4. Light brightness adjustment module; 800. Electronic device; 801. Processor; 802. Communication bus; 803. User interface; 804. Network interface; 805. Memory. DETAILED DESCRIPTION

[0041] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0042] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0043] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0044] Figure 1 It is a schematic diagram of a control architecture of a gateway-type IoT lamp in an embodiment of the present application.

[0045] See also Figure 1The system architecture can be implemented as a control method system for gateway-type IoT lamps. The system can be applied to a cloud platform. For example, the system can include: a cloud platform server, multiple lamps, wherein the platform server is connected to the gateway of each lamp through the IoT for wireless communication. The cloud platform, as a central control node, is responsible for data exchange and command transmission with each lamp. Thus, the cloud platform can control each lamp.

[0046] In the embodiment of the present application, each lamp is equipped with a radar and a gateway device. The radar is used to sense the movement of objects in the target site, and the gateway is an intermediate device connecting the lamp and the cloud platform, responsible for data transmission and control management. When an object enters the radar sensing range, the gateway of the lamp passing through sends a lighting request to the cloud platform for further processing and control.

[0047] The platform server can be a backend server that provides backend services for each lamp. The platform server manages multiple lamps, which can be deployed in large parking lots, shopping malls, office buildings, etc. The platform server can be a single server, a server cluster consisting of multiple servers, or a cloud computing server center.

[0048] For ease of understanding, the application scenarios of the embodiments of the present application are described below by way of example. The implementation scenarios of the present application include but are not limited to some indoor lighting such as office buildings, hospitals, and learning, public area lighting such as corridors, stairwells, and halls, road lighting such as floor lamps on various streets in the city, and outdoor lighting such as parking lots, squares, and parks.

[0049] See also Figure 2 , is a schematic diagram of lighting control at a target site provided in an embodiment of the present application.

[0050] First, determine the target site where the lamps need to be deployed, such as a parking lot. Professionals can obtain the floor plan of the target area on the cloud platform, and then virtually deploy the lamps on the floor plan of the target area by dragging according to the actual needs of the target site and the judgment of professionals. For example, one Type A lamp is deployed for each parking space, one Type B lamp is deployed for every three parking spaces, etc. The local lamps can be adjusted according to the actual situation. The cloud platform responds to the virtual deployment operation performed by the personnel based on the floor plan of the target site, and after all the lamps are deployed, a lamp deployment map of the target site is obtained. Among them, all lamps in the embodiment of the present application are deployed in a network, so that the cloud platform can control the lamps in the network. It should be noted that professionals can also set parameters such as the opening and closing, brightness and color of each lamp in the lamp deployment map, so as to obtain the control strategy of all lamps in the network.

[0051] The above describes the system architecture of the present application. Based on the above embodiments, please refer to Figure 3 , a flow chart of a control method for a gateway-type IoT lamp is proposed. The method can be implemented by a computer program, a single-chip microcomputer, or run on a control system of a gateway-type IoT lamp. The computer program can be integrated in the target application of the above-mentioned server and each advertising machine, or run as an independent tool application. Specifically, the method includes steps 10 to 40, and the above steps are as follows:

[0052] Step 10: Receive the lighting request sent by the gateway of the target lamp.

[0053] Specifically, when an object, such as a person or a car, enters the target site and enters the preset range of any lamp in the target site, the lamp is the target lamp. When the radar of the target lamp senses that an object has entered the preset range of the target lamp, a lighting request is sent to the cloud platform through the gateway, and the lighting request contains the information of the target lamp.

[0054] Step 20: Based on the lighting request, a set of adjacent lamps within a preset range of the target lamp is obtained, as well as a distance from the target lamp to each adjacent lamp in the set of adjacent lamps.

[0055] Specifically, the lighting request includes the label and coordinate position of the target lamp, and all adjacent lamps within a preset range of the target lamp are obtained. The preset range can be 10 meters, that is, all lamps within a range of 10 meters with the target lamp as the center are adjacent lamps, so that each adjacent lamp constitutes an adjacent lamp set. The coordinate position of each adjacent lamp in the adjacent lamp set is obtained, and the distance from the target lamp to each adjacent lamp in the adjacent lamp set is calculated according to the position coordinates of the target lamp and the position coordinates of each adjacent lamp. The specific calculation method can be the Euclidean distance or the Manhattan distance calculation method.

[0056] Step 30: Determine the light brightness of each corresponding adjacent lamp according to each distance, and control the target lamp and each adjacent lamp in the adjacent lamp set to turn on with the corresponding light brightness.

[0057] Specifically, the platform server pre-stores various distances and preset distance and light brightness relationships. The preset distance and light brightness relationship can be a custom function or table that maps the distance to the corresponding light brightness value. The distance and light brightness relationship can be such that the closer the adjacent lamp is to the target lamp, the brighter the corresponding adjacent lamp light will be. The distance between the target lamp and each adjacent lamp is matched to the preset distance and light brightness relationship to obtain the corresponding light brightness of each adjacent lamp. The target lamp is controlled to turn on with the preset light brightness, and at the same time, each adjacent lamp is controlled to turn on with the corresponding light brightness. The preset light brightness of the target lamp must be greater than the corresponding light brightness of each adjacent lamp.

[0058] See also Figure 4 , is a schematic diagram of a scene in which a lamp is turned on with corresponding light brightness according to an embodiment of the present application; exemplarily, in combination with Figure 4 As shown, lamp A is the target lamp, and there are 8 adjacent lamps within the preset range of the target lamp A, namely, four adjacent lamps B at the same distance from the target lamp and four adjacent lamps C at the same distance from the target lamp. The distance from the adjacent lamp B to the target lamp A is taken as the first distance, and the distance from the adjacent lamp B to the target lamp C is taken as the second distance, and the first distance is smaller than the second distance. Assuming that the light brightness of the target lamp A is 10, since the four adjacent lamps B are at the same distance from the target lamp, the light brightness corresponding to the four adjacent lamps B is also the same. Matching the first distance to the preset distance and light brightness relationship, the light brightness of the adjacent lamp B is 8. Similarly, since the four adjacent lamps C are at the same distance from the target lamp, the light brightness corresponding to the four adjacent lamps C is also the same. Matching the second distance to the preset distance and light brightness relationship, the light brightness of the adjacent lamp C is 6. Since the first distance is less than the second distance, the light brightness of the adjacent lamp B is greater than that of the adjacent lamp C. According to the distance from the target lamp from near to far, the light brightness of the adjacent lamps decreases step by step, which can present a light ripple effect. At the same time, it also avoids all the lamps around the target lamp from being turned on with a uniform brightness, thereby achieving the energy-saving effect of the lamps.

[0059] Based on the above embodiment, as an optional embodiment, before step 40, a relative vector calculation process of each lamp may be included, and the specific steps of the process are as follows:

[0060] Step 301: Obtain a lighting layout map of a target site;

[0061] Step 302: For any current lamp in the lamp control diagram, calculate the relative vector between the current lamp and all adjacent lamps within a preset range of the current lamp, obtain a relative vector set corresponding to all current lamps in the lamp control diagram, and save each relative vector set.

[0062] Specifically, the acquisition personnel arrange the lighting control diagram of the target site in advance on the cloud platform. There are multiple lamps in the lighting control diagram. For any current lamp in the lighting control diagram, first determine all adjacent lamps within the preset range of the lamp, calculate the relative vector between the current lamp and all adjacent lamps, and then obtain the relative vector set between the current lamp and all adjacent lamps. The relative vector is a vector representation from the current lamp to the adjacent lamp. The relative vector can be calculated using the position of the target lamp and the position of the adjacent lamp. According to the above method, the relative vector set corresponding to all current lamps in the lighting control diagram can be calculated, and the relative vector set corresponding to each lamp can be saved for subsequent calls.

[0063] See also Figure 5 , is a scene schematic diagram of a target lamp and adjacent lamps provided in an embodiment of the present application.

[0064] For example, in combination Figure 5 As shown in the figure, assuming that lamp A is any current lamp in the lamp layout diagram, lamps B, C, D, E, F, G, H and I are all adjacent lamps of lamp A, then the relative vector from lamp A to all adjacent lamps can be calculated, which can be expressed by a vector. For example, the relative vector from lamp A to lamp B is: The relative vector from luminaire A to luminaire I is The vector can represent the distance and angle between the luminaire and the adjacent luminaire.

[0065] Based on the above embodiment, as an optional embodiment, the step of calculating the relative vectors between the lamp and all adjacent lamps within the preset range of the lamp may further include the following steps:

[0066] Step 3021: Establish a coordinate system according to the lighting fixture layout diagram;

[0067] Step 3022: Obtain the position coordinates of each lamp in the lamp layout diagram in the coordinate system;

[0068] Specifically, a coordinate system is established according to the lighting control diagram. The coordinate system can be a Cartesian coordinate system (rectangular coordinate system), a polar coordinate system, a geographic coordinate system, etc. The appropriate coordinate system type can be selected according to the characteristics of the lighting control diagram. After selecting the coordinate system type, it is necessary to determine the definition of the coordinate system. For example, determine the origin, the direction and unit of the coordinate axis. The origin is the reference point in the coordinate system. A lamp or other fixed position with special significance can be selected as the origin. The direction and unit of the coordinate axis can be selected according to the actual situation. For example, the x-axis can represent the horizontal direction, and the y-axis can represent the vertical direction. The unit can be meters, pixels, etc. For each lamp, determine the coordinate value of its position in the coordinate system. This can be an offset relative to the origin of the coordinate system, or it can be the absolute coordinate value of the lamp in the coordinate system. The position of each lamp in the lighting control diagram is converted into the corresponding coordinate value in the coordinate system, so that the position coordinates of each lamp in the lighting control diagram in the coordinate system can be obtained.

[0069] Step 3023: Obtain the target position coordinates of any lamp in the lamp layout map, and the position coordinates of all adjacent lamps within the preset range of the lamp;

[0070] Step 3024: Calculate the initial relative vector between the target position coordinates and the position coordinates of all adjacent lamps within the preset range of the lamps;

[0071] Step 3025: Standardize each initial relative vector to obtain a relative vector.

[0072] Specifically, the cloud platform stores the position coordinates of each lamp in the lamp layout diagram. Obtain the target position coordinates of any lamp in the lamp layout diagram, determine all adjacent lamps within the preset range of the lamp, and obtain the position coordinates of all adjacent lamps. Calculate the initial relative vector between the target position coordinates and the position coordinates of all adjacent lamps within the preset range of the lamp. The initial relative vector can be a vector representation pointing from the target position to the position of the adjacent lamp. Standardize each initial relative vector so that each initial relative vector has a unified length unit and angle, etc., to obtain a standardized relative vector.

[0073] Step 40: Obtain the motion vector of the object, and call a preset relative vector set between adjacent vectors in the target lamp and the adjacent lamp set, and adjust the light brightness of the target lamp and each adjacent lamp based on the motion vector and the relative vector set.

[0074] See also Figure 6 , is a schematic diagram of a scene for adjusting the brightness of a lamp provided in an embodiment of the present application.

[0075] Specifically, within the preset time of receiving the lighting request sent by the gateway of the target lamp, it is determined whether there is a target adjacent lamp in the adjacent lamp set that sends a brightness adjustment request. The brightness adjustment request is generated when the radar of the target adjacent lamp senses the object. If there is a target adjacent lamp that sends a brightness adjustment request, it means that the object is moving from the target lamp to the target adjacent lamp. Calculate the motion vector of the object from the target lamp to the target adjacent lamp. The motion vector is the relative vector between the target lamp and the target adjacent lamp. The calculation method can refer to the above embodiment. Compare the motion vector of the object with each relative vector in the relative vector set, and determine the target relative vector consistent with the motion vector in the relative vector set. The starting point of the relative vector is the target lamp, and the end point is the target adjacent lamp. Determine the target lamp and the target adjacent lamp corresponding to the target relative vector, adjust the light brightness of the target lamp to the first light brightness, and adjust the light brightness of the target adjacent lamp to the second light brightness, and the second light brightness is greater than the first light brightness. In this way, the brightness of the lamps in front of the object's motion trajectory can be brighter than that of the lamps behind it, achieving a chasing light effect while further improving the energy-saving effect.

[0076] Furthermore, when there is a target adjacent lamp that sends a brightness adjustment request, it means that the object has entered the radar preset range of the target adjacent lamp. At this time, the target adjacent lamp is taken as the target lamp, and the steps of obtaining the set of adjacent lamps within the preset range of the target lamp and the distance from the target lamp to each adjacent lamp in the adjacent lamp set are performed, and the light brightness of each corresponding adjacent lamp is determined according to each distance. Thus, the brightness of the target adjacent lamp is adjusted to the second light brightness, which can be the above-mentioned preset brightness, and the light brightness adjustment of the adjacent lamps of the target adjacent lamp can also be achieved. According to the movement of the object, the light brightness of each lamp can be changed by following the movement of the object, so as to avoid the lamps from being turned on with a uniform brightness, thereby improving the energy saving effect.

[0077] For example, in combination Figure 6 , when the radar preset range of target lamp A senses the object, a request for lighting is issued. At this time, the light brightness of target lamp A is 10, while the light brightness of target adjacent lamp B is 8. When the object moves toward the target adjacent lamp, the radar preset range of target adjacent lamp B senses the object and a request for brightness adjustment is issued. At this time, target adjacent lamp B is taken as the target lamp, and the light brightness of target adjacent lamp B is adjusted to 10, and the light brightness of target lamp A is adjusted to 8. The light brightness of other lamps can be seen in the digital display below each lamp in the figure. The light brightness in brackets is the light brightness when the target lamp is lamp A, and the light brightness outside the brackets is the light brightness when the target lamp is lamp B.

[0078] See also Figure 7, is a module diagram of a control system of a gateway-type IoT lamp provided in an embodiment of the present application. The interactive system of the smart interactive tablet may include: a lighting request acquisition module 1, an adjacent lamp acquisition module 2, a lamp opening module 3, and a light brightness adjustment module 4, wherein:

[0079] A lighting request acquisition module 1, used to receive a lighting request sent by a gateway of a target lamp, wherein the lighting request is generated when a radar of the target lamp senses an object;

[0080] An adjacent lamp acquisition module 2 is used to acquire a set of adjacent lamps within a preset range of the target lamp based on the lighting request, and a distance from the target lamp to each adjacent lamp in the set of adjacent lamps;

[0081] A lamp turning on module 3, used to determine the light brightness of each of the corresponding adjacent lamps according to each of the distances, and control the target lamp and each of the adjacent lamps in the adjacent lamp set to turn on with the corresponding light brightness;

[0082] The light brightness adjustment module 4 is used to obtain the motion vector of the object and call the preset relative vector set between the target lamp and each adjacent vector in the adjacent lamp set, and adjust the light brightness of the target lamp and each adjacent lamp based on the motion vector and the relative vector set.

[0083] It should be noted that: when the system provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0084] The present application also provides a computer storage medium that can store multiple instructions, which are suitable for being loaded and executed by a processor as described above. Figure 1 to Figure 6 The control method of a smart gateway type IoT lamp in the embodiment shown in the figure can be found in the specific execution process. Figure 1 to Figure 6 The specific description of the illustrated embodiment will not be repeated here.

[0085] Please refer to Figure 8 The application also discloses an electronic device. Figure 8 The electronic device 800 may include: at least one processor 801 , at least one network interface 804 , a user interface 803 , a memory 705 , and at least one communication bus 802 .

[0086] The communication bus 802 is used to realize the connection and communication between these components.

[0087] The user interface 803 may include a display screen (Display) and a camera (Camera), and the optional user interface 803 may also include a standard wired interface and a wireless interface.

[0088] The network interface 804 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0089] Among them, the processor 801 may include one or more processing cores. The processor 801 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 805, and calling data stored in the memory 805. Optionally, the processor 801 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 801 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 801, and it can be implemented separately through a chip.

[0090] Among them, the memory 805 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 805 includes a non-transitory computer-readable storage medium. The memory 805 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 805 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 at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 805 may optionally also be at least one storage device located away from the aforementioned processor 801. Refer to Figure 8 , the memory 805 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a control method for a gateway-type Internet of Things lamp.

[0091] exist Figure 8 In the electronic device 800 shown, the user interface 803 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 801 can be used to call the application program of a control method of a gateway-type Internet of Things lamp stored in the memory 805. When executed by one or more processors 801, the electronic device 800 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0092] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0093] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0095] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0096] If the integrated unit 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 memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0097] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0098] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A control method for a gateway-type IoT lamp, characterized in that: Applied to a cloud platform, the cloud platform is connected to a plurality of lamps through the Internet of Things, each of the lamps is provided with a radar and a gateway, and the method comprises: receiving a lighting request sent by a gateway of a target lamp, wherein the lighting request is generated when a radar of the target lamp senses an object; Acquire a set of adjacent lamps within a preset range of the target lamp based on the lighting request, and a distance from the target lamp to each adjacent lamp in the set of adjacent lamps; Determine the light brightness of each of the corresponding adjacent lamps according to each of the distances, and control the target lamp and each of the adjacent lamps in the set of adjacent lamps to turn on with the corresponding light brightness; Within a preset time of receiving a lighting request sent by the gateway of the target lamp, determining whether there is a target adjacent lamp in the adjacent lamp set that sends a brightness adjustment request, the brightness adjustment request being generated when a radar of the target adjacent lamp senses an object; Calculating a motion vector of an object from a target luminaire to an adjacent luminaire of the target; Obtain the lighting layout map of the target site; For any current lamp in the lamp layout diagram, calculate the relative vector between the current lamp and all adjacent lamps within a preset range of the current lamp, obtain a relative vector set corresponding to all current lamps in the lamp layout diagram, and save each relative vector set; Acquire a motion vector of the object, and call a preset relative vector set between the target lamp and each adjacent vector in the adjacent lamp set, and compare the motion vector with each relative vector in the relative vector set; Determining a target relative vector consistent with the motion vector in the relative vector set; Determine the target adjacent lamp corresponding to the target relative vector, adjust the light brightness of the target lamp to a first light brightness, and adjust the light brightness of the target adjacent lamp to a second light brightness, wherein the second light brightness is greater than the first light brightness; Taking the target adjacent lamp as the target lamp, the steps of obtaining the set of adjacent lamps within a preset range of the target lamp, and the distance from the target lamp to each adjacent lamp in the set of adjacent lamps are executed, and the steps of determining the corresponding light brightness of each adjacent lamp according to each distance are performed, and each adjacent lamp is controlled to adjust to the corresponding light brightness.

2. The control method of the gateway type Internet of Things lamp according to claim 1, characterized in that: The step of obtaining a lighting control diagram of a target site includes: Obtain a floor plan of the target site; In response to the personnel performing a virtual lamp layout control operation based on the plan of the target site, a lamp layout control diagram of the target site is obtained, and each of the lamps in the lamp layout control diagram is in the same network.

3. The control method of the gateway type Internet of Things lamp according to claim 1, characterized in that: The calculating the relative vector between the lamp and all adjacent lamps within a preset range of the lamp includes: Establishing a coordinate system according to the lighting fixture layout diagram; Obtain the position coordinates of each lamp in the lamp layout diagram in the coordinate system; Obtaining the target position coordinates of any lamp in the lamp layout map, and the position coordinates of all adjacent lamps within a preset range of the lamp; Calculate the initial relative vector between the target position coordinates and the position coordinates of all adjacent lamps within a preset range of the lamps; Each of the initial relative vectors is normalized to obtain a relative vector.

4. The control method of the gateway type Internet of Things lamp according to claim 1, characterized in that: The step of determining the light brightness of each of the corresponding adjacent lamps according to each of the distances, and controlling the target lamp and each of the adjacent lamps in the set of adjacent lamps to turn on with the corresponding light brightness includes: According to each of the distances and the preset relationship between the distance and the light brightness, the light brightness of each of the adjacent lamps corresponding to each of the distances is determined, wherein the preset relationship between the distance and the light brightness is that the closer the adjacent lamp is to the target lamp, the greater the light brightness of the corresponding adjacent lamp is; The target lamp is controlled to be turned on at a preset light brightness, and each of the adjacent lamps is controlled to be turned on at a corresponding light brightness.

5. A control system for a gateway-type IoT lamp, characterized in that: The system is applied to a cloud platform, the cloud platform is connected to multiple lamps through the Internet of Things, each lamp is provided with a radar and a gateway, and the system includes: A lighting request acquisition module (1) is used to receive a lighting request sent by a gateway of a target lamp, wherein the lighting request is generated when a radar of the target lamp senses an object; An adjacent lamp acquisition module (2) is used to acquire, based on the lighting request, a set of adjacent lamps within a preset range of the target lamp, and a distance from the target lamp to each adjacent lamp in the set of adjacent lamps; A lamp turning on module (3), used to determine the light brightness of each of the corresponding adjacent lamps according to each of the distances, and control the target lamp and each of the adjacent lamps in the adjacent lamp set to turn on at the corresponding light brightness; The light brightness adjustment module (4) is used to determine whether there is a target adjacent lamp that sends a brightness adjustment request in the adjacent lamp set within a preset time of receiving a lighting request sent by the gateway of the target lamp, wherein the brightness adjustment request is generated when the radar of the target adjacent lamp senses an object; calculate the motion vector of the object from the target lamp to the target adjacent lamp; obtain a lamp layout map of the target site; for any current lamp in the lamp layout map, calculate the relative vector between the current lamp and all adjacent lamps within a preset range of the current lamp, obtain a relative vector set corresponding to all current lamps in the lamp layout map, and save each relative vector set; obtain the motion vector of the object, and call the preset target lamp to each adjacent vector in the adjacent lamp set. a relative vector set between the target lamps, compare the motion vector with each of the relative vectors in the relative vector set; determine a target relative vector consistent with the motion vector in the relative vector set; determine the target adjacent lamp corresponding to the target relative vector, adjust the light brightness of the target lamp to a first light brightness, and adjust the light brightness of the target adjacent lamp to a second light brightness, wherein the second light brightness is greater than the first light brightness; take the target adjacent lamp as the target lamp, execute the steps of obtaining a set of adjacent lamps within a preset range of the target lamp, and the distance from the target lamp to each of the adjacent lamps in the set of adjacent lamps, determine the light brightness of each of the corresponding adjacent lamps according to each of the distances, and control each of the adjacent lamps to be adjusted to the corresponding light brightness.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 4.

7. An electronic device, characterized in that: It includes a processor, a memory and a transceiver, the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 4.