A method for flashing synchronization of instrument warning lights, electronic equipment and storage medium

By setting the first trigger flag bit and period time square wave signal, the problem of the first light of the alarm light is too short and synchronization is solved, and the coordinated flicker of the alarm light is achieved, improving the user experience and visual effect.

CN114755965BActive Publication Date: 2024-11-05CHONGQING CHANGAN TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202210454736.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-24
Publication Date
2024-11-05
Estimated Expiration
2042-04-24

AI Technical Summary

Technical Problem

In the prior art, the first time the alarm light is lit, due to random triggering, which may cause the lighting time to be too short, affecting the user experience, and the synchronization flickering of different types of alarm lights is inconsistent.

Method used

By setting the first trigger flag, we can determine whether the remaining time of the lighting cycle is less than the preset value. If it is less than, it will not light it. Otherwise, it will light it up, and the alarm light will be turned on and off through the period time square wave signal to ensure multiple The alarm light is synchronized when it is triggered at different moments.

Benefits of technology

It effectively avoids the problem of the first time of the alarm light being turned on too short, and realizes the synchronous flicker between multiple alarm lights, improving user experience and visual effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114755965B_ABST
    Figure CN114755965B_ABST
Patent Text Reader

Abstract

The present invention discloses a flashing synchronization method for an instrument warning light, an electronic device and a storage medium, comprising the following steps: S1, when the warning light triggers an alarm for the first time, setting a first triggering flag, and judging whether the first triggering flag is within the lighting cycle of the flashing cycle; S2, judging whether the remaining time of the first triggering flag within the lighting cycle is less than a preset value; S3, clearing the first triggering flag and flashing according to the preset flashing cycle. The present invention adopts a flashing synchronization strategy for the first time the warning light is triggered and a flashing synchronization strategy for the warning light: the flashing synchronization strategy for the first time the warning light is triggered is to first judge the remaining lighting time cycle when the warning light is triggered for the first time. By setting the preset value, it is ensured that when the warning light is lit for the first time, the problem of the warning light lighting time being very short will not occur.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of automobile electronics, and more specifically relates to a method for synchronous flashing of instrument warning lights, electronic equipment and storage medium. Background Art

[0002] With the update and iteration of automotive electronic technology, there are more and more warning or working indicator lights on cars. For some warning lights with potential safety hazards, they usually flash to remind users. Since the timing of the warning light is completely random, when different types of warning lights flashing at the same frequency are randomly triggered, a method of flashing warning lights synchronously is needed for a better user experience.

[0003] A commonly used method for synchronous flashing of alarm lights is to fix a single frequency cycle, and if it is detected within the frequency cycle that the alarm lights meet the lighting conditions, they will light up immediately.

[0004] However, in the current solution, when the alarm light is turned on for the first time, since the triggering of the alarm light is random, the frequency cycle may reverse to the off time within a very short time after the triggering, resulting in the first alarm light lighting time being too short, affecting the user experience.

[0005] For example, my country's patent CN201610547501.0 discloses a flashing synchronous light-emitting sign control method, which mainly provides a method belonging to the field of DCS control technology, and specifically relates to a flashing synchronous light-emitting sign used in a nuclear power plant DCS system. The light-emitting sign control method of the invention can meet the control and display requirements of the BUP of the nuclear power plant DCS system, and uses the system time provided by the DCS clock synchronization system to generate a unified flashing signal source to synchronize the flashing of the light-emitting sign. Specifically, it includes the following steps: (1) obtaining the system time; (2) generating a flashing signal according to the system time; (3) calling the flashing signal generated in step (2) in the light-emitting sign control module; and calculating the output of the light-emitting sign control module according to the input controlled in the light-emitting sign control module. When the present invention is used in a nuclear power plant DCS system with a scale of about 100 control stations, the light-emitting sign in the main control room BUP flashes synchronously, and the naked eye cannot recognize the difference in the order of flashing, which is neat and beautiful, and not easy to cause visual fatigue. It does not solve the problem that the alarm light is on for a very short time in the condition of triggering the alarm light for the first time.

[0006] Another example is my country's patent CN201110218825.7, which discloses a method and device for synchronous flashing of multi-window borders, including the following steps: presetting the length of the border display time and the length of the border hiding time; synchronizing the system time of each processor node; obtaining the current system time of each processor node; judging whether the border corresponding to each processor node is displayed in the current system time according to the current system time, the length of the border display time and the length of the border hiding time; if so, displaying the border corresponding to each processor node and returning to the step of obtaining the system time; if not, hiding the border corresponding to each processor node and returning to the step of obtaining the system time. A device for synchronous flashing of multi-window borders is also disclosed, which reduces the data interaction between the processor node and the synchronization server, reduces the requirements for the network, improves the system reliability and improves the practicality of the system. Similarly, it does not solve the problem that the lighting time may be very short when the first flash is triggered.

[0007] The comparison differences are as follows:

[0008] This method will judge the remaining time of the lighting cycle when the alarm flashes for the first time. If it is less than the preset value, it will not light up, so there will be no problem of short lighting time. Summary of the invention

