Lamp absence detection method, system, computer device, readable medium and vehicle
By calibrating and fitting the current data of the running water turn signal and predicting the stable current value, the accuracy problem of detection and repair judgment of the running water turn signal lack of light fault is solved, and efficient and accurate detection results are achieved.
Patent Information
- Application Number
- CN202411018086.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The existing technology is not very accurate when detecting the lamp failure of the running water turn signal and its repair status, resulting in a high misjudgment rate and making it difficult to achieve accurate lamp shortage detection and fault repair judgment.
By collecting the current data of the running water turn signal when there is no light shortage, setting the current window threshold, calculating the current growth time period, using the least square method to fit the relationship between current and time, predicting the stable current value, and determining whether there is a light shortage fault. .
It achieves accurate detection and repair judgment of the running water turn signal lack of lamp failure, reduces detection costs and waste of chip resources, and improves detection accuracy and efficiency.
Smart Images

Figure CN118549844B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of running turn signal lamp absence detection, and in particular to a lamp absence detection method, system, computer equipment, readable medium and vehicle. Background Art
[0002] In accordance with relevant rules and regulations, when a vehicle's turn signal fails, the turn signal is required to alert the driver of the vehicle and surrounding vehicles through a flashing state (i.e., the turn signal flashes at a faster frequency); accordingly, when the turn signal failure is repaired, the body controller should promptly detect that the failure has disappeared, and control the turn signal to stop the flashing state and light up at a normal frequency.
[0003] At present, there are generally two approaches to detecting the lack of lights in turn signals. The first approach is multi-port detection, that is, using multiple sampling ports to collect the voltage of each turn signal bulb to determine whether there is a lack of lights fault. For example, if the voltage difference between the two ends of a bulb in the left turn signal is detected to be less than the lack of lights voltage threshold, it is considered that the left turn signal is open-circuited, that is, there is a lack of lights fault. However, it is obvious that using this approach for lack of lights detection will have problems such as difficult layout, high cost, and waste of chip resources.
[0004] The second idea is to collect the current and voltage and compare them with the lamp-missing threshold, that is, collect the working current and voltage of the current turn signal, then calculate the actual working power of the current turn signal, and compare the actual working power with the preset lamp-missing threshold power. If the actual working power is less than the lamp-missing threshold power, it is considered that there is a lamp-missing fault. For example, the technical solution adopted in the Chinese patent document with announcement number CN117233664A (A method and system for detecting open circuits in micro-current circuits). However, this idea will have the problem of low accuracy when applied to the lamp-missing detection of running water turn signals.
[0005] Specifically, after the turn signal's missing light fault is repaired, the body controller needs to use the same idea to determine whether the missing light fault is correctly repaired. If it is detected that the current turn signal's operating power is greater than the missing light threshold, it is considered that the missing light fault has been repaired. After the fault is repaired, the body controller controls the turn signal to flash at a normal frequency.
[0006] Among them, for ordinary turn signals, after the missing light fault is repaired, the ordinary turn signals can be fully lit within the flashing time and reach a stable working state. By comparing its stable working power with the missing light threshold power, it is possible to accurately determine whether the vehicle body still has a missing light fault; however, for running turn signals, after the missing light fault is repaired, the running turn signals cannot be fully lit within the flashing time and cannot reach a stable working state. At this time, the calculated working power will be much smaller than the actual stable working power of the running turn signals and also smaller than the missing light threshold power. This will result in even if the missing light fault of the running turn signals has actually been repaired, it will still be misjudged as a missing light state by the vehicle body controller.
[0007] In view of this, how to realize the lack of light detection of running turn signal lamps and the accurate detection after the lack of light fault is repaired has become an urgent problem to be solved. Summary of the invention
[0008] In order to solve the technical problems in the related art, the present application provides a method, system, computer device, readable medium and vehicle for detecting a missing light. The missing light detection method of the present application not only has the characteristics of simple arrangement, low cost and high utilization rate of chip computing resources, but also can be applied to the missing light detection of running turn signal lamps and accurately realize the detection of the repair of the missing light fault.
[0009] In order to achieve the above objectives, the technical solutions adopted in this application include:
[0010] According to a first aspect of the present application, the present application provides a method for detecting a light shortage of a running turn signal lamp, comprising the following steps:
[0011] Data calibration:
[0012] Step S1-1: collecting current data of several complete lighting cycles of the running water turn signal lamp when the lamp is not missing;
[0013] Step S1-2: Set a certain time period of full lighting of the water turn signal lamp as , the flashing time of the water turn signal lamp is , the current window threshold ratio is ;
[0014] Step S1-3: Traversal The current data value within the same time interval is used to determine the maximum current change value within the same time interval. , calculate the calibration threshold ,in, ;
[0015] Step S1-4: Calculate the current growth time periods corresponding to several complete lighting cycles respectively , among which, in During a lighting cycle, compare the current value of the water turn signal with the calibration threshold. Compare and if the continuous current change value within a certain period of time is less than or equal to the calibration threshold , then this time period is regarded as the current stable stage of the running water turn signal lamp At the same time, the remaining time period is regarded as the current growth time period of the water turn signal ;
[0016] Step S1-5: Calculate the current growth time period in several complete lighting cycles The average of the growth time is obtained ;in, , indicating that there is growth period, Expressing the The start time of each growth period is The average value of the cycles, Expressing the The end time of the growth period is The average value of the cycles, , indicating The first cycle Take the average value of the growth moments;
[0017] Step S1-6: Calculate the total current growth time in one cycle ;in, , ;
[0018] Current prediction:
[0019] Step S2-1: Collect the flashing time of the running turn signal Internal current data;
[0020] Step S2-2: Increase the time according to the calibration Filter the current data obtained in step S2-1, and retain the current data within the growth time period;
[0021] Step S2-3: Use the least squares method to perform linear fitting on the current data of the retained growth period to obtain the equation of current and time ; In the formula, and is the current change and time during the growth period Relationship parameters;
[0022] Step S2-4: Calculate the predicted stable current value ,in, ; Indicates the calculated Growth time: the time when the first current growth period starts. Indicates the collected current value corresponding to the moment when the current starts to increase; and according to the predicted stable current value The predicted working power is calculated. If the predicted working power is less than the open-circuit power threshold, it is determined that the lamp is missing. If the predicted working power is greater than or equal to the open-circuit power threshold, it is determined that the lamp is not missing.
[0023] Optionally, the current window threshold ratio satisfy: .
[0024] According to the second aspect of the present application, a light-out detection system is further provided, which is applied to the light-out detection method described in any technical solution in the first aspect of the present application, and the light-out detection system includes:
[0025] Data acquisition module: used to obtain the current data of several complete lighting cycles of the running water turn signal lamp when the lamp is not missing; and used to collect the current data of the running water turn signal lamp when the lamp flashes Internal current data;
[0026] Data processing module, used to set a certain time period for the water turn signal lamp to be fully lit , water turn signal flash time , and the current window threshold ratio ; and used to traverse The current data value within the same time interval is used to determine the maximum current change value within the same time interval. , calculate the calibration threshold ; and used to calculate the corresponding current growth time period in several complete lighting cycles ; and used to calculate the current growth time period in several complete lighting cycles The average of the growth time is obtained ; and used to calculate the total current growth time within a cycle ; and used to increase the time according to the calibration The current data obtained in step S2-1 is screened, and the current data in the growth time period is retained; and the current data in the growth time period is linearly fitted using the least square method to obtain the equation of current and time. ; and used to calculate the predicted steady current value ; Used to predict the stable current value Calculate the predicted working power;
[0027] A judgment module, used for comparing the predicted working power with the open-circuit power threshold, and judging that the lamp is missing if the predicted working power is less than the open-circuit power threshold, and judging that the lamp is not missing if the predicted working power is greater than or equal to the open-circuit power threshold;
[0028] The output module is used to output the judgment result.
[0029] According to the third aspect of the present application, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the light shortage detection method described in any technical solution in the first aspect of the present application can be implemented.
[0030] According to the fourth aspect of the present application, a readable medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the light shortage detection method described in any technical solution in the first aspect of the present application can be implemented.
[0031] According to a fifth aspect of the present application, a vehicle is also provided, comprising the light absence detection system according to the second aspect of the present application.
[0032] Beneficial effects:
[0033] 1. Through the above technical scheme, first, compared with the existing related technologies, the method of the present application has and only needs a set of voltage and current acquisition devices, and realizes the detection of light failure through program judgment. In this way, it can not only reduce the difficulty of layout and realize the layout quickly and conveniently, but also effectively reduce the detection cost and save chip resources.
[0034] Second, the method of the present application uses the current conditions of the running turn signal during the flashing time to calculate the corresponding current-time variation relationship, thereby replacing the full-cycle current-time variation relationship in the existing related technology. This method can not only reliably and accurately realize the running turn signal light shortage fault detection of the running turn signal, but also can be accurately and reliably applied to the detection of the running turn signal after the light shortage fault is repaired (i.e., it can accurately and reliably realize the online recovery of the running turn signal light shortage fault).
[0035] Third, the method of the present application, by retaining the current data within the growth time period, eliminates the influence of the step-type change of the current of the running turn signal lamp, and fits the retained current data within the growth time period through the least squares method, can make the current prediction more accurate, and can effectively improve the detection accuracy of the running turn signal lamp failure.
[0036] Fourth, the method of the present application, in view of the volatility of the circuit, adopts the method of calculating the average of the current growth time period and using the data of multiple cycles after a power-on for calculation, which can effectively reduce randomness and make the calculation results more stable and accurate, thereby making the current prediction more precise, and can effectively improve the detection accuracy of the running water turn signal missing light fault.
[0037] Fifth, the method of the present application has few iterations, requires small computing resources and computing space, and has flexible configuration, can be applied to a variety of circuit environments, and can be widely adapted to embedded software and hardware development.
[0038] Sixth, since the data calibration step and the current prediction step are based on the same running turn signal lamp, using the current-time variation relationship calculated during the flash time period instead of the full-cycle current-time variation relationship can effectively improve the calculation efficiency and accuracy of calculating the stable current value, thereby effectively improving the detection efficiency and accuracy of the running turn signal lamp's lack of light fault.
[0039] 2. Other beneficial effects or advantages of the present application will be described in detail in the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] in:
[0042] Figure 1 This is a schematic diagram of actual current changes of ordinary turn signals in the prior art;
[0043] Figure 2 It is a schematic diagram of actual current change of a water turn signal lamp in the prior art;
[0044] Figure 3 It is a schematic diagram comparing the actual current of a water turn signal lamp and the predicted current obtained by direct linear fitting in the existing related technology;
[0045] Figure 4 1 is a schematic diagram of the predicted current of the running water turn signal lamp when the lamp is missing, obtained by applying the lamp missing detection method of the present application, wherein the actual current of the running water turn signal lamp before 200ms and the lamp missing threshold current corresponding to the lamp missing threshold power are also shown;
[0046] Figure 5 is a schematic diagram of the predicted current of the running water turn signal lamp when the lamp is not missing, obtained by applying the lamp missing detection method of the present application, wherein the actual current of the running water turn signal lamp before 200ms and the lamp missing threshold current corresponding to the lamp missing threshold power are also shown;
[0047] Figure 6 is a schematic diagram of the steps of a light-out detection method provided by an exemplary embodiment of the present application;
[0048] Figure 7 It is a schematic diagram of the steps of data calibration provided by an exemplary embodiment of the present application;
[0049] Figure 8 It is a schematic diagram of the steps of current prediction provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0051] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0052] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes other steps or units that are not listed, or optionally includes other steps or units that are inherent to these processes, methods, products or devices. Among them, it should also be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0053] In order to facilitate relevant technical personnel to have a clearer and more accurate understanding of the technical solution of this application, the following is combined with Figures 1 to 3 The existing related technology is described.
[0054] First, see Figures 1 to 3 , Figure 1 The current variation of a common turn signal lamp is shown, that is, the current of a common turn signal lamp is substantially linearly correlated with time. Figure 2 The current change of the running water turn signal lamp is shown, that is, the current of the running water turn signal lamp presents a step-by-step increase, which is quite different from the current change of the ordinary turn signal lamp. This is also the reason why the accuracy of the existing related technology is not high after the lamp failure is repaired.
[0055] For details, please refer to Figure 3 The current prediction method in the existing related technology (which is to directly perform linear fitting on the current) has a large error between the fitting and the actual stable working current of the running water turn signal lamp. After the lamp failure is repaired, the running water turn signal lamp is still in the fast flashing state (the current in the fast flashing state corresponds to Figure 3 The current in the first half of the cycle (this is because the flashing frequency of the fast flashing state is about half of the flashing frequency of the normal flashing). At this time, the operating current of the flowing turn signal light calculated using the existing related technology will be greater than the actual operating current, and thus the calculated operating power will also be greater than the actual operating power. If the actual operating power is used for judgment, it is very likely to make a misjudgment, that is, in the absence of lights, the predicted power of the existing related technology is greater than the absence of lights threshold, and the body controller will believe that it is in a non-lamp-missing state at this time. Therefore, it is impossible to accurately judge whether there is a lack of lights fault.
[0056] At the same time, after repairing the missing light fault, the flowing turn signal cannot be fully lit within the flashing time and cannot reach a stable working state. At this time, the calculated working power will be much smaller than the actual stable working power of the flowing turn signal and also smaller than the missing light threshold power. This will result in that even if the missing light fault of the flowing turn signal has actually been repaired, it will still be misjudged as a missing light state by the body controller.
[0057] In view of this, the present application provides a new solution, namely, the light-missing detection method of the present application, which has the characteristics of simple arrangement, low cost and high chip computing resource utilization compared with the first idea in the background technology. Compared with the second idea in the background technology, it can be well applied to the light-missing detection of the running turn signal lamp and accurately realize the detection of the repair of the light-missing fault.
[0058] The technical solution of the present application is described in detail below with reference to the accompanying drawings.
[0059] Example 1
[0060] like Figures 4 to 8 As shown, this embodiment provides a method for detecting a light shortage according to the first aspect of the present application, which is used for detecting a light shortage of a running turn signal lamp, comprising the following steps:
[0061] Data calibration:
[0062] Step S1-1: collecting current data of several complete lighting cycles of the running water turn signal lamp when the lamp is not missing;
[0063] Step S1-2: Set a certain time period of full lighting of the water turn signal lamp as , the flashing time of the water turn signal lamp is , the current window threshold ratio is ;
[0064] Step S1-3: Traversal The current data value within the same time interval is used to determine the maximum current change value within the same time interval. , calculate the calibration threshold ,in, ;
[0065] Step S1-4: Calculate the current growth time periods corresponding to several complete lighting cycles respectively , among which, in During a lighting cycle, compare the current value of the water turn signal with the calibration threshold. Compare and if the continuous current change value within a certain period of time is less than or equal to the calibration threshold , then this time period is regarded as the current stable stage of the running water turn signal lamp At the same time, the remaining time period is regarded as the current growth time period of the water turn signal In this embodiment, if In a sampling period, there are growth time period, the growth time node in the sampling period can be recorded as ,in Indicates that the current Lighting cycle, ; In the formula, Indicates that the current The start time of a growth period, Indicates that the current The end time of a growth period;
[0066] Step S1-5: Calculate the current growth time period in several complete lighting cycles The average of the growth time is obtained ;in, , indicating that there is growth period, Expressing the The start time of each growth period is The average value of the cycles, Expressing the The end time of the growth period is The average value of the cycles, , indicating The first cycle Take the average value of the growth moments;
[0067] In this embodiment, in each lighting cycle, the corresponding current growth time period is calculated. ,use The current data of each cycle is used to calibrate the time period, then the The current growth period is finally used for prediction. The average value of the period growth time; that is, the calibration growth time ;
[0068] Step S1-6: Calculate the total current growth time in one cycle ;in, , ;
[0069] In this embodiment, the calibration growth time is The total current growth time in one cycle of the turn signal can be obtained That is, for each growth period, the total current growth time of the growth period is obtained by subtracting the current growth start time from the current growth end time. The total current growth time of a cycle is equal to the sum of the durations of m growth periods, that is, ;
[0070] Current prediction (this part is based on the current data of the running water turn signal collected in real time, using the prediction algorithm to calculate the current value of the running water turn signal after it works stably):
[0071] Step S2-1: Collect the flashing time of the running turn signal Internal current data;
[0072] Step S2-2: Increase the time according to the calibration The current data obtained in step S2-1 are filtered and the current data in the growth period is retained, that is, according to the calibration Filter the current sampling values within the growth time period;
[0073] Step S2-3: Use the least squares method to perform linear fitting on the current data of the retained growth period to obtain the equation of current and time ; In the formula, and is the current change and time during the growth period Relationship parameters;
[0074] Step S2-4: Calculate the predicted stable current value ,in, ; Indicates the calculated Growth time: the time when the first current growth period starts. Indicates the collected current value corresponding to the moment when the current starts to increase; and according to the predicted stable current value The predicted working power is calculated. If the predicted working power is less than the open-circuit power threshold, it is determined that the lamp is missing. If the predicted working power is greater than or equal to the open-circuit power threshold, it is determined that the lamp is not missing.
[0075] In this embodiment, the above algorithm can be used to predict the flow of turning lights The current value at any time after time, for example, calculate the current value when the water turn signal is on Tms, where T is greater than and less than or equal to , steps S1-1 to S2-3 are exactly the same as above, and the predicted current is calculated ,in, It represents the sum of the current growth time within Tms. Figure 4 and Figure 5 , using algorithms to predict the flow of turn signals The current changes thereafter and the final stable current value is obtained.
[0076] Through the above technical scheme, firstly, compared with the existing related technologies, the method of the present application has and only requires a set of voltage and current acquisition devices, and realizes the detection of light failure through program judgment. In this way, it can not only reduce the difficulty of layout and realize the layout quickly and conveniently, but also effectively reduce the detection cost and save chip resources.
[0077] Second, the method of the present application uses the current conditions of the running turn signal during the flashing time to calculate the corresponding current-time variation relationship, thereby replacing the full-cycle current-time variation relationship in the existing related technology. This method can not only reliably and accurately realize the running turn signal light shortage fault detection, but also can be accurately and reliably applied to the detection of the running turn signal after the light shortage fault is repaired (i.e., it can accurately and reliably realize the online recovery of the running turn signal light shortage fault).
[0078] Third, the method of the present application retains the current data within the growth time period to eliminate the impact of the step-type change in the current of the running turn signal lamp, and fits the retained current data within the growth time period through the least squares method, thereby making the current prediction more accurate, and thus effectively improving the detection accuracy of the running turn signal lamp failure.
[0079] Fourth, the method of the present application, in view of the volatility of the circuit, adopts the method of calculating the average of the current growth time period and using the data of multiple cycles after a power-on for calculation, which can effectively reduce randomness and make the calculation results more stable and accurate, thereby making the current prediction more precise, and further effectively improving the detection accuracy of the running water turn signal missing light fault.
[0080] Fifth, the method of the present application has few iterations, requires small computing resources and computing space, and has flexible configuration, can be applied to a variety of circuit environments, and can be widely adapted to embedded software and hardware development.
[0081] Sixth, since the data calibration step and the current prediction step are based on the same running turn signal lamp, using the current-time variation relationship calculated during the flash time period instead of the full-cycle current-time variation relationship can effectively improve the calculation efficiency and accuracy of calculating the stable current value, thereby effectively improving the detection efficiency and accuracy of the running turn signal lamp's lack of light fault.
[0082] Taking an exemplary implementation as an example, the process of performing light-out detection using the method of the present application may be:
[0083] Data calibration uses 5 complete cycles of current data for data calibration. The following table shows the 5 complete cycles of current data obtained.
[0084] Table 1 Current data obtained for 5 complete cycles
[0085]
[0086] According to the actual situation and relevant regulations, set the time period for the running turn signal lights to be fully lit , water turn signal flash time , current window threshold ratio ;
[0087] For the first cycle, calculate the maximum current change value within the same time interval , the corresponding calibration threshold can be calculated ;
[0088] In this way, the current growth period in the first cycle can be calculated as:
[0089] ;
[0090] Similarly, the current growth time periods of the remaining four cycles can be calculated as follows:
[0091]
[0092]
[0093]
[0094]
[0095] Calculate the current growth time period of the above 5 cycles The average of the growth time is obtained ;
[0096] Calculate the total current increase time .
[0097] Current prediction:
[0098] The current data collected within the first 200ms of the water turn signal lamp being turned on is obtained; that is, the current data of the first 200ms in the sixth cycle as shown in Table 2 below:
[0099] Table 2 Current data for the first 200ms in the sixth cycle
[0100]
[0101] reserve Current value within a certain period of time;
[0102] Use the least squares method to calculate the equation for current and time ;
[0103] , then calculate the predicted stable current value ; The difference with the actual stable current of the running water turn signal lamp is very small, and the predicted error accounts for only 1.56% of the actual stable current. Therefore, it can be used to calculate the predicted working power more accurately to determine whether there is a lack of light.
[0104] In one embodiment of the present application, the current window threshold ratio Can satisfy: . It is used to adapt to different flow turn signals and different acquisition chips.
[0105] According to the second aspect of the present application, a light-out detection system is further provided, which is applied to the light-out detection method described in any technical solution in the first aspect of the present application, and the light-out detection system includes:
[0106] Data acquisition module: used to obtain the current data of several complete lighting cycles of the running water turn signal lamp when the lamp is not missing; and used to collect the current data of the running water turn signal lamp when the lamp flashes Internal current data;
[0107] Data processing module, used to set a certain time period for the water turn signal lamp to be fully lit , water turn signal flash time , and the current window threshold ratio ; and used to traverse The current data value within the same time interval is used to determine the maximum current change value within the same time interval. , calculate the calibration threshold ; and used to calculate the corresponding current growth time period in several complete lighting cycles ; and used to calculate the current growth time period in several complete lighting cycles The average of the growth time is obtained ; and used to calculate the total current growth time within a cycle ; and used to increase the time according to the calibration The current data obtained in step S2-1 is screened, and the current data in the growth time period is retained; and the current data in the growth time period is linearly fitted using the least square method to obtain the equation of current and time. ; and used to calculate the predicted steady current value ; Used to predict the stable current value Calculate the predicted working power;
[0108] A judgment module, used for comparing the predicted working power with the open-circuit power threshold, and judging that the lamp is missing if the predicted working power is less than the open-circuit power threshold, and judging that the lamp is not missing if the predicted working power is greater than or equal to the open-circuit power threshold;
[0109] The output module is used to output the judgment result.
[0110] According to the third aspect of the present application, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the light outage detection method in any one of the technical solutions in the first aspect of the present application can be implemented.
[0111] It is understood that in this embodiment, the memory may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid state drive; in addition, the memory may also include a combination of the above-mentioned types of memory. This application does not specifically limit this.
[0112] Similarly, the processor may be a processor that implements or executes various exemplary logic steps described in conjunction with the disclosure of the present application. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute various exemplary logic steps described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0113] According to the fourth aspect of the present application, a readable medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the light shortage detection method described in any technical solution in the first aspect of the present application can be implemented.
[0114] In this embodiment, the readable medium, for example, can be but not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (Random Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of readable medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC). In the embodiments of the present application, the readable medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0115] According to a fifth aspect of the present application, a vehicle is also provided, comprising the light absence detection system according to the second aspect of the present application.
[0116] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for detecting a lack of light, characterized in that: The method for detecting the lack of light of a running water turn signal lamp includes the following steps: Data calibration: Step S1-1: collecting current data of several complete lighting cycles of the running water turn signal lamp when the lamp is not missing; Step S1-2: Set a certain time period of full lighting of the water turn signal lamp as , the flashing time of the water turn signal lamp is , the current window threshold ratio is ; Step S1-3: Traversal The current data value within the same time interval is used to determine the maximum current change value within the same time interval. , calculate the calibration threshold ,in, ; Step S1-4: Calculate the current growth time periods corresponding to several complete lighting cycles respectively , among which, in During a lighting cycle, compare the current value of the water turn signal with the calibration threshold. Compare and if the continuous current change value within a certain period of time is less than or equal to the calibration threshold , then this time period is regarded as the current stable stage of the running water turn signal lamp At the same time, the remaining time period is regarded as the current growth time period of the water turn signal ; Step S1-5: Calculate the current growth time period in several complete lighting cycles The average of the growth time is obtained ;in , indicating that there is growth period, Indicates The start time of each growth period is The average value of the cycles, Indicates The end time of the growth period is The average value of the cycles, , indicating The first cycle Take the average value of the growth moments; Step S1-6: Calculate the total current growth time in one cycle ;in, , ; Current prediction: Step S2-1: Collect the flashing time of the running turn signal Internal current data; Step S2-2: Increase the time according to the calibration Filter the current data obtained in step S2-1, and retain the current data within the growth time period; Step S2-3: Use the least squares method to perform linear fitting on the current data of the retained growth period to obtain the equation of current and time ; In the formula, and is the current change and time during the growth period Relationship parameters; Step S2-4: Calculate the predicted stable current value ,in, ; Indicates the calculated Growth time: the time when the first current growth period starts. Indicates the collected current value corresponding to the moment when the current starts to increase; and according to the predicted stable current value The predicted working power is calculated. If the predicted working power is less than the open-circuit power threshold, it is determined that the lamp is missing. If the predicted working power is greater than or equal to the open-circuit power threshold, it is determined that the lamp is not missing.
2. The method for detecting lack of light according to claim 1, characterized in that: The current window threshold ratio satisfy: .
3. A light-out detection system, applied to the light-out detection method according to claim 1 or 2, characterized in that: The light-out detection system comprises: Data acquisition module: used to obtain the current data of several complete lighting cycles of the running water turn signal lamp when the lamp is not missing; and used to collect the current data of the running water turn signal lamp when the lamp flashes Internal current data; Data processing module, used to set a certain time period for the water turn signal lamp to be fully lit , water turn signal flash time , and the current window threshold ratio ; and used to traverse The current data value within the same time interval is used to determine the maximum current change value within the same time interval. , calculate the calibration threshold ; and used to calculate the corresponding current growth time period in several complete lighting cycles ; and used to calculate the current growth time period in several complete lighting cycles The average of the growth time is obtained ; and used to calculate the total current growth time within a cycle ; and used to increase the time according to the calibration The current data obtained in step S2-1 is screened, and the current data in the growth time period is retained; and the current data in the growth time period is linearly fitted using the least square method to obtain the equation of current and time. ; and used to calculate the predicted steady current value ; Used to predict the stable current value Calculate the predicted working power; A judgment module, used for comparing the predicted working power with the open-circuit power threshold, if the predicted working power is less than the open-circuit power threshold, it is judged that the lamp is missing, if the predicted working power is greater than or equal to the open-circuit power threshold, it is judged that the lamp is not missing; The output module is used to output the judgment result.
4. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the light absence detection method according to claim 1 or 2 can be implemented.
5. A readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the light shortage detection method according to claim 1 or 2 can be implemented.
6. A vehicle, characterized in that: It comprises the light absence detection system according to claim 3.
