Instrument lamp synchronous flicker control method and system, electronic equipment and storage medium

By acquiring and analyzing the status change pattern of the instrument lights and controlling the synchronous flashing of the instrument lights, the problem of asynchronous flashing of the instrument lights is solved, and the driver's efficiency in judging the vehicle status and driving safety are improved.

CN118700830APending Publication Date: 2024-09-27CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410871788.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The asynchronous flashing of car instrument lights makes it difficult for drivers to quickly identify and understand the status of the vehicle, reducing the driving experience and driving safety.

Method used

By obtaining the current state and historical state of each instrument light, the state change mode is determined, and when the state change mode is a new state of flashing, the target instrument light is set to start flashing at the same time, and is controlled by the properties of the flashing status switch. The indicator light and alarm light flash synchronously.

Benefits of technology

Ensure that the instrument lights flash synchronously, which improves the efficiency and accuracy of the driver's judgment of the vehicle status, and improves the driving experience and driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118700830A
    Figure CN118700830A
Patent Text Reader

Abstract

The invention provides an instrument lamp synchronous flicker control method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining the current state of each instrument lamp and the historical state of the last moment, and the state of each instrument lamp comprises a flicker state; according to the change from the historical state to the current state, a state change mode of the instrument lamp is determined, the state change mode comprises a flicker newly-added state, and the flicker newly-added state represents that the state change of at least one instrument lamp is a flicker state; when the state change mode is a flicker newly-added state, determining each instrument lamp of which the current state is a flicker state as a target instrument lamp; and setting the attribute of the flicker state switch to be turned on, and controlling the target instrument lamp to start flicker at the same moment. According to the technical scheme of the invention, by adding the flicker state switch, all the flickering instrument lamps are controlled to flicker synchronously when the instrument lamps are monitored to be in the flicker state, so that the driving experience of a driver is improved, and the driving safety is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of instrument light control, and in particular to an instrument light synchronous flashing control method, system, electronic device and storage medium. Background Art

[0002] With the rapid development of today's automobile manufacturing industry, the technological innovation of automobile instrument systems, as key components to ensure driving safety and improve driving experience, is particularly important. The instruments and instrument lights equipped on vehicles enable drivers to comply with traffic rules and understand the vehicle status in a timely manner. With the development of science and technology, modern automobile instruments are gradually adopting digital and intelligent designs to provide richer and more intuitive information display methods, further improve the driver's driving experience, enhance driving safety, and reduce driving pressure caused by inconvenient information acquisition. Clear instrument and instrument light design is the key to improving driving experience and enhancing driving safety.

[0003] In the development of the dashboard display of automobiles, the design of the lights on the instrument is divided into indicator lights and warning lights according to the type and purpose of the information conveyed by the automobile. The indicator lights and warning lights usually display different information in different colors, shapes and flashing modes. The indicator lights are mainly used to remind the driver about the working status of the vehicle functions, and the warning lights are mainly used to warn the driver of abnormal conditions in the vehicle. Each system of the car (such as the power system, brake system, electronic control system, etc.) has its own fault detection mechanism. When a system detects a problem, it will independently trigger the corresponding indicator lights or warning lights. Since the working status and detection mechanisms of these systems may be different, when the indicator lights and warning lights flash to remind, the indicator lights and warning lights flash asynchronously due to different information sources and different signal receiving times. It is difficult for the driver to quickly identify and correctly understand these visual signals, which reduces the efficiency and accuracy of judging the vehicle status, thereby affecting the driving experience and driving safety. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present application discloses a method, system, electronic device and storage medium for controlling the synchronous flashing of instrument lights, which are used to solve the technical problem of asynchronous flashing of instrument lights in the prior art.

[0005] In a first aspect, the present application provides a method for controlling the synchronous flashing of instrument lights, the method comprising: obtaining the current state and the historical state of each instrument light at the previous moment, the state of each of the instrument lights comprising a flashing state; determining a state change mode of the instrument lights according to the change from the historical state to the current state, wherein the state change mode comprises a newly added flashing state, the newly added flashing state representing that there is a state change of at least one of the instrument lights to the flashing state; when the state change mode is the newly added flashing state, determining each of the instrument lights whose current state is the flashing state as a target instrument light; setting the attribute of the flashing state switch to on, and controlling the target instrument lights to start flashing at the same time.

