CN112654110A - Flicker control method and device of LED indicator lamp and terminal equipment - Google Patents

Flicker control method and device of LED indicator lamp and terminal equipment Download PDF

Info

Publication number
CN112654110A
CN112654110A CN202011624597.9A CN202011624597A CN112654110A CN 112654110 A CN112654110 A CN 112654110A CN 202011624597 A CN202011624597 A CN 202011624597A CN 112654110 A CN112654110 A CN 112654110A
Authority
CN
China
Prior art keywords
led
flicker
state
lighting
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011624597.9A
Other languages
Chinese (zh)
Other versions
CN112654110B (en
Inventor
曾武坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Techtotop Microelectronics Co Ltd
Original Assignee
Techtotop Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Techtotop Microelectronics Co Ltd filed Critical Techtotop Microelectronics Co Ltd
Priority to CN202011624597.9A priority Critical patent/CN112654110B/en
Publication of CN112654110A publication Critical patent/CN112654110A/en
Application granted granted Critical
Publication of CN112654110B publication Critical patent/CN112654110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The embodiment of the application is suitable for the technical field of light emitting diodes, and provides a flicker control method and device of an LED indicator lamp and terminal equipment, wherein the method comprises the following steps: when an event triggering the LED indicator light to flicker is monitored, acquiring a flicker parameter corresponding to the event; storing the flicker parameter into a preset control variable; determining the current state of an LED state machine, wherein the current state of the LED state machine is used for representing the current working state of the LED indicator light; calling an LED flicker function, wherein the LED flicker function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states; and executing the LED flicker function from the target function section corresponding to the current state by taking the control variable as the input parameter so as to control the LED indicator lamp to flicker according to a flicker mode set by the event. By adopting the method, abundant and various flickering effects can be realized.

Description

Flicker control method and device of LED indicator lamp and terminal equipment
Technical Field
The embodiment of the application belongs to the technical field of light emitting diodes, and particularly relates to a flicker control method and device for an LED indicator lamp and terminal equipment.
Background
A Light Emitting Diode (LED) indicator is a common status indicator. The LED indicator light can be used as a power indicator light, a key indicator light, a status indicator light of a mobile phone and the like. According to different application scenes and equipment resources, the control requirements on the LED indicator lamps are different. In general, LED indicators have only two states, on and off, but by controlling the length of time that they are on and off, many different combinations can be made that can be used to indicate different states.
The LED indicator lights are alternately turned on and off to realize the flickering of the LED indicator lights. The most basic implementation of LED indicator flashing is to insert a delay time between on and off, i.e., light-on-delay-off-delay-on. The cycle realizes the flashing function of the LED indicator lamp. In addition to the flickering of the LED indicator by directly inserting a delay between on and off, there are some implementations in which the interruption of the timer is combined, and the on and off states of the LED are appropriately switched according to the state and time of the LED by checking the state of the LED in the timer and counting the on and off times, thereby finally realizing a desired flickering effect.
However, the flashing function realized by inserting a delay time between on and off is relatively single, and cannot effectively indicate various working states. Although the flicker realized by timer interruption can realize various flicker functions, the method needs to establish a flicker list, the LED indicator lamp can only flicker according to the existing mode in the list when flickering, and the operation is very complicated if a new flicker mode is added.
Disclosure of Invention
In view of this, the embodiment of the present application provides a method and an apparatus for controlling flickering of an LED indicator, and a terminal device, so as to achieve various flickering effects.
A first aspect of an embodiment of the present application provides a method for controlling flickering of an LED indicator, including:
when an event triggering the LED indicator light to flicker is monitored, acquiring a flicker parameter corresponding to the event;
storing the flicker parameter into a preset control variable;
determining the current state of an LED state machine, wherein the current state of the LED state machine is used for representing the current working state of the LED indicator light;
calling an LED flicker function, wherein the LED flicker function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states;
and executing the LED flicker function from the target function section corresponding to the current state by taking the control variable as the input parameter so as to control the LED indicator lamp to flicker according to a flicker mode set by the event.
A second aspect of the embodiments of the present application provides a flicker control device for an LED indicator, including:
the parameter acquisition module is used for acquiring a flicker parameter corresponding to an event when the event triggering the LED indicator lamp to flicker is monitored;
the parameter storage module is used for storing the flicker parameter into a pre-configured control variable;
the state determination module is used for determining the current state of the LED state machine, and the current state of the LED state machine is used for representing the current working state of the LED indicator light;
the function calling module is used for calling an LED flashing function, and the LED flashing function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states;
and the flicker control module is used for executing the LED flicker function from the target function section corresponding to the current state by taking the control variable as an input parameter so as to control the LED indicator lamp to flicker according to a flicker mode set by the event.
A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for controlling the blinking of the LED indicator light according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for controlling blinking of an LED indicator as described in the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the method for controlling flashing of an LED indicator lamp according to the first aspect.
Compared with the prior art, the embodiment of the application has the following advantages:
according to the embodiment of the application, rich LED flickering functions can be realized by writing simple codes. Compared with the prior art, when the method provided by the embodiment of the application is adopted to control the LED indicator light to flicker, no delay and wait exist in the system, the system can be executed completely without blocking, and the processing of other transactions cannot be influenced by the LED flicker blocking and waiting. Secondly, the control process of the method is simple in logic and clear in thought, the code amount required for realizing the method is small, and only few system resources are occupied. Thirdly, the control method provided by the embodiment of the application can fully exert the advantages of a predefined method and a self-defined method, and can realize rich flashing functions by combining a predefined flashing mode and a self-defined flashing mode. Fourthly, the control process of the embodiment of the application is not required to be executed in interruption, precious interruption resources are not occupied, and the real-time performance of the system is not influenced no matter in a single-task system or a multi-task system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a flow chart illustrating steps of a flicker control method for an LED indicator light in the prior art;
FIG. 2 is a schematic diagram of a control sequence of a flicker control method for an LED indicator light in the prior art;
FIG. 3 is a flowchart illustrating steps of a method for controlling flickering of an LED indicator according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of an LED flicker function according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a flicker control process of an LED indicator according to an embodiment of the present disclosure;
FIG. 6 is a schematic control timing diagram illustrating a flicker control method for an LED indicator according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a flicker control device for an LED indicator light according to an embodiment of the present application;
fig. 8 is a schematic diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Before describing the method for controlling the blinking of the LED indicator provided in the embodiments of the present application, a description will be first made on a part of technologies related to the method.
As a possible implementation manner in the related art, the LED indicator is periodically turned on and off according to a basic principle of LED flashing, and a certain time delay is added between the turning on and turning off, so that the flashing of the LED indicator can be implemented. The flashing method is suitable for system operation indication. If the LED indicator light flickers, the system is in operation, and if the LED indicator light does not flick, the system stops operating.
For a single-task system, adding delay between turning on and turning off in the above manner may cause other transactions to be unable to be processed in time, and affect the real-time performance of the system. Some important transactions, such as over-current and over-voltage warning, will have serious consequences if they cannot be processed in time. For a multitasking system, an LED indicator lamp flashing task can be separately created, and related operations of LED indicator lamp flashing are specially processed in the task. When the LED indicator light is delayed in flashing, the system can still process other transactions. However, creating a task separately for flashing the LED wastes a lot of unnecessary memory space, and the flashing method has a single function and a limited application range, and cannot effectively indicate multiple working states.
As another possible implementation manner in the related art, the blinking of the LED indicator may be implemented by using a timer interrupt plus a table lookup. When the method is adopted to control the LED indicator light to flash, an LED flash list needs to be established, and the list needs to contain LED lighting time, LED lighting-off time, cycle times, delay time, macros and the like. According to the difference of the macros, the on-off time parameters of the LED indicator lamps are different, so that the currently used macros and the current time parameters need to be stored by setting variables.
Fig. 1 is a schematic diagram illustrating a flow of steps of a flicker control method for an LED indicator in the prior art, where fig. 1 illustrates a manner of implementing flicker of the LED indicator by using timer interrupt plus table lookup. As shown in fig. 1, the method comprises the following steps:
and S101, after the system is started, initializing a timer in the STM32 chip, and setting the interrupt time of the timer in the process of processing. A minimum time unit may be set in the timer of the STM32 chip to be the interrupt time of the timer, and the minimum time unit of the interrupt time may be any value between 5 and 15 ms.
S102, after the system is stable, a timer of an STM32 chip enters an interrupt state, the system reads the lighting value of an LED in a pre-established LED flicker list and stores the lighting value into a variable; and the system switches the state of the LED indicator lamp to the lighted state, and after the switching is finished, the system reads the numerical value of the cycle number in the list and stores the cycle number.
And S103, automatically subtracting 1 from the lighting variable in the previous reading list in the timer interrupt of the STM32 chip, so that the LED lamp in the system is stored in an automatically controlled state. The system judges whether the lighting value variable of the LED indicator light is changed into 0, if so, the step S104 of turning off the light is carried out, otherwise, the step S103 is continuously carried out.
S104, when the timer of the STM32 chip enters the next interruption, the system reads the LED light-out value in the pre-established LED flicker list, stores the read light-out value into a variable, and then switches the state of the LED indicator light to the light-out state.
S105, in the interruption of the timer of the STM32 chip, subtracting 1 from the previously read light-out value variable by the system to keep the light-out state in an automatic control state; the system will determine whether the light-out value variable of the LED indicator is 0, if so, execute the next step S106, otherwise, continue to execute step S105.
And S106, when the light-out value variable is judged to be 0, after the LED indicator light is turned on and off once, subtracting 1 from the previously read cycle variable by the system, and automatically controlling the cycle in a light-on and light-off state.
S107, the system judges whether the variable of the cycle times becomes 0, if the variable of the cycle times becomes 0, the delay time in the LED flicker list is read, the delay time is stored in the variable of the system, then the next step S108 is executed, and if the variable of the cycle times is not 0, the step S106 is executed.
And S108, when the timer of the STM32 chip enters the next interrupt, the system reduces the delay time variable by 1.
S109, the system judges whether the delay time variable is 0, if so, the step S102 is executed, otherwise, the step S108 is continuously executed.
The process of controlling the flashing of the LED indicator according to the steps shown in fig. 1 is controlled in the timing sequence shown in fig. 2.
The control method shown in fig. 1 is adopted to realize the control of the flickering of the LED indicator light, the required code amount is not large, and the control of the flickering time can be very accurate. However, this approach also has some disadvantages as follows:
1) the table look-up method is not flexible enough, each flashing method corresponds to one table entry, and flashing can be performed only according to the mode of flashing the table. If a new flashing mode needs to be added, corresponding entries must be added to the flashing table, which not only is troublesome to operate, but also increases the storage space occupied by the flashing table with the increase of the flashing mode.
2) The LED indicating lamp can only be lighted once and goes out once in every flashing period, and after the flashing period is finished, the LED indicating lamp is in the state of going out, and the function is not rich enough.
3) Generally, the LED flashing belongs to low-priority transactions, the flashing time is not required to be very accurate, and the processing of the LED flashing transactions in the interrupt increases the response time of the interrupt, thereby influencing the processing of other more important non-interrupt transactions. If the interrupt priority is not properly set, the timely response of other low priority interrupts may also be affected. If the system is an embedded operating system, the real-time performance of the system is affected due to the prolonged response time of the interrupt.
Therefore, in order to solve the problems in the prior art, the embodiments of the present application provide a new solution, which can implement the blinking control of the LED indicator by writing simple codes. The flicker control method of the LED indicator lamp provided by the embodiment of the application adopts the state machine to realize the function of time delay, overcomes the defect that the task execution is blocked due to time delay, occupies less system resources, has high execution efficiency, and can be used in a single-task program and a multi-task program. In addition, the control process of the method is not executed in interruption, interruption resources are not occupied, and the real-time performance of the system is not influenced. Third, the blinking pattern provided by the present method may include both the predefined blinking pattern and the custom blinking pattern. Under the predefined flashing mode, the flashing parameters can be predefined, and the parameters of the corresponding mode can be directly called when needed; under the user-defined flashing mode, different flashing parameters can be set according to actual needs, and various flashing effects are achieved. The combination of the two flashing modes not only can improve the working efficiency, but also can realize richer flashing functions.
The technical solutions of the embodiments of the present application are described below by specific examples.
Referring to fig. 3, a schematic flow chart illustrating steps of a method for controlling blinking of an LED indicator according to an embodiment of the present application is shown, which may specifically include the following steps:
s301, when an event triggering the LED indicator lamp to flicker is monitored, a flicker parameter corresponding to the event is obtained.
It should be noted that the method can be applied to any system or equipment which needs to indicate a certain working state through the flashing of an LED indicator light, and the system can be a complete set of software and hardware system controlled by a CPU. Such as air conditioning systems, television systems, etc. Therefore, the execution subject of the embodiment of the present application may be a terminal device.
In the embodiment of the present application, a listener may be configured in the terminal device, and is used for listening to some events occurring or generated in the terminal device. Typically, in order to facilitate notification to the user of the occurrence of these events, a prompt may be provided by flashing an LED indicator light.
For example, a network status indicator lamp of a certain network device may blink once per second to prompt when the network status indicator lamp is in normal operation; after the network equipment is plugged into the network cable, the indication lamp can flash for 10 times to prompt that the network cable is plugged.
All events that need to be prompted by the LED indicator light can be the object that the listener is listening to. When the listener hears that a similar event occurs, the flicker parameter corresponding to the event may be acquired. The flashing parameters are specific working data of the LED indicator lamps which are configured in advance and used for prompting the events. For example, after the network device is plugged into the network cable, the indicator light flashes quickly for 10 seconds, and the flashing parameter corresponding to the event of plugging into the network cable is the configuration data required for how the LED indicator light flashes quickly for 10 seconds.
S302, storing the flicker parameters into a preset control variable.
In the embodiment of the present application, after the flicker parameter corresponding to the current event is obtained, the flicker parameter may be stored in a pre-configured control variable. These control variables may be called by the LED flashing function during subsequent processing to achieve corresponding flashing control.
In one possible implementation of the embodiment of the present application, the control variables may be configured by writing program code. Accordingly, data such as flicker parameters may also be configured by the code.
Therefore, in the process of implementing the flicker control method for the LED indicator provided in the embodiment of the present application, some data structures, such as an LED state machine type, an LED flicker mode type, a flicker parameter structure, and an LED control structure, may be predefined.
Various data structures are described below.
1. LED State machine type
The states required to be used in the embodiment of the application include an initial state, a state of lighting the LED, a state of keeping the LED, a state of lighting and extinguishing intervals of the LED and a state of delaying the LED. Wherein, the initial state mainly comprises the steps of obtaining a predefined parameter and counting the cycle number; the LED lighting state is used for turning on the LED to enable the corresponding LED indicator lamp to be on; the LED holding state is that after the LED indicator lamp is lightened, the LED indicator lamp is kept for a certain time in the lightening state according to the flicker parameter; the LED on-off interval state refers to a time interval between two on-off states in a flashing period, and the LED indicator lamp is in an off state in the time interval; the LED delay state is mainly that after the action of lighting and interval is finished, the next flashing period is started after a certain time delay.
The code for the LED state machine type may be as follows:
Figure BDA0002872897320000081
it should be noted that the flicker control method for the LED indicator provided in the embodiment of the present application belongs to a software method for a single chip microcomputer, and in a software program language of the single chip microcomputer, C language is most commonly used, and the embodiment of the present application is introduced by using C language as a program language for writing codes. Of course, other programming languages may be used to encode the codes according to actual needs, and the embodiment of the present application is not limited to this.
2. LED flicker pattern type
The type of LED flashing pattern will vary depending on the particular application and may be determined by the actual requirements at the time the project is implemented. In general, the blinking pattern in the embodiments of the present application may include a predefined blinking pattern and a custom blinking pattern. The predefined flashing mode can be further divided into a plurality of different flashing modes, for example, flashing once every second and flashing twice every second can be two different predefined flashing modes; all predefined types of blinking patterns need to be listed in this structure. Only the type of blinking pattern is defined here, and specific parameters of each pattern need to be defined additionally. It should be noted that there is only one type of custom blinking pattern, and its specific parameters need to be specified by calling the parameter configuration interface function.
The code for the LED blinking pattern type may be as follows:
Figure BDA0002872897320000082
Figure BDA0002872897320000091
3. scintillation parameter structure
The flicker parameter structure is mainly a flicker parameter configured in a flicker period, and comprises the number of times of lighting in the period, the time length of lighting each time, the time interval between two times of lighting, and the delay time after lighting. Each of the above times is in milliseconds.
In the embodiment of the application, if the flicker mode is predefined, the parameters need to be predefined in the program initialization stage; in the case of the custom flashing mode, the parameter configuration interface function should be called to set a specific value when needed.
The code for the flicker parameter structure may be as follows:
Figure BDA0002872897320000092
4. LED control structure
The LED flicker control structure is used for controlling the LED flicker process, and the LED control structure comprises a flicker parameter structure, a cycle number variable, an LED state machine, a first flicker mode and a second flicker mode.
The cycle number variable is used for recording the cycle number of the first flashing mode, the second flashing mode can be automatically executed after the first flashing mode is executed, and the second flashing mode can be executed all the time until a user reconfigures the flashing parameters. The first blinking pattern may be a predefined blinking pattern or a custom blinking pattern, and the second blinking pattern must be a predefined blinking pattern. The first flashing mode and the second flashing mode mainly have the effect that the LED indicator light automatically switches to another mode to continue flashing after flashing for a certain number of times in a certain mode. For example, if it is desired to use a certain LED indicator to indicate whether a new bluetooth device is connected, the LED indicator may flash at a normal speed at ordinary times, flash 5 times when it is detected that a new bluetooth device is connected, and then resume to flash at the normal speed. To implement this function, a parameter setting interface function may be called when a new bluetooth device is detected, and the first blinking mode may be set to the fast blinking mode, the cycle number may be set to 5 times, and the second blinking mode may be set to the normal blinking mode, so that a desired effect may be achieved.
The code for the LED control structure may be as follows:
Figure BDA0002872897320000101
in the embodiment of the present application, after the data structure is defined, the flicker parameter of the predefined flicker pattern may also be determined.
It is noted how many sets of flicker parameters need to be defined for how many predefined flicker patterns are. The data sequence in each set of flicker parameters needs to correspond one-to-one to the variables in the flicker parameter structure defined above.
The code of the flicker parameter of the predefined flicker pattern may be as follows:
Figure BDA0002872897320000102
Figure BDA0002872897320000111
in the embodiment of the application, when the LED flashing parameter needs to be changed, an LED parameter configuration interface function may be called to implement the change. The function mainly stores parameters set by a user in a local LED control variable, and the LED flicker function realizes a flicker control process of the LED by using the local LED control variable, wherein the local variable is a local variable in the LED module.
The code of the LED parameter configuration interface function may be as follows:
Figure BDA0002872897320000112
s303, determining the current state of the LED state machine, wherein the current state of the LED state machine is used for representing the current working state of the LED indicator lamp.
In the embodiment of the present application, the LED state machine may be used to record the operating state of the LED indicator light. That is, according to the state of the LED state machine, the current working state of the LED indicator lamp can be determined in real time.
S304, calling an LED flicker function, wherein the LED flicker function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states.
In the embodiment of the application, the LED flicker function is a main part for realizing the flicker function of the LED indicator lamp. The function may be periodically called by the system main function or the main task function. The shorter the call cycle, the higher the temporal accuracy of the flashing of the LED indicator. Of course, the LED indicator light is not required to be accurate in time since different states are recognized mainly by observation of human eyes.
In the embodiment of the present application, corresponding function segments can be designed for different state assignments in the LED flicker function. For example, for the initial state, the LED flicker function includes a function segment corresponding to the initial state; for the LED lighting state, the function section corresponding to the LED lighting state is also contained in the LED flicker function. The different function sections can facilitate the system to directly jump to the function section corresponding to the state to execute corresponding action after determining the working state of the LED indicating lamp.
Illustratively, the code of the LED flicker function may be as follows:
Figure BDA0002872897320000121
Figure BDA0002872897320000131
Figure BDA0002872897320000141
it should be noted that the flicker control method for the LED indicator provided in the embodiment of the present application belongs to a software method for a single chip microcomputer, and part of the final code implementation may have different implementation methods according to different single chip microcomputers. For example, turning on and off an LED, acquiring system time, and the like. These methods depending on specific hardware are not specifically implemented in the embodiments of the present application, but they are replaced with function interfaces. If the LED is lit as LED _ turn _ on () and the system time is obtained as get _ system _ time (), the functions of these function interfaces can be easily seen from the names, which are software methods that are well understood and commonly used by those skilled in the art, and the specific implementation of these functions does not affect the implementation of the method.
And S305, with the control variable as a parameter, starting to execute the LED flicker function from the target function section corresponding to the current state so as to control the LED indicator lamp to flicker according to a flicker mode set by the event.
In the embodiment of the present application, after the LED flashing function is called, the current time of the system may be obtained first, and the time is saved in the local variable. Because the system time is always accumulated, if the system time is directly read each time in the subsequent calculation process, the read time is inconsistent, the calculation is inconvenient, and the system overhead is increased. Therefore, the read current time is stored in the local variable, so that the subsequent calculation can be facilitated, and the system time is prevented from being read in each calculation process.
In the embodiment of the application, after the LED flashing function is called, the obtained control variable may be used as an input parameter, and the function is skipped to the corresponding target function segment according to the current state to start executing the function.
Fig. 4 is a schematic diagram illustrating a workflow of an LED flicker function according to an embodiment of the present application. According to the flow shown in fig. 4, after the LED flashing function is called, the following actions may be performed according to the state of the LED state machine:
1. if the current state of the LED state machine is the initial state, it can be determined whether the current cycle number of the first blinking mode is zero.
And if the current cycle number is zero, reading the configuration parameters of the second flashing mode from the preset parameter configuration table, and executing the second flashing mode based on the configuration parameters of the second flashing mode.
If the current cycle number is not zero, firstly, the current cycle number is reduced by one, then the flicker parameter of the first flicker mode is obtained from the control variable and executed, and after the relevant operation in the state is executed, the LED state machine is switched to the LED lighting state. Note that the blinking parameter of the first blinking pattern is set when the parameter arrangement method is called.
2. If the current state of the LED state machine is the LED lighting state, firstly controlling the LED indicator lamp to light, then determining the current lighting times and the current time of the LED indicator lamp in the first flashing mode, storing the current lighting times into a lighting time variable, storing the current time into an initial time variable, and then switching the LED state machine to a holding state.
3. If the current state of the LED state machine is the holding state, whether the first time length from the LED lighting state to the current time of the LED indicator lamp is longer than the lighting time length in the flicker parameter or not can be judged.
If the first time length is not longer than the lighting time length, the LED flicker function can be directly controlled to return.
And if the first time length is larger than the lighting time length, continuously judging whether the lighting time variable is zero or not. If the variable of the lighting times is zero, recording the lighting delay starting time, and switching the LED state machine to a delay state; if the variable of the lighting times is not zero, firstly, the current lighting times is reduced by one, then the lighting-off starting time is recorded, and the LED state machine is switched to a lighting-off interval state.
4. If the current state of the LED state machine is the on-off interval state, whether the second time length from the lamp turning-off to the current time is longer than the on-off interval time length in the flicker parameter can be judged.
If the second duration is not greater than the on-off interval duration, the LED flicker function can be directly controlled to return. If the second duration is longer than the on-off interval time length, the LED state machine can be switched to an LED lighting state.
5. If the current state of the LED state machine is a delay state, whether a third time length from the beginning of delay to the current time is greater than the delay time length in the flicker parameter can be judged.
If the third duration is longer than the delay time length, the LED flicker function can be directly controlled to return. If the third duration is not greater than the delay time length, the LED state machine may be switched to the initial state.
For ease of understanding, the following description will generally describe a method for controlling the blinking of the LED indicator provided in the embodiments of the present application, with reference to an example.
Fig. 5 is a schematic diagram illustrating a flicker control process of an LED indicator according to an embodiment of the present application. According to the control process shown in fig. 5, initially, a request for modification of the LED blinking parameter may be generated based on a manual operation by a user or triggered by some event. For example, the user operates through a serial port or screen, or the system detects a network cable insertion or other event. For the modification request, a temporary LED control variable may be defined and initialized to a value corresponding to the current event, i.e., the flashing parameter corresponding to the event. The modification of the LED flicker parameters can be realized by calling the LED parameter configuration interface function. The modified flashing parameter is the flashing parameter corresponding to the event, and the subsequent LED flashing function uses the new flashing parameter to control the flashing of the LED indicator light.
It should be noted that the LED flashing parameters should be set according to specific requirements. For example, an LED is used to indicate the system operating status and the SD card operating status, and may blink once a second during normal operation, and call the LED parameter configuration interface function when a card is detected to be inserted, modify the blinking parameters to flash 5 times, call the LED parameter configuration interface function when a card writing error occurs, modify the blinking parameters to flash 10 times, and so on.
When the LED indicator is controlled to flash, the initialization of the LED, including the initialization of the LED hardware interface and the initialization of the LED related data structure, needs to be completed in the initialization stage. Then, the LED flicker function is called periodically in the main loop. Because the LED flashing function has no delay waiting, the statements executed in the function each time are few (the whole flashing function code does not exceed 50 lines), and therefore the function can return quickly, and the processing of other transactions is not influenced.
Fig. 6 is a schematic control timing diagram of a flicker control method for an LED indicator according to an embodiment of the present application. In the timing chart shown in fig. 6, the lighting time, the number of times of lighting, the lighting interval, the blinking delay, and the like are included. And the lighting time, the lighting times, the lighting intervals and the flickering delay correspond to variables in an LED flickering parameter structure, and the value ranges of the lighting time, the lighting times, the lighting intervals and the flickering delay are all more than or equal to 0. When the flashing is performed according to the timing chart shown in fig. 6, the LED indicator lights three times in a flashing period, and a lighting-off interval time is provided between every two times of lighting, and after the lighting of three times, the LED indicator lights are turned off and enters the next flashing period after a flashing delay time is delayed. After the preset number of cycles of the flashing period is completed, the LED indicator light is changed from the first flashing mode to the second flashing mode. In the second flashing mode, the LED indication or the like will continue to flash in the second flashing mode until a new event triggers a modification of the flashing parameters.
By comparing the timing chart shown in fig. 6 with the timing chart in the prior art shown in fig. 2, it can be found that the technical solution provided in the embodiment of the present application can implement a richer flashing function.
In the embodiment of the application, rich LED flickering functions can be realized by writing simple codes. Compared with the prior art, when the method provided by the embodiment of the application is adopted to control the LED indicator light to flicker, no delay and wait exist in the system, the system can be executed completely without blocking, and the processing of other transactions cannot be influenced by the LED flicker blocking and waiting. Secondly, the control process of the method is simple in logic and clear in thought, the code amount required for realizing the method is small, and only few system resources are occupied. Thirdly, the control method provided by the embodiment of the application can fully exert the advantages of a predefined method and a self-defined method, and can realize rich flashing functions by combining a predefined flashing mode and a self-defined flashing mode. Fourthly, the control process of the embodiment of the application is not required to be executed in interruption, precious interruption resources are not occupied, and the real-time performance of the system is not influenced no matter in a single-task system or a multi-task system.
It should be noted that, the sequence numbers of the steps in the foregoing embodiments do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Referring to fig. 7, a schematic diagram of a flicker control apparatus of an LED indicator according to an embodiment of the present application is shown, and specifically may include a parameter obtaining module 701, a state determining module 702, a function calling module 703, and a flicker control module 704, where:
the parameter acquisition module is used for acquiring a flicker parameter corresponding to an event when the event triggering the LED indicator lamp to flicker is monitored;
the parameter storage module is used for storing the flicker parameter into a pre-configured control variable;
the state determination module is used for determining the current state of the LED state machine, and the current state of the LED state machine is used for representing the current working state of the LED indicator light;
the function calling module is used for calling an LED flashing function, and the LED flashing function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states;
and the flicker control module is used for executing the LED flicker function from the target function section corresponding to the current state by taking the control variable as an input parameter so as to control the LED indicator lamp to flicker according to a flicker mode set by the event.
In the embodiment of the present application, the flicker parameter includes the number of times of lighting, the length of lighting time, the time interval between two times of lighting, and the delay time after lighting.
In an embodiment of the present application, the blinking pattern includes a first blinking pattern and a second blinking pattern, and the blinking control module includes:
a cycle number judging submodule, configured to judge whether a current cycle number of the first blinking mode is zero if the state is the initial state;
the first control submodule is used for reading the configuration parameters of a second flashing mode from a preset parameter configuration table if the current cycle number is zero, and executing the second flashing mode based on the configuration parameters; or, the controller is configured to, if the current cycle number is not zero, obtain the flicker parameter of the first flicker mode from the control variable after subtracting one from the current cycle number, execute the flicker parameter, and switch the LED state machine to an LED lighting state.
In this embodiment of the application, the control variables include a lighting number variable and a start time variable, and the flicker control module further includes:
and the second control submodule is used for determining the current lighting times and the current time of the LED indicator lamp in the first flashing mode after the LED indicator lamp is controlled to be lighted if the state is the LED lighting state, storing the current lighting times into the lighting times variable, storing the current time into the initial time variable, and switching the LED state machine to a holding state.
In an embodiment of the present application, the flicker control module further includes:
the lighting time length judging submodule is used for judging whether the first time length from the LED lighting state to the current time of the LED indicator lamp is greater than the lighting time length in the flicker parameter or not if the state is the holding state;
the third control sub-module is used for controlling the LED flicker function to return if the first time length is not greater than the lighting time length; or, the controller is configured to determine whether the lighting time variable is zero if the first time length is greater than the lighting time length; if the variable of the lighting times is zero, recording lighting delay starting time, and switching the LED state machine to a delay state; if the variable of the lighting times is not zero, recording the starting time of the lighting-out after the current lighting times is reduced by one, and switching the LED state machine to a lighting-out interval state.
In an embodiment of the present application, the flicker control module further includes:
the on-off interval time length judgment submodule is used for judging whether a second time length from the lamp turning-off to the current time is greater than the on-off interval time length in the flicker parameter if the state is the on-off interval state;
the fourth control submodule is used for controlling the LED flicker function to return if the second time length is not greater than the on-off interval time length; or, the LED state machine is switched to an LED lighting state if the second duration is greater than the on-off interval time length.
In an embodiment of the present application, the flicker control module further includes:
a delay time length judgment submodule, configured to judge whether a third time length from the start of delay to the current time is greater than the delay time length in the flicker parameter if the state is the delay state;
the fifth control submodule is used for controlling the LED flicker function to return if the third duration is longer than the delay time length; or, if the third duration is not greater than the delay time length, switching the LED state machine to an initial state.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to the description of the method embodiment section for relevant points.
Referring to fig. 8, a schematic diagram of a terminal device according to an embodiment of the present application is shown. As shown in fig. 8, the terminal device 800 of the present embodiment includes: a processor 810, a memory 820, and a computer program 821 stored in the memory 820 and operable on the processor 810. The processor 810, when executing the computer program 821, implements the steps in the various embodiments of the LED indicator blinking control method described above, such as the steps S301 to S305 shown in fig. 3. Alternatively, the processor 810, when executing the computer program 821, implements the functions of the modules/units in the device embodiments, such as the functions of the modules 701 to 705 shown in fig. 7.
Illustratively, the computer program 821 may be partitioned into one or more modules/units that are stored in the memory 820 and executed by the processor 810 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which may be used to describe the execution of the computer program 821 in the terminal device 800. For example, the computer program 821 may be divided into a parameter obtaining module, a state determining module, a function calling module, and a flicker controlling module, and the specific functions of each module are as follows:
the parameter acquisition module is used for acquiring a flicker parameter corresponding to an event when the event triggering the LED indicator lamp to flicker is monitored;
the parameter storage module is used for storing the flicker parameter into a pre-configured control variable;
the state determination module is used for determining the current state of the LED state machine, and the current state of the LED state machine is used for representing the current working state of the LED indicator light;
the function calling module is used for calling an LED flashing function, and the LED flashing function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states;
and the flicker control module is used for executing the LED flicker function from the target function section corresponding to the current state by taking the control variable as an input parameter so as to control the LED indicator lamp to flicker according to a flicker mode set by the event.
The terminal device 800 may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will appreciate that fig. 8 is only one example of a terminal device 800 and does not constitute a limitation of terminal device 800, and may include more or fewer components than shown, or some components may be combined, or different components, e.g., terminal device 800 may also include input-output devices, network access devices, buses, etc.
The Processor 810 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 820 may be an internal storage unit of the terminal device 800, such as a hard disk or a memory of the terminal device 800. The memory 820 may also be an external storage device of the terminal device 800, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and so on, provided on the terminal device 800. Further, the memory 820 may also include both an internal storage unit and an external storage device of the terminal apparatus 800. The memory 820 is used for storing the computer program 821 and other programs and data required by the terminal device 800. The memory 820 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application also discloses a terminal device, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the flicker control method of the LED indicator lamp according to the foregoing embodiments when executing the computer program.
The embodiment of the application also discloses a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the flicker control method of the LED indicator lamp according to the foregoing embodiments.
The embodiment of the application also discloses a computer program product, and when the computer program product runs on the terminal equipment, the terminal equipment is enabled to execute the flicker control method of the LED indicator lamp in each embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A flicker control method of an LED indicator lamp is characterized by comprising the following steps:
when an event triggering the LED indicator light to flicker is monitored, acquiring a flicker parameter corresponding to the event;
storing the flicker parameter into a preset control variable;
determining the current state of an LED state machine, wherein the current state of the LED state machine is used for representing the current working state of the LED indicator light;
calling an LED flicker function, wherein the LED flicker function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states;
and executing the LED flicker function from the target function section corresponding to the current state by taking the control variable as the input parameter so as to control the LED indicator lamp to flicker according to a flicker mode set by the event.
2. The method of claim 1, wherein the flicker parameters comprise a number of times of lighting, a length of lighting time, a time interval between two times of lighting, and a delay time after lighting.
3. The method according to claim 1 or 2, wherein the flashing patterns comprise a first flashing pattern and a second flashing pattern, and the executing the LED flashing function from the objective function segment corresponding to the current state with the control variable as a parameter to control the LED indicator to flash according to the flashing pattern set by the event comprises:
if the state is the initial state, judging whether the current cycle number of the first flashing mode is zero;
if the current cycle number is zero, reading configuration parameters of a second flashing mode from a preset parameter configuration table, and executing the second flashing mode based on the configuration parameters;
and if the current cycle number is not zero, after the current cycle number is reduced by one, acquiring the flicker parameter of the first flicker mode from the control variable and executing the flicker parameter, and switching the LED state machine to an LED lighting state.
4. The method of claim 3, wherein the control variables include a lighting time variable and a start time variable, and the executing the LED flashing function from the objective function segment corresponding to the current state with the control variables as input parameters to control the LED indicator to flash according to a flashing pattern set by the event further comprises:
if the state is the LED lighting state, after the LED indicator lamp is controlled to be lighted, the current lighting times and the current time of the LED indicator lamp in the first flashing mode are determined, the current lighting times are stored into the lighting times variable, the current time is stored into the initial time variable, and the LED state machine is switched to the holding state.
5. The method of claim 4, wherein the executing the LED flashing function from the objective function segment corresponding to the current state with the control variable as an input parameter to control the LED indicator light to flash according to a flashing pattern set by the event further comprises:
if the state is the holding state, judging whether the first time length from the LED lighting state to the current time of the LED indicator lamp is greater than the lighting time length in the flicker parameter;
if the first time length is not greater than the lighting time length, controlling the LED flicker function to return;
if the first time length is larger than the lighting time length, judging whether a lighting time variable is zero or not; if the variable of the lighting times is zero, recording lighting delay starting time, and switching the LED state machine to a delay state; if the variable of the lighting times is not zero, recording the starting time of the lighting-out after the current lighting times is reduced by one, and switching the LED state machine to a lighting-out interval state.
6. The method according to claim 4 or 5, wherein the executing the LED flashing function from the objective function segment corresponding to the current state with the control variable as the parameter to control the LED indicator lamp to flash according to the flashing mode set by the event further comprises:
if the state is a lighting-on and lighting-off interval state, judging whether a second time length from the time of lighting-off to the current time is greater than the length of the lighting-on and lighting-off interval time in the flicker parameter;
if the second duration is not greater than the on-off interval time length, controlling the LED flicker function to return;
and if the second duration is greater than the on-off interval time length, switching the LED state machine to an LED lighting state.
7. The method of claim 6, wherein the executing the LED flashing function from the objective function segment corresponding to the current state with the control variable as an input parameter to control the LED indicator light to flash according to a flashing pattern set by the event further comprises:
if the state is a delay state, judging whether a third time length from the beginning of delay to the current time is greater than the delay time length in the flicker parameter;
if the third duration is longer than the delay time length, controlling the LED flicker function to return;
and if the third duration is not greater than the delay time length, switching the LED state machine to an initial state.
8. A flicker control device of an LED indicator lamp is characterized by comprising:
the parameter acquisition module is used for acquiring a flicker parameter corresponding to an event when the event triggering the LED indicator lamp to flicker is monitored;
the parameter storage module is used for storing the flicker parameter into a pre-configured control variable;
the state determination module is used for determining the current state of the LED state machine, and the current state of the LED state machine is used for representing the current working state of the LED indicator light;
the function calling module is used for calling an LED flashing function, and the LED flashing function comprises function sections which are respectively in one-to-one correspondence with the execution actions in a plurality of states;
and the flicker control module is used for executing the LED flicker function from the target function section corresponding to the current state by taking the control variable as an input parameter so as to control the LED indicator lamp to flicker according to a flicker mode set by the event.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method for controlling blinking of an LED indicator as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a flicker control method of an LED indicator lamp according to any one of claims 1 to 7.
CN202011624597.9A 2020-12-30 2020-12-30 Flicker control method and device of LED indicator lamp and terminal equipment Active CN112654110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011624597.9A CN112654110B (en) 2020-12-30 2020-12-30 Flicker control method and device of LED indicator lamp and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011624597.9A CN112654110B (en) 2020-12-30 2020-12-30 Flicker control method and device of LED indicator lamp and terminal equipment