[0009] To solve the above problems, the present invention provides a method, electronic device and storage medium for flashing synchronization of instrument warning lights, so as to solve the problems of too short lighting time and synchronization between warning lights when triggered for the first time in the prior art.

[0010] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows: a method for synchronous flashing of instrument warning lights comprises the following steps:

[0011] S1. When the alarm light triggers the alarm for the first time, the first trigger flag is set, and it is determined whether the first trigger flag is within the lighting cycle of the flashing cycle. If so, the next step is executed;

[0012] S2, determining whether the remaining time of the first trigger flag in the lighting cycle is less than a preset value, if so, not lighting the alarm light, otherwise lighting the alarm light;

[0013] S3. Clear the first trigger flag and flash according to the preset flashing cycle.

[0014] As an optimization, the flashing cycle is controlled by a periodic time square wave signal. When the level is high, the alarm light is turned on, and when the level is low, the alarm light is turned off.

[0015] As an optimization, in step S1, if the first trigger flag is in the off period of the flashing period, the first trigger flag is cleared.

[0016] As an optimization, the periodic time square wave signal is a global signal, and the flashing periods of multiple warning lights are all controlled by the periodic time square wave signal.

[0017] As an optimization, when multiple alarm lights are triggered for the first time at different times, the state of the first trigger flag of each alarm light is first obtained. If the state of the first trigger flag is true, no action is performed; otherwise, the state of the alarm light is set using the periodic time square wave signal to enable multiple alarm lights to flash synchronously.

[0018] Based on the above method, the present invention also provides an electronic device, comprising:

[0019] A memory, used for storing a flashing synchronization program of an instrument warning light;

[0020] The processor is used to implement the instrument warning light flashing synchronization method when executing the instrument warning light flashing synchronization program.

[0021] Based on the above method, the present invention also provides a storage medium, which stores one or more programs. When the one or more programs are run by a processor, the steps of the method for synchronizing the flashing of instrument warning lights are executed.

[0022] Compared with the prior art, the present invention has the following advantages:

[0023] The present invention adopts a strategy of flashing synchronization when the alarm light is triggered for the first time and a strategy of flashing synchronization when the alarm light is triggered for the first time: wherein, the strategy of flashing synchronization when the alarm light is triggered for the first time is to first determine the remaining lighting time period, and when the remaining lighting time period is less than a preset value, the alarm light is not lit; if the remaining lighting time period is greater than or equal to the preset value, the alarm light is lit. By setting the preset value, it is ensured that when the alarm light is lit for the first time, the problem of the alarm light lighting time being very short will not occur.

[0024] After the alarm light is triggered for the first time, in the alarm flashing synchronization strategy, there is a time square wave based on the frequency cycle to control the synchronous on and off of the alarm light. In the high level part of the square wave, the flashing alarm light is turned on, and in the low level part of the square wave, the flashing alarm light is turned off.

[0025] The present invention can set a minimum extinguishing time when the alarm light is extinguished, so that the alarm light will not light up for a very short time when it is extinguished. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1It is a schematic diagram of a periodic time square wave signal;

[0027] Figure 2 Schematic diagram of the strategy for triggering flashing synchronization of the first warning light;

[0028] Figure 3 This is a schematic diagram of the alarm flashing synchronization method. DETAILED DESCRIPTION

[0029] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0030] Example: See Figure 1-Figure 3 ,

[0031] A method for synchronous flashing of instrument warning lights comprises the following steps:

[0032] S1. When the alarm light triggers the alarm for the first time, the first trigger flag is set, and it is determined whether the first trigger flag is within the lighting cycle of the flashing cycle. If so, the next step is executed; otherwise, the first trigger flag is cleared.

[0033] S2, determining whether the remaining time of the first trigger flag in the lighting cycle is less than a preset value, if so, not lighting the alarm light, otherwise lighting the alarm light;

[0034] S3. Clear the first trigger flag and flash according to the preset flashing cycle. The flashing cycle is controlled by the periodic time square wave signal. When it is at a high level, the alarm light is turned on, and when it is at a low level, the alarm light is turned off. The periodic time square wave signal is a global signal, and the flashing cycles of multiple alarm lights are controlled by the periodic time square wave signal. When multiple alarm lights are triggered for the first time at different times, first obtain the state of the first trigger flag of each alarm light. If the state of the first trigger flag is true, no action is performed; otherwise, the state of the alarm light is set by the periodic time square wave signal, so that multiple alarm lights flash synchronously.

[0035] Specifically, the strategy for the first alarm light triggering flashing synchronization is to first determine the remaining lighting time period when the alarm light is triggered for the first time, and when the remaining lighting time period is less than a preset value, the alarm light is not lit; if the remaining lighting time period is greater than or equal to the preset value, the alarm light is lit. By setting the preset value, it is ensured that when the alarm light is lit for the first time, the problem of the alarm light lighting time being very short will not occur.