[0006] In one embodiment of the present application, the state of each of the instrument lights also includes an off state and a constantly on state; the state change mode of the instrument light is determined based on the change from the historical state to the current state, including: for each of the instrument lights, the corresponding historical state is compared with the current state; if the state of each of the instrument lights has not changed, the state change mode is determined to be a flashing maintenance state; if there is at least one of the instrument lights whose state changes from the flashing state to the off state or the constantly on state, the state change mode is determined to be a flashing reduction state; if there is at least one of the instrument lights whose state changes from the off state or the constantly on state to the flashing state, the state change mode is determined to be the flashing addition state.

[0007] In one embodiment of the present application, after controlling the target instrument lights to start flashing at the same time, it also includes: collecting flashing status data of each of the target instrument lights, the flashing status data including the lighting time; analyzing each of the lighting times, determining the maximum difference between each of the lighting times, and comparing the maximum difference with the preset difference; if the maximum difference is greater than or equal to the preset difference, determining the starting time of the next flashing cycle based on each of the lighting times and the preset flashing frequency; controlling each of the target instrument lights to flash at the starting time.

[0008] In one embodiment of the present application, the obtaining of the current state of each instrument light and the historical state at the previous moment includes: obtaining a historical data array corresponding to each indicator light in the instrument light and a current first state signal, wherein the historical data array includes a historical state value and a historical position code of each indicator light; determining the historical state of each indicator light according to the historical state value and a preset first mapping relationship, wherein the first mapping relationship represents the correspondence between the state value and the state of the indicator light; updating the historical data array according to the first state signal to obtain a current data array, wherein the current data array includes a current state value and a current position code of each indicator light; determining the current state of each indicator light according to the current state value and the first mapping relationship.

[0009] In one embodiment of the present application, the historical data array is updated according to the first status signal to obtain the current data array, including: determining the current status value of each of the indicator lights according to the first status signal and a preset second mapping relationship, wherein the second mapping relationship represents the correspondence between the status signal and the status value of each of the indicator lights; for each of the indicator lights, comparing the corresponding current status value with the historical status value; updating the historical status value with the current status value that is inconsistent with the comparison, and updating the historical position code according to the preset initial position code of each of the indicator lights that is inconsistent with the comparison to obtain the current position code; generating the current data array according to the current status value and the current position code.

[0010] In one embodiment of the present application, the obtaining of the current state and the historical state of each instrument light at the previous moment also includes: obtaining the historical second state signal and the current third state signal of each warning light in the instrument light; determining the historical state of each warning light according to the second state signal and a preset third mapping relationship, and determining the current state of each warning light according to the second state signal and the third mapping relationship, wherein the third mapping relationship represents the correspondence between the state signal and the state of the warning light.

[0011] In one embodiment of the present application, the control of the target instrument lights to start flashing at the same time includes: determining each of the indicator lights whose current state value is the flashing state value as a target indicator light, and determining the current position code corresponding to the target indicator light; and / or determining each of the warning lights whose current state is the flashing state as a target warning light, and determining the flashing state value and warning light icon corresponding to the target warning light, wherein the flashing state value includes state values ​​at different flashing frequencies; controlling the target indicator lights and / or the target warning light to flash from the same time according to the current position code and the associated flashing state value, and / or according to the warning light icon and the associated flashing state value.

[0012] In a second aspect, the present application provides an instrument light synchronous flashing control system, the system comprising: a state acquisition module, used to acquire the current state of each instrument light and the historical state at the previous moment, the state of each of the instrument lights comprising a flashing state; a mode determination module, used to determine the state change mode of the instrument lights according to the change from the historical state to the current state, wherein the state change mode comprises a flashing newly added state, the flashing newly added state indicating that there is at least one instrument light whose state has changed to the flashing state; an instrument light determination module, used to determine each of the instrument lights whose current state is the flashing state as a target instrument light when the state change mode is the flashing newly added state; a flashing control module, used to set the attribute of the flashing state switch to on, and control the target instrument lights to start flashing at the same time.

[0013] In a third aspect, the present application provides an electronic device comprising: one or more processors; a storage device for storing one or more programs, which, when executed by one or more processors, enables the electronic device to implement the instrument light synchronous flashing control method described in the first aspect.

[0014] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the instrument light synchronous flashing control method described in the first aspect.

