CN117759415A - Processing method and processing device for abnormal liquid ejection amount and electronic equipment - Google Patents

Processing method and processing device for abnormal liquid ejection amount and electronic equipment Download PDF

Info

Publication number
CN117759415A
CN117759415A CN202410023589.0A CN202410023589A CN117759415A CN 117759415 A CN117759415 A CN 117759415A CN 202410023589 A CN202410023589 A CN 202410023589A CN 117759415 A CN117759415 A CN 117759415A
Authority
CN
China
Prior art keywords
historical
injection
actual
injection quantity
duty ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410023589.0A
Other languages
Chinese (zh)
Inventor
李震
耿宗起
仲昆
吕志华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weichai Power Co Ltd
Original Assignee
Weichai Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202410023589.0A priority Critical patent/CN117759415A/en
Publication of CN117759415A publication Critical patent/CN117759415A/en
Pending legal-status Critical Current

Links

Landscapes

  • Exhaust Gas After Treatment (AREA)

Abstract

The application provides a method and a device for processing abnormal liquid injection quantity and electronic equipment. Comprising the following steps: calculating an actual injection amount and an actual duty ratio, wherein the actual duty ratio is a ratio of time when the motor injects liquid to time when the motor does not inject liquid; acquiring a plurality of historical injection amounts and historical duty ratios corresponding to each historical injection amount, fitting the historical injection amounts and the historical duty ratios to obtain a fitting relation between the historical injection amounts and the historical duty ratios, and determining theoretical injection amounts corresponding to actual duty ratios according to the fitting relation; and calculating the absolute value of the difference between the actual injection quantity and the theoretical injection quantity, determining the abnormal injection quantity of the liquid under the condition that the absolute value of the difference is smaller than the minimum allowable error or larger than the maximum allowable error, and processing the abnormal injection quantity. According to the method and the device, the problem of low timeliness of a detection method for abnormal liquid injection quantity in the prior art is solved.

Description

Processing method and processing device for abnormal liquid ejection amount and electronic equipment
Technical Field
The present invention relates to the field of abnormality processing of vehicles, and more particularly, to a method of processing abnormality of a liquid ejection amount, a processing apparatus, a computer-readable storage medium, and an electronic device.
Background
In the prior art, fault detection is performed by comparing the consumption of urea tank solution with the deviation between the urea injection amount calculated by an ECU (electronic control unit Electronic Control Unit, ECU for short), and when the urea consumption amounts calculated by the two are inconsistent or the deviation is overlarge, the abnormal fault of the urea consumption amount deviation is reported. The consumption of the solution in the urea box is calculated mainly by monitoring the change of the liquid level in the urea box. The urea injection amount calculated by the ECU is mainly calculated by the execution amount of the urea nozzle. The above method has the following disadvantages: the urea tank liquid level change is utilized to judge the urea quantity consumption deviation, and the liquid level change is not obvious or is not detected at all under the condition of small urea quantity consumption due to the large volume of the urea tank. When the urea consumption is large or the liquid level of the urea box can be obviously changed, the abnormal detection of the urea consumption can be triggered, when the fault is detected, the fault is generated for a period of time, and at the moment, the following two risks exist, namely, the risk of crystallization caused by over-spraying of urea and the risk of exceeding the standard due to insufficient spraying of urea.
Therefore, a method for accurately detecting urea consumption deviation is needed.
Disclosure of Invention
The main object of the present application is to provide a method, a device, a computer readable storage medium and an electronic apparatus for processing an abnormality of a liquid ejection amount, so as to at least solve the problem of low timeliness of a method for detecting an abnormality of a liquid ejection amount in the prior art.
In order to achieve the above object, according to one aspect of the present application, there is provided a method of handling an abnormality in a liquid ejection amount, comprising: calculating an actual injection amount and an actual duty ratio, wherein the actual duty ratio is a ratio of time when the motor injects liquid to time when the motor does not inject the liquid; acquiring a plurality of historical injection amounts and a historical duty cycle corresponding to each historical injection amount, fitting the historical injection amounts and the historical duty cycles to obtain a fitting relation between the historical injection amounts and the historical duty cycles, and determining a theoretical injection amount corresponding to the actual duty cycle according to the fitting relation; and calculating the absolute value of the difference between the actual injection quantity and the theoretical injection quantity, determining the abnormal injection quantity of the liquid under the condition that the absolute value of the difference is smaller than the minimum allowable error or larger than the maximum allowable error, and processing the abnormal injection quantity.
Optionally, calculating the actual injection amount and the actual duty cycle includes: acquiring a plurality of duty ratios of injection amounts corresponding to each injection amount, and determining the injection amount as a target injection amount under the condition that the injection amount is larger than a minimum injection amount; and adding the target injection quantity to obtain the actual injection quantity, and adding the duty ratio corresponding to the target injection quantity to obtain the actual duty ratio.
Optionally, fitting the historical injection quantity and the historical duty cycle to obtain a fitting relationship between the historical injection quantity and the historical duty cycle, including: performing linear regression fitting on the historical injection quantity and the historical duty ratio to obtain a first regression coefficient and a second regression coefficient; and taking the first regression coefficient as a first term coefficient of a linear equation, and taking the second regression coefficient as a constant term coefficient of the linear equation to obtain the fitting relation.
Optionally, determining the theoretical injection quantity corresponding to the actual duty ratio according to the fitting relation includes: and solving the linear equation by taking the actual duty ratio as a dependent variable to obtain the theoretical injection quantity corresponding to the actual duty ratio.
Optionally, acquiring a plurality of historical injection amounts and a historical duty ratio corresponding to each historical injection amount includes: and under the condition that the actual injection quantity is larger than a minimum injection accumulation quantity, acquiring a plurality of historical injection quantities and the historical duty ratio corresponding to each historical injection quantity, wherein the minimum injection accumulation quantity is the minimum injection quantity corresponding to fault detection.
Optionally, the processing the injection quantity abnormality includes: adding 1 to the number of abnormalities, wherein the number of abnormalities represents the total number of abnormalities in the ejection amount of the liquid; and outputting a fault signal under the condition that the abnormal times are greater than or equal to a preset threshold value, and processing the abnormal injection quantity according to the fault signal, wherein the fault signal is a signal representing the fault of a motor for injecting the liquid.
Optionally, the method further comprises: determining that the ejection amount of the liquid is normal in the case where the absolute value of the difference is greater than or equal to the minimum allowable error or less than or equal to the maximum allowable error; and fitting the actual injection quantity which normally corresponds to the injection quantity as the historical injection quantity and the actual duty ratio as the historical duty ratio to correct the fitting relation.
According to another aspect of the present application, there is provided a processing apparatus for processing an abnormality in a liquid ejection amount, including: a calculation unit for calculating an actual injection amount and an actual duty ratio, wherein the actual duty ratio is a ratio of a time when the motor injects liquid to a time when the motor does not inject the liquid; a first determining unit, configured to obtain a plurality of historical injection amounts and a historical duty cycle corresponding to each historical injection amount, fit the historical injection amounts and the historical duty cycles to obtain a fitting relationship between the historical injection amounts and the historical duty cycles, and determine a theoretical injection amount corresponding to the actual duty cycle according to the fitting relationship; and the processing unit is used for calculating the absolute value of the difference value between the actual injection quantity and the theoretical injection quantity, determining the abnormal injection quantity of the liquid and processing the abnormal injection quantity under the condition that the absolute value of the difference value is smaller than the minimum allowable error or larger than the maximum allowable error.
According to still another aspect of the present application, there is provided a computer readable storage medium including a stored program, wherein the program when executed controls a device in which the computer readable storage medium is located to perform any one of the processing methods.
According to still another aspect of the present application, there is provided an electronic apparatus including: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any one of the processing methods.
By the technical scheme, the actual injection quantity and the actual duty ratio are calculated, the historical injection quantity and the historical duty ratio are fitted to obtain a fitting relation between the historical injection quantity and the historical duty ratio, the theoretical injection quantity corresponding to the actual duty ratio is determined according to the fitting relation, the absolute value of the difference value between the actual injection quantity and the theoretical injection quantity is calculated, and the abnormal injection quantity of liquid is determined and processed under the condition that the absolute value of the difference value is smaller than the minimum allowable error or larger than the maximum allowable error. Therefore, whether the injection quantity is abnormal or not can be determined in real time according to the fitting relation obtained by fitting, and the timeliness is high. Compared with the method for determining whether the abnormality occurs by comparing the consumption of the liquid tank solution in the prior art, the method can determine whether the injection quantity is abnormal in real time, and achieves the effects of timely finding the abnormality and processing the abnormality.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a block diagram showing a hardware configuration of a mobile terminal for executing a method of processing an abnormality of a liquid ejection volume according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for handling abnormal liquid ejection volumes according to an embodiment of the present application;
fig. 3 is a schematic diagram of a calculation flow of an actual injection amount and an actual duty ratio in a method for processing an abnormal liquid injection amount according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a specific method for handling abnormal liquid ejection amount according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a urea injection versus pump motor duty cycle graph provided by an embodiment of the present application;
fig. 6 shows a block diagram of a processing apparatus for abnormal liquid ejection amount provided in an embodiment of the present application.
Wherein the above figures include the following reference numerals:
102. a processor; 104. a memory; 106. a transmission device; 108. and an input/output device.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in order to solve the problem of low timeliness of the detection method of the abnormality of the liquid ejection volume, the embodiments of the present application provide a processing method, a processing apparatus, a computer-readable storage medium, and an electronic device for the abnormality of the liquid ejection volume.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for handling abnormal liquid ejection amount according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for processing an abnormality of a liquid ejection amount in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by executing the computer program stored in the memory 104, that is, implements the above-described method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In the present embodiment, there is provided a method of handling abnormality of a liquid ejection amount that runs on a mobile terminal, a computer terminal, or the like, it is to be noted that the steps shown in the flowchart of the drawing may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
Fig. 2 is a flowchart of a method of handling an abnormality of a liquid ejection amount according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S201, calculating an actual injection quantity and an actual duty ratio, wherein the actual duty ratio is a ratio of time of injecting liquid by the motor to time of not injecting the liquid;
specifically, the liquid may be urea during running of the actual vehicle, and the method of judging whether the injection amount of urea deviates by the change of the liquid level of the urea tank has time lag, i.e. the method can be distinguished after a period of time of abnormality occurrence. Because the linear relation between the urea consumption and the duty ratio of the urea pump motor exists, the relation between the urea consumption and the duty ratio is easily fitted through test data, so that in order to reduce the lag time, the actual duty ratio is brought into the fitting relation, the theoretical injection quantity is obtained through solving, and then the theoretical injection quantity is compared with the actual injection quantity, so that whether the urea injection quantity is abnormal or not is judged rapidly and in real time.
Step S202, a plurality of historical injection amounts and the historical duty ratio corresponding to each historical injection amount are obtained, the historical injection amounts and the historical duty ratios are fitted to obtain a fitting relation between the historical injection amounts and the historical duty ratios, and the theoretical injection amounts corresponding to the actual duty ratios are determined according to the fitting relation;
specifically, in order to obtain the fitting relation, a plurality of historical injection amounts and the historical duty ratios corresponding to the historical injection amounts are fitted to obtain coefficients, and finally the fitting relation is obtained. After the fitting relation is determined, the theoretical injection amount corresponding to the actual duty cycle, that is, the amount of urea that should be injected theoretically when the duty cycle is the actual duty cycle, can be calculated.
Step S203 of calculating an absolute value of a difference between the actual injection amount and the theoretical injection amount, and if the absolute value of the difference is smaller than a minimum allowable error or larger than a maximum allowable error, determining an injection amount abnormality of the liquid, and processing the injection amount abnormality.
Specifically, after the theoretical injection quantity is calculated, the theoretical injection quantity is compared with the actual injection quantity of the motor pump, the absolute value of the difference value of the theoretical injection quantity and the actual injection quantity is calculated, if the absolute value is within the allowable error range, namely, between the minimum allowable error and the maximum allowable error, the injection quantity is considered to be normal, and otherwise, the injection quantity is determined to be abnormal. After the abnormality is determined, a fault signal corresponding to the abnormality of the injection quantity is output to start a processing program corresponding to the fault or to manually process the fault.
According to the embodiment, the actual injection quantity and the actual duty ratio are calculated, the historical injection quantity and the historical duty ratio are fitted to obtain a fitting relation between the historical injection quantity and the historical duty ratio, the theoretical injection quantity corresponding to the actual duty ratio is determined according to the fitting relation, the absolute value of the difference value between the actual injection quantity and the theoretical injection quantity is calculated, and the abnormal injection quantity of liquid is determined and processed under the condition that the absolute value of the difference value is smaller than the minimum allowable error or larger than the maximum allowable error. Therefore, whether the injection quantity is abnormal or not can be determined in real time according to the fitting relation obtained by fitting, and the timeliness is high. Compared with the method for determining whether the abnormality occurs by comparing the consumption of the liquid tank solution in the prior art, the method can determine whether the injection quantity is abnormal in real time, and achieves the effects of timely finding the abnormality and processing the abnormality.
In a specific implementation process, the calculation of the actual injection quantity and the actual duty ratio in the step S201 may be implemented by the following steps: as shown in fig. 3, step S2011: acquiring a plurality of duty ratios of injection amounts corresponding to the injection amounts, and determining the injection amount as a target injection amount when the injection amount is larger than a minimum injection amount; step S2012: and adding the target injection quantity to obtain the actual injection quantity, and adding the duty ratio corresponding to the target injection quantity to obtain the actual duty ratio. According to the method, the injection quantity meeting the injection quantity condition is added, so that the actual injection quantity can be accurately determined, and larger injection quantity errors are avoided.
Specifically, after a plurality of injection amounts are obtained, whether the injection amount is larger than a pre-calibrated minimum injection amount is judged, if the injection amount is smaller than or equal to the minimum injection amount, a statistical range is not generally calculated, so that data smaller than or equal to the minimum injection amount is removed, only data larger than the minimum injection amount are overlapped to obtain an actual injection amount, and the corresponding duty ratio is overlapped to obtain an actual duty ratio.
In order to accurately obtain the fitting relationship, in some optional embodiments, the fitting of the historical injection amount and the historical duty cycle in the step S202 may be achieved by: performing linear regression fitting on the historical injection quantity and the historical duty ratio to obtain a first regression coefficient and a second regression coefficient; and taking the first regression coefficient as a first term coefficient of a linear equation, and taking the second regression coefficient as a constant term coefficient of the linear equation to obtain the fitting relation. The method obtains the fitting relation by a linear regression fitting mode, so that the one-to-one correspondence of the injection quantity and the duty ratio can be accurately described.
In a specific implementation process, fitting can be performed by a method of unitary linear regression fitting, so that the first regression coefficient is a first term coefficient, the second regression coefficient is a constant term coefficient, the first regression coefficient is expressed as y=ax+b, a is the first regression coefficient, B is the second regression coefficient, X is the historical injection amount, Y is the historical duty cycle, in a specific embodiment, a is 3.3613, B is 15.47, and the fitting relationship is y=3.3613x+15.47. In the practical application process, other feasible fitting relation formulas can be adopted.
In some alternative embodiments, the determining, in step S202, the theoretical injection amount corresponding to the actual duty cycle according to the fitting relation may be implemented by: and solving the linear equation by taking the actual duty ratio as a dependent variable to obtain the theoretical injection quantity corresponding to the actual duty ratio. The method brings the actual duty ratio into the fitting relation, so that the theoretical injection quantity can be accurately obtained.
Specifically, the theoretical injection amount X can be obtained by substituting the actual duty ratio as a dependent variable, i.e., Y, with y=3.3613x+15.47.
In order to satisfy the injection cumulative amount condition, the acquisition of a plurality of historical injection amounts and the historical duty ratio corresponding to each of the historical injection amounts in the above step S202 may be achieved by: and acquiring a plurality of historical injection amounts and the historical duty ratios corresponding to the historical injection amounts when the actual injection amount is larger than a minimum injection accumulation amount, wherein the minimum injection accumulation amount is a minimum injection amount corresponding to fault detection. According to the method, under the condition that the accumulation of the injection quantity meets the injection accumulation quantity condition, namely, the injection accumulation quantity is larger than the minimum injection quantity, the historical injection quantity and the historical duty ratio are obtained, fitting judgment is further carried out to judge whether the injection quantity is abnormal, so that fault detection can be carried out after the injection quantity is accumulated to the minimum injection quantity corresponding to fault detection, and inaccurate detection results are avoided.
In the specific implementation process, the injection quantities are accumulated until reaching the minimum injection accumulation quantity specified by fault detection, the minimum injection accumulation quantity can be obtained through calibration in advance, then the historical injection quantity and the historical duty ratio are obtained, fitting is carried out, and whether the injection quantity is abnormal or not is judged.
In some alternative embodiments, the processing of the injection quantity abnormality in step S203 may be achieved by: adding 1 to the number of abnormalities, wherein the number of abnormalities represents the total number of abnormalities in the ejection amount of the liquid; and outputting a fault signal under the condition that the abnormal times are greater than or equal to a preset threshold value, and processing the abnormal injection quantity according to the fault signal, wherein the fault signal is a signal representing the fault of a motor for injecting the liquid. According to the method, when the abnormality occurs, the abnormal times are accumulated, and when the abnormal times are accumulated to a certain degree, namely, a preset threshold value, a fault signal is output, so that corresponding processing can be performed according to the fault signal.
Specifically, when the error exceeds the range, the number of abnormality times is increased by 1, and when the specified number of fault detection times, namely a preset threshold value, is reached, a fault signal is reported to indicate the urea consumption deviation abnormal fault. In the actual application process, the processing measures can be stored in advance, and the fault processing measures are automatically executed under the triggering of the fault signals. The fault signal can also be reported, and the staff can manually process according to the fault signal.
In order to make the fitting relation more accurate, the method further comprises the following steps: determining that the ejection amount of the liquid is normal when the absolute value of the difference is greater than or equal to the minimum allowable error or less than or equal to the maximum allowable error; and fitting the actual injection quantity corresponding to the normal injection quantity as the historical injection quantity and the actual duty ratio as the historical duty ratio to correct the fitting relation. The method further uses the injection quantity data and the duty cycle data as the historical injection quantity and the historical duty cycle, so that the fitting relation can be corrected.
In the specific implementation process, the actual injection quantity and the actual duty ratio under the normal injection quantity are in the error allowable range, so that the actual injection quantity and the actual duty ratio can be used as the historical injection quantity and the historical duty ratio to correct the fitting relation.
In order to enable those skilled in the art to more clearly understand the technical solutions of the present application, the implementation procedure of the method for handling abnormal liquid ejection amount of the present application will be described in detail below with reference to specific embodiments.
The present embodiment relates to a specific method for handling abnormality of liquid ejection amount, as shown in fig. 4, including the steps of:
Step S1: starting;
step S2: calculating an actual injection amount dm (target injection amount) of urea, and calculating an actual duty ratio rPs of a urea pump;
step S3: judging whether dm is larger than dm1 (minimum injection quantity), if so, executing step S4, and otherwise, returning to step S2;
step S4: calculating the total urea injection amount m (actual injection amount), and calculating the actual duty cycle accumulated amount p (actual duty cycle) of the urea pump;
step S5: judging whether m is larger than m1 (minimum injection accumulation amount), wherein m1 is a calibration parameter, if yes, executing step S6, and if not, returning to step S4;
step S6: according to a fitting formula y=ax+b, wherein y=p, x=m2, m2 is a calculated theoretical urea injection quantity (theoretical injection quantity), and a and B are calibration parameters, and fitting synthesis is performed by experimental data. The relation curve of the urea injection quantity and the duty ratio of the pump motor is shown in fig. 5, the abscissa is the urea accumulated injection quantity, the ordinate is the urea pump duty ratio accumulation, and the fitting formula is y= 3.3613x-15.47;
step S7: judging whether an error delta 1 between m2 (theoretical injection quantity) and m (actual injection quantity) is larger than delta 2, wherein delta 2 is a calibrated error allowable range, and executing step S8 if yes; if not, m and p are assigned to 0, the calculation is restarted, and the step S2 is continuously executed;
Step S8: adding 1 to the error out-of-range counting times;
step S9: judging whether the error out-of-range times exceeds a limit value n (preset threshold), wherein n is a calibration parameter, the minimum calculation times of fault triggering are judged, if yes, executing a step S10, and if no, assigning m and p to be 0, restarting calculation, and continuing to execute the step S2;
step S10: reporting urea consumption deviation abnormal faults (fault signals);
step S11: and (5) ending.
The embodiment of the application also provides a device for processing the abnormal liquid injection quantity, and it is to be noted that the device for processing the abnormal liquid injection quantity in the embodiment of the application can be used for executing the device for processing the abnormal liquid injection quantity provided in the embodiment of the application. The device is used for realizing the above embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The following describes a device for handling abnormality in the liquid ejection amount provided in the embodiment of the present application.
Fig. 6 is a schematic diagram of a processing apparatus for liquid ejection volume abnormality according to an embodiment of the present application. As shown in fig. 6, the apparatus includes:
a calculation unit 10 for calculating an actual injection amount and an actual duty ratio, wherein the actual duty ratio is a ratio of a time when the motor injects the liquid to a time when the motor does not inject the liquid;
specifically, the liquid may be urea during running of the actual vehicle, and the device for judging whether the injection amount of urea deviates by the change of the liquid level of the urea tank has time lag, i.e. the device can be judged after a period of time of abnormality occurrence. Because the linear relation between the urea consumption and the duty ratio of the urea pump motor exists, the relation between the urea consumption and the duty ratio is easily fitted through test data, so that in order to reduce the lag time, the actual duty ratio is brought into the fitting relation, the theoretical injection quantity is obtained through solving, and then the theoretical injection quantity is compared with the actual injection quantity, so that whether the urea injection quantity is abnormal or not is judged rapidly and in real time.
A first determining unit 20, configured to obtain a plurality of historical injection amounts and a historical duty cycle corresponding to each of the historical injection amounts, fit the historical injection amounts and the historical duty cycles to obtain a fitting relationship between the historical injection amounts and the historical duty cycles, and determine a theoretical injection amount corresponding to the actual duty cycle according to the fitting relationship;
Specifically, in order to obtain the fitting relation, a plurality of historical injection amounts and the historical duty ratios corresponding to the historical injection amounts are fitted to obtain coefficients, and finally the fitting relation is obtained. After the fitting relation is determined, the theoretical injection amount corresponding to the actual duty cycle, that is, the amount of urea that should be injected theoretically when the duty cycle is the actual duty cycle, can be calculated.
And a processing unit 30 configured to calculate an absolute value of a difference between the actual injection amount and the theoretical injection amount, determine an injection amount abnormality of the liquid, and process the injection amount abnormality when the absolute value of the difference is smaller than a minimum allowable error or larger than a maximum allowable error.
Specifically, after the theoretical injection quantity is calculated, the theoretical injection quantity is compared with the actual injection quantity of the motor pump, the absolute value of the difference value of the theoretical injection quantity and the actual injection quantity is calculated, if the absolute value is within the allowable error range, namely, between the minimum allowable error and the maximum allowable error, the injection quantity is considered to be normal, and otherwise, the injection quantity is determined to be abnormal. After the abnormality is determined, a fault signal corresponding to the abnormality of the injection quantity is output to start a processing program corresponding to the fault or to manually process the fault.
According to the embodiment, the actual injection quantity and the actual duty ratio are calculated, the historical injection quantity and the historical duty ratio are fitted to obtain a fitting relation between the historical injection quantity and the historical duty ratio, the theoretical injection quantity corresponding to the actual duty ratio is determined according to the fitting relation, the absolute value of the difference value between the actual injection quantity and the theoretical injection quantity is calculated, and the abnormal injection quantity of liquid is determined and processed under the condition that the absolute value of the difference value is smaller than the minimum allowable error or larger than the maximum allowable error. Therefore, whether the injection quantity is abnormal or not can be determined in real time according to the fitting relation obtained by fitting, and the timeliness is high. Compared with the device for determining whether the abnormality occurs by comparing the consumption of the liquid tank solution in the prior art, the device can determine whether the injection quantity is abnormal in real time, and achieves the effects of timely finding the abnormality and processing the abnormality.
In a specific implementation process, the computing unit comprises a first determining module and an adding module, wherein the first determining module is used for obtaining a plurality of duty ratios of injection quantity corresponding to each injection quantity, and determining the injection quantity as a target injection quantity under the condition that the injection quantity is larger than a minimum injection quantity; the adding module is used for adding the target injection quantity to obtain the actual injection quantity, and adding the duty ratio corresponding to the target injection quantity to obtain the actual duty ratio. The device adds the injection quantity which meets the injection quantity condition, so that the actual injection quantity can be accurately determined, and larger injection quantity errors are avoided.
Specifically, after a plurality of injection amounts are obtained, whether the injection amount is larger than a pre-calibrated minimum injection amount is judged, if the injection amount is smaller than or equal to the minimum injection amount, a statistical range is not generally calculated, so that data smaller than or equal to the minimum injection amount is removed, only data larger than the minimum injection amount are overlapped to obtain an actual injection amount, and the corresponding duty ratio is overlapped to obtain an actual duty ratio.
In order to accurately obtain the fitting relation, in some optional embodiments, the first determining unit includes a fitting module and a second determining module, where the fitting module is configured to perform linear regression fit on the historical injection amount and the historical duty cycle to obtain a first regression coefficient and a second regression coefficient; the second determining module is configured to use the first regression coefficient as a first term coefficient of a linear equation and the second regression coefficient as a constant term coefficient of the linear equation to obtain the fitting relationship. The device obtains the fitting relation by a linear regression fitting mode, so that the one-to-one correspondence relation between the injection quantity and the duty ratio can be accurately described.
In a specific implementation process, fitting can be performed through a device for unitary linear regression fitting, so that a first regression coefficient is a first term coefficient, a second regression coefficient is a constant term coefficient, the first regression coefficient is expressed as y=ax+b, a is the first regression coefficient, B is the second regression coefficient, X is a historical injection amount, Y is a historical duty cycle, in a specific embodiment, a is 3.3613, B is 15.47, and the fitting relationship is y=3.3613x+15.47. In the practical application process, other feasible fitting relation formulas can be adopted.
In some optional embodiments, the first determining unit includes a solving module, configured to solve the linear equation with the actual duty ratio as a dependent variable, to obtain the theoretical injection quantity corresponding to the actual duty ratio. The device brings the actual duty ratio into the fitting relation, so that the theoretical injection quantity can be accurately obtained.
Specifically, the theoretical injection amount X can be obtained by substituting the actual duty ratio as a dependent variable, i.e., Y, with y=3.3613x+15.47.
In order to satisfy the injection accumulation amount condition, the first determining unit further includes an obtaining module configured to obtain a plurality of the historical injection amounts and the historical duty ratio corresponding to each of the historical injection amounts, in a case where the actual injection amount is larger than a minimum injection accumulation amount, where the minimum injection accumulation amount is a minimum injection amount corresponding to failure detection. Under the condition that the accumulation of the injection quantity meets the injection accumulation quantity condition, namely, is larger than the minimum injection quantity, the device acquires the historical injection quantity and the historical duty ratio, and further performs fitting judgment on whether the injection quantity is abnormal, so that fault detection can be performed after the injection quantity is accumulated to the minimum injection quantity corresponding to the fault detection, and inaccurate detection results are avoided.
In the specific implementation process, the injection quantities are accumulated until reaching the minimum injection accumulation quantity specified by fault detection, the minimum injection accumulation quantity can be obtained through calibration in advance, then the historical injection quantity and the historical duty ratio are obtained, fitting is carried out, and whether the injection quantity is abnormal or not is judged.
In some optional embodiments, the processing unit includes a calculating module and a processing module, where the calculating module is configured to add 1 to a number of abnormalities, where the number of abnormalities represents a total number of abnormalities in the ejection amount of the liquid; the processing module is used for outputting a fault signal under the condition that the abnormal times are greater than or equal to a preset threshold value, and processing the abnormal injection quantity according to the fault signal, wherein the fault signal is a signal representing the fault of a motor for injecting the liquid. The device accumulates the abnormal times under the abnormal condition, and outputs fault signals when the abnormal times are accumulated to a certain degree, namely a preset threshold value, so that corresponding processing can be carried out according to the fault signals.
Specifically, when the error exceeds the range, the number of abnormality times is increased by 1, and when the specified number of fault detection times, namely a preset threshold value, is reached, a fault signal is reported to indicate the urea consumption deviation abnormal fault. In the actual application process, the processing measures can be stored in advance, and the fault processing measures are automatically executed under the triggering of the fault signals. The fault signal can also be reported, and the staff can manually process according to the fault signal.
In order to make the fitting relation more accurate, the device further comprises a second determining unit and a third determining unit, wherein the second determining unit is used for determining that the injection quantity of the liquid is normal when the absolute value of the difference value is larger than or equal to the minimum allowable error or smaller than or equal to the maximum allowable error; and a third determining unit configured to perform fitting using the actual injection amount, which normally corresponds to the injection amount, as the historical injection amount and the actual duty ratio as the historical duty ratio, so as to correct the fitting relation. The device further uses the injection quantity data and the duty ratio data as the historical injection quantity and the historical duty ratio, so that the fitting relation can be corrected.
In the specific implementation process, the actual injection quantity and the actual duty ratio under the normal injection quantity are in the error allowable range, so that the actual injection quantity and the actual duty ratio can be used as the historical injection quantity and the historical duty ratio to correct the fitting relation.
The processing device for abnormal liquid ejection amount includes a processor and a memory, the calculation unit, the first determination unit, the processing unit, and the like are stored as program units in the memory, and the processor executes the program units stored in the memory to realize the corresponding functions. The modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the timeliness of the detection method of the abnormal liquid injection quantity is improved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, which comprises a stored program, wherein the program is used for controlling equipment where the computer readable storage medium is positioned to execute a processing method of the abnormal liquid injection quantity.
Specifically, the method for processing the abnormality of the liquid ejection amount includes:
step S201, calculating an actual injection quantity and an actual duty ratio, wherein the actual duty ratio is a ratio of time of injecting liquid by the motor to time of not injecting the liquid;
specifically, the liquid may be urea during running of the actual vehicle, and the method of judging whether the injection amount of urea deviates by the change of the liquid level of the urea tank has time lag, i.e. the method can be distinguished after a period of time of abnormality occurrence. Because the linear relation between the urea consumption and the duty ratio of the urea pump motor exists, the relation between the urea consumption and the duty ratio is easily fitted through test data, so that in order to reduce the lag time, the actual duty ratio is brought into the fitting relation, the theoretical injection quantity is obtained through solving, and then the theoretical injection quantity is compared with the actual injection quantity, so that whether the urea injection quantity is abnormal or not is judged rapidly and in real time.
Step S202, a plurality of historical injection amounts and the historical duty ratio corresponding to each historical injection amount are obtained, the historical injection amounts and the historical duty ratios are fitted to obtain a fitting relation between the historical injection amounts and the historical duty ratios, and the theoretical injection amounts corresponding to the actual duty ratios are determined according to the fitting relation;
specifically, in order to obtain the fitting relation, a plurality of historical injection amounts and the historical duty ratios corresponding to the historical injection amounts are fitted to obtain coefficients, and finally the fitting relation is obtained. After the fitting relation is determined, the theoretical injection amount corresponding to the actual duty cycle, that is, the amount of urea that should be injected theoretically when the duty cycle is the actual duty cycle, can be calculated.
Step S203 of calculating an absolute value of a difference between the actual injection amount and the theoretical injection amount, and if the absolute value of the difference is smaller than a minimum allowable error or larger than a maximum allowable error, determining an injection amount abnormality of the liquid, and processing the injection amount abnormality.
Specifically, after the theoretical injection quantity is calculated, the theoretical injection quantity is compared with the actual injection quantity of the motor pump, the absolute value of the difference value of the theoretical injection quantity and the actual injection quantity is calculated, if the absolute value is within the allowable error range, namely, between the minimum allowable error and the maximum allowable error, the injection quantity is considered to be normal, and otherwise, the injection quantity is determined to be abnormal. After the abnormality is determined, a fault signal corresponding to the abnormality of the injection quantity is output to start a processing program corresponding to the fault or to manually process the fault.
Optionally, calculating the actual injection amount and the actual duty cycle includes: acquiring a plurality of duty ratios of injection amounts corresponding to the injection amounts, and determining the injection amount as a target injection amount when the injection amount is larger than a minimum injection amount; and adding the target injection quantity to obtain the actual injection quantity, and adding the duty ratio corresponding to the target injection quantity to obtain the actual duty ratio.
Optionally, fitting the historical injection amount and the historical duty cycle to obtain a fitting relationship between the historical injection amount and the historical duty cycle, including: performing linear regression fitting on the historical injection quantity and the historical duty ratio to obtain a first regression coefficient and a second regression coefficient; and taking the first regression coefficient as a first term coefficient of a linear equation, and taking the second regression coefficient as a constant term coefficient of the linear equation to obtain the fitting relation.
Optionally, determining the theoretical injection quantity corresponding to the actual duty ratio according to the fitting relation includes: and solving the linear equation by taking the actual duty ratio as a dependent variable to obtain the theoretical injection quantity corresponding to the actual duty ratio.
Optionally, acquiring a plurality of historical injection amounts and a historical duty ratio corresponding to each of the historical injection amounts includes: and acquiring a plurality of historical injection amounts and the historical duty ratios corresponding to the historical injection amounts when the actual injection amount is larger than a minimum injection accumulation amount, wherein the minimum injection accumulation amount is a minimum injection amount corresponding to fault detection.
Optionally, the processing of the injection quantity abnormality includes: adding 1 to the number of abnormalities, wherein the number of abnormalities represents the total number of abnormalities in the ejection amount of the liquid; and outputting a fault signal under the condition that the abnormal times are greater than or equal to a preset threshold value, and processing the abnormal injection quantity according to the fault signal, wherein the fault signal is a signal representing the fault of a motor for injecting the liquid.
Optionally, the method further comprises: determining that the ejection amount of the liquid is normal when the absolute value of the difference is greater than or equal to the minimum allowable error or less than or equal to the maximum allowable error; and fitting the actual injection quantity corresponding to the normal injection quantity as the historical injection quantity and the actual duty ratio as the historical duty ratio to correct the fitting relation.
The embodiment of the invention provides an electronic device, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S201, calculating an actual injection quantity and an actual duty ratio, wherein the actual duty ratio is a ratio of time of injecting liquid by the motor to time of not injecting the liquid;
step S202, a plurality of historical injection amounts and the historical duty ratio corresponding to each historical injection amount are obtained, the historical injection amounts and the historical duty ratios are fitted to obtain a fitting relation between the historical injection amounts and the historical duty ratios, and the theoretical injection amounts corresponding to the actual duty ratios are determined according to the fitting relation;
step S203 of calculating an absolute value of a difference between the actual injection amount and the theoretical injection amount, and if the absolute value of the difference is smaller than a minimum allowable error or larger than a maximum allowable error, determining an injection amount abnormality of the liquid, and processing the injection amount abnormality.
The device herein may be a server, PC, PAD, cell phone, etc.
Optionally, calculating the actual injection amount and the actual duty cycle includes: acquiring a plurality of duty ratios of injection amounts corresponding to the injection amounts, and determining the injection amount as a target injection amount when the injection amount is larger than a minimum injection amount; and adding the target injection quantity to obtain the actual injection quantity, and adding the duty ratio corresponding to the target injection quantity to obtain the actual duty ratio.
Optionally, fitting the historical injection amount and the historical duty cycle to obtain a fitting relationship between the historical injection amount and the historical duty cycle, including: performing linear regression fitting on the historical injection quantity and the historical duty ratio to obtain a first regression coefficient and a second regression coefficient; and taking the first regression coefficient as a first term coefficient of a linear equation, and taking the second regression coefficient as a constant term coefficient of the linear equation to obtain the fitting relation.
Optionally, determining the theoretical injection quantity corresponding to the actual duty ratio according to the fitting relation includes: and solving the linear equation by taking the actual duty ratio as a dependent variable to obtain the theoretical injection quantity corresponding to the actual duty ratio.
Optionally, acquiring a plurality of historical injection amounts and a historical duty ratio corresponding to each of the historical injection amounts includes: and acquiring a plurality of historical injection amounts and the historical duty ratios corresponding to the historical injection amounts when the actual injection amount is larger than a minimum injection accumulation amount, wherein the minimum injection accumulation amount is a minimum injection amount corresponding to fault detection.
Optionally, the processing of the injection quantity abnormality includes: adding 1 to the number of abnormalities, wherein the number of abnormalities represents the total number of abnormalities in the ejection amount of the liquid; and outputting a fault signal under the condition that the abnormal times are greater than or equal to a preset threshold value, and processing the abnormal injection quantity according to the fault signal, wherein the fault signal is a signal representing the fault of a motor for injecting the liquid.
Optionally, the method further comprises: determining that the ejection amount of the liquid is normal when the absolute value of the difference is greater than or equal to the minimum allowable error or less than or equal to the maximum allowable error; and fitting the actual injection quantity corresponding to the normal injection quantity as the historical injection quantity and the actual duty ratio as the historical duty ratio to correct the fitting relation.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device:
step S201, calculating an actual injection quantity and an actual duty ratio, wherein the actual duty ratio is a ratio of time of injecting liquid by the motor to time of not injecting the liquid;
step S202, a plurality of historical injection amounts and the historical duty ratio corresponding to each historical injection amount are obtained, the historical injection amounts and the historical duty ratios are fitted to obtain a fitting relation between the historical injection amounts and the historical duty ratios, and the theoretical injection amounts corresponding to the actual duty ratios are determined according to the fitting relation;
step S203 of calculating an absolute value of a difference between the actual injection amount and the theoretical injection amount, and if the absolute value of the difference is smaller than a minimum allowable error or larger than a maximum allowable error, determining an injection amount abnormality of the liquid, and processing the injection amount abnormality.
Optionally, calculating the actual injection amount and the actual duty cycle includes: acquiring a plurality of duty ratios of injection amounts corresponding to the injection amounts, and determining the injection amount as a target injection amount when the injection amount is larger than a minimum injection amount; and adding the target injection quantity to obtain the actual injection quantity, and adding the duty ratio corresponding to the target injection quantity to obtain the actual duty ratio.
Optionally, fitting the historical injection amount and the historical duty cycle to obtain a fitting relationship between the historical injection amount and the historical duty cycle, including: performing linear regression fitting on the historical injection quantity and the historical duty ratio to obtain a first regression coefficient and a second regression coefficient; and taking the first regression coefficient as a first term coefficient of a linear equation, and taking the second regression coefficient as a constant term coefficient of the linear equation to obtain the fitting relation.
Optionally, determining the theoretical injection quantity corresponding to the actual duty ratio according to the fitting relation includes: and solving the linear equation by taking the actual duty ratio as a dependent variable to obtain the theoretical injection quantity corresponding to the actual duty ratio.
Optionally, acquiring a plurality of historical injection amounts and a historical duty ratio corresponding to each of the historical injection amounts includes: and acquiring a plurality of historical injection amounts and the historical duty ratios corresponding to the historical injection amounts when the actual injection amount is larger than a minimum injection accumulation amount, wherein the minimum injection accumulation amount is a minimum injection amount corresponding to fault detection.
Optionally, the processing of the injection quantity abnormality includes: adding 1 to the number of abnormalities, wherein the number of abnormalities represents the total number of abnormalities in the ejection amount of the liquid; and outputting a fault signal under the condition that the abnormal times are greater than or equal to a preset threshold value, and processing the abnormal injection quantity according to the fault signal, wherein the fault signal is a signal representing the fault of a motor for injecting the liquid.
Optionally, the method further comprises: determining that the ejection amount of the liquid is normal when the absolute value of the difference is greater than or equal to the minimum allowable error or less than or equal to the maximum allowable error; and fitting the actual injection quantity corresponding to the normal injection quantity as the historical injection quantity and the actual duty ratio as the historical duty ratio to correct the fitting relation.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the method for processing the liquid injection quantity abnormality, the actual injection quantity and the actual duty ratio are calculated, the historical injection quantity and the historical duty ratio are fitted to obtain a fitting relation between the historical injection quantity and the historical duty ratio, the theoretical injection quantity corresponding to the actual duty ratio is determined according to the fitting relation, the absolute value of the difference value between the actual injection quantity and the theoretical injection quantity is calculated, and the liquid injection quantity abnormality is determined and processed under the condition that the absolute value of the difference value is smaller than the minimum allowable error or larger than the maximum allowable error. Therefore, whether the injection quantity is abnormal or not can be determined in real time according to the fitting relation obtained by fitting, and the timeliness is high. Compared with the method for determining whether the abnormality occurs by comparing the consumption of the liquid tank solution in the prior art, the method can determine whether the injection quantity is abnormal in real time, and achieves the effects of timely finding the abnormality and processing the abnormality.
2) In the device for processing the abnormal liquid injection quantity, the actual injection quantity and the actual duty ratio are calculated, the historical injection quantity and the historical duty ratio are fitted to obtain a fitting relation between the historical injection quantity and the historical duty ratio, the theoretical injection quantity corresponding to the actual duty ratio is determined according to the fitting relation, the absolute value of the difference value between the actual injection quantity and the theoretical injection quantity is calculated, and the abnormal liquid injection quantity is determined and processed under the condition that the absolute value of the difference value is smaller than the minimum allowable error or larger than the maximum allowable error. Therefore, whether the injection quantity is abnormal or not can be determined in real time according to the fitting relation obtained by fitting, and the timeliness is high. Compared with the device for determining whether the abnormality occurs by comparing the consumption of the liquid tank solution in the prior art, the device can determine whether the injection quantity is abnormal in real time, and achieves the effects of timely finding the abnormality and processing the abnormality.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for handling an abnormality in a liquid ejection amount, comprising:
calculating an actual injection amount and an actual duty ratio, wherein the actual duty ratio is a ratio of time when the motor injects liquid to time when the motor does not inject the liquid;
acquiring a plurality of historical injection amounts and a historical duty cycle corresponding to each historical injection amount, fitting the historical injection amounts and the historical duty cycles to obtain a fitting relation between the historical injection amounts and the historical duty cycles, and determining a theoretical injection amount corresponding to the actual duty cycle according to the fitting relation;
and calculating the absolute value of the difference between the actual injection quantity and the theoretical injection quantity, determining the abnormal injection quantity of the liquid under the condition that the absolute value of the difference is smaller than the minimum allowable error or larger than the maximum allowable error, and processing the abnormal injection quantity.
2. The processing method according to claim 1, characterized in that calculating an actual injection amount and an actual duty ratio includes:
acquiring a plurality of duty ratios of injection amounts corresponding to each injection amount, and determining the injection amount as a target injection amount under the condition that the injection amount is larger than a minimum injection amount;
And adding the target injection quantity to obtain the actual injection quantity, and adding the duty ratio corresponding to the target injection quantity to obtain the actual duty ratio.
3. The processing method according to claim 1, wherein fitting the historical injection amount and the historical duty ratio to obtain a fitting relationship of the historical injection amount and the historical duty ratio includes:
performing linear regression fitting on the historical injection quantity and the historical duty ratio to obtain a first regression coefficient and a second regression coefficient;
and taking the first regression coefficient as a first term coefficient of a linear equation, and taking the second regression coefficient as a constant term coefficient of the linear equation to obtain the fitting relation.
4. A processing method according to claim 3, wherein determining the theoretical injection amount corresponding to the actual duty cycle according to the fitting relation includes:
and solving the linear equation by taking the actual duty ratio as a dependent variable to obtain the theoretical injection quantity corresponding to the actual duty ratio.
5. The processing method according to claim 1, wherein acquiring a plurality of historical injection amounts and a historical duty ratio corresponding to each of the historical injection amounts includes:
And under the condition that the actual injection quantity is larger than a minimum injection accumulation quantity, acquiring a plurality of historical injection quantities and the historical duty ratio corresponding to each historical injection quantity, wherein the minimum injection accumulation quantity is the minimum injection quantity corresponding to fault detection.
6. The processing method according to claim 1, characterized in that processing the ejection amount abnormality includes:
adding 1 to the number of abnormalities, wherein the number of abnormalities represents the total number of abnormalities in the ejection amount of the liquid;
and outputting a fault signal under the condition that the abnormal times are greater than or equal to a preset threshold value, and processing the abnormal injection quantity according to the fault signal, wherein the fault signal is a signal representing the fault of a motor for injecting the liquid.
7. A method of processing according to claim 1, wherein the method further comprises:
determining that the ejection amount of the liquid is normal in the case where the absolute value of the difference is greater than or equal to the minimum allowable error or less than or equal to the maximum allowable error;
and fitting the actual injection quantity which normally corresponds to the injection quantity as the historical injection quantity and the actual duty ratio as the historical duty ratio to correct the fitting relation.
8. A processing apparatus for abnormal liquid ejection amount, comprising:
a calculation unit for calculating an actual injection amount and an actual duty ratio, wherein the actual duty ratio is a ratio of a time when the motor injects liquid to a time when the motor does not inject the liquid;
a first determining unit, configured to obtain a plurality of historical injection amounts and a historical duty cycle corresponding to each historical injection amount, fit the historical injection amounts and the historical duty cycles to obtain a fitting relationship between the historical injection amounts and the historical duty cycles, and determine a theoretical injection amount corresponding to the actual duty cycle according to the fitting relationship;
and the processing unit is used for calculating the absolute value of the difference value between the actual injection quantity and the theoretical injection quantity, determining the abnormal injection quantity of the liquid and processing the abnormal injection quantity under the condition that the absolute value of the difference value is smaller than the minimum allowable error or larger than the maximum allowable error.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the processing method of any one of claims 1 to 7.
10. An electronic device, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the processing method of any of claims 1-7.
CN202410023589.0A 2024-01-04 2024-01-04 Processing method and processing device for abnormal liquid ejection amount and electronic equipment Pending CN117759415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410023589.0A CN117759415A (en) 2024-01-04 2024-01-04 Processing method and processing device for abnormal liquid ejection amount and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410023589.0A CN117759415A (en) 2024-01-04 2024-01-04 Processing method and processing device for abnormal liquid ejection amount and electronic equipment

Publications (1)

Publication Number Publication Date
CN117759415A true CN117759415A (en) 2024-03-26

Family

ID=90310651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410023589.0A Pending CN117759415A (en) 2024-01-04 2024-01-04 Processing method and processing device for abnormal liquid ejection amount and electronic equipment

Country Status (1)

Country Link
CN (1) CN117759415A (en)

Similar Documents

Publication Publication Date Title
CN111277332B (en) Performance state detection method and device of optical module in engineering application and electronic equipment
CN113318911A (en) Dispensing method, dispensing control device and computer storage medium
CN117759415A (en) Processing method and processing device for abnormal liquid ejection amount and electronic equipment
CN112422369A (en) Method and device for determining offline time, storage medium and electronic device
CN117593854A (en) Intelligent water supply system
US20220089059A1 (en) Method and device determining the state of charge of a battery in an electrically drivable motor vehicle
CN112523846B (en) Method for diagnosing urea consumption deviation based on rotating speed of pump motor
CN113253118B (en) Method and device for acquiring battery cell capacity and computer readable storage medium
CN113051700B (en) Equipment reliability monitoring method and device
CN111611186B (en) Transmission control method and device in embedded chip
CN117027993A (en) Monitoring method and device for engine oil pressure and engine monitoring system
CN112306842A (en) Energy storage system testing method, device and system and terminal equipment
CN116624301A (en) Water discharge control method, device and system for fuel filter of engine
CN114858495A (en) Method, device and equipment for detecting performance of sewage pumping system and storage medium
CN118009595A (en) Control method and control device for electronic expansion valve of compressor and compressor
CN116220924B (en) Control method and control device for fuel gas injection valve, storage medium and electronic equipment
CN117471328B (en) Method, system and terminal equipment for determining capacity of lead-acid battery
CN114673581B (en) Method and device for determining whether urea pump is in maintenance waiting state
CN116071926A (en) Vehicle speed prediction method, prediction device, computer readable storage medium, and vehicle
CN112260900B (en) Method, device and equipment for measuring energy consumption of communication equipment and storage medium
CN117803591A (en) Fan control method and device, readable storage medium and electronic equipment
CN117345384A (en) Method and device for reducing urea crystallization of engine and electronic equipment
US20230133482A1 (en) Resistance estimation of high voltage battery packs during vehicle driving operation
CN116510610A (en) Mixed liquid control method, spraying device and deicing vehicle
CN116939790A (en) Method and device for compensating transmitting power and electronic device

Legal Events

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