Lamp control method, device and equipment and storage medium
By detecting the status parameters of LED solar lamps and dynamically adjusting their operating power or duration, the problem of uneven energy storage and energy consumption distribution of lamps is solved, and the normal operation and lighting effect of lamps under set conditions is achieved.
Patent Information
- Application Number
- CN202510889366.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-02
AI Technical Summary
The existing LED solar lamps cannot be automatically and dynamically distributed in terms of energy storage, energy consumption and energy consumption time, making it difficult to meet the nominal actual working time or lighting brightness requirements of the lamps.
The lamp control device detects the status parameters, obtains the required operating status, and dynamically adjusts the operating power or operating time of the lamp to meet the lighting needs of users.
It realizes that the lamp operates normally within the constant operating power or operating time set by the user, meeting the working time or lighting brightness requirements.
Smart Images

Figure CN120583554A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of solar lamps, and in particular to a lamp control method, device, equipment and storage medium. Background Art
[0002] With the development of light-emitting diode (LED) solar street light technology, higher requirements are placed on the lighting control of LED solar lamps.
[0003] In actual use, it was found that the LED solar lamps currently on the market are difficult to achieve the actual working time or lighting brightness requirements specified on the lamps because the lamps' energy storage, energy consumption and energy consumption duration cannot be automatically and dynamically coordinated and allocated. Summary of the Invention
[0004] The present application proposes a lamp control method, device, equipment and storage medium for meeting the lighting needs of users for lamps and dynamically adjusting the operating power or operating time of the lamps.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a lamp control method is provided, comprising: a lamp control device detecting lamp status parameters and obtaining a desired operating state of the lamp, the status parameters including a current battery level, a current power value, and a runnable duration, the desired operating state being either a constant operating power or a constant runnable duration. Furthermore, the lamp control device determines target operating parameters based on the desired operating state and the status parameters, and controls the lamp to operate based on the desired operating state and the target operating parameters; if the desired operating state is a constant operating power, the target operating parameter is a target runnable duration; if the desired operating state is a constant runnable duration, the target operating parameter is a target operating power.
[0007] In the lamp control method provided in the present application, the lamp control device can obtain the current state parameters of the lamp by detecting the lamp, that is, obtain the current power storage capacity, current power value and operating time of the lamp, and then determine the target operating time when the required state parameter set by the user is a constant operating power, so that the lamp operates according to the constant operating power set by the user. When the required state parameter set by the user is a constant operating time, the target operating power is determined so that the lamp can operate normally within the constant operating time set by the user, thereby meeting the user's lamp working time or lighting brightness requirements.
[0008] In one possible design, when the required operating state is a constant operating power, the lighting control device determines the target operating parameters based on the required operating state and the state parameters, including: determining whether the first product is less than or equal to 90% of the current battery capacity, the first product being the product of the constant operating power and the operating time; when the first product is less than or equal to 90% of the current battery capacity, determining the target operating time to be the operating time.
[0009] In one possible design, the above-mentioned lamp control method also includes: when the first product is greater than 90% of the current battery capacity, determining the dynamic operating time for the lamp to operate at a constant operating power supported by 90% of the current battery capacity; when the dynamic operating time is greater than or equal to 50% of the operable time, determining the target operating time as the dynamic operating time.
[0010] In one possible design, the above-mentioned lamp control method also includes: when the dynamic operating time is less than 50% of the operable time, determining the target operating time includes a first jump time and a second jump time of multiple cycles, the lamp is turned off during the first jump time, and the lamp operates at a constant operating power during the second jump time, and the product of the second jump time and the number of cycles is the dynamic operating time.
[0011] In one possible design, when the required operating state is a constant operating duration, the lighting control device determines the target operating parameters based on the required operating state and the state parameters, including: determining whether the second product is less than or equal to 90% of the current battery capacity, the second product being the product of the constant operating duration and the current power value; when the second product is less than or equal to 90% of the current battery capacity, determining the target operating power to be the current power value.
[0012] In one possible design, the above-mentioned lamp control method also includes: when the second product is greater than 90% of the current storage capacity, determining the dynamic operating power that supports the lamp to operate at a constant operating time with 90% of the current storage capacity; when the dynamic operating power is greater than or equal to 50% of the current power value, determining the target operating power as the dynamic operating power.
[0013] In one possible design, the above-mentioned lamp control method also includes: when the dynamic operating power is less than 50% of the current power value, determining the target operating power includes a first jump power and a second jump power, the lamp operates at the first jump power within a first time length, and the lamp operates at the second jump power within a second time length, and the sum of the first time length and the second time length is the constant operating time length.
[0014] In a second aspect, a lighting control device is provided, comprising a processing unit, an acquisition unit, and a determination unit. The processing unit is configured to detect status parameters of the lighting fixture, the status parameters including the current battery capacity, the current power value, and the available operating time. The acquisition unit is configured to acquire the required operating state of the lighting fixture, where the required operating state is either constant operating power or constant operating time. The determination unit is configured to determine target operating parameters based on the required operating state and the status parameters; when the required operating state is constant operating power, the target operating parameter is the target operating time, and when the required operating state is constant operating time, the target operating parameter is the target operating power. The processing unit is further configured to control the operation of the lighting fixture based on the required operating state and the target operating parameters.
[0015] In one possible design, when the required operating state is constant operating power, the determination unit is specifically used to determine whether the first product is less than or equal to 90% of the current storage capacity, and the first product is the product of the constant operating power and the operating time; when the first product is less than or equal to 90% of the current storage capacity, the target operating time is determined to be the operating time.
[0016] In one possible design, the determination unit is specifically used to determine the dynamic operating time for the lamp to operate at a constant operating power supported by 90% of the current storage capacity when the first product is greater than 90% of the current storage capacity; and to determine the target operating time as the dynamic operating time when the dynamic operating time is greater than or equal to 50% of the operable time.
[0017] In one possible design, the determination unit is specifically used to determine that the target operating time includes a first jump time and a second jump time of multiple cycles when the dynamic operating time is less than 50% of the operable time, the lamp is turned off during the first jump time, and the lamp operates at a constant operating power during the second jump time, and the product of the second jump time and the number of cycles is the dynamic operating time.
[0018] In one possible design, when the required operating state is a constant operating duration, the determination unit is specifically used to determine whether the second product is less than or equal to 90% of the current storage capacity, and the second product is the product of the constant operating duration and the current power value; when the second product is less than or equal to 90% of the current storage capacity, the target operating power is determined to be the current power value.
[0019] In one possible design, the determination unit is specifically used to determine the dynamic operating power that supports the lamp to operate at a constant operating time with 90% of the current storage capacity when the second product is greater than 90% of the current storage capacity; and to determine the target operating power as the dynamic operating power when the dynamic operating power is greater than or equal to 50% of the current power value.
[0020] In one possible design, the determination unit is specifically used to determine that the target operating power includes a first jump power and a second jump power when the dynamic operating power is less than 50% of the current power value. The lamp operates at the first jump power within a first time period, and operates at the second jump power within a second time period. The sum of the first time period and the second time period is the constant operating time period.
[0021] In a third aspect, a lamp control device is provided, which includes a memory and a processor; the memory and the processor are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the lamp control device executes the lamp control method provided in the first aspect or any possible design thereof.
[0022] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a lighting control device, the lighting control device executes the lighting control method provided in the first aspect or any possible design thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic structural diagram of a lighting device provided in an embodiment of the present application;
[0024] Figure 2 A schematic flow chart of a lamp control method provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of a process for determining operating parameters provided in an embodiment of the present application Figure 1 ;
[0026] Figure 4 A schematic diagram of a process for determining operating parameters provided in an embodiment of the present application Figure 2 ;
[0027] Figure 5 A schematic structural diagram of a lighting control device provided in an embodiment of the present application;
[0028] Figure 6 A schematic diagram of the structure of a lighting control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0030] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0031] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "a plurality of" refer to two or more. Words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not limit them to be different.
[0032] With the development of LED solar street light technology, higher requirements have been placed on the lighting control of LED solar lamps. In actual use, it has been found that the LED solar lamps currently on the market cannot automatically and dynamically coordinate the energy storage, energy consumption and energy consumption duration of the lamps, making it difficult to achieve the actual operating time or lighting brightness requirements of the lamps.
[0033] To address the aforementioned issues, the present application proposes a lamp control method, device, equipment, and storage medium. The lamp control device detects the lamp's status parameters and obtains the lamp's required operating state. The status parameters include the current battery level, the current power value, and the available operating duration. The required operating state is either constant operating power or constant operating duration. Furthermore, the lamp control device determines target operating parameters based on the required operating state and the status parameters, and controls the lamp to operate based on the required operating state and the target operating parameters. When the required operating state is constant operating power, the target operating parameter is the target operating duration; when the required operating state is constant operating duration, the target operating parameter is the target operating power.
[0034] In this way, the lamp control device can obtain the current status parameters of the lamp by detecting the lamp, that is, obtain the current storage capacity, current power value and operating time of the lamp, and then determine the target operating time when the required state parameter set by the user is a constant operating power, so that the lamp operates according to the constant operating power set by the user. When the required state parameter set by the user is a constant operating time, the target operating power is determined so that the lamp can operate normally within the constant operating time set by the user, thereby meeting the user's lamp working time or lighting brightness requirements.
[0035] Figure 1A schematic diagram of the structure of a lighting device is shown. The lighting control method provided in the embodiment of the present application can be applied to Figure 1 The lamp device 10 shown is used to meet the lighting needs of users for lamps and dynamically adjust the operating power or operating time of the lamp. Figure 1 As shown, the lamp device 10 includes a lamp control device 11 , an LED lamp group 12 and a battery 13 .
[0036] The lamp control device 11 is connected to the LED lamp group 12 and the battery 13 respectively. The battery 13 is connected to the LED lamp group 12 to supply power to the LED lamp group 12 .
[0037] The lamp control device 11 can be used to detect the operating power of the LED lamp group 12 and can also be used to detect the remaining power of the battery 13.
[0038] The lamp control device 11 can also be used to control the operation of the LED lamp group 12.
[0039] Figure 2 is a flow chart of a lamp control method according to some exemplary embodiments. In some embodiments, the above lamp control method can be applied to Figure 1 The lamp control device 11 in the lamp device 10 is shown. In the following, the embodiment of the present application takes the lamp control method applied to the lamp control device 11 as an example to illustrate the above-mentioned lamp control method.
[0040] like Figure 2 As shown, the lamp control method provided in the embodiment of the present application includes the following S201-S204.
[0041] S201: The lamp control device detects status parameters of the lamp.
[0042] The status parameters include the current storage capacity, current power value and the operating time.
[0043] As one possible implementation, the lighting control device detects the remaining battery charge, determining it as the current battery charge, and also detects the operating power of the LED light assembly, determining it as the current power value. Furthermore, the lighting control device calculates the operating life of the light based on the current battery charge and the current power value.
[0044] In some embodiments, the current stored power value detected by the lighting control device is A, and the current power value is B, and the calculated operating time is C=A / B.
[0045] For example, if the current storage capacity A is 1000 W / h and the current power value B is 50 W, the operating time C is 1000 / 50=20 hours.
[0046] S202: The lighting control device obtains the required operating status of the lighting.
[0047] The required operating state is a constant operating power or a constant operating time.
[0048] It should be noted that the required operating status can be set in advance in the lighting control device by the operation and maintenance personnel, or the lighting control device can obtain the required operating status input by the user when the lighting is running. For example, the user inputs a constant operating power or a constant operating time through a device that can communicate with the lighting control device. The embodiments of the present application do not specifically limit this.
[0049] It is understandable that constant operating power and constant operating time cannot be set at the same time. If constant operating power is set, the operating time of the lamp is a dynamic value. If constant operating time is set, the operating power of the lamp is a dynamic value.
[0050] S203: The lighting control device determines target operating parameters according to the required operating state and state parameters.
[0051] Wherein, when the demand state parameter is constant operating power, the target operating parameter is the target operating duration; when the demand state parameter is constant operating duration, the target operating parameter is the target operating power.
[0052] As a possible implementation manner, a default operating power and a default operating time are set in the lighting control device.
[0053] When the demand state parameter is constant operating power, the lighting control device calculates the product of the constant operating power and the default operating time and determines whether the product is less than the current battery capacity. If the product is less than the current battery capacity, the target operating time is determined to be the default operating time.
[0054] When the required state parameter is constant operating time, the lighting control device calculates the product of the constant operating time and the default operating power and determines whether the product is less than the current battery capacity. If the product is less than the current battery capacity, the target operating time is determined to be the default operating power.
[0055] Optionally, when the current power storage capacity of the lamp does not satisfy the lamp to operate in the required operating state and with default operating parameters, the specific implementation method of the lamp control device to determine the target operating parameters can be described in subsequent embodiments.
[0056] S204: The lighting control device operates based on the required operating state and the target operating parameters.
[0057] As a possible implementation method, when the required operating state is a constant operating power, the lighting control device controls the lighting to operate at a constant operating power for a target operating time; when the required operating state is a constant operating time, the lighting control device controls the lighting to operate at a target operating power within the constant operating time.
[0058] In some embodiments, when the required operating state is a constant operating power, the lighting control device determines the target operating parameters according to the required operating state and the state parameters, such as Figure 3 shown.
[0059] S301: The lighting control device calculates a first product.
[0060] As a possible implementation manner, the lamp controlling device determines the product of the constant operating power and the operable operating time as the first product.
[0061] Exemplarily, the constant operating power is P, the operating time is C, and the first product is P*C.
[0062] S302: The lamp control device determines whether the first product is less than or equal to 90% of the current storage capacity.
[0063] S303: When the first product is less than or equal to 90% of the current power storage amount, the lamp control device determines the target operating time as the operable operating time.
[0064] Furthermore, the lamp control device controls the operation of the lamp based on the constant operating power and the operable duration, and does not perform a jump duration or a jump power during the operation.
[0065] S304: When the first product is greater than 90% of the current power storage, the lamp control device determines a dynamic operating time during which 90% of the current power storage supports the lamp to operate at a constant operating power.
[0066] For example, the constant operating power is P, the current storage capacity is A, and the dynamic operating time T′=A*90% / P.
[0067] S305: The lighting control device determines whether the dynamic operating time is greater than or equal to 50% of the operable time.
[0068] S306: When the dynamic operating time is greater than or equal to 50% of the operable time, the lighting control device determines the target operating time as the dynamic operating time.
[0069] Furthermore, the lamp control device controls the operation of the lamp based on the constant operating power and the dynamic operating duration, and does not perform jump duration or jump power during the operation.
[0070] S307: When the dynamic operating time is less than 50% of the operable time, the lighting control device determines that the target operating time includes a first jump time and a second jump time of multiple cycles.
[0071] The lamp is turned off during the first jump duration, and operates at a constant operating power during the second jump duration. The product of the second jump duration and the number of cycles is the dynamic operating duration.
[0072] For example, if the constant operating power is P, the current storage capacity is A, the operating time is C, and the dynamic operating time is T′, then when the target operating time includes the first jump time and the second jump time of 3 cycles, the first jump time QT1 = (P*C-A*90%) / 3P, and the second jump time is QT2 = T′ / 3.
[0073] Furthermore, the lamp control device controls the operation of the lamp based on the constant operating power and the first jump duration and the second jump duration, wherein, during the first jump duration, the lamp control device controls the lamp to turn off, and during the second jump duration, the lamp control device controls the lamp to operate at a constant operating power, and sequentially cycles the process of turning off and operating at a constant operating power until the set number of cycles is reached to meet the user's demand for the lamp's lighting brightness.
[0074] In some embodiments, when the required operating state is a constant operating duration, the lighting control device determines the target operating parameters according to the required operating state and the state parameters, such as Figure 4 shown.
[0075] S401: The lighting control device calculates a second product.
[0076] As a possible implementation manner, the lamp control device determines the product of the constant operating time and the current power value as the second product.
[0077] Exemplarily, the constant operating time is T, the current power value is B, and the first product is B*T.
[0078] S402: The lighting control device determines whether the second product is less than or equal to 90% of the current storage capacity.
[0079] S403: When the second product is less than or equal to 90% of the current power storage value, the lamp control device determines that the target operating power is the current power value.
[0080] Furthermore, the lamp control device controls the operation of the lamp based on the constant operation time and the current power value, and does not perform jump time or jump power during the operation.
[0081] S404: When the second product is greater than 90% of the current power storage, the lamp control device determines a dynamic operating power that supports the lamp to operate at a constant operating time with 90% of the current power storage.
[0082] For example, the constant operating time is T, the current storage capacity is A, and the dynamic operating power P′=A*90% / T.
[0083] S405: The lighting control device determines whether the dynamic operating power is greater than or equal to 50% of the current power value.
[0084] S406: When the dynamic operating power is greater than or equal to 50% of the current power value, the lighting control device determines the target operating power as the dynamic operating power.
[0085] Furthermore, the lamp control device controls the operation of the lamp based on the constant operation duration and the dynamic operation power, and does not perform jump duration or jump power during the operation.
[0086] S407: When the dynamic operating power is less than 50% of the current power value, the lighting control device determines that the target operating power includes a first jump power and a second jump power.
[0087] The lamp operates at a first jump power during a first duration, and operates at a second jump power during a second duration. The sum of the first duration and the second duration is the constant operation duration.
[0088] For example, if the constant operating time is T, the current stored power is A, the current power value is B, and the dynamic operating power is P′, then the first jump power QP1 = B-(B*T-90%*A) / 3T, and the second jump power QP2 = B-2*(B*T-90%*A) / 3T.
[0089] Optionally, the first duration and the second duration are both T / 2, and the lamp control device controls the operation of the lamp based on the constant operating duration and the first jump power and the second jump power, wherein, within the first duration (within the first T / 2), the lamp control device controls the lamp to operate at the first jump power (B-(B*T-90%*A) / 3T), and within the second duration (within the second T / 2), the lamp control device controls the lamp to operate at the second jump power (B-2*(B*T-90%*A) / 3T) to meet the user's demand for the lamp lighting duration.
[0090] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0091] In the embodiments of the present application, the user equipment can be divided into functional modules according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. Optionally, the division of modules in the embodiments of the present application is illustrative and is only a logical functional division. In actual implementation, other division methods may be used.
[0092] Figure 5 This is a schematic diagram of the structure of a lighting control device provided in an embodiment of the present application. The lighting control device is used to execute the above-mentioned lighting control method. Figure 5 As shown, the lighting control device 50 includes a processing unit 501 , an acquiring unit 502 and a determining unit 503 .
[0093] The processing unit 501 is used to detect the status parameters of the lamp, which include the current storage capacity, the current power value and the operating time.
[0094] The acquisition unit 502 is configured to acquire a required operating state of the lamp, where the required operating state is a constant operating power or a constant operating duration.
[0095] The determination unit 503 is used to determine the target operating parameters according to the required operating state and the state parameters; when the required operating state is constant operating power, the target operating parameter is the target operating duration; when the required operating state is constant operating duration, the target operating parameter is the target operating power.
[0096] The processing unit 501 is further configured to control the lamp to operate based on the required operating state and target operating parameters.
[0097] Optional, such as Figure 5As shown, in the lighting control device 50 provided in the embodiment of the present application, when the required operating state is a constant operating power, the determination unit 503 is specifically used to determine whether the first product is less than or equal to 90% of the current battery capacity, and the first product is the product of the constant operating power and the operating time; when the first product is less than or equal to 90% of the current battery capacity, the target operating time is determined to be the operating time.
[0098] Optional, such as Figure 5 As shown, in the lighting control device 50 provided in the embodiment of the present application, the determination unit 503 is specifically used to determine the dynamic operating time for the lamp to operate at a constant operating power supported by 90% of the current storage capacity when the first product is greater than 90% of the current storage capacity; and when the dynamic operating time is greater than or equal to 50% of the operable time, determine the target operating time as the dynamic operating time.
[0099] Optional, such as Figure 5 As shown, in the lighting control device 50 provided in the embodiment of the present application, the determination unit 503 is specifically used to determine that the target operating time includes a first jump time and a second jump time of multiple cycles when the dynamic operating time is less than 50% of the operable time, the lamp is turned off during the first jump time, and the lamp operates at a constant operating power during the second jump time, and the product of the second jump time and the number of cycles is the dynamic operating time.
[0100] Optional, such as Figure 5 As shown, in the lighting control device 50 provided in the embodiment of the present application, when the required operating state is a constant operating duration, the determination unit 503 is specifically used to determine whether the second product is less than or equal to 90% of the current power storage, and the second product is the product of the constant operating duration and the current power value; when the second product is less than or equal to 90% of the current power storage, the target operating power is determined to be the current power value.
[0101] Optional, such as Figure 5 As shown, in the lighting control device 50 provided in the embodiment of the present application, the determination unit 503 is specifically used to determine the dynamic operating power that supports the lighting fixture to operate at a constant operating time with 90% of the current storage capacity when the second product is greater than 90% of the current storage capacity; when the dynamic operating power is greater than or equal to 50% of the current power value, the target operating power is determined to be the dynamic operating power.
[0102] Optional, such as Figure 5As shown, in the lighting control device 50 provided in the embodiment of the present application, the determination unit 503 is specifically used to determine that the target operating power includes a first jump power and a second jump power when the dynamic operating power is less than 50% of the current power value. The lamp operates at the first jump power within a first time period, and the lamp operates at the second jump power within a second time period, and the sum of the first time period and the second time period is the constant operating time period.
[0103] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structural diagram of a lighting control device. The lighting control device is used to execute the lighting control method executed by the lighting control device in the above-mentioned embodiment. Figure 6 As shown, the lamp control device 60 includes a processor 601, a memory 602 and a bus 603. The processor 601 and the memory 602 may be connected via the bus 603.
[0104] Processor 601 is the control center of the lighting control device and can be a single processor or a collection of multiple processing elements. For example, processor 601 can be a general-purpose central processing unit (CPU) or other general-purpose processor. A general-purpose processor can be a microprocessor or any conventional processor.
[0105] As an embodiment, the processor 601 may include one or more CPUs, such as Figure 6 CPU 0 and CPU 1 are shown in Figure 1.
[0106] The memory 602 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0107] As a possible implementation, memory 602 can exist independently of processor 601 and can be connected to processor 601 via bus 603 to store instructions or program codes. When processor 601 calls and executes the instructions or program codes stored in memory 602, the lamp control method provided in the embodiment of the present application can be implemented.
[0108] In another possible implementation, the memory 602 may also be integrated with the processor 601 .
[0109] Bus 603 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0110] It should be pointed out that Figure 6 The structure shown does not constitute a limitation of the lamp control device 60. Figure 6 In addition to the components shown, the lighting control device 60 may include Figure 6 More or fewer components may be shown, or certain components may be combined, or different arrangements of components may be shown.
[0111] As an example, combining Figure 5 The functions implemented by the processing unit 501, the obtaining unit 502 and the determining unit 503 in the lighting control device 50 are similar to those implemented by Figure 6 The functions of the processor 601 in are the same.
[0112] Optional, such as Figure 6 As shown, the lighting control device provided in the embodiment of the present application may further include a communication interface 604 .
[0113] The communication interface 604 is used to connect to other devices via a communication network. The communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 604 can include an acquisition unit for receiving data and a transmission unit for sending data.
[0114] In one design, in the lighting control device provided in the embodiment of the present application, the communication interface can also be integrated into the processor.
[0115] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above-mentioned functional units is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0116] An embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.
[0117] An embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the lamp control method in the above method embodiment.
[0118] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium in a suitable combination of the above, or a numerical value in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0119] Since the apparatus, device computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.
[0120] The above is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A lamp control method, characterized in that: The method comprises: Detecting status parameters of the lamp, including current storage capacity, current power value, and operating time; Obtaining a required operating state of the lamp, where the required operating state is a constant operating power or a constant operating duration; According to the required operating state and the state parameters, the target operating parameters are determined, and the lamp is controlled to operate based on the required operating state and the target operating parameters; when the required operating state is the constant operating power, the target operating parameter is the target operating time, and when the required operating state is the constant operating time, the target operating parameter is the target operating power.
2. The lamp control method according to claim 1, characterized in that: When the required operating state is the constant operating power, determining the target operating parameter according to the required operating state and the state parameter includes: determining whether a first product is less than or equal to 90% of the current stored power, the first product being a product of the constant operating power and the operable duration; When the first product is less than or equal to 90% of the current power storage amount, the target operating time is determined to be the operable time.
3. The lamp control method according to claim 2, characterized in that: The method further comprises: When the first product is greater than 90% of the current power storage, determining a dynamic operating time during which 90% of the current power storage supports the lamp to operate at the constant operating power; When the dynamic running time is greater than or equal to 50% of the operable running time, the target running time is determined to be the dynamic running time.
4. The lamp control method according to claim 3, characterized in that: The method further comprises: In the case where the dynamic operating time is less than 50% of the operable time, the target operating time is determined to include a first jump time and a second jump time of multiple cycles, the lamp is turned off during the first jump time, and the lamp operates at the constant operating power during the second jump time, and the product of the second jump time and the number of cycles is the dynamic operating time.
5. The lamp control method according to claim 1, characterized in that: When the required operating state is the constant operating duration, determining the target operating parameter according to the required operating state and the state parameter includes: determining whether a second product is less than or equal to 90% of the current stored power, the second product being a product of the constant operating time and the current power value; When the second product is less than or equal to 90% of the current power storage amount, the target operating power is determined to be the current power value.
6. The lamp control method according to claim 5, characterized in that: The method further comprises: When the second product is greater than 90% of the current power storage, determining a dynamic operating power at which 90% of the current power storage supports the lamp to operate at the constant operating time; In a case where the dynamic operating power is greater than or equal to 50% of the current power value, the target operating power is determined to be the dynamic operating power.
7. The lamp control method according to claim 6, characterized in that: The method further comprises: When the dynamic operating power is less than 50% of the current power value, the target operating power is determined to include a first jump power and a second jump power, the lamp operates at the first jump power within a first time period, and the lamp operates at the second jump power within a second time period, and the sum of the first time period and the second time period is the constant operating time period.
8. A lighting control device, characterized in that: It includes a processing unit, an acquisition unit, and a determination unit; The processing unit is used to detect the status parameters of the lamp, wherein the status parameters include the current storage capacity, the current power value and the operating time; The acquiring unit is configured to acquire a required operating state of the lamp, where the required operating state is a constant operating power or a constant operating duration; The determining unit is configured to determine a target operating parameter based on the required operating state and the state parameter; when the required operating state is a constant operating power, the target operating parameter is a target operating duration; and when the required operating state is a constant operating duration, the target operating parameter is a target operating power; The processing unit is further configured to control the lamp to operate based on the required operating state and the target operating parameters.
9. A lighting control device, characterized in that: including memory and processor; The memory is coupled to the processor; The memory is used to store computer program code, wherein the computer program code includes computer instructions; When the processor executes the computer instructions, the lamp control device executes the lamp control method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing instructions, characterized in that: When the instruction is executed on the lighting control device, the lighting control device is caused to execute the lighting control method according to any one of claims 1 to 7.