[0015] As described above, the embodiment of the present application provides a method, system, electronic device and storage medium for controlling synchronous flashing of instrument lights, which have the following beneficial effects:

[0016] First, the current state of each instrument light and its historical state at the previous moment are obtained, and then according to the change from the historical state to the current state, it is determined whether the state change mode of the instrument light is a flashing new state. The flashing new state indicates that there is at least one instrument light whose state changes to a flashing state. When the state change mode is a flashing new state, each instrument light whose current state is a flashing state is determined as a target instrument light. Finally, the attribute of the flashing state switch is set to on, and the target instrument lights are controlled to start flashing at the same time. By adding a flashing state switch, when it is detected that an instrument light has changed to a flashing state, all the flashing instrument lights are controlled to flash synchronously, thereby ensuring the effect of synchronous flashing of the instrument lights. In the development of vehicle-mounted instruments, the synchronous flashing of indicator lights and warning lights with different signal sources is realized, so that the driver can judge the status of the vehicle more easily, intuitively and quickly, thereby improving the driver's driving experience and enhancing driving safety.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0019] Figure 1 It is a schematic diagram of an implementation environment of an instrument light synchronous flashing control system shown in an exemplary embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for controlling synchronous flashing of an instrument light shown in an exemplary embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a flashing state switch attribute shown in an exemplary embodiment of the present application;

[0022] Figure 4 is a block diagram of an instrument light synchronous flashing control system shown in an exemplary embodiment of the present application;

[0023] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0025] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present application in a schematic manner, and therefore the illustrations only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0026] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0027] First of all, it should be noted that during the development of the vehicle dashboard, the instrument development was implemented based on Kanzi Studio (a design tool based on a graphical interface). According to the type and purpose of information conveyed by the car, the lights on the instrument were designed as indicator lights and warning lights.

[0028] The indicator lights are mainly used to inform the driver about the working status of vehicle functions, such as automatic high and low beam headlights, turn signals, etc. When the relevant functions are activated, the vehicle will send a function status signal to the cockpit domain controller or instrument controller, and the cockpit domain controller or instrument controller will control the corresponding indicator lights to light up according to the received function status signal.

[0029] Warning lights are mainly used to warn drivers of abnormal conditions in the vehicle, such as high water temperature, airbag failure, etc. When the vehicle's sensors detect abnormalities in the vehicle, they will send an alarm signal to the relevant controllers (such as power, chassis, body and other domain controllers). After receiving the alarm signal, these controllers will verify the alarm signal, that is, determine whether the alarm signal is a continuous frame, and then send relevant display requests to the instrument controller or cockpit domain controller. The controller controls the corresponding warning light to display according to the request.

[0030] However, the inventors of this application have discovered through research that the working states and detection mechanisms of the power system, brake system, electronic control system, etc. may be different. When the indicator lights and warning lights flash to give warnings, the indicator lights and warning lights may flash out of sync due to different information sources and different times when the signals are received. It is difficult for the driver to quickly identify and correctly understand these visual signals, which reduces the efficiency and accuracy of judging the vehicle status, thereby affecting the driving experience and driving safety.

[0031] Therefore, see Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an implementation environment of an instrument light synchronous flashing control system shown in an exemplary embodiment of the present application. Figure 1 As shown, the implementation environment includes a vehicle 110 and an instrument light synchronous flashing control system 120, wherein the instrument light synchronous flashing control system 120 can be embedded in the vehicle 110, and is used to realize the synchronous flashing of the instrument lights in the vehicle 110. The instrument light synchronous flashing control system 120 includes but is not limited to a vehicle system, an on-board computer, etc. The instrument light synchronous flashing control system 120 controls all the flashing instrument lights to flash synchronously when it detects that an instrument light has changed to a flashing state by adding a flashing state switch, thereby ensuring the effect of the synchronous flashing of the instrument lights. In the development of on-board instruments, the synchronous flashing of indicator lights and warning lights with different signal sources is realized, so that the driver can judge the status of the vehicle more easily, intuitively and quickly, thereby improving the driver's driving experience and enhancing driving safety.

[0032] See also Figure 2 , Figure 2 is a flowchart of a method for controlling synchronous flashing of an instrument light, shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 The implementation environment shown is a schematic diagram. It should be understood that the method may also be applicable to other exemplary implementation environments, and this embodiment does not limit the implementation environment to which the method is applicable.

[0033] like Figure 2 As shown, in an exemplary embodiment, the command line-based ECU access method includes at least steps S210 to S240, which are described in detail as follows:

[0034] Step S210, obtaining the current state and the historical state of each instrument light at the previous moment, wherein the state of each instrument light includes a flashing state.

[0035] The state of each instrument light includes an off state and a constant on state. The flashing state includes states of multiple flashing frequencies, such as flashing at a frequency of 1 Hz, flashing at a frequency of 2 Hz, and the like.

[0036] It should also be noted that, in a possible embodiment, the current state of each instrument light and its historical state at the previous moment are obtained once a preset time interval is reached. The time interval is relatively short, such as 400ms, 500ms, etc. In this way, the instrument lights that have newly changed to the flashing state can be timely controlled to flash synchronously, so as to realize real-time control of the synchronous flashing of the instrument lights.

[0037] In one embodiment, the current state of each instrument light and its historical state at the previous moment are obtained, including: obtaining a historical data array corresponding to each indicator light in the instrument light and a current first state signal, wherein the historical data array includes a historical state value and a historical position code of each indicator light; determining the historical state of each indicator light according to a historical state value and a preset first mapping relationship, wherein the first mapping relationship represents a correspondence between a state value and a state of the indicator light; updating the historical data array according to the first state signal to obtain a current data array, wherein the current data array includes a current state value and a current position code of each indicator light; determining the current state of each indicator light according to the current state value and the first mapping relationship.

[0038] It should be noted that, in the embodiment of the present application, an initial TT_MAP (i.e., a data array) corresponding to the indicator lights in the instrument light is pre-created, wherein the initial TT_MAP includes the name, icon, initial state and position code of each indicator light, as shown in Table 1, which lists 6 types of indicator lights:

[0039] Table 1: Initial data array

[0040] Name texture id (icon) state pos id (position code) lamp_turnleft (left turn signal) 1 0 1 lamp_turnright (right turn signal) 2 0 2 lamp_lowbeam (high beam) 3 0 3 lamp_highbeam (low beam) 4 0 4 lamp_position(Position lamp) 9 0 5 lamp_foglightfront (front fog lamp) 7 0 6

[0041] In Table 1, texture id is the icon corresponding to the indicator light; state is the state of the indicator light. When the underlying signal is received to light up a certain indicator light, the value of state, that is, the state value, will be changed. As a possible embodiment, when state is 0, it indicates that the indicator light is not displayed, when state is 1, the indicator light is always on, when state is 10, it indicates that the indicator light flashes at a frequency of 1 Hz, when state is 20, the indicator light flashes at a frequency of 2 Hz, and so on. The embodiment of the present application does not impose a unique restriction on the correspondence between the value of state and the state of the indicator light; pos id is the position code of the indicator light, representing the position on the instrument panel. As long as the indicator light is not displayed, its position code is -1. Only when the indicator light is displayed, its position code will be set to the corresponding position code in the initial data array.

[0042] In addition, since there are many indicator lights on the dashboard, the indicator light data is stored in an array, which makes it easier to obtain, update and manage the indicator light data, and can increase the rate of traversing the current state of each indicator light. There are relatively few warning lights, and the warning light data is stored in a structure, which can directly receive the status of the indicator light.

[0043] It should also be noted that when the vehicle computer is started, the indicator light thread also starts to start, and then it reads the data uploaded by the bottom layer every 500ms based on a preset time interval, such as 500ms, that is, the status signal of each indicator light uploaded by the cockpit domain controller or the instrument controller, and traverses the initial data array through a for loop, and sets the value of state in the initial array data according to the status signal obtained from the bottom layer, thereby obtaining a new data array, and updating the data array every 500ms.

[0044] In this embodiment, the historical data array is the data array after the most recent update, including the historical state value and historical position code of each indicator light, as well as the icon and name of each indicator light, wherein the historical state value is, for example, 0, 1, 10 or 20; the first mapping relationship represents the corresponding relationship between the state value and the state of the indicator light, for example, 0 corresponds to no display, 1 corresponds to constant display, 10 corresponds to flashing display at a frequency of 1 Hz, 20 corresponds to flashing display at a frequency of 2 Hz, etc.; the first state signal is the state signal of each indicator light uploaded by the cockpit domain controller or the instrument controller, that is, the signal of whether the function corresponding to each indicator light is activated; the current data array includes the current state value and current position code of each indicator light, as well as the icon and name of each indicator light. Finally, according to the current state value and the first mapping relationship, the current state of each indicator light is determined, for example, if the current state value is 0, the current state is no display; if the current state value is 1, the current state is constant display; if the current state value is 10, the current state is flashing display at a frequency of 1 Hz; if the current state value is 20, the current state is flashing display at a frequency of 2 Hz.