Publications (2)

Publication Number Publication Date
CN112654110A true CN112654110A (en) 2021-04-13
CN112654110B CN112654110B (en) 2022-09-27

Family

ID=75366730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011624597.9A Active CN112654110B (en) 2020-12-30 2020-12-30 Flicker control method and device of LED indicator lamp and terminal equipment

Country Status (1)

Country Link
CN (1) CN112654110B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244733A (en) * 2021-11-10 2022-03-25 深圳市联洲国际技术有限公司 Method and system for indicating LED flicker of communication equipment
CN117093174A (en) * 2023-09-15 2023-11-21 广州三叠纪元智能科技有限公司 Embedded LED display management method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842238A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Signal lamp flashing controlling method
US20070234132A1 (en) * 2006-03-29 2007-10-04 Hon Hai Precision Industry Co., Ltd. System and method for indicating errors of a motherboard
US20090303073A1 (en) * 2008-06-05 2009-12-10 Oqo, Inc. User configuration for multi-use light indicators
CN103119819A (en) * 2010-05-03 2013-05-22 无线环境有限责任公司 Wireless lighting devices and grid-shifting applications
CN103582208A (en) * 2012-07-18 2014-02-12 中兴通讯股份有限公司 Indicating lamp control method and device in embedded type equipment
CN110502284A (en) * 2019-08-20 2019-11-26 深圳市丰润达科技有限公司 LED light flickering method, device and the readable storage medium storing program for executing of single-chip microcontroller
US20200107422A1 (en) * 2018-09-27 2020-04-02 Lumileds Llc Programmable light-emitting diode (led) lighting system and methods of operation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842238A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Signal lamp flashing controlling method
US20070234132A1 (en) * 2006-03-29 2007-10-04 Hon Hai Precision Industry Co., Ltd. System and method for indicating errors of a motherboard
US20090303073A1 (en) * 2008-06-05 2009-12-10 Oqo, Inc. User configuration for multi-use light indicators
CN103119819A (en) * 2010-05-03 2013-05-22 无线环境有限责任公司 Wireless lighting devices and grid-shifting applications
CN103582208A (en) * 2012-07-18 2014-02-12 中兴通讯股份有限公司 Indicating lamp control method and device in embedded type equipment
US20200107422A1 (en) * 2018-09-27 2020-04-02 Lumileds Llc Programmable light-emitting diode (led) lighting system and methods of operation
CN110502284A (en) * 2019-08-20 2019-11-26 深圳市丰润达科技有限公司 LED light flickering method, device and the readable storage medium storing program for executing of single-chip microcontroller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244733A (en) * 2021-11-10 2022-03-25 深圳市联洲国际技术有限公司 Method and system for indicating LED flicker of communication equipment
CN117093174A (en) * 2023-09-15 2023-11-21 广州三叠纪元智能科技有限公司 Embedded LED display management method

