Lamp control method and system, lamp controller and storage medium

By sensing the distance between lamps, the system automatically selects master and slave lamps and performs lighting control, solving the complexity and dependency problems of existing intelligent lamp control systems and achieving a convenient user experience and low-maintenance intelligent lamp system.

CN120769404APending Publication Date: 2025-10-10深圳市祺峰科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510902819.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-10

AI Technical Summary

Technical Problem

Existing smart lighting control systems have complex configurations, high maintenance costs, and strong dependencies, which affect user experience and popularity.

Method used

The distance information of each selected lamp to the target object is obtained, the master lamp and the slave lamp are automatically selected, and lighting control is performed based on the distance information, reducing dependence on external networks and gateways and realizing distributed collaborative control.

Benefits of technology

It lowers the user threshold, reduces maintenance costs, ensures the continuity of user experience, and reduces the risk of functional failure caused by network failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120769404A_ABST
    Figure CN120769404A_ABST
Patent Text Reader

Abstract

The invention discloses a lamp control method and system, a lamp controller and a storage medium, and the method comprises the steps: enabling each to-be-selected lamp to obtain the distance information between each to-be-selected lamp and a target object, and transmitting the distance information to the to-be-selected lamps in a surrounding preset range, so as to enable each to-be-selected lamp to obtain the distance information between all to-be-selected lamps and the target object; each to-be-selected lamp selects a master lamp and a preset number of slave lamps based on the distance information between all the to-be-selected lamps and the target object; and performing illumination control on the master lamp according to the master lamp illumination strategy, and performing illumination control on the slave lamp according to the slave lamp illumination strategy. According to the embodiment of the invention, distance calculation, master / slave lamp selection and strategy execution can be completed through independent cooperation of the lamps, external APP configuration or central controller setting is not needed, equipment state information is locally stored, resetting is not needed after maintenance, an original mode is reserved, the operation is simplified, the maintenance cost is reduced, and the experience is improved.
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 lamp control method, system, lamp controller and storage medium. Background Art

[0002] With the development of smart lighting technology, lamp control methods based on distance perception have gradually become popular. They realize the election of master and slave lamps and the adjustment of lighting strategies through the interaction of distance information between lamps, thereby improving scene adaptability. However, in the existing technology, this type of intelligent control relies on the collaboration of intelligent controllers (such as radar controllers, RF controllers) and wireless networks (WIFI, Bluetooth, RF, etc.) and APPs, and has the following problems: complex configuration operations: users need to manually set lamp parameters and lighting scene modes through the APP, which is not friendly to non-professional end customers; high maintenance costs: when the controller fails and is repaired, the control logic needs to be reconfigured through the APP or gateway, and the original scene settings cannot be retained; strong system dependence: relying on network stability and gateway equipment, once the network is interrupted or the gateway fails, the intelligent control function is easy to fail, affecting the user experience. These problems have led to shortcomings in the ease of use and maintenance of existing smart lamps, limiting their popularity in scenarios such as homes and offices. Summary of the Invention

[0003] Based on this, it is necessary to provide a lamp control method, system, lamp controller and storage medium to address the above technical issues, so as to solve at least one problem existing in the above-mentioned prior art.

[0004] In a first aspect, a lamp control method is provided, comprising:

[0005] Each candidate lamp obtains the distance information between itself and the target object, and sends it to the surrounding candidate lamps within a preset range, so that each candidate lamp obtains the distance information between all candidate lamps and the target object;

[0006] Each candidate lamp selects a master lamp and a preset number of slave lamps based on the distance information between all the candidate lamps and the target object;

[0007] The master lamp is controlled according to the master lamp lighting strategy, and the slave lamp is controlled according to the slave lamp lighting strategy.

[0008] In a possible implementation, the selected lamps select a master lamp and a preset number of slave lamps based on distance information between all the selected lamps and the target object, including:

[0009] Sort all the lamps to be selected according to the distance from the target object from near to far or from far to near;

[0010] Based on the sorting result, the candidate lamp with the shortest distance to the target object is selected as the main lamp;

[0011] Among the remaining lamps to be selected, a preset number of lamps to be selected are selected according to a preset screening rule as the slave lamps.

[0012] In a possible implementation manner, after each of the candidate lamps is selected based on the distance information between all the candidate lamps and the target object, the method further includes:

[0013] If the master lamp is in an abnormal working state, the binding relationship of the slave lamp is released to restore the slave lamp to a lamp to be selected;

[0014] Determine distance information between all remaining lamps to be selected except the main lamp and the target object;

[0015] Based on the distance information, reselect the candidate lamp with the shortest distance to the target object as the temporary master lamp, and determine a temporary slave lamp corresponding to the temporary master lamp;

[0016] If the master lamp returns to a normal working state within a preset time range, the binding relationship between the temporary master lamp and the temporary slave lamp is released, and lighting is performed again by the master lamp and the slave lamp.

[0017] In a possible implementation manner, before controlling the main light according to the main light lighting strategy, the method includes:

[0018] Obtaining ambient brightness and / or target object density;

[0019] Comparing the target object density with a preset density threshold, and / or comparing the ambient brightness with a preset brightness threshold;

[0020] Based on the comparison result, the main light lighting strategy is determined.

[0021] In a possible implementation manner, the performing lighting control on the slave lamp according to the slave lamp lighting strategy includes:

[0022] Determining a slave light lighting strategy corresponding to each slave light based on the distance between each slave light and the target object;

[0023] According to the slave lamp lighting strategy, the corresponding slave lamp is controlled, wherein the slave lamp lighting strategy includes the slave lamp lighting brightness, and the lighting brightness is gradually attenuated from near to far according to the distance.

[0024] In one possible implementation, the method further includes:

[0025] determining the number of the target objects;

[0026] If the number of the target objects is greater than a preset number threshold, determining a lighting group corresponding to each target object;

[0027] The corresponding target object is illuminated by each lighting group respectively, wherein the lighting group includes at least one main light and a preset number of slave lights corresponding to the main light.

[0028] In a possible implementation, the master light lighting strategy is different from the slave light lighting strategy, the master light's lighting brightness is higher than that of the slave light, and the master light and the slave light are dynamically replaced as the target object moves.

[0029] In a second aspect, a lamp controller is provided, wherein the lamp controller is mounted on a selected lamp and is used to implement the lamp control method described above. The lamp controller includes:

[0030] Control module;

[0031] a distance measuring module electrically connected to the control module, for measuring the distance between the lamp to be selected and the target object;

[0032] A communication module electrically connected to the control module, used for exchanging data between different lamps to be selected;

[0033] A signal output module electrically connected to the control module, configured to output a corresponding signal by adapting the dimming characteristics of the selected lamp driver;

[0034] A parameter setting interface electrically connected to the control module is used to set the operating parameters of the selected lamps, wherein the operating parameters include at least one of the number of lamps, the ranging range, and the lighting brightness.

[0035] In a third aspect, a lighting control system is provided, comprising:

[0036] A distance information acquisition unit is used for each selected lamp to obtain the distance information between itself and the target object, and send it to the selected lamps within a preset range, so that each selected lamp can obtain the distance information between all the selected lamps and the target object;

[0037] a master / slave lamp determination unit, wherein each candidate lamp selects a master lamp and a preset number of slave lamps based on distance information between all the candidate lamps and the target object;

[0038] The lighting control unit is used to perform lighting control on the master lamp according to the master lamp lighting strategy, and to perform lighting control on the slave lamp according to the slave lamp lighting strategy.

[0039] In a fourth aspect, a readable storage medium is provided, wherein the readable storage medium stores computer-readable instructions, and wherein the computer-readable instructions, when executed by a processor, implement the steps of the lamp control method as described in any one of the above items.

[0040] The above-mentioned lamp control method, system, lamp controller and storage medium, the method of which is implemented, includes: each selected lamp obtains the distance information between itself and the target object, and sends it to the surrounding selected lamps within a preset range, so that each selected lamp obtains the distance information between all the selected lamps and the target object; each selected lamp selects a master lamp and a preset number of slave lamps based on the distance information between all the selected lamps and the target object; the master lamp is controlled according to the master lamp lighting strategy, and the slave lamp is controlled according to the slave lamp lighting strategy. In the embodiment of the present application, on the basis of realizing core intelligent control functions such as distance-based master-slave lamp election and scene-based dimming, by removing the cumbersome steps of APP control settings, intelligent switching of lighting scenes is realized by preset logic or automatic perception, which significantly reduces the usage threshold of end customers; at the same time, after repairing or replacing the controller, no re-setting is required, and the system can automatically restore the original control scene and mode, greatly reducing maintenance costs and ensuring the continuity of user experience; in addition, by reducing dependence on external networks and gateways, relying on distributed collaboration between lamps to realize control logic, the risk of functional failure caused by network failure is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 This is a schematic diagram of an application environment of a lamp control method in an embodiment of the present application;

[0043] Figure 2 This is a flow chart of a lamp control method according to an embodiment of the present application;

[0044] Figure 3 This is a structural diagram of a lamp controller in one embodiment of the present application;

[0045] Figure 4 This is a structural diagram of a lamp control device in one embodiment of the present application;

[0046] Figure 5 Schematic diagram of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0048] The lamp control method provided in this embodiment can be applied to Figure 1 In an application environment, N candidate lamps are provided in a target area. When a target object is detected entering or passing through the target area, the lamp with the shortest distance to the target object is selected as the master lamp based on the distance between the candidate lamp and the target object. Simultaneously, a preset number of candidate lamps are selected as slave lamps of the master lamp according to preset screening rules, and communication connections are established between the master lamp and the slave lamps. If there are multiple target objects, for example, two, an independent lighting group can be established for each target object based on their location distribution. Each lighting group is equipped with at least one master lamp and a preset number of slave lamps. The lighting groups are independent of each other and are used to illuminate their respective target objects.

[0049] Among them, the master lamp and the slave lamp can automatically establish a communication connection through a preset wireless protocol (such as Mesh, ZigBee) for wireless communication.

[0050] In one embodiment, if Figure 2 As shown, a lamp control method is provided, comprising the following steps:

[0051] In step S110, each candidate lamp obtains the distance information between itself and the target object, and sends it to the candidate lamps within the surrounding preset range, so that each candidate lamp obtains the distance information between all candidate lamps and the target object;

[0052] Optionally, each candidate luminaire is equipped with a ranging module, which can be a radar ranging module, infrared ranging module, or the like. Taking the radar ranging module as an example, a radar transmitter transmits electromagnetic waves of a specific frequency toward a target object through an antenna. When the electromagnetic waves encounter the target object, some of the energy is reflected back to the radar receiver. Based on the propagation speed of the electromagnetic waves and the round-trip time difference, the distance between the candidate luminaire and the target object can be calculated. For example, if luminaire A measures the distance to a person as 2 meters, and luminaire B measures the distance to the person as 5 meters, their respective control modules will filter the raw data (eliminating environmental interference, such as misjudgment of object reflections) to ensure the validity and accuracy of the distance data.

[0053] In addition, after each selected lamp measures the distance between itself and the target object, it can broadcast a data packet to other selected lamps within a certain range around it through a communication module, such as Bluetooth Mesh, ZigBee, etc. The data packet may include the lamp ID and the distance information between itself and the target object. After each selected lamp receives the broadcast from the surrounding lamps, it gradually spreads it to all selected lamps through multi-hop forwarding, so that each selected lamp can finally obtain the distance information between all selected lamps and the target object.

[0054] The target object may be a person, a car, goods, or other moving / static objects that need to be illuminated.

[0055] In step S120, each candidate lamp selects a master lamp and a preset number of slave lamps based on the distance information between all the candidate lamps and the target object;

[0056] Optionally, after each candidate lamp receives the broadcast from the surrounding lamps, it will compare all the distances and all the distance information, and jointly determine the candidate lamp with the shortest distance as the main lamp through a preset consensus algorithm. For example, each lamp can summarize all information (including its own distance data) into a "global distance table", which will associate the lamp ID and distance information and arrange them in order from near to far. At this time, the lamp ranked first in the table can be selected as the main lamp. This method ensures the uniqueness and rationality of the main lamp. Then, according to the preset screening rules, a preset number of candidate lamps can be selected from the remaining candidate lamps as slave lamps. After the master lamp is selected, a communication connection with the slave lamp can be established to realize data interaction between the master lamp and the slave lamp.

[0057] It should be noted that after the master light identifies a slave light, it generates a slave light list and synchronizes it with all candidate lights. It then sends broadcast packets to each slave light in the slave light list at a preset interval, such as an initial broadcast interval of once per second, which can be dynamically adjusted based on the target object's movement speed. This packet may include the master light's current status, such as information about changes in distance to the target object when it exceeds a preset threshold (e.g., 0.5 meters), and its own operating status. Upon receiving the packet, if a slave light is in the slave light list, it maintains its slave status and implements the slave lighting strategy. If it is not in the slave light list, it exits slave mode and returns to the candidate light state. Furthermore, after receiving the packet and confirming its slave light status, the slave light can send a response message back to the master light within a preset timeframe. This response message may include slave light status, such as lighting data. Upon receiving this response message, the master light can update the slave light list to dynamically adjust the control strategy. For example, if a slave light is offline, disconnected, or faulty, it can automatically fill in the position of the candidate light based on its distance to the target object.

[0058] In step S130, the master lamp is controlled according to the master lamp lighting strategy, and the slave lamp is controlled according to the slave lamp lighting strategy;

[0059] Optionally, after the master light is determined, a master light lighting strategy can be obtained. This master light lighting strategy can be fixed or dynamically changing. Fixed means that each master light has a consistent lighting strategy, which can be pre-configured and stored. Once the master light is determined, the master light control module can invoke this master light lighting strategy to implement lighting control for the master light. Dynamic means that a master light lighting strategy that meets current needs can be formulated in real time based on the surrounding environment, target object type, usage scenario, and other factors, thereby implementing lighting control for the master light.

[0060] For example, the lamp can be linked to the environmental sensor to obtain the ambient brightness in real time. If it is daytime and there is sufficient natural light, the main light's brightness can be adjusted to 70% and adjusted to a cool color temperature. If it is night, the brightness can be adjusted to 100% and adjusted to a warm color temperature. Alternatively, the brightness can be adjusted according to the usage scenario. For example, for a conference room, the lighting brightness can be adjusted to 100%, and if it is a corridor area, the lighting brightness can be adjusted to 30%. Alternatively, the health data of the target object, such as the heart rate and blood oxygen data of the bracelet, can be judged through radar, cameras, etc. to adjust the main light lighting strategy. For example, if fatigue is detected, the number of lights can be reduced and the brightness can be lowered.

[0061] Among them, other candidate lamps in the area without target objects can enter a sleep mode to reduce power consumption.

[0062] Similarly, after a slave light is identified, a slave light lighting strategy can also be obtained. This slave light lighting strategy can be fixed or dynamically changing. Fixed means that each slave light's lighting strategy is consistent and can be pre-configured and stored. Once a slave light is identified, the slave light's control module can invoke this strategy to implement lighting control for the slave light. Dynamic means that a slave light lighting strategy can be formulated in real time based on the surrounding environment, target object type, usage scenario, distance to the target object, and other factors to achieve lighting control for the slave light.

[0063] Exemplarily, the lighting strategy of the slave lights needs to be coordinated with the main lights. If the brightness of the main light is 100% (such as a conference room at night), the brightness of the close-range slave lights (within 1 meter of the target) is maintained at 80% to supplement the detail lighting, the brightness of the medium-range slave lights (1-3 meters) is reduced to 50% to avoid glare, and the brightness of the long-range slave lights (3 meters away) is 30% only for environmental filling; if the ambient brightness is high (such as a corridor during the day), the brightness of the slave lights is synchronously reduced according to the distance attenuation ratio (such as 50% at close range and 30% at medium range), forming a gradient lighting effect with the main light.

[0064] The number of slave lights can be determined according to the usage scenario, target object density, etc. For example, if there are many people in the meeting room, 5 slave lights can be selected; if there are few people in the corridor, 2 slave lights can be selected.

[0065] It should be noted that the master light's lighting strategy differs from the slave light's. The master light's brightness is higher than the slave light's, and the two lights dynamically switch as the target object moves. Specifically, if the master light's lighting strategy is a full-color, steady ring light (e.g., blue), the slave light's lighting strategy can be a breathing, blinking ring light (e.g., white). If the master light's brightness is 100%, the slave light's brightness can be 50%.

[0066] Each slave light can also be set to a different brightness based on its distance from the target object. The closer the light is to the target, the higher the brightness. Lights in areas without the target object can enter sleep mode. As you can see, because the target object's position is constantly changing, the brightness of the master and slave lights will adjust in real time as the target moves. When the target's movement distance exceeds a preset threshold, the master and slave lights will also dynamically switch roles.

[0067] As an implementation scenario, if multiple types of slave lights (such as spotlights, wall lights, floodlights, etc.) are compatible in the same system, the type of slave light to be used can be determined based on the distance between the master light and the slave light. For example, if the distance between the master light and the slave light is less than a first preset threshold, such as less than / equal to 2 meters, the slave light can choose small-range lighting, such as spotlights or downlights, to avoid local excess light caused by overlapping light. If the distance is greater than the first preset threshold and less than the second preset threshold, such as greater than 2 meters and less than / equal to 5 meters, a lamp with a medium coverage range (such as a wall lamp, track light) can be selected. If the distance is greater than the second preset threshold, such as greater than 5 meters, a lamp with long-distance projection capability (such as a floodlight or high-power spotlight) can be selected.

[0068] In an embodiment of the present application, a lamp control method is provided, including: each selected lamp obtains the distance information between itself and the target object, and sends it to the surrounding selected lamps within a preset range, so that each selected lamp obtains the distance information between all the selected lamps and the target object; each selected lamp selects a master lamp and a preset number of slave lamps based on the distance information between all the selected lamps and the target object; the master lamp is controlled according to the master lamp lighting strategy, and the slave lamp is controlled according to the slave lamp lighting strategy. In an embodiment of the present application, on the basis of realizing core intelligent control functions such as distance-based master-slave lamp selection and scene-based dimming, by removing the cumbersome steps of APP control settings, intelligent switching of lighting scenes is realized by preset logic or automatic perception, which significantly reduces the usage threshold for end customers; at the same time, after repairing or replacing the controller, no re-setting is required, and the system can automatically restore the original control scene and mode, greatly reducing maintenance costs and ensuring the continuity of user experience; in addition, by reducing dependence on external networks and gateways, relying on distributed collaboration between lamps to realize control logic, the risk of functional failure caused by network failure is reduced.

[0069] In one embodiment of the present application, each of the candidate lamps selects a master lamp and a preset number of slave lamps based on distance information between all the candidate lamps and the target object, including:

[0070] Sort all the lamps to be selected according to the distance from the target object from near to far or from far to near;

[0071] Based on the sorting result, the candidate lamp with the shortest distance to the target object is selected as the main lamp;

[0072] Among the remaining lamps to be selected, a preset number of lamps to be selected are selected according to a preset screening rule as the slave lamps.

[0073] Optionally, after each candidate lamp receives the broadcast from the surrounding lamps, it will compare all the distances and jointly determine the candidate lamp with the shortest distance as the master lamp. For example, each lamp can summarize all information (including its own distance data) into a "global distance table", in which the distance information is arranged in order from near to far. For example: lamp A will receive the distance information of lamps B, C, and D, and eventually form a complete data list of "lamp A: 2 meters, lamp B: 5 meters, lamp C: 3 meters, lamp D: 6 meters". At this time, the lamp ranked first in the table can be selected as the master lamp. Then, from the remaining candidate lamps, a preset number of candidate lamps can be selected as slave lamps according to the preset screening rules, and a communication connection between the master lamp and the slave lamps can be established to realize data interaction between the master lamp and the slave lamps.

[0074] It should be noted that the preset screening rules may specifically include: directly selecting a preset number of candidate lamps in the global distance table, excluding the master lamp, in order as slave lamps, i.e., selecting a preset number of candidate lamps closest to the target object, excluding the master lamp, as slave lamps; after determining the master lamp, taking the master lamp as the center, and combining the real-time position and movement trajectory of the target object (e.g., predicted direction based on coordinate changes in the previous 3 seconds), delineating a core coverage area (e.g., within 3 meters around the master lamp, including the current activity range of the target object) and a predicted coverage area (e.g., within 5 meters in the direction of the target object's movement), and adding the remaining candidate lamps located in these two areas to the candidate pool as candidate lamps. Then, among the candidate lamps, preferentially selecting a preset number of lamps that are relatively close to the target object as slave lamps; or calculating the angle formed by the slave lamp, the master lamp, and the target object, preferentially selecting lamps that can form surround lighting with the master lamp to avoid the slave lamps being concentrated on the same side of the master lamp, resulting in a lighting blind spot; or preferentially selecting a preset number of lamps that are relatively close to the master lamp as slave lamps.

[0075] The specific implementation process of selecting a preset number of lamps that are relatively close to the master lamp as slave lamps is as follows: the master lamp can send a broadcast data packet to the candidate lamps through a communication module, such as Bluetooth Mesh or ZigBee. Each candidate lamp can then feedback its own location information to the master lamp. This location information can be obtained in real time through each lamp's built-in positioning system, such as GPS, or can be determined based on the pre-stored lamp installation location. After the master lamp obtains the location information of each candidate lamp, it can calculate the distance between this location information and its own location information, thereby obtaining the distance between the master lamp and each candidate lamp, and forming a local distance table. In this local distance table, the candidate lamps are sorted from near to far according to their distance from the master lamp. The top k candidate lamps with the shortest distance from the sorted results are selected as slave lamps.

[0076] In one embodiment of the present application, after each of the candidate lamps is selected based on the distance information between all the candidate lamps and the target object, the method further includes:

[0077] If the master lamp is in an abnormal working state, the binding relationship of the slave lamp is released to restore the slave lamp to a lamp to be selected;

[0078] Determine the distance information between all remaining lamps to be selected except the main lamp and the target object;

[0079] Based on the distance information, reselect the candidate lamp with the shortest distance to the target object as the temporary master lamp, and determine a temporary slave lamp corresponding to the temporary master lamp;

[0080] If the master lamp returns to a normal working state within a preset time range, the binding relationship between the temporary master lamp and the temporary slave lamp is released, and lighting is performed again by the master lamp and the slave lamp.

[0081] It should be noted that after the master light determines the slave light, it can generate a slave light list and send it to each slave light. It can then send a broadcast data packet to each slave light in the slave light list according to a preset period, such as once every 1 second. This data packet may include the current status of the master light, such as information about changes in the distance to the target object and its own operating status. If a slave light fails to receive a data packet three times in a row and does not detect other abnormal signals from the master light (such as a fault alarm), it can be considered that the master light is in an abnormal state, such as being offline or faulty. At this time, the binding relationship between the master light and the slave light can be released, allowing the slave light to return to the standby state, triggering the election mechanism to re-election as a standby light to become the temporary master light. At this point, each candidate luminaire can again obtain the distance between itself and the target object and send it to other candidate luminaires around it, so that each candidate luminaire can obtain the distance between all candidate luminaires and the target object. By comparing the distances, the candidate luminaire with the shortest distance is selected as the temporary master luminaire. The temporary master luminaire can again select a preset number of candidate luminaires as temporary slave luminaires based on the distances between itself and the surrounding candidate luminaires, so as to continue the master and slave lighting operations. This avoids the master luminaire being offline, which may lead to lighting failure.

[0082] In addition, if the main light returns to normal working state within a preset time range, such as 3 seconds, the binding relationship between the temporary main light and the temporary slave light is released, and lighting is performed again through the main light and the slave light.

[0083] In an embodiment of the present application, before controlling the main light according to the main light lighting strategy, the process includes:

[0084] Obtaining ambient brightness and / or target object density;

[0085] Comparing the target object density with a preset density threshold, and / or comparing the ambient brightness with a preset brightness threshold;

[0086] Based on the comparison result, the main light lighting strategy is determined.

[0087] Target object density refers to the number of target objects within a preset area. For example, radar or cameras can be used to identify the number of target objects and thus determine the target object density. Ambient brightness can be obtained in real time by linking with environmental sensors.

[0088] Optionally, after determining the ambient brightness and / or target object density, the target object density can be compared with a preset density threshold, and / or the ambient brightness can be compared with a preset brightness threshold. If the target object density is greater than the preset density threshold, for example, if the number of target objects is greater than 5 (high density), the main light brightness is adjusted to 100% and remains on; if the number is 3 ≤ ≤ 5 (medium density), the brightness is maintained at 80%; if the number is less than 3 (low density), the brightness is adjusted to 70%, or if it is daytime and there is sufficient natural light (ambient brightness > preset threshold), the main light brightness is adjusted to 70% and the color temperature is cool; if it is night (ambient brightness ≤ preset threshold), the main light brightness is adjusted to 100% and the color temperature is warm.

[0089] In one embodiment of the present application, the performing lighting control on the slave lamp according to the slave lamp lighting strategy includes:

[0090] Determining a slave light lighting strategy corresponding to each slave light based on a distance between each slave light and the target object;

[0091] According to the slave lamp lighting strategy, the corresponding slave lamp is controlled, wherein the slave lamp lighting strategy includes the slave lamp lighting brightness, and the lighting brightness is gradually attenuated from near to far according to the distance.

[0092] Optionally, each slave light acquires its distance to the target object in real time through its own sensor (such as millimeter-wave radar) or global data synchronized with the master light (e.g., slave light A is 1 meter away from the target, slave light B is 3 meters away from the target, and slave light C is 5 meters away from the target). Then, according to preset distance classification thresholds (such as 0-2 meters for close distance, 2-4 meters for medium distance, and more than 4 meters for long distance), each slave light is classified into a corresponding distance level according to its actual distance. Each distance level can be set with a corresponding brightness value, for example, 80%-90% for close distance, 50%-70% for medium distance, and 20%-40% for long distance. The master light sends the corresponding brightness parameters to the slave lights via wireless commands. The slave lights' signal output modules (such as PWM dimming circuits) convert the parameters into drive signals to control the actual luminous intensity of the LED lamp beads.

[0093] In one embodiment of the present application, the method further includes:

[0094] determining the number of the target objects;

[0095] If the number of the target objects is greater than a preset number threshold, determining a lighting group corresponding to each target object;

[0096] The corresponding target object is illuminated by each lighting group respectively, wherein the lighting group includes at least one main light and a preset number of slave lights corresponding to the main light.

[0097] Optionally, sensors (radar, visual cameras, etc.) detect the number N of target objects (e.g., people) in a scene in real time and compare it to a preset threshold, such as 2. If N is less than or equal to 2, a single lighting logic is used, with all targets sharing a set of master and slave lights. If N is greater than 2, a multi-group lighting logic is used, assigning each target object a separate lighting group. Each lighting group includes at least one master light and its associated slave lights.

[0098] It should be noted that when dividing precise lighting groups, based on the location of the target object and the position of each candidate lamp, the cluster of lamps closest to the target object can be screened from all candidate lamps to form an exclusive lighting group. Each group independently executes "master lamp election" (the lamp closest to the target in the group is the master lamp) and "slave lamp selection" (the lamps in the group that are closer to the master lamp are selected according to a preset number) to ensure the spatial correlation between the lamps in the group and the target object. Each lighting group works in parallel. The master lamp in the group adjusts the core lighting strategy (such as brightness reference value and color temperature) according to the status of the corresponding target object (such as moving or stationary); the slave lamps in the group gradually attenuate according to the rule of "the closer to the target object, the higher the brightness" (same as the logic of a single group), forming a local lighting area around the target.

[0099] Among them, if the movement of the target object causes the spatial position to overlap (such as two people approaching each other), the system will adjust the group boundaries in advance through "trajectory prediction" (such as merging adjacent groups or splitting overlapping areas) to avoid lighting conflicts.

[0100] In addition, when two target objects are close to each other (such as two people walking side by side or at adjacent workstations), the spatial ranges of the two corresponding lighting groups overlap, and a slave light in the overlapping area meets both the "closer to the main light / target 1" condition of lighting group 1 and the "closer to the main light / target 2" condition of lighting group 2, resulting in a scene selected by both groups at the same time. At this time, the distance between the slave light and target 1 and the distance between target 2 can be determined, and the slave light can be used as the slave light of the target with a shorter distance, or the slave light can be used as the slave light of the lighting group that was first established based on the order of the lighting group's establishment time. If the subsequent movement of the target object causes the distance relationship to change, such as the slave light was originally closer to target 1, but is now closer to target 2, it will be switched to the slave light of target 2.

[0101] In the embodiment of the present application, on the basis of realizing core intelligent control functions such as distance-based master-slave lamp selection and scene-based dimming, by removing the tedious steps of APP control settings, intelligent switching of lighting scenes is realized by preset logic or automatic perception, which significantly reduces the usage threshold for end customers; at the same time, after repairing or replacing the controller, there is no need to re-set any settings, and the system can automatically restore the original control scene and mode, greatly reducing maintenance costs and ensuring the continuity of user experience; in addition, by reducing dependence on external networks and gateways, relying on distributed collaboration between lamps to realize control logic, the risk of functional failure due to network failure is reduced.

[0102] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0103] In one embodiment, if Figure 3 As shown, a lamp controller 100 is provided. The lamp controller is mounted on a selected lamp and is used to implement the lamp control method in the above embodiment. The lamp controller 100 includes:

[0104] Control module 101;

[0105] A distance measuring module 102 electrically connected to the control module 101, for measuring the distance between the selected lamp and the target object;

[0106] A communication module 103 electrically connected to the control module 101, for exchanging data between different lamps to be selected;

[0107] A signal output module 104 electrically connected to the control module 101, configured to output a corresponding signal by adapting the dimming characteristics of the selected lamp driver;

[0108] The parameter setting interface 105 electrically connected to the control module 101 is used to set the operating parameters of the selected lamps, wherein the operating parameters include at least one of the number of lamps, the distance measurement range, and the lighting brightness.

[0109] Optionally, each lamp can be equipped with a lamp controller, which, through the collaborative work of various modules, is used to conduct the election of master and slave lamps and lighting control. The control module 101 can be a control chip such as an MCU or a single-chip microcomputer, which is used to process all input and output signals and data (such as distance information analysis, master-slave lamp election logic operations, lighting strategy generation, etc.), serving as the core calculation and control unit. The distance measurement module 102 can be a distance measurement sensor such as a radar or infrared sensor, which can be used to measure the distance between the selected lamp and the target object in real time. The communication module 103 can be a wireless communication module such as Bluetooth Mesh or ZigBee, which is used to realize data exchange between lamps and ensure efficient synchronization of distance information and control instructions. The signal output module 104 converts the control instructions into an adaptive electrical signal (such as PWM, 0-10V) based on the dimming characteristics of the lamp driver, directly driving the lamp to complete dimming and color adjustment. The parameter setting interface 105 allows the user or system to preset operating parameters (such as the number of slave lamps, ranging range, brightness threshold, etc.), which can be dynamically adjusted to adapt to different scenarios.

[0110] The parameter setting interface may be set mechanically, such as by using a DIP switch to set different codes; or the interface may be used to implant data into the control software.

[0111] The lamp controller may further include other modules, such as a power supply module 106 for supplying power to each module, and a storage module 107 for storing information such as the master lamp lighting strategy, the slave lamp lighting strategy, usage records, and operating status.

[0112] Specifically, when a target object moves toward a scene with installed lamps, the ranging module measures the distance from the target object to the lamp in real time. This distance data is confirmed by the control module and then exchanged with other surrounding communication modules via the communication module. In addition to communicating data between different controllers, the communication module can also confirm the distances of surrounding controllers to the target object, sorting them from closest to farthest, thereby selecting the lamp with the shortest distance as the master lamp. Then, based on the number of slave lamps pre-set via the parameter setting interface 105, a corresponding number of lamps are selected from the sorted results as slave lamps, and a communication connection is established between the master and slave lamps. At this point, the master lamp controller can control the master lamp to fully illuminate or adjust it to a set brightness, such as 100% brightness. The slave lamp controller controls the corresponding slave lamp to a set brightness (this brightness can be set via the parameter setting interface, pre-set in the control module software, determined in real time based on the current scene, or sent to the master lamp), such as 50% brightness.

[0113] It should be noted that when the target object moves, the lighting controller can continue to repeat the above process, constantly reselecting new master lights and slave lights, and controlling the on and off and brightness of the corresponding master lights and slave lights to achieve dynamic lighting effects and energy saving.

[0114] Since the lighting controller autonomously scans and responds to real-time scenes through locally stored core strategies, there is no need for an APP to set up fixed scenes. Therefore, when the target object moves randomly, the lighting of the lamp changes in real time according to the position of the target object in the scene. Moreover, after some controllers fail, the lamps can be directly replaced or repaired, and then reinstalled without reconfiguring core control parameters (such as master-slave lamp election rules and brightness gradients). This is a level of convenience that other APP-based controllers cannot achieve. The original control functions and scenes are maintained unchanged. This way, when using the smart lamps, end users avoid tedious settings and the inconvenience of subsequent maintenance. In addition, due to regional control, energy saving is achieved (the lamps do not need to be fully turned on, but turned on according to the actual working area). And because this linkage method does not require the assistance of a gateway or router, there is no requirement for the number of lamps in the entire application scenario. However, traditional smart controllers on the market require the number of points connected to the device (that is, the number of lamps) to be controlled within a certain range due to the use of gateways or routers.

[0115] In one embodiment, a lighting control system is provided, which corresponds one-to-one to the lighting control method in the above embodiment. Figure 4 As shown, the lighting control system includes a distance information acquisition unit 10, a master / slave lamp determination unit 20, and a lighting control unit 30. The functional modules are described in detail as follows:

[0116] The distance information acquisition unit 10 is used for each selected lamp to obtain the distance information between itself and the target object, and send it to the selected lamps within a preset range, so that each selected lamp can obtain the distance information between all the selected lamps and the target object;

[0117] A master / slave lamp determination unit 20 selects a master lamp and a preset number of slave lamps for each candidate lamp based on distance information between all the candidate lamps and the target object;

[0118] The lighting control unit 30 is configured to perform lighting control on the master light according to the master light lighting strategy, and to perform lighting control on the slave light according to the slave light lighting strategy.

[0119] In one embodiment of the present application, the master / slave lamp determination unit 20 is further configured to:

[0120] sort all the candidate lamps according to the distance between the target object and the candidate lamps from near to far or from far to near;

[0121] select, as the master lamp, the candidate lamp with the shortest distance to the target object based on the sorting result;

[0122] select, as the slave lamps, a preset number of candidate lamps from the remaining candidate lamps according to a preset screening rule.

[0123] In an embodiment of the present application, the system further comprises a fault handling unit configured to:

[0124] if the master lamp is in an abnormal working state, release the binding relationship of the slave lamps so as to restore the slave lamps to candidate lamps;

[0125] determine the distance information between all the remaining candidate lamps except the master lamp and the target object;

[0126] based on the distance information, select, as a temporary master lamp, the candidate lamp with the shortest distance to the target object, and determine a temporary slave lamp corresponding to the temporary master lamp;

[0127] if the master lamp recovers to a normal working state within a preset time range, release the binding relationship of the temporary master lamp and the temporary slave lamp, and re-perform lighting through the master lamp and the slave lamps.

[0128] In an embodiment of the present application, the device further comprises a master lamp lighting strategy determination unit configured to:

[0129] obtain the ambient brightness and / or the target object density;

[0130] compare the target object density with a preset density threshold value and / or compare the ambient brightness with a preset brightness threshold value;

[0131] determine the master lamp lighting strategy based on the comparison result.

[0132] In an embodiment of the present application, the slave lamp determination unit 40 is configured to:

[0133] determine the slave lamp lighting strategy corresponding to each slave lamp based on the distance between each slave lamp and the target object;

[0134] control the corresponding slave lamp according to the slave lamp lighting strategy, wherein the slave lamp lighting strategy comprises a slave lamp lighting brightness, and the lighting brightness gradually attenuates from near to far according to the distance.

[0135] In an embodiment of the present application, the system further comprises a multi-lighting group cooperative working unit configured to:

[0136] determining the number of the target objects;

[0137] If the number of the target objects is greater than a preset number threshold, determining a lighting group corresponding to each target object;

[0138] The corresponding target object is illuminated by each lighting group respectively, wherein the lighting group includes at least one main light and a preset number of slave lights corresponding to the main light.