[0045] Specifically, the historical data array is updated according to the first state signal to obtain the current data array, including: determining the current state value of each indicator light according to the first state signal and a preset second mapping relationship, wherein the second mapping relationship represents the correspondence between the state signal and the state value of each indicator light; for each indicator light, comparing the corresponding current state value with the historical state value; updating the historical state value with the current state value that is inconsistent with the comparison, and updating the historical position code with the preset initial position code of each indicator light that is inconsistent with the comparison to obtain the current position code; generating the current data array according to the current state value and the current position code.

[0046] It should be noted that if the first status signal indicates that the indicator light is activated, the current status value is determined according to the corresponding activation status.

[0047] In this embodiment, a for loop is used to traverse the historical data array, and the current state value obtained from the bottom layer is set to the corresponding indicator light in the historical data array. The loop starts from 0 and ends with the last indicator light in the historical data array, traversing the indexes of a group of dynamic indicator lights. Check whether the current state value of each indicator light is consistent with its historical state value in the historical data array. If not, update the state value to the current state value. At the same time, two strings are constructed for the inconsistent indicator lights: one represents its position code, and the other represents its state value. That is, if the current state value of the light in the array is greater than 0, that is, the indicator light needs to be always on or display other states, then the m_dataProxy (i.e., data proxy) object is used to update the position code and state value of the indicator light; if the current state value indicates that it is not displayed, the position code is updated to -1, and the state value is updated to 0.

[0048] In one embodiment, obtaining the current state and the historical state of each instrument light at the previous moment also includes: obtaining the historical second state signal and the current third state signal of each warning light in the instrument light; determining the historical state of each warning light according to the second state signal and a preset third mapping relationship, and determining the current state of each warning light according to the second state signal and the third mapping relationship, wherein the third mapping relationship represents the correspondence between the state signal and the state of the warning light.

[0049] It should be noted that, for the warning light, its status data is stored in a structure, and the structure can directly indicate the status of the indicator light. In addition, the warning light is, for example, acc status lamp (adaptive cruise warning lamp), tja status lamp (traffic jam assistant system warning lamp), etc.

[0050] In this embodiment, the second state signal of the history of each warning light is obtained, indicating whether the warning light was activated at the previous moment and the specific activation state. The second state signal of each warning light is a data structure. The historical state of each warning light is determined based on the correspondence between the state signal and the state of the warning light and the second state signal. The current third state signal of each warning light is obtained, indicating whether the warning light is activated at the current moment and the specific activation state. The third state signal of each warning light is also a data structure. The current state of each warning light is determined based on the correspondence between the state signal and the state of the warning light and the third state signal.

[0051] Step S220, determining the state change mode of the instrument light according to the change from the historical state to the current state.

[0052] The state change mode includes a flashing newly added state, and the flashing newly added state indicates that the state of at least one instrument light changes to a flashing state.

[0053] Specifically, according to the change from the historical state to the current state, the state change mode of the instrument light is determined, including: for each instrument light, the corresponding historical state is compared with the current state; if the state of each instrument light has not changed, the state change mode is determined to be the flashing maintenance state; if there is at least one instrument light whose state changes from the flashing state to the off state or the always-on state, the state change mode is determined to be the flashing reduction state; if there is at least one instrument light whose state changes from the off state or the always-on state to the flashing state, the state change mode is determined to be the flashing addition state.

[0054] In this embodiment, when the state of at least one instrument light changes from an off state or a constantly on state to a flashing state, it indicates that a new instrument light has changed to a flashing state. Therefore, it is necessary to control the newly added flashing instrument light to flash synchronously with the previously flashing instrument light.

[0055] It should be understood that the instrument lights in this embodiment include indicator lights and warning lights, and the newly added instrument lights in the flashing state may be indicator lights and / or warning lights.

[0056] Step S230: When the state change mode is the flashing newly added state, each instrument light that is currently in the flashing state is determined as a target instrument light.

[0057] It should be noted that as long as the instrument lights in the current flashing state are determined as target instrument lights, all target instrument lights will be controlled to flash synchronously. The target instrument lights include target indicator lights and / or target warning lights. Specifically, each indicator light whose current state value is a flashing state value is determined as a target indicator light, and each warning light whose current state is a flashing state is determined as a target warning light.

[0058] Step S240, setting the attribute of the flashing state switch to on, and controlling the target instrument lights to start flashing at the same time.

[0059] In the embodiment of the present application, a flashing state switch is pre-set to achieve synchronous flashing of each target instrument light. The attributes of the flashing state switch include true / false (on / off). When a flashing new mode appears, the attributes of the previous moment will be refreshed, including refreshing false to true (there was no flashing instrument light at the previous moment) and refreshing true to true (there was a flashing instrument light at the previous moment, and there is a newly added flashing instrument light at the current moment). When it is detected that the attributes of the flashing state switch are refreshed and refreshed to on, all target instrument lights are controlled to flash from the off action.

[0060] For example, when the indicator light and / or warning light is in a flashing state, a bool variable flashstate (i.e., flashing state switch) is defined, and the current data array of the indicator light and the current state structure of the warning light are traversed every 500ms. If the state value of the indicator light and / or warning light is 10 or 20, falshstate is set to true. If all indicator lights and warning lights are not in a flashing state, falshstate will always remain initialized to false.

[0061] In one embodiment, controlling the target instrument lights to start flashing at the same time includes: determining each indicator light whose current state value is a flashing state value as a target indicator light, and determining the current position code corresponding to the target indicator light; and / or determining each warning light whose current state is a flashing state as a target warning light, and determining the flashing state value and warning light icon corresponding to the target warning light, wherein the flashing state value includes state values ​​at different flashing frequencies; controlling the target indicator light and / or target warning light to flash from the same time according to the current position code and the associated flashing state value, and / or according to the warning light icon and the associated flashing state value.

[0062] In this embodiment, the API (Application Programming Interface) of kanzi is used to connect and access the data source (i.e., the current data array corresponding to the indicator light and the structure of the current state corresponding to the warning light), and integrated into the kanzi application, wherein the state signal of the warning light in the structure is set to the data source of kanzi studio by calling the setIntDataValue function (i.e., setting the integer data value function, which is used to assign a value to a variable, an object's attribute, or an integer field in a data structure), and integrated into the kanzi application. In kanzi, a corresponding event receiving logic will be created to receive the data source, so as to obtain the current position code and flashing state value corresponding to the target indicator light, and / or the flashing state value and warning light icon corresponding to the target warning light, and according to the obtained current position code, flashing state value and / or the flashing state value and warning light icon corresponding to the target indicator light.

[0063] In addition, the attributes of flashstate will also be passed to kanzi. When the attributes are refreshed to on, the corresponding target indicator lights and / or target warning lights will be controlled to flash from off at the same time.

[0064] It should also be noted that all target instrument lights start flashing at the same time. For instrument lights with the same flashing frequency, the flashing start time is the same in subsequent flashing cycles. Until the next time the flashstate attribute is refreshed to true, all target instrument lights start flashing at the same time again.

[0065] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram showing a flashing state switch attribute according to an exemplary embodiment of the present application. Figure 3 As shown, in Kanzi, you can design an interactive interface for the instrument and add a flashstate property to enable 1hz flashing and 2hz flashing animations. As long as there is a flashing instrument light, the code will set the value of flashstate to true and pass it to Kanzi studio. Conversely, if there is no flashing instrument light, the value of flashstate will be set to false and passed to Kanzi studio. Whenever an instrument light becomes flashing, the state of flashstate will be refreshed, and at this time, Kanzi will refresh the flashing state of all target instrument lights. All target instrument lights will flash from the off action. Even if the flashing frequencies of the instrument lights are different, they will start at the same time, so as to achieve the effect of synchronous flashing of all target instrument lights.

[0066] In one embodiment, after controlling the target instrument lights to start flashing at the same time, it also includes: collecting flashing status data of each target instrument light, the flashing status data including the lighting time; analyzing each lighting time, determining the maximum difference between each lighting time, and comparing the maximum difference with the preset difference; if the maximum difference is greater than or equal to the preset difference, determining the starting time of the next flashing cycle based on each lighting time and the preset flashing frequency; controlling each target instrument light to flash at the starting time.

[0067] In this embodiment, the synchronous flashing of the target instrument lights is monitored in real time, the start time of the next cycle is dynamically adjusted according to the comparison result of the maximum difference and the preset difference, the flashing cycle is adaptively fine-tuned to compensate for the time deviation that may have occurred in the previous cycle, and the error of the flashing synchronization is dynamically adjusted and optimized, which improves the synchronization accuracy, ensures the effect of synchronous flashing, and further enhances the driving experience.

[0068] In a possible embodiment, the middle value of each lighting moment is determined, and the start time of the next flashing cycle is calculated based on the middle value and the flashing frequency. In addition, different flashing frequencies are monitored separately, that is, the target indicator light and / or target warning light of the same flashing frequency dynamically adjusts the start time of the next cycle according to the corresponding flashing frequency.

[0069] The above-mentioned method for controlling the synchronous flashing of instrument lights first obtains the current state of each instrument light and the historical state at the previous moment, and then determines whether the state change mode of the instrument light is a flashing new state based on the change from the historical state to the current state. The flashing new state indicates that there is at least one instrument light whose state changes to a flashing state. When the state change mode is a flashing new state, each instrument light whose current state is a flashing state is determined as a target instrument light. Finally, the attribute of the flashing state switch is set to on, and the target instrument lights are controlled to start flashing at the same time. By adding a flashing state switch, when it is detected that an instrument light has changed to a flashing state, all the flashing instrument lights are controlled to flash synchronously, thereby ensuring the effect of the synchronous flashing of the instrument lights. In the development of vehicle-mounted instruments, the synchronous flashing of indicator lights and warning lights with different signal sources is realized, so that the driver can judge the state of the vehicle more easily, intuitively and quickly, thereby improving the driver's driving experience and enhancing driving safety.

[0070] See also Figure 4 , Figure 4 is a block diagram of an instrument light synchronous flashing control system shown in an exemplary embodiment of the present application. The system can be applied to Figure 1 The implementation environment shown is a schematic diagram. It should be understood that the system may also be applicable to other exemplary implementation environments, and this embodiment does not limit the implementation environment to which the system is applicable.

[0071] like Figure 4 As shown, in an exemplary embodiment, the instrument light synchronous flashing control system 400 includes at least a state acquisition module 410, a mode determination module 420, an instrument light determination module 430 and a flashing control module 440, which are described in detail as follows:

[0072] The state acquisition module 410 is used to acquire the current state and the historical state of each instrument light at the previous moment, and the state of each instrument light includes a flashing state;

[0073] The mode determination module 420 is used to determine the state change mode of the instrument light according to the change from the historical state to the current state, wherein the state change mode includes a flashing newly added state, and the flashing newly added state indicates that there is a state change of at least one instrument light to a flashing state;

[0074] The instrument light determination module 430 is used to determine each instrument light in the flashing state as a target instrument light when the state change mode is the flashing newly added state;

[0075] The flashing control module 440 is used to set the attribute of the flashing state switch to on, and control the target instrument lights to start flashing at the same time.

[0076] It should be noted that the instrument light synchronous flashing control system provided in the above embodiment and the instrument light synchronous flashing control method provided in the above embodiment belong to the same concept, and the contents of the operations performed by each module have been described in detail in the method embodiment and will not be repeated here.

[0077] See also Figure 5 , Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0078] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0079] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0080] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0081] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the above-mentioned instrument light synchronous flashing control method. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiment, or may exist independently without being assembled into the electronic device.

[0082] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0083] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0084] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0085] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for controlling synchronous flashing of instrument lights, characterized in that: The method comprises: Obtaining the current state and the historical state of each instrument light at the previous moment, wherein the state of each instrument light includes a flashing state; Determine a state change mode of the instrument light according to the change from the historical state to the current state, wherein the state change mode includes a flashing newly added state, and the flashing newly added state indicates that there is at least one state change of the instrument light to the flashing state; When the state change mode is the flashing newly added state, each of the instrument lights whose current state is the flashing state is determined as a target instrument light; The property of the flashing state switch is set to on, and the target instrument lights are controlled to start flashing at the same time.

2. The synchronous flashing control method of the instrument light according to claim 1, characterized in that: The state of each of the instrument lights also includes an off state and a constant on state; The determining the state change mode of the instrument light according to the change from the historical state to the current state includes: For each of the instrument lights, comparing the corresponding historical state with the current state; If the state of each of the instrument lights has not changed, determining the state change mode as a flashing maintenance state; If the state of at least one of the instrument lights changes from the flashing state to the off state or the constantly on state, determining the state change mode as a flashing reduction state; If the state of at least one of the instrument lights changes from the off state or the constantly on state to the flashing state, the state change mode is determined as the flashing newly added state.

3. The synchronous flashing control method of the instrument light according to claim 1, characterized in that: After controlling the target instrument lights to start flashing at the same time, the method further includes: Collecting flickering state data of each target instrument light, wherein the flickering state data includes a lighting time; Analyze each of the lighting moments, determine a maximum difference between each of the lighting moments, and compare the maximum difference with a preset difference; If the maximum difference is greater than or equal to the preset difference, then determining the start time of the next flashing cycle according to each of the lighting moments and the preset flashing frequency; Each of the target instrument lights is controlled to flash at the starting time.

4. The synchronous flashing control method of instrument lights according to claim 1, characterized in that: The obtaining of the current state and the historical state of each instrument light at the previous moment includes: Obtaining a historical data array and a current first state signal corresponding to each indicator light in the instrument light, wherein the historical data array includes a historical state value and a historical position code of each indicator light; Determine the historical state of each of the indicator lights according to the historical state value and a preset first mapping relationship, wherein the first mapping relationship represents a corresponding relationship between the state value and the state of the indicator lights; The historical data array is updated according to the first state signal to obtain a current data array, wherein the current data array includes a current state value and a current position code of each of the indicator lights; The current state of each of the indicator lights is determined according to the current state value and the first mapping relationship.

5. The synchronous flashing control method of the instrument light according to claim 4, characterized in that: The updating of the historical data array according to the first status signal to obtain the current data array includes: Determine the current state value of each indicator light according to the first state signal and a preset second mapping relationship, wherein the second mapping relationship represents a corresponding relationship between the state signal and the state value of each indicator light; For each of the indicator lights, comparing the corresponding current state value with the historical state value; The historical state value is updated by comparing the inconsistent current state value, and the historical position code is updated according to the preset initial position code of each of the inconsistent indicator lights to obtain the current position code; The current data array is generated according to the current state value and the current position code.

6. The synchronous flashing control method of instrument lights according to claim 1, characterized in that: The step of obtaining the current state and the historical state of each instrument light at the previous moment also includes: Obtaining a historical second state signal and a current third state signal of each warning light in the instrument light; According to the second status signal and the preset third mapping relationship, the historical status of each of the warning lights is determined, and according to the second status signal and the third mapping relationship, the current status of each of the warning lights is determined, wherein the third mapping relationship represents the correspondence between the status signal and the status of the warning lights.

7. The method for controlling synchronous flashing of instrument lights according to any one of claims 1 to 6, characterized in that: The controlling the target instrument lights to start flashing at the same time includes: Determine each indicator light whose current state value is a flashing state value as a target indicator light, and determine the current position code corresponding to the target indicator light; and / or, determine each warning light whose current state is the flashing state as a target warning light, and determine the flashing state value and warning light icon corresponding to the target warning light, wherein the flashing state value includes state values ​​at different flashing frequencies; According to the current position code and the associated flashing state value, and / or according to the warning light icon and the associated flashing state value, the target indicator light and / or the target warning light are controlled to flash from the same moment.

8. A control system for synchronous flashing of instrument lights, characterized in that: The system comprises: A state acquisition module, used to acquire the current state and the historical state of each instrument light at the previous moment, wherein the state of each instrument light includes a flashing state; A mode determination module, configured to determine a state change mode of the instrument light according to a change from the historical state to the current state, wherein the state change mode includes a flashing newly added state, and the flashing newly added state indicates that there is at least one state change of the instrument light to the flashing state; An instrument light determination module, configured to determine each of the instrument lights whose current state is the flashing state as a target instrument light when the state change mode is the flashing newly added state; The flashing control module is used to set the attribute of the flashing state switch to on, and control the target instrument lights to start flashing at the same time.

9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the instrument light synchronous flashing control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the instrument light synchronous flashing control method as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Synchronous flickering method and device for multiple vehicle indicating lamps

    CN119590213A