[0036] After the alarm light is triggered for the first time, in the alarm flashing synchronization strategy, there is a time square wave based on the frequency cycle to control the synchronous on and off of the alarm light. In the high level part of the square wave, the flashing alarm light is turned on, and in the low level part of the square wave, the flashing alarm light is turned off.

[0037] like Figure 1 As shown, a global frequency-cycle-based time square wave is set to control the synchronous on and off of the alarm light. In the high level part of the square wave, the alarm light is turned on, and in the low level part of the square wave, the alarm light is turned off.

[0038] like Figure 2 As shown, when the alarm light triggers the alarm for the first time, the flag of the first trigger is first set, and then it is determined whether the current time is in the high level part of the time square wave signal. If not, the flag of the first trigger is cleared; if it is at a high level, it is determined whether the high level part of the current remaining time square wave signal is less than the preset value. If so, the alarm light is not lit and the flag of the first trigger is cleared; if not, the alarm light is lit and the flag of the first trigger is cleared.

[0039] like Figure 3 As shown, in the alarm synchronization strategy, the state of the first alarm trigger flag will be obtained. If the first alarm trigger state is true, it proves that the first trigger flag of the triggered alarm light is in the lighting cycle of the flashing cycle or is in the process of judging the preset value. At this time, no action is taken, and it can finally flash according to the flashing cycle by following the normal S1-S3 steps. If the first alarm trigger state does not meet the conditions, that is, the first trigger flag is in the cleared state, the state of the alarm light is set according to the global time square wave. In the high level part of the square wave, the alarm light is lit; in the low level part of the square wave, the alarm light is extinguished, so as to realize the flashing synchronization between different alarm lights.

[0040] Based on the above method, the present invention also provides an electronic device, comprising:

[0041] A memory, used for storing a flashing synchronization program of an instrument warning light;

[0042] The processor is used to implement the instrument warning light flashing synchronization method when executing the instrument warning light flashing synchronization program.

[0043] Based on the above method, the present invention also provides a storage medium, which stores one or more programs. When the one or more programs are run by a processor, the steps of the method for synchronizing the flashing of instrument warning lights are executed.

[0044] The present invention adopts a strategy of flashing synchronization when the alarm light is triggered for the first time and a strategy of flashing synchronization when the alarm light is triggered for the first time: wherein, the strategy of flashing synchronization when the alarm light is triggered for the first time is to first determine the remaining lighting time period, and when the remaining lighting time period is less than a preset value, the alarm light is not lit; if the remaining lighting time period is greater than or equal to the preset value, the alarm light is lit. By setting the preset value, it is ensured that when the alarm light is lit for the first time, the problem of the alarm light lighting time being very short will not occur.

[0045] After the alarm light is triggered for the first time, in the alarm flashing synchronization strategy, there is a time square wave based on the frequency cycle to control the synchronous on and off of the alarm light. In the high level part of the square wave, the flashing alarm light is turned on, and in the low level part of the square wave, the flashing alarm light is turned off.

[0046] The present invention can set a minimum extinguishing time when the alarm light is extinguished, so that the alarm light will not light up for a very short time when it is extinguished.

[0047] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.

Claims

1. A method for synchronous flashing of instrument warning lights, characterized in that: The following steps are included: S1. When the alarm light triggers the alarm for the first time, the first trigger flag is set, and it is determined whether the first trigger flag is in the lighting cycle of the flashing cycle. If so, the next step is executed; If the first trigger flag is in the off period of the flashing period, the first trigger flag is cleared; The flashing cycle is controlled by a periodic time square wave signal. When the level is high, the alarm light is turned on, and when the level is low, the alarm light is turned off. The periodic time square wave signal is a global signal, and the flashing cycles of multiple alarm lights are controlled by the periodic time square wave signal. S2, determining whether the remaining time of the first trigger flag in the lighting cycle is less than a preset value, if so, not lighting the alarm light, otherwise lighting the alarm light; S3. Clear the first trigger flag and flash according to the preset flashing cycle; when multiple alarm lights are triggered for the first time at different times, first obtain the state of the first trigger flag of each alarm light. If the state of the first trigger flag is true, no action is performed; otherwise, the state of the alarm light is set by the periodic time square wave signal, so that multiple alarm lights flash synchronously.

2. An electronic device, characterized in that: include, A memory, used for storing a flashing synchronization program of an instrument warning light; A processor is used to implement the instrument warning light flashing synchronization method as claimed in claim 1 when executing the instrument warning light flashing synchronization program.

3. A storage medium, characterized in that: The storage medium stores one or more programs, and when the one or more programs are executed by the processor, the steps of the instrument warning light flashing synchronization method as claimed in claim 1 are executed.

Citation Information

Patent Citations

  • Multi-window-frame synchronous-twinkling method and device

    CN102411485A

  • Light plate control method for scintillation synchronization

    CN106094594A

  • Method for controlling LED flash

    CN101001492A

  • Strobe light device

    CN106994933A

  • LED controller, LED control device and LED control method

    CN112533341A