Also Published As

Publication number Publication date
CN112654110B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN112654110B (en) Flicker control method and device of LED indicator lamp and terminal equipment
JP6181776B2 (en) Method and apparatus for automatically controlling status indicator lamp of terminal device
US8222839B2 (en) Dimming control system for vehicular lamp
JP2003288237A (en) Device and method for measuring execution time in controller
CN108882459A (en) A kind of brightness regulating circuit and system of UI indicator light
CN105188189A (en) Gravity-sensor-based flash lamp illumination method and apparatus, and mobile terminal
CN105744034A (en) Screen brightness output method and device
US6275948B1 (en) Processor powerdown operation using intermittent bursts of instruction clock
CN107249146B (en) Method for dynamically configuring LED indicator lamp based on smart television
CN108810203B (en) Control method and device of sliding mechanism and electronic equipment
KR100878542B1 (en) A video apparatus and a method of controlling illumination of a power button of the video apparatus
CN208462113U (en) One line light adjusting circuit, chip and system
CN109862651B (en) One-line dimming method, circuit, chip and system
CN111491410A (en) Method for indicating multiple states by one indicator light
WO2018010431A1 (en) Display control method and device for indicator light, and mobile hotspot ufi device
CN114513888A (en) Microwave sensor group control method based on bus, computer device and computer readable storage medium
CN107864414B (en) ONU customized version switching method and device, storage medium and computer equipment
CN115129142A (en) Control method, control device, electronic device, and storage medium
CN208462114U (en) One line light adjusting circuit, chip and system
JP2004247225A (en) Lighting system
CN108882465A (en) One line light-dimming method, circuit, chip and system
CN110856319A (en) Multi-lamp synchronous control method, single chip microcomputer and multi-lamp control system
CN115175410A (en) Breathing lamp implementation method and device, electrical equipment and storage medium
CN105159708A (en) Information processing method and electronic device
CN109815095B (en) Control method, logic device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant