A liquid level detection method and system

By analyzing the light return time and light intensity fluctuation amplitude in the pull-out detergent dispenser assembly of a washing machine, the power of the X-ray sensor was adjusted, solving the liquid level detection problem caused by solidification of the light-transmitting wall and interference from bubbles, thus achieving stable liquid level detection.

CN123108874APending Publication Date: 2026-11-17FOSHAN CHENHAO INTELLIGENT ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611431371.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The liquid level detection of existing washing machine pull-out detergent dispenser components cannot be performed normally due to interference from solidified stains on the transparent wall and detergent bubbles.

Method used

By performing multiple light detections continuously within a preset time window, the average value and fluctuation range of light return time and light intensity are calculated. The working power of the X-ray sensor is adjusted using bubble interference, impurity interference, and a light-transmitting wall contamination counter to remove interference and ensure the normal operation of liquid level detection.

Benefits of technology

It effectively distinguishes and handles bubble interference, impurity interference, and light-transmitting wall contamination, ensuring the accuracy and reliability of liquid level detection and reducing misjudgments and false alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123108874A_ABST
    Figure CN123108874A_ABST
Patent Text Reader

Abstract

The present application relates to liquid level detection technical field, especially a kind of liquid level detection method and system, comprising: in the preset time window, N times collection light return length and the light intensity of returned detection light are summarized to form sample data set;The mean value Hm of all light return length and the mean value Gm of all light intensity are calculated, light return length and light intensity are compared with mean value Hm and mean value Gm respectively to obtain BH and BG;Whenever BH of same batch>BHe and BG>BGe, bubble interference counter A adds one, BH≤BHe, impurity interference counter B adds one;The count value of A and B is judged to adjust the working power of ray sensor in next time window;The light intensity deviation amplitude PG is calculated, and the working power of ray sensor in next time window is adjusted according to PG;The problem that liquid level detection cannot normally proceed due to the liquid level detection environment restriction of pull-type detergent delivery box assembly is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of liquid level detection technology, and in particular to a liquid level detection method and system. Background Technology

[0002] Currently, the pull-out detergent dispenser assembly of washing machines, such as Figure 1 As shown, to prevent the X-ray sensor 3 (installed above the upper opening of the drawer tray 2) from being pulled out during the drawer tray 2 process, the X-ray sensor 3 (e.g., a laser sensor with a probe integrating both the transmitter and receiver) is positioned between the rear wall of the drawer tray 2 and the rear wall of the housing cavity 1. The light emitted by the probe of the X-ray sensor 3 passes through the light-transmitting wall 21 of the drawer tray 2 and is reflected upwards by the oblique mirror of the baffle 22 in the liquid tank of the drawer tray 2. The light then reflects back to the liquid surface of the detergent contained in the drawer tray 2 and is reflected back to the probe of the X-ray sensor 3. The X-ray sensor 3 is electrically connected to the main control board of the washing machine. The main control board can determine the liquid level by the time it takes for the light to return from emission to reception (the longer the light returns, the higher the liquid level, for example, H1 > H2).

[0003] However, if the drawer tray 2 is filled with detergent for a long time, it will cause localized stains to form on the surface of the light-transmitting wall 21, affecting the light transmittance of the light-transmitting wall 21 and hindering the transmission of light. Ultimately, this will cause the radiation sensor 3 to fail to receive the returned light, resulting in the liquid level detection not being able to proceed normally.

[0004] In addition, when the detergent is first poured into the drawer slot 2, there are often air bubbles inside the detergent. In addition, the detergent is relatively thick, and the air bubbles rise slowly. When light passes through the air bubbles, some of the light will be scattered, which will also cause the X-ray sensor 3 to not receive the returned light, thus making it impossible to detect the liquid level normally. Summary of the Invention

[0005] To address the aforementioned shortcomings, the present invention aims to provide a liquid level detection method and system that solves the problem that liquid level detection cannot be performed normally due to environmental limitations in the liquid level detection process of pull-out detergent dispenser components.

[0006] To achieve this objective, the present invention adopts the following technical solution: A liquid level detection method includes the following steps: S1: The main control board controls the X-ray sensor to emit a detection beam towards the corresponding liquid tank, waits for the X-ray sensor to receive the returned detection beam, calculates the return time of the beam by counting down, and records the light intensity of the returned detection beam. S2: Within a preset time window, execute step S1 N times consecutively, and summarize the light return time and light intensity obtained from each execution to form a sampling dataset; S3: Calculate the mean Hm of the return time of all rays in the sampled dataset and the mean Gm of all light intensities. Compare the return time of each ray in the sampled dataset with the mean Hm to obtain the duration fluctuation range BH. Compare the light intensity in the sampled dataset with the mean Gm to obtain the light intensity fluctuation range BG. Whenever the duration fluctuation amplitude BH of the same batch exceeds the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe, the bubble interference counter A is incremented by one; when the count value of the bubble interference counter A is greater than or equal to 1 and less than N, step S4 is executed. Whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe while the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe, the impurity interference counter B is incremented by one; when the count value of the impurity interference counter B is greater than N / 2, step S5 is executed. S4: Increase the working power of the X-ray sensor according to the maximum light intensity fluctuation amplitude BG, and use it as the working power of the X-ray sensor in the next preset time window. S5: Increase the working power of the X-ray sensor according to the maximum duration fluctuation amplitude BH, and use it as the working power of the X-ray sensor in the next preset time window. S6: Calculate the light intensity deviation PG between the minimum light intensity in the sampled dataset and the factory light intensity corresponding to the current working power of the X-ray sensor; when the light intensity deviation PG is negative, increase the working power of the X-ray sensor according to the light intensity deviation PG, and use it as the working power of the X-ray sensor in the next preset time window.

[0007] Furthermore, step S1 includes: The main control board controls the radiation sensor to emit a probe beam toward the corresponding liquid tank, and starts a countdown timer with a preset total countdown length; When the ray sensor receives the returned probe light, the main control board stops the countdown timer, records the countdown timer's duration as the light return time, and simultaneously records the light intensity of the returned probe light; When the countdown timer ends and the ray sensor does not receive the returned probe light, the total countdown timer duration is recorded as the light return time, and the light intensity of the returned probe light is recorded as zero.

[0008] Furthermore, in step S1, the intensity of the returned probe light is the voltage value of the electrical signal after the ray sensor converts the light signal into an electrical signal.

[0009] Furthermore, in step S3, the duration fluctuation amplitude BH is: ; Where Hn is the light return time, n=1, 2, 3...N.

[0010] Furthermore, in step S3, the light intensity fluctuation amplitude BG is: ; Where Gn is the intensity of the returned probe light, and n = 1, 2, 3...N.

[0011] Furthermore, in step S6, the light intensity deviation amplitude PG is: ; Where Gmin is the minimum light intensity in the sampled dataset, and Ge is the factory light intensity corresponding to the operating power of the X-ray sensor at this time.

[0012] Furthermore, step S3 also includes: whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG does not exceed the reference light intensity fluctuation amplitude BGe, the normal data counter C is incremented by one; when the count value of the normal data counter C is greater than N / 2, the main control board queries and returns the duration-liquid level comparison table with the average value Hm and outputs the corresponding liquid level value. The bubble interference counter A has the highest judgment priority, followed by the impurity interference counter B, and the normal data counter C has the lowest judgment priority.

[0013] Furthermore, step S6 also includes: when the light intensity deviation PG is negative and the light intensity deviation PG is greater than 80%, the main control board stops liquid level detection and issues a light-transmitting wall contamination alarm.

[0014] A liquid level detection system, employing the above-described liquid level detection method, includes: Sampling unit: Equipped with a countdown timer to calculate the light return time, and also equipped with a storage device to store the sampling dataset; This unit is used to execute step S1 N times in a preset time window; Fluctuation calculation unit: used to calculate the mean Hm of the return time of all light rays in the sampled dataset and the mean Gm of all light intensities. The return time of each light ray in the sampled dataset is compared with the mean Hm to obtain the duration fluctuation amplitude BH, and the light intensity in the sampled dataset is compared with the mean Gm to obtain the light intensity fluctuation amplitude BG. Bubble interference statistics unit: Equipped with bubble interference counter A; This unit is used to increment bubble interference counter A by one whenever the duration fluctuation amplitude BH of the same batch exceeds the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe. Impurity Interference Statistics Unit: Equipped with an impurity interference counter B; This unit is used to increment the impurity interference counter B by one whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe while the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe. Normal data statistics unit: equipped with normal data counter C; this unit is used to increment the normal data counter C by one whenever the duration fluctuation range BH of the same batch does not exceed the reference duration fluctuation range BHe and the light intensity fluctuation range BG does not exceed the reference light intensity fluctuation range BGe. Summary Judgment Unit: Used to sequentially judge the bubble interference counter A, impurity interference counter B, and normal data counter C; When the count value of bubble interference counter A is greater than or equal to 1 and less than N, the working power of the ray sensor in the next preset time window is adjusted according to the maximum light intensity fluctuation amplitude BG. When the count value of the impurity interference counter B is greater than N / 2, the working power of the X-ray sensor in the next preset time window is adjusted according to the maximum duration fluctuation amplitude BH. When the count value of the normal data counter C is greater than N / 2, the time-liquid level comparison table is retrieved using the average value Hm, and the corresponding liquid level value is output. Light-transmitting wall contamination interference processing unit: used to calculate the light intensity deviation PG between the minimum light intensity in the sampling dataset and the factory light intensity corresponding to the working power of the X-ray sensor at this time; when the light intensity deviation PG is negative, the working power of the X-ray sensor in the next preset time window is adjusted according to the light intensity deviation PG.

[0015] The technical solution provided by the present invention can include the following beneficial effects: within each cycle (i.e., a preset time window), based on the light return time and light intensity data of N detections, it can distinguish whether the problem is caused by bubble interference, impurity interference or light-transmitting wall contamination. By increasing the working power of the X-ray sensor through adaptability, the interference can be removed, so that the liquid level detection can be carried out normally. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the pull-out detergent dispenser assembly of a washing machine.

[0017] Figure 2 This is a flowchart of a liquid level detection method according to one embodiment of the present invention.

[0018] Figure 3 This is a schematic diagram of a liquid level detection system according to one embodiment of the present invention.

[0019] Among them: box body accommodating cavity 1, drawer slot box 2, radiation sensor 3, light-transmitting wall 21, and stop block 22. Detailed Implementation

[0020] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0021] In the description of embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of embodiments of the present invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0022] In the description of the embodiments of the present invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of the present invention according to the specific circumstances.

[0023] The following is combined Figures 2 to 3 This invention describes a liquid level detection method and system according to an embodiment of the present invention.

[0024] Example 1 A liquid level detection method includes the following steps: S1: The main control board controls the X-ray sensor to emit a detection beam towards the corresponding liquid tank, waits for the X-ray sensor to receive the returned detection beam, calculates the return time of the beam by counting down, and records the light intensity of the returned detection beam. S2: Within a preset time window (i.e., within one cycle), execute step S1 N times consecutively, and summarize the light return time and light intensity obtained from each execution to form a sampling dataset; S3: Calculate the mean Hm of the return time of all rays in the sampled dataset and the mean Gm of all light intensities. Compare the return time of each ray in the sampled dataset with the mean Hm to obtain the duration fluctuation range BH. Compare the light intensity in the sampled dataset with the mean Gm to obtain the light intensity fluctuation range BG. Whenever the duration fluctuation range BH of the same batch exceeds the baseline duration fluctuation range BHe and the light intensity fluctuation range BG exceeds the baseline light intensity fluctuation range BGe, it indicates that there are bubbles in the detergent interfering with the reflection of the detection light. Within the preset time window, the detection light is scattered by the bubbles, causing the X-ray sensor to not receive the returned detection light. At this time, the light return time is calibrated to the longest (i.e., the detection light cannot be received, the countdown in step S1 is completed, and the time is calibrated to the maximum time), and the light intensity is calibrated to zero (no light intensity is received). Then, the detection light passes through the bubble gap and successfully returns to the X-ray sensor. As a result, the data from n times within the preset time window will have huge differences, so the bubble interference counter A needs to be incremented to count abnormal data. When the count value of the bubble interference counter A is greater than or equal to 1 and less than N, it means that there is a situation where the light is blocked by bubbles, and there is also a situation where the light passes through the bubble gap without being affected. That is, there is a bubble interference situation. Step S4 needs to be executed to significantly increase the working power of the X-ray sensor, that is, to significantly increase the light intensity, so that the detection light can be forced to pass through the bubbles (at this time, the bubbles cannot completely weaken the detection light) to complete the return of the detection light and solve the bubble interference problem. Whenever the duration fluctuation range BH of the same batch does not exceed the reference duration fluctuation range BHe, but the light intensity fluctuation range BG exceeds the reference light intensity fluctuation range BGe, it indicates that there are impurities in the detergent or that it is too thick. This only reduces the penetration of the detection light, but does not completely block the detection light. Therefore, the impurity interference counter B needs to be incremented by one for statistical purposes. When the count value of the impurity interference counter B is greater than N / 2 (i.e., more than half of the data is abnormal), step S5 is executed to slightly increase the working power of the X-ray sensor to ensure that the light can pass through the impurities and reduce the interference of the impurities on the data. Furthermore, the situation where the duration fluctuation amplitude BH exceeds the reference duration fluctuation amplitude BHe while the light intensity fluctuation amplitude BG does not exceed the reference light intensity fluctuation amplitude BGe does not exist in the liquid level detection environment of the pull-out detergent dispenser assembly, because the return time changes drastically and the light intensity cannot remain unaffected; at the same time, the situation where both the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG do not exceed the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG is considered normal liquid level detection data and there is no need to adjust the working power of the X-ray sensor. S4: Based on the maximum light intensity fluctuation amplitude BG, increase the working power of the ray sensor and use it as the working power of the ray sensor in the next preset time window. For example, if BG=30%, the working power of the ray sensor was 20% before adjustment, then the working power of the ray sensor will be 50% after adjustment. The same applies to the duration fluctuation amplitude BH. S5: Increase the working power of the X-ray sensor according to the maximum duration fluctuation amplitude BH, and use it as the working power of the X-ray sensor in the next preset time window. S6: Calculate the light intensity deviation PG between the minimum light intensity in the sampled dataset and the factory light intensity corresponding to the current working power of the X-ray sensor (the main control board's processor stores a power-factory light intensity data table in advance); when the light intensity deviation PG is negative (there is usually no positive deviation), it proves that the light-transmitting wall has been contaminated by solidified spots, deviating from the factory light intensity measured when the light-transmitting wall was uncontaminated. At this time, increase the working power of the X-ray sensor according to the light intensity deviation PG (i.e., the degree of contamination of the solidified spots), and use it as the working power of the X-ray sensor in the next preset time window to reduce the impact of contamination on the light.

[0025] In a preferred embodiment of the liquid level detection method proposed in this invention, such as... Figure 2 As shown, within each cycle (i.e., the preset time window), based on the light return time and light intensity data of N detections, it is possible to distinguish between bubble interference, impurity interference, and light-transmitting wall contamination. By increasing the working power of the X-ray sensor through adaptability, the interference is removed, enabling the liquid level detection to proceed normally.

[0026] Furthermore, step S1 includes (preferred use of the countdown timer): The main control board controls the radiation sensor to emit a probe beam toward the corresponding liquid tank, and starts a countdown timer with a preset total countdown length; When the ray sensor receives the returned probe light, the main control board stops the countdown timer and records the countdown timer's countdown duration (calculated as the total countdown timer minus the remaining countdown timer duration) as the light return duration, and also records the light intensity of the returned probe light. When the countdown timer ends and the ray sensor does not receive the returned probe light, the total countdown timer duration is recorded as the light return time, and the light intensity of the returned probe light is recorded as zero.

[0027] Furthermore, in step S1, the intensity of the detected light is returned as the voltage value of the electrical signal after the ray sensor converts the light signal into an electrical signal.

[0028] In this embodiment, when the X-ray sensor receives the returned probe light, it usually needs to convert the optical signal into an electrical signal so that the main control board can read and know that a probe light has returned. Based on this, it was thought that the intensity of the optical signal will directly affect the voltage of the electrical signal, so the voltage value of the electrical signal can be used to represent the light intensity of the returned probe light.

[0029] Furthermore, in step S3, the duration fluctuation amplitude BH is: ; Where Hn is the light return time, n=1, 2, 3...N (i.e. H1, H2, H3...HN, representing the light return time in different batches of step S1 loop).

[0030] Furthermore, in step S3, the light intensity fluctuation amplitude BG is: ; Where Gn is the light intensity of the returning probe ray, n=1, 2, 3...N (i.e. G1, G2, G3...GN, representing the light intensity of the returning probe ray in different batches of step S1 loop).

[0031] Furthermore, in step S6, the light intensity deviation amplitude PG is: Subtracting Ge from Gmin yields a percentage amplitude value with a positive or negative sign, which helps the main control board's processor identify whether there is a negative deviation (when it is negative). Where Gmin is the minimum light intensity in the sampled dataset, and Ge is the factory light intensity corresponding to the operating power of the X-ray sensor at this time.

[0032] Furthermore, step S3 also includes: whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG does not exceed the reference light intensity fluctuation amplitude BGe, it is considered normal liquid level detection data. There is no need to adjust the working power of the X-ray sensor, and the liquid level result can be output normally. In order to reduce errors, the normal data counter C is incremented by one to record the number of normal data within the preset time window. When the count value of the normal data counter C is greater than N / 2, it proves that the normal data accounts for the majority within the preset time window, the detection result is valid, and the main control board queries the duration-liquid level comparison table with the mean Hm and outputs the corresponding liquid level value. The bubble interference counter A has the highest judgment priority, the impurity interference counter B has the next highest judgment priority, and the normal data counter C has the lowest judgment priority. In step S3, the three judgment branches are carried out simultaneously. Finally, the subsequent judgments are carried out in order of priority of the three counters to determine whether to execute step S4, step S5 or output the liquid level value to give the liquid level detection result.

[0033] Furthermore, step S6 also includes: when the light intensity deviation PG is negative and the light intensity deviation PG is greater than 80%, the main control board stops liquid level detection and issues a light-transmitting wall contamination alarm.

[0034] In this embodiment, the stains on the translucent wall are cumulative and cannot be resolved through data processing. Therefore, when the light intensity deviation PG is greater than 80% (indicating that the translucent wall is covered with stains over a large area or that a thick layer of stains has accumulated in a certain part of the translucent wall), a translucent wall contamination alarm can be issued to remind the user that the drawer tray must be pulled out and cleaned.

[0035] Example 2 This solution also proposes a preferred embodiment of a liquid level detection system, such as... Figure 3As shown, the processor of the main control board loads a liquid level detection method according to embodiment 1 of the system application, including: The sampling unit (responsible for executing steps S1 and S2) is equipped with a countdown timer to calculate the light return time and a memory to store the sampling dataset. This unit is used to execute step S1 N times in a preset time window. The execution units for steps S3 to S5 are as follows: Fluctuation calculation unit: used to calculate the mean Hm of the return time of all light rays in the sampled dataset and the mean Gm of all light intensities. The return time of each light ray in the sampled dataset is compared with the mean Hm to obtain the duration fluctuation amplitude BH, and the light intensity in the sampled dataset is compared with the mean Gm to obtain the light intensity fluctuation amplitude BG. Bubble interference statistics unit: Equipped with bubble interference counter A; This unit is used to increment bubble interference counter A by one whenever the duration fluctuation amplitude BH of the same batch exceeds the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe. Impurity Interference Statistics Unit: Equipped with an impurity interference counter B; This unit is used to increment the impurity interference counter B by one whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe while the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe. Normal data statistics unit: equipped with normal data counter C; this unit is used to increment the normal data counter C by one whenever the duration fluctuation range BH of the same batch does not exceed the reference duration fluctuation range BHe and the light intensity fluctuation range BG does not exceed the reference light intensity fluctuation range BGe. Summary Judgment Unit: Used to sequentially judge the bubble interference counter A, impurity interference counter B, and normal data counter C; When the count value of bubble interference counter A is greater than or equal to 1 and less than N, the working power of the ray sensor in the next preset time window is adjusted according to the maximum light intensity fluctuation amplitude BG. When the count value of the impurity interference counter B is greater than N / 2, the working power of the X-ray sensor in the next preset time window is adjusted according to the maximum duration fluctuation amplitude BH. When the count value of the normal data counter C is greater than N / 2, the time-liquid level comparison table is retrieved using the average value Hm, and the corresponding liquid level value is output. The light-transmitting wall contamination interference processing unit (responsible for executing step S6) is used to calculate the light intensity deviation PG between the minimum light intensity in the sampled dataset and the factory light intensity corresponding to the working power of the X-ray sensor at this time; when the light intensity deviation PG is negative, the working power of the X-ray sensor in the next preset time window is adjusted according to the light intensity deviation PG.

[0036] Other components and operations of the liquid level detection method and system according to embodiments of the present invention are known to those skilled in the art and will not be described in detail here.

[0037] In the description of this specification, references to terms such as "embodiment," "example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0038] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims

1. A liquid level detection method, characterized in that: Includes the following steps: S1: The main control board controls the X-ray sensor to emit a detection beam towards the corresponding liquid tank, waits for the X-ray sensor to receive the returned detection beam, calculates the return time of the beam by counting down, and records the light intensity of the returned detection beam. S2: Within a preset time window, execute step S1 N times consecutively, and summarize the light return time and light intensity obtained from each execution to form a sampling dataset; S3: Calculate the mean Hm of the return time of all rays in the sampled dataset and the mean Gm of all light intensities. Compare the return time of each ray in the sampled dataset with the mean Hm to obtain the duration fluctuation range BH. Compare the light intensity in the sampled dataset with the mean Gm to obtain the light intensity fluctuation range BG. Whenever the duration fluctuation amplitude BH of the same batch exceeds the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe, the bubble interference counter A is incremented by one; when the count value of the bubble interference counter A is greater than or equal to 1 and less than N, step S4 is executed. Whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe while the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe, the impurity interference counter B is incremented by one. When the count value of the impurity interference counter B is greater than N / 2, proceed to step S5; S4: Increase the working power of the X-ray sensor according to the maximum light intensity fluctuation amplitude BG, and use it as the working power of the X-ray sensor in the next preset time window. S5: Increase the working power of the X-ray sensor according to the maximum duration fluctuation amplitude BH, and use it as the working power of the X-ray sensor in the next preset time window. S6: Calculate the deviation PG between the minimum light intensity in the sampled dataset and the factory light intensity corresponding to the current working power of the X-ray sensor. When the light intensity deviation PG is negative, the working power of the X-ray sensor is increased according to the light intensity deviation PG, and used as the working power of the X-ray sensor in the next preset time window.

2. The liquid level detection method according to claim 1, characterized in that: Step S1 includes: The main control board controls the radiation sensor to emit a probe beam toward the corresponding liquid tank, and starts a countdown timer with a preset total countdown length; When the ray sensor receives the returned probe light, the main control board stops the countdown timer, records the countdown timer's duration as the light return time, and simultaneously records the light intensity of the returned probe light; When the countdown timer ends and the ray sensor does not receive the returned probe light, the total countdown timer duration is recorded as the light return time, and the light intensity of the returned probe light is recorded as zero.

3. The liquid level detection method according to claim 1, characterized in that: In step S1, the intensity of the returned probe light is the voltage value of the electrical signal after the ray sensor converts the light signal into an electrical signal.

4. The liquid level detection method according to claim 1, characterized in that: In step S3, the duration fluctuation amplitude BH is: ; Where Hn is the light return time, n=1, 2, 3...N.

5. The liquid level detection method according to claim 1, characterized in that: In step S3, the light intensity fluctuation amplitude BG is: ; Where Gn is the intensity of the returned probe light, and n = 1, 2, 3...N.

6. The liquid level detection method according to claim 1, characterized in that: In step S6, the light intensity deviation PG is: ; Where Gmin is the minimum light intensity in the sampled dataset, and Ge is the factory light intensity corresponding to the operating power of the X-ray sensor at this time.

7. The liquid level detection method according to claim 1, characterized in that: Step S3 further includes: whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG does not exceed the reference light intensity fluctuation amplitude BGe, the normal data counter C is incremented by one; when the count value of the normal data counter C is greater than N / 2, the main control board queries and returns the duration-liquid level comparison table with the average value Hm and outputs the corresponding liquid level value. The bubble interference counter A has the highest judgment priority, followed by the impurity interference counter B, and the normal data counter C has the lowest judgment priority.

8. The liquid level detection method according to claim 1, characterized in that: Step S6 further includes: when the light intensity deviation PG is negative and the light intensity deviation PG is greater than 80%, the main control board stops liquid level detection and issues a light-transmitting wall contamination alarm.

9. A liquid level detection system, characterized in that: The liquid level detection method according to any one of claims 1 to 8 includes: Sampling unit: Equipped with a countdown timer to calculate the light return time, and also equipped with a storage device to store the sampling dataset; This unit is used to execute step S1 N times in a preset time window; Fluctuation calculation unit: used to calculate the mean Hm of the return time of all light rays in the sampled dataset and the mean Gm of all light intensities. The return time of each light ray in the sampled dataset is compared with the mean Hm to obtain the duration fluctuation amplitude BH, and the light intensity in the sampled dataset is compared with the mean Gm to obtain the light intensity fluctuation amplitude BG. Bubble interference statistics unit: Equipped with bubble interference counter A; This unit is used to increment bubble interference counter A by one whenever the duration fluctuation amplitude BH of the same batch exceeds the reference duration fluctuation amplitude BHe and the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe. Impurity Interference Statistics Unit: Equipped with an impurity interference counter B; This unit is used to increment the impurity interference counter B by one whenever the duration fluctuation amplitude BH of the same batch does not exceed the reference duration fluctuation amplitude BHe while the light intensity fluctuation amplitude BG exceeds the reference light intensity fluctuation amplitude BGe. Normal data statistics unit: equipped with normal data counter C; this unit is used to increment the normal data counter C by one whenever the duration fluctuation range BH of the same batch does not exceed the reference duration fluctuation range BHe and the light intensity fluctuation range BG does not exceed the reference light intensity fluctuation range BGe. Summary Judgment Unit: Used to sequentially judge the bubble interference counter A, impurity interference counter B, and normal data counter C; When the count value of bubble interference counter A is greater than or equal to 1 and less than N, the working power of the ray sensor in the next preset time window is adjusted according to the maximum light intensity fluctuation amplitude BG. When the count value of the impurity interference counter B is greater than N / 2, the working power of the X-ray sensor in the next preset time window is adjusted according to the maximum duration fluctuation amplitude BH. When the count value of the normal data counter C is greater than N / 2, the time-liquid level comparison table is retrieved using the average value Hm, and the corresponding liquid level value is output. Light-transmitting wall contamination interference processing unit: used to calculate the light intensity deviation PG between the minimum light intensity in the sampling dataset and the factory light intensity corresponding to the working power of the X-ray sensor at this time; when the light intensity deviation PG is negative, the working power of the X-ray sensor in the next preset time window is adjusted according to the light intensity deviation PG.