[0139] In the embodiment of the present application, on the basis of realizing core intelligent control functions such as distance-based master-slave lamp selection and scene-based dimming, by removing the tedious steps of APP control settings, intelligent switching of lighting scenes is realized by preset logic or automatic perception, which significantly reduces the usage threshold for end customers; at the same time, after repairing or replacing the controller, there is no need to re-set any settings, and the system can automatically restore the original control scene and mode, greatly reducing maintenance costs and ensuring the continuity of user experience; in addition, by reducing dependence on external networks and gateways, relying on distributed collaboration between lamps to realize control logic, the risk of functional failure due to network failure is reduced.

[0140] The specific definition of the lighting control device can be found in the definition of the lighting control method above and will not be repeated here. Each module in the aforementioned lighting control system may be implemented in whole or in part through software, hardware, or a combination thereof. Each of these modules may be embedded in or independent of a processor in a computer device in hardware form, or may be stored in a computer device memory in software form, allowing the processor to call and execute the corresponding operations of each module.

[0141] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal via a network connection. When executed by the processor, the computer-readable instructions implement a lighting control method. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0142] In an embodiment of the present application, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the steps of the above-mentioned lamp control method are implemented.

[0143] In an embodiment of the application, a readable storage medium is provided, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the steps of the above-mentioned lamp control method are implemented.

[0144] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include processes in the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0145] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

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

Claims

1. A lamp control method, characterized in that: The method comprises: Each candidate lamp obtains the distance information between itself and the target object, and sends it to the surrounding candidate lamps within a preset range, so that each candidate lamp obtains the distance information between all candidate lamps and the target object; Each candidate lamp selects a master lamp and a preset number of slave lamps based on the distance information between all the candidate lamps and the target object; The master lamp is controlled according to the master lamp lighting strategy, and the slave lamp is controlled according to the slave lamp lighting strategy.

2. The lamp control method according to claim 1, wherein: The selected lamps select a master lamp and a preset number of slave lamps based on the distance information between all the selected lamps and the target object, including: Sort all the lamps to be selected according to the distance from the target object from near to far or from far to near; Based on the sorting result, the candidate lamp with the shortest distance to the target object is selected as the main lamp; Among the remaining lamps to be selected, a preset number of lamps to be selected are selected according to a preset screening rule as the slave lamps.

3. The lamp control method according to claim 1, wherein: After each of the candidate lamps is selected based on the distance information between all the candidate lamps and the target object, the method further includes: If the master lamp is in an abnormal working state, the binding relationship of the slave lamp is released to restore the slave lamp to a lamp to be selected; Determine distance information between all remaining lamps to be selected except the main lamp and the target object; Based on the distance information, reselect the candidate lamp with the shortest distance to the target object as the temporary master lamp, and determine a temporary slave lamp corresponding to the temporary master lamp; If the master lamp returns to a normal working state within a preset time range, the binding relationship between the temporary master lamp and the temporary slave lamp is released, and lighting is performed again by the master lamp and the slave lamp.

4. The lamp control method according to claim 1, wherein: Before controlling the main light according to the main light lighting strategy, the method includes: Obtaining ambient brightness and / or target object density; Comparing the target object density with a preset density threshold, and / or comparing the ambient brightness with a preset brightness threshold; Based on the comparison result, the main light lighting strategy is determined.

5. The lamp control method according to claim 1, wherein: The performing lighting control on the slave lamp according to the slave lamp lighting strategy includes: Determining a slave light lighting strategy corresponding to each slave light based on the distance between each slave light and the target object; According to the slave lamp lighting strategy, the corresponding slave lamp is controlled, wherein the slave lamp lighting strategy includes the slave lamp lighting brightness, and the lighting brightness is gradually attenuated from near to far according to the distance.

6. The lamp control method according to claim 1, wherein: The method further comprises: determining the number of the target objects; If the number of the target objects is greater than a preset number threshold, determining a lighting group corresponding to each target object; The corresponding target object is illuminated by each lighting group respectively, wherein the lighting group includes at least one main light and a preset number of slave lights corresponding to the main light.

7. The lamp control method according to any one of claims 1 to 6, characterized in that: The master light lighting strategy is different from the slave light lighting strategy. The master light has a higher lighting brightness than the slave light. The master light and the slave light are dynamically replaced as the target object moves.

8. A lamp controller, characterized in that: The lamp controller is mounted on a selected lamp and is used to implement the lamp control method according to any one of claims 1 to 7. The lamp controller includes: Control module; a distance measuring module electrically connected to the control module, for measuring the distance between the lamp to be selected and the target object; A communication module electrically connected to the control module, used for exchanging data between different lamps to be selected; A signal output module electrically connected to the control module, configured to output a corresponding signal by adapting the dimming characteristics of the selected lamp driver; A parameter setting interface electrically connected to the control module is used to set the operating parameters of the selected lamps, wherein the operating parameters include at least one of the number of lamps, the ranging range, and the lighting brightness.

9. A lighting control system, characterized in that: The system comprises: A distance information acquisition unit is used for each selected lamp to obtain the distance information between itself and the target object, and send it to the selected lamps within a preset range, so that each selected lamp can obtain the distance information between all the selected lamps and the target object; a master / slave lamp determination unit, wherein each candidate lamp selects a master lamp and a preset number of slave lamps based on distance information between all the candidate lamps and the target object; The lighting control unit is used to perform lighting control on the master lamp according to the master lamp lighting strategy, and to perform lighting control on the slave lamp according to the slave lamp lighting strategy.

10. A readable storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the steps of the lamp control method according to any one of claims 1 to 7 are implemented.