Optoelectronic liquid level sensor with bidirectional cross-redundancy detection and detection method

By employing a bidirectional cross-redundancy detection method in the photoelectric liquid level sensor, and utilizing the mutually exclusive emission and consistency comparison of straight-through and oblique optical path groups, the detection anomaly caused by optical path obstruction is solved, thereby improving the reliability and anti-interference capability of liquid level detection.

CN123175394APending Publication Date: 2026-11-27CYBRIGHT IR LED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611628370.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

When existing photoelectric liquid level sensors have droplets or dirt attached to the liquid pipeline, the light propagation path is blocked, resulting in abnormal detection results that cannot accurately reflect the true liquid level changes and reduce the reliability of the detection.

Method used

A bidirectional cross-redundancy detection method is adopted. By setting a first sensing arm and a second sensing arm on both sides of the liquid level tube, a straight-through optical path group and an oblique optical path group are formed. The commutation drive section selects the emitter to make the emitters emit light mutually repulsively. The consistency comparison is performed by the judgment unit to ensure the accuracy of the liquid level judgment result.

Benefits of technology

This improves the reliability of photoelectric liquid level sensors in detecting the true liquid level state, reduces the impact of local optical path anomalies on the detection results, enhances anti-interference capabilities, and reduces the risk of false updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175394A_ABST
    Figure CN123175394A_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of sensors, and provides an optical liquid level sensor with bidirectional cross-redundancy detection and a detection method. The optical liquid level sensor comprises a sensor housing, a first sensing arm, a second sensing arm and a reversing driving part. The first sensing arm and the second sensing arm are respectively arranged on opposite sides of a liquid level tube, and each is provided with an emitter and a receiver at a first position and a second position spaced along the axial direction of the liquid level tube. The emitters and receivers at the first position on the two sides are paired to form a first straight-through light path group, the emitters and receivers at the second position on the two sides are paired to form a second straight-through light path group, and the emitters and receivers at different axial positions on the two sides are paired to form at least one group of oblique light path groups. Each light path group is provided with a forward light path and a reverse light path, so that the bidirectional detection results of the same light path group and the detection results of different light path groups can be mutually checked, and the limitation of liquid level determination relying only on a single position or a single propagation direction is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of sensor technology, and more specifically, to a photoelectric liquid level sensor and detection method with bidirectional cross-redundancy detection. Background Technology

[0002] Liquid level detection is widely used in drinking water equipment, coffee machines, humidifiers, cleaning equipment, and other equipment with liquid transportation or storage requirements. It is used to detect changes in the liquid level within containers or pipelines and provide corresponding liquid level detection signals to the equipment control system. Photoelectric liquid level sensors are characterized by their small size, fast response speed, and ease of integration with liquid pipelines. They typically utilize the difference in light propagation, refraction, or received light intensity between liquid and air to convert the liquid level state into an electrical signal, thereby identifying the presence or absence of liquid.

[0003] Existing photoelectric liquid level sensors typically employ a light emitting element and a light receiving element within the liquid pipeline. The detection light emitted by the light emitting element passes through the liquid pipeline and its internal medium before being received by the light receiving element. The liquid level within the pipeline is then determined based on changes in the received light signal. For example, existing liquid level sensors can use an infrared emitting element and a photoelectric receiving element to form a detection optical path, and then generate a liquid level detection signal through a signal processing circuit.

[0004] However, the detection results of existing photoelectric detection methods mainly depend on optical signals. When droplets or contaminants adhere locally in the liquid pipeline, partially obstructing the light propagation path, or when the output or response of the light emitting and receiving elements varies due to individual differences, abnormal changes in the received light signal may occur, making it difficult to reflect the true liquid level change. Therefore, how to reduce the impact of local optical path anomalies on liquid level detection results and improve the reliability of photoelectric liquid level sensors in judging the true liquid level state is a technical problem that existing photoelectric liquid level detection technologies need to solve.

[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure. Summary of the Invention

[0006] The purpose of this disclosure is to provide a photoelectric liquid level sensor and detection method with bidirectional cross-redundancy detection, and to solve the problem of how to reduce the impact of local optical path anomalies on liquid level detection results.

[0007] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part by practice of this disclosure.

[0008] According to one aspect of this disclosure, a photoelectric liquid level sensor with bidirectional cross-redundancy detection is provided, comprising: The sensor housing has a mounting hole for mounting a liquid level tube, and a liquid level channel is formed inside the liquid level tube for the liquid to be detected to pass through. A first sensing arm and a second sensing arm are respectively disposed on opposite sides of the liquid level tube. The first sensing arm and the second sensing arm are each provided with a transmitter and a receiver at a first position and a second position spaced apart along the axial direction of the liquid level tube. The transmitter and the receiver at the first position on both sides are paired to form a first straight-through optical path group. The transmitter and the receiver at the second position on both sides are paired to form a second straight-through optical path group. The transmitter and the receiver at different axial positions on both sides are paired to form at least one set of oblique optical path groups. Each optical path group has a forward optical path that propagates from the first sensing arm to the second sensing arm and a reverse optical path that propagates from the second sensing arm to the first sensing arm. Each forward optical path and the reverse optical path pass through the liquid level channel via the tube wall of the liquid level tube. A commutation drive unit, connected to each of the aforementioned transmitters, is used to time-division select the transmitters, causing the transmitters of the first sensing arm and the second sensing arm to emit light mutually repelling each other, and causing different transmitters leading to the same receiver to emit light at different times; The determination unit, connected to each of the receivers, is used to acquire the detection signals of each forward and reverse optical path, compare each detection signal with the corresponding preset threshold, and obtain the corresponding liquid level determination result of liquid presence or absence. After all the liquid level determination results of the current round of forward and reverse optical paths of each optical path group have been obtained, the consistency comparison of the liquid level determination results of the current round is performed. When all liquid level determination results are liquid presence or all are absence, the liquid level output is updated. When the liquid level determination results are not all the same, updating the liquid level output is prohibited.

[0009] Optionally, the first sensing arm is provided with a first transmitter EA1 and a first receiver RA1 at a first position, and a second transmitter EA2 and a second receiver RA2 at a second position; the second sensing arm is provided with a third transmitter EB1 and a third receiver RB1 at a first position, and a fourth transmitter EB2 and a fourth receiver RB2 at a second position. The first direct optical path group includes a forward optical path propagating from EA1 to RB1 and a reverse optical path propagating from EB1 to RA1; The second direct optical path group includes a forward optical path propagating from EA2 to RB2, and a reverse optical path propagating from EB2 to RA2; The oblique optical path group is a set, including a forward optical path propagating from EA2 to RB1 and a reverse optical path propagating from EB1 to RA2.

[0010] Optionally, the sensor housing has detection windows communicating with the mounting hole on opposite sides of the mounting hole, and both the first sensing arm and the second sensing arm are provided with collimation holes, with each forward optical path and each reverse optical path corresponding to the collimation holes; A light-shielding rib is provided between adjacent collimating apertures and between the transmitter and receiver on the same side. The light-shielding rib is used to block the direct light transmission channel on the same side and the non-target channel between unpaired devices, and to avoid the light transmission range of the collimating aperture.

[0011] Optionally, the commutation drive unit includes an oscillator, a state switching circuit composed of a trigger, a decoding circuit, and an analog switch; The oscillator is used to generate a periodic control signal, the state switching circuit is used to switch the driving state according to the periodic control signal, and the decoding circuit is used to convert the driving state into mutually exclusive transmit gating signals. The analog switches are connected to each of the transmitters respectively, and are used to connect the power supply circuit of the corresponding transmitter according to the transmission gating signal, and disconnect the power supply circuit of the current transmitter before switching to the next transmitter.

[0012] Optionally, the determination unit includes a photoelectric conversion circuit, a signal gating circuit, and threshold comparison branches corresponding to each of the forward and reverse optical paths, respectively, connected to each receiver. The signal gating circuit is used to connect the output of the photoelectric conversion circuit of the corresponding receiver to the threshold comparison branch corresponding to the current detection optical path according to the currently selected transmitter. Each threshold comparison branch includes a comparator and an independently configured calibration resistor network. The calibration resistor network is used to set a preset threshold based on the detection signals of the corresponding detection optical path in the liquid-free calibration state and the liquid-containing calibration state. The output polarity of each threshold comparison branch is unified so that each branch represents the presence of liquid with the same first logic level and the absence of liquid with the same second logic level.

[0013] Optionally, the determination unit further includes a consistency comparison circuit and an output hold circuit; The consistency comparison circuit includes an AND gate, an inverter, an XOR gate, and an OR gate. The AND gate and the inverter are used to form a set condition where all liquid level determination results are liquid and a reset condition where all liquid level determination results are no liquid, respectively. The XOR gate is used to compare one liquid level determination result with the other liquid level determination results, and the OR gate is used to summarize the comparison results to generate a conflict signal when at least two liquid level determination results are different. The determination unit is also equipped with a data acquisition completion flag, and the output holding circuit is updated only when all detection results have been acquired and the set condition or reset condition is met.

[0014] According to another aspect of this disclosure, a bidirectional cross-redundancy detection method is also provided, employing a photoelectric liquid level sensor with bidirectional cross-redundancy detection as described above, comprising the following steps: Step S1: When the commutation drive section selects the transmitter, the transmitters of the first sensing arm and the second sensing arm emit light mutually repulsively. Each time the transmitter is selected, the detection signal of the currently selected transmitter is obtained through the corresponding receiver according to the device pairing relationship of the first straight optical path group, the second straight optical path group and each oblique optical path group. Step S2: The judgment unit compares the acquired detection signals with the corresponding preset thresholds to obtain the liquid level judgment result of the corresponding optical path, indicating whether there is liquid or not. Step S3: Perform a consistency comparison on all liquid level determination results obtained in this round of detection. When all liquid level determination results are liquid present, update the liquid level output to a liquid present signal. When all liquid level determination results are liquid absent, update the liquid level output to a liquid absent signal. When the liquid level determination results are not all the same, prohibit updating the liquid level output and keep the liquid level output before the update. After completing this round of determination, proceed to the next round of detection.

[0015] Optionally, steps S1 and S2 are performed in the following gated order: Select only EA1, obtain the detection signal of the forward optical path of the first direct optical path group through RB1, and obtain the corresponding liquid level determination result; By selecting only EA2, the detection signal of the forward optical path of the second direct optical path group is obtained through RB2, and the detection signal of the forward optical path of the oblique optical path group is obtained through RB1, so as to obtain the corresponding liquid level determination results respectively. By selecting only EB1, the detection signal of the reverse optical path of the first direct optical path group is obtained through RA1, and the detection signal of the reverse optical path of the oblique optical path group is obtained through RA2, respectively, and the corresponding liquid level determination results are obtained. Select only EB2, obtain the detection signal of the reverse optical path of the second through optical path group through RA2, and obtain the corresponding liquid level determination result.

[0016] Optionally, step S2 includes: The received optical signal is converted into an electrical signal by a photoelectric conversion circuit connected to the receiver. Based on the currently selected transmitter, the electrical signal is connected to the threshold comparison branch corresponding to the current detection optical path through the signal gating circuit; The electrical signal is compared with the preset threshold corresponding to the branch by the comparator in the threshold comparison branch, and the output polarity of each threshold comparison branch is unified so that each branch represents the presence of liquid with the same first logic level and the absence of liquid with the same second logic level. The preset threshold is set by the calibration resistor network of the corresponding branch based on the detection signals obtained by the detection optical path in the liquid-free calibration state and the liquid-containing calibration state.

[0017] Optionally, corresponding acquisition completion flags are set for each of the forward and reverse optical paths. At the beginning of each round of detection, each acquisition completion flag is reset. For each liquid level determination result obtained, the liquid level determination result is saved and the acquisition completion flag of the corresponding optical path is set. When all acquisition completion flags are set, it is confirmed that all liquid level determination results of this round of detection have been obtained, and then consistency comparison and liquid level output update are performed; when at least one acquisition completion flag is not set, liquid level output update is prohibited, and liquid level determination results saved from the previous round of detection are not used to supplement the liquid level determination results that have not yet been obtained in this round.

[0018] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a photoelectric liquid level sensor and detection method with bidirectional cross-redundancy detection. By setting a first sensing arm and a second sensing arm on opposite sides of the liquid level tube, two sets of straight-through optical path groups located at different axial positions and an oblique optical path group spanning different axial positions are formed. This allows the detection range to simultaneously cover two axial positions and part of the liquid level channel in between, increasing the detection information of liquid distribution at different spatial positions. Each optical path group is provided with a forward optical path and a reverse optical path, so that the bidirectional detection results of the same optical path group and the detection results of different optical path groups can be mutually verified, reducing the limitation of relying on a single position or a single propagation direction for liquid level determination.

[0019] By using time-division multiplexing of the transmitters, the transmitters on both sides emit light in a mutually exclusive manner, and different transmitters leading to the same receiver emit light at different times. This allows for the differentiation of the transmitter and detection optical path corresponding to the received signal, reducing signal superposition and optical path source confusion caused by multiple transmitters emitting light simultaneously. After obtaining the liquid level determination results of all optical paths, a consistency comparison is performed, which avoids updating the liquid level output based on incomplete results or results from different rounds.

[0020] The output is updated only when all results are either liquid present or liquid absent. Updates are prohibited when results are inconsistent. This ensures that the liquid level output is constrained by the bidirectional detection results of each direct optical path and oblique optical path, reducing the risk of erroneous liquid level output updates caused by local bubbles, liquid residue, unilateral contamination, or abnormalities in a single optical path. This improves the detection's resistance to local interference and the reliability of the output.

[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] The structures, proportions, sizes, etc., shown in the accompanying drawings of this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed in the specification, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.

[0024] Figure 1 This is a schematic diagram of the structure of a photoelectric liquid level sensor.

[0025] Figure 2 This is a schematic diagram showing the arrangement of the sensing arm and optoelectronic devices.

[0026] Figure 3 This is a flowchart of the bidirectional cross-redundancy detection method.

[0027] Figure 4 This is a schematic diagram of the forward optical path pairing.

[0028] Figure 5 This is a schematic diagram of the reverse optical path pairing.

[0029] Illustration: 1. Sensor housing; 11. Mounting hole; 12. Detection window; 2. Liquid level tube; 21. Liquid level channel. Detailed Implementation

[0030] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0031] In the description of this invention, it should be understood that the terms "upper," "lower," "top," "bottom," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. It should be noted that when a component is considered to be "connected" to another component, it can be directly connected to the other component or there may be a component positioned centrally in the connection.

[0032] The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0033] like Figures 1-5 As shown, this embodiment of the invention provides a photoelectric liquid level sensor and detection method with bidirectional cross-redundancy detection, which is suitable for detecting the liquid state and the absence of liquid in a liquid level tube. In view of the problem of inaccurate liquid level detection results caused by liquid pipelines and detection elements, this embodiment of the invention aims to provide a photoelectric liquid level sensor and detection method that can reduce the influence of local optical path anomalies and improve detection reliability through structural improvements, so as to improve the reliability of the detection results of the photoelectric liquid level sensor.

[0034] Example 1: like Figure 1 and Figure 2 As shown, in this embodiment, the photoelectric liquid level sensor with bidirectional cross-redundancy detection includes a sensor housing 1, a first sensing arm, a second sensing arm, a commutation drive unit, and a determination unit.

[0035] The sensor housing 1 is provided with a mounting hole 11 for mounting a liquid level tube 2, and a liquid level channel 21 is formed inside the liquid level tube 2 for the liquid to be detected to pass through. The first sensing arm and the second sensing arm are respectively disposed on opposite sides of the liquid level tube 2. The first sensing arm and the second sensing arm are each provided with a transmitter and a receiver at a first position and a second position spaced apart along the axial direction of the liquid level tube 2. The transmitter and receiver at the first position on both sides are paired to form a first straight-through optical path group. The transmitter and receiver at the second position on both sides are paired to form a second straight-through optical path group. The transmitter and receiver at different axial positions on both sides are paired to form at least one set of oblique optical path groups. Each optical path group has a forward optical path that propagates from the first sensing arm to the second sensing arm and a reverse optical path that propagates from the second sensing arm to the first sensing arm. Each forward optical path and the reverse optical path pass through the liquid level channel 21 through the tube wall of the liquid level tube 2. The commutation drive unit is connected to each transmitter and is used to select the transmitter in a time-division manner, so that the transmitters of the first sensing arm and the second sensing arm emit light mutually repulsively, and different transmitters that are directed to the same receiver do not emit light at the same time. The determination unit is connected to each receiver and is used to acquire the detection signals of each forward and reverse optical path. Each detection signal is compared with the corresponding preset threshold to obtain the corresponding liquid level determination result of whether there is liquid or not. After all the liquid level determination results of the forward and reverse optical paths of each optical path group have been obtained, the consistency of the liquid level determination results of the current round is compared. When all liquid level determination results are either liquid or all are not liquid, the liquid level output is updated. When the liquid level determination results are not all the same, updating the liquid level output is prohibited.

[0036] Specifically, the sensor housing 1 is provided with a mounting hole 11 for mounting the liquid level tube 2, and a liquid level channel 21 is formed inside the liquid level tube 2 for the liquid to be detected to pass through. The first sensing arm and the second sensing arm are respectively disposed on opposite sides of the liquid level tube 2, and the two sensing arms are provided with a transmitter and a receiver at a first position and a second position spaced apart along the axial direction of the liquid level tube 2.

[0037] The transmitter emits detection light into the level channel 21, and the receiver receives the detection light emitted from the transmitter on the opposite side and passing through the level channel 21. The transmitter can be an infrared light-emitting device, and the receiver can be a photosensitive device that matches its emission wavelength.

[0038] The first position and the second position correspond to two axially spaced detection positions on the level tube 2. The transmitters and receivers located at the first position on both sides are paired across the level tube 2 to form a first straight-through optical path group; the transmitters and receivers located at the second position on both sides are paired across the level tube 2 to form a second straight-through optical path group; the transmitters and receivers located at different axial positions on both sides are paired across the level tube 2 to form an oblique optical path group.

[0039] Each optical path group includes a forward optical path that propagates from the first sensing arm to the second sensing arm, and a reverse optical path that propagates from the second sensing arm to the first sensing arm. Both the forward and reverse optical paths pass through the liquid level channel 21 via the wall of the liquid level tube 2, so that the liquid distribution within the corresponding detection range in the liquid level channel 21 can affect the detection light received by the receiver.

[0040] In this embodiment of the invention, by setting a first sensing arm and a second sensing arm on opposite sides of the liquid level tube 2, two sets of straight-through optical path groups located at different axial positions and an oblique optical path group spanning different axial positions are formed. This allows the detection range to simultaneously cover two axial positions and a portion of the liquid level channel in between, increasing the detection information of liquid distribution at different spatial positions. Each optical path group is equipped with a forward optical path and a reverse optical path, enabling bidirectional detection results of the same optical path group and detection results of different optical path groups to be mutually verified, reducing the limitation of relying solely on a single position or a single propagation direction for liquid level determination. By using time-division multiplexing of the transmitters, the transmitters on both sides emit light mutually repelling each other, and different transmitters leading to the same receiver emit light in a mutually exclusive manner. Simultaneous emission of light allows for differentiation of the transmitting device and detection optical path corresponding to the received signal, reducing signal superposition and optical path source confusion caused by multiple transmitting devices emitting light simultaneously. Consistency comparison is performed after obtaining the liquid level determination results of all optical paths, avoiding updating the liquid level output based on incomplete results or mixed results from different rounds. The output is updated only when all results are either liquid present or all are liquid absent, and updates are prohibited when results are inconsistent. This ensures that the liquid level output is constrained by the bidirectional detection results of each direct optical path and oblique optical path, reducing the risk of erroneous liquid level output updates caused by local bubbles, liquid residue, unilateral contamination, or single optical path anomalies, and improving the detection's resistance to local interference and output reliability.

[0041] like Figure 2 , Figure 4 and Figure 5 As shown, in this embodiment, the transmitting and receiving ends of the straight optical path are located at the same axial position; the transmitting and receiving ends of the oblique optical path are located at different axial positions, and its detection direction across the liquid level pipe 2 is inclined relative to the cross section perpendicular to the axis of the liquid level pipe 2, thus passing through a portion of the liquid level channel 21 between the first position and the second position. The forward and reverse optical paths in each optical path group are formed by different transmitting and receiving components, representing opposite cross-pipe propagation directions, and are not required to be completely coincident in space.

[0042] Specifically, the first sensing arm has a first transmitter EA1 and a first receiver RA1 at a first position, and a second transmitter EA2 and a second receiver RA2 at a second position; the second sensing arm has a third transmitter EB1 and a third receiver RB1 at a first position, and a fourth transmitter EB2 and a fourth receiver RB2 at a second position. The transmitters and receivers on the same sensing arm, located at the same axial position, are spaced apart and each has a corresponding mounting part and a light-transmitting part.

[0043] The first direct optical path group includes a forward optical path that propagates from the first transmitter EA1 to the third receiver RB1, and a reverse optical path that propagates from the third transmitter EB1 to the first receiver RA1.

[0044] The second direct optical path group includes a forward optical path that propagates from the second transmitter EA2 to the fourth receiver RB2, and a reverse optical path that propagates from the fourth transmitter EB2 to the second receiver RA2.

[0045] This embodiment sets up a set of oblique optical paths, including a forward optical path that propagates from the second transmitter EA2 to the third receiver RB1, and a reverse optical path that propagates from the third transmitter EB1 to the second receiver RA2.

[0046] Thus, two sets of straight-through optical path groups and one set of oblique-crossing optical path groups form a total of six detection optical paths. Each detection optical path is formed by a specific pair of transmitter and receiver, and has an independent corresponding liquid level determination result.

[0047] The second transmitter EA2 serves as both the forward transmitter of the second straight-through optical path group and the forward transmitter of the oblique optical path group; the third transmitter EB1 serves as both the reverse transmitter of the first straight-through optical path group and the reverse transmitter of the oblique optical path group. The third receiver RB1 is used to receive the detection light emitted by the first transmitter EA1 and the second transmitter EA2, respectively, and the second receiver RA2 is used to receive the detection light emitted by the third transmitter EB1 and the fourth transmitter EB2, respectively.

[0048] For multiplexed receivers, the source of detection light is distinguished by time-division gating of different transmitters; for multiplexed transmitters, different detection optical paths are formed by the light transmission directions leading to different paired receivers. Therefore, with two transmitters and two receivers on each side, two sets of straight optical paths and one set of oblique optical paths can be obtained.

[0049] like Figure 1 As shown, the sensor housing 1 further comprises detection windows 12 communicating with the mounting holes 11 on opposite sides of the mounting holes 11. Both the first and second sensing arms are provided with collimation holes, and each forward and reverse optical path is correspondingly provided with a collimation hole, with each collimation hole communicating with the detection window 12 on its respective side.

[0050] The collimating aperture on the transmitting side is used to define the emission direction of the detection light, and the collimating aperture on the receiving side is used to define the receiving direction of the receiver. The detection light is emitted from the transmitter through the collimating aperture and detection window 12 on the transmitting side and directed towards the liquid level tube 2. After passing through the tube wall and liquid level channel 21 of the liquid level tube 2, it reaches the paired receiver through the detection window 12 and collimating aperture on the receiving side.

[0051] For a straight optical path, a collimating aperture is set with a pairing device facing the same axial position on the opposite side; for an oblique optical path, a collimating aperture is set with a pairing device facing different axial positions on the opposite side. The direction, diameter, and length of the collimating aperture are determined according to the light emission range of the transmitter, the receiving range of the receiver, and the optical structure of the liquid level tube 2, so that the target optical path can form a receiving signal that can be used for threshold determination.

[0052] Specifically, on the light-emitting side of the second transmitter EA2, a straight-through collimating aperture corresponding to the forward optical path of the second straight-through optical path group and an oblique collimating aperture corresponding to the forward optical path of the oblique-crossing optical path group are respectively provided. The ends of both collimating apertures near the device correspond to the light-emitting portion of the second transmitter EA2, while the other ends face the fourth receiver RB2 and the third receiver RB1, respectively. On the light-emitting side of the third transmitter EB1, a straight-through collimating aperture corresponding to the reverse optical path of the first straight-through optical path group and an oblique collimating aperture corresponding to the reverse optical path of the oblique-crossing optical path group are respectively provided. The two collimating apertures face the first receiver RA1 and the second receiver RA2, respectively. Correspondingly, on the light-incident side of the third receiver RB1, two collimating apertures facing the first transmitter EA1 and the second transmitter EA2 are respectively provided, and on the light-incident side of the second receiver RA2, two collimating apertures facing the third transmitter EB1 and the fourth transmitter EB2 are respectively provided. The different collimating apertures corresponding to the multiplexed receivers all lead to the photosensitive portion of the receiver.

[0053] The light emission range of the multiplexed transmitter should cover its corresponding straight collimating aperture and oblique collimating aperture, and the receiving range of the multiplexed receiver should cover its corresponding two incident light directions, so that the same device can participate in two detection optical paths without blocking the oblique optical path due to only setting a single straight collimating aperture.

[0054] Furthermore, light-shielding ribs are provided between adjacent collimating holes and between the transmitter and receiver on the same side. The light-shielding ribs are formed of light-shielding material and can be integrally set with the sensor housing 1, or they can be set as light-shielding partitions fixed inside the sensor housing 1.

[0055] The light-shielding ribs between the transmitter and receiver on the same side are used to separate their mounting spaces and prevent the detection light from directly entering the receiver's crosstalk channel on the same side. The light-shielding ribs between adjacent collimating holes are used to limit light from entering adjacent non-target channels and to block non-target channels between unpaired devices.

[0056] The position of the light-shielding ribs is adapted to the light transmission range of each target optical path. For multiplexed devices, the light-shielding ribs form a light-shielding separation between their straight collimating apertures and oblique collimating apertures, while maintaining the light transmission space between each collimating aperture and the light-emitting or photosensitive part of the device. The light-shielding ribs do not cross the target collimating apertures, nor do they block the oblique light transmission range required for the oblique optical paths.

[0057] Therefore, the light-shielding structure and the oblique optical path are arranged together according to the device pairing relationship, which reduces the impact of direct crosstalk on the same side and non-target channels on the detection signal while retaining the target direct optical path and oblique optical path.

[0058] Furthermore, the commutation drive unit is connected to each transmitter for time-division multiplexing of the transmitters, ensuring that the transmitters of the first and second sensing arms emit light mutually exclusively, and that different transmitters connected to the same receiver do not emit light simultaneously. The commutation drive unit includes an oscillator, a state switching circuit composed of triggers, a decoding circuit, and an analog switch. The oscillator generates a periodic control signal, the state switching circuit switches the drive state according to the periodic control signal, and the decoding circuit converts each drive state into mutually exclusive transmit gating signals. The analog switch connects the power supply circuit of the corresponding transmitter according to the corresponding transmit gating signal.

[0059] Specifically, the state switching circuit sequentially forms four transmit selection states, corresponding to the first transmitter EA1, the second transmitter EA2, the third transmitter EB1, and the fourth transmitter EB2, respectively. In each transmit selection state, only one transmitter is connected, and the power supply circuits of the other transmitters are disconnected.

[0060] Before switching to the next transmitter, the power supply circuit of the current transmitter is disconnected, and then the power supply circuit of the next transmitter is connected to prevent the two transmitters from emitting light simultaneously during the switching process. Therefore, the detection light received by the third receiver RB1 can determine whether it comes from the first transmitter EA1 or the second transmitter EA2 based on the current gating state; the detection light received by the second receiver RA2 can determine whether it comes from the third transmitter EB1 or the fourth transmitter EB2 based on the current gating state.

[0061] When the second transmitter EA2 is selected, the fourth receiver RB2 and the third receiver RB1 acquire the detection signals of the forward optical path of the second straight-through optical path group and the forward optical path of the oblique-cross optical path group, respectively. When the third transmitter EB1 is selected, the first receiver RA1 and the second receiver RA2 acquire the detection signals of the reverse optical path of the first straight-through optical path group and the reverse optical path of the oblique-cross optical path group, respectively. The two optical paths corresponding to one transmitter are received by different receivers, and signal processing and liquid level determination are performed separately.

[0062] In this embodiment of the invention, the determination unit includes a photoelectric conversion circuit, a signal gating circuit, and a threshold comparison branch corresponding to each detection optical path, all connected to each receiver.

[0063] Each photoelectric conversion circuit is used to convert the optical signal received by the corresponding receiver into an electrical signal. Depending on the type of receiver used, the photoelectric conversion circuit may include a current-to-voltage conversion and amplification circuit to form a detection voltage for processing by the threshold comparison branch.

[0064] In this embodiment, the four receivers correspond to four photoelectric conversion circuits, and the six detection optical paths correspond to six threshold comparison branches. The signal gating circuit is controlled by the current transmission gating state, and connects the output of the corresponding photoelectric conversion circuit to the threshold comparison branch corresponding to the current detection optical path.

[0065] Specifically, when the first transmitter EA1 is selected, the photoelectric conversion output of the third receiver RB1 is connected to the threshold comparison branch corresponding to the forward optical path of the first straight-through optical path group; when the second transmitter EA2 is selected, the photoelectric conversion output of the fourth receiver RB2 is connected to the threshold comparison branch corresponding to the forward optical path of the second straight-through optical path group, and the photoelectric conversion output of the third receiver RB1 is connected to the threshold comparison branch corresponding to the forward optical path of the oblique-cross optical path group; when the third transmitter EB1 is selected, the photoelectric conversion output of the first receiver RA1 is connected to the threshold comparison branch corresponding to the reverse optical path of the first straight-through optical path group, and the photoelectric conversion output of the second receiver RA2 is connected to the threshold comparison branch corresponding to the reverse optical path of the oblique-cross optical path group; when the fourth transmitter EB2 is selected, the photoelectric conversion output of the second receiver RA2 is connected to the threshold comparison branch corresponding to the reverse optical path of the second straight-through optical path group.

[0066] Thus, the detection signals obtained by the same receiver under different transmit gating states are sent to different threshold comparison branches, so that the different detection optical paths in which the multiplexed receiver participates can still independently perform threshold comparisons.

[0067] Each threshold comparison branch includes a comparator and an independently configured calibration resistor network. The calibration resistor network is used to generate a preset threshold corresponding to the corresponding detection optical path. Each preset threshold is determined based on the detection signals obtained by the corresponding optical path in both liquid-free and liquid-containing calibration states.

[0068] Specifically, the liquid-free calibration state refers to the state where there is no liquid to be tested in the liquid level channel 21 through which the corresponding detection optical path passes; the liquid-containing calibration state refers to the state where the liquid level channel 21 through which the corresponding detection optical path passes is filled with the liquid to be tested. For oblique optical paths, the liquid-containing calibration state should be performed in a liquid-filled state within the channel range it passes through.

[0069] By acquiring the detection signals of each optical path under two calibration states, the signal change direction and distinguishable range of each optical path are determined, and a preset threshold is set using the corresponding calibration resistor network. If the detection voltage ranges of the two states are distinguishable, the preset threshold is set within the dividing range between them. If the signal ranges of the two states overlap, the arrangement of the corresponding optical path or signal conversion parameters should be adjusted to meet the threshold distinction condition. Because the propagation paths, incident directions, and receiving conditions of the straight-through and oblique-crossing optical paths are different, each optical path is calibrated separately, and the same threshold value that has not been separately calibrated is not directly shared. Each calibration resistor network is set independently, and the final threshold values ​​are not required to be different.

[0070] Simultaneously, the output polarity of each threshold comparison branch is unified, ensuring that each branch uses the same first logic level to represent the presence of liquid and the same second logic level to represent the absence of liquid. In this embodiment, a high level represents the presence of liquid and a low level represents the absence of liquid.

[0071] For optical paths where the detection voltage is higher in the presence of liquid than in the absence of liquid, the detection voltage and a preset threshold can be connected to a comparator with corresponding polarities. For optical paths where the detection voltage is lower in the presence of liquid than in the absence of liquid, the input connections of the comparator can be swapped or the comparison result inverted so that the final output is still high to indicate the presence of liquid. In this way, even if the light intensity change directions of each detection optical path are different, a logical result with the same meaning can be formed.

[0072] Furthermore, to store the liquid level determination results obtained over time, the determination unit is also equipped with a result latching unit corresponding to each detection optical path, and a collection completion flag corresponding to each detection optical path. The result latching unit can be implemented using a latch or a trigger, and the collection completion flag can be stored through the corresponding flag trigger.

[0073] Specifically, the six detection optical paths correspond to six result latching units and six acquisition completion flags, respectively. At the start of each round of detection, all acquisition completion flags are reset, so that they are all in the incomplete state.

[0074] Once the current transmitter is selected, the signal gating connection is established, and the corresponding threshold comparison result is stable, the liquid level determination result is saved to the corresponding result latch unit via a write control signal. After the result is written, the acquisition completion flag for that optical path is set. Result latch units not involved in the current detection do not receive the write control signal to preserve their saved data.

[0075] For the two detection optical paths corresponding to the second transmitter EA2 and the third transmitter EB1, the liquid level determination results of the two optical paths are written into their respective result latch units, and their respective acquisition completion flags are set. The completion status of different optical paths is not merged because they share the same transmitter.

[0076] The acquisition completion flag indicates that the liquid level determination result for the corresponding optical path has been obtained and saved. It does not indicate that the optical path is determined to have liquid, nor does it directly indicate that the optical path or device is free from faults. When the received signal is low or no obvious detection light is received, as long as the signal conversion, threshold comparison, and result saving for the optical path have been completed, the determination of whether there is liquid or not will still be obtained based on the comparison result, and the corresponding acquisition completion flag will be set.

[0077] In a new round of testing, even if the result latching unit retains data from the previous round, this data cannot be used as the final level determination result for this round of testing unless the corresponding acquisition completion flag has been reset. Avoid mixing results from the current round with those from the previous round.

[0078] Furthermore, the determination unit also includes a consistency comparison circuit and an output holding circuit. The input of the consistency comparison circuit is connected to the output of each result latching unit, and is used to compare the liquid level determination results obtained by each optical path in the same round of detection; the output holding circuit is used to store and output the liquid level signal.

[0079] The consistency comparison circuit includes an AND gate, an inverter, an XOR gate, and an OR gate. Six liquid level determination results are input into the AND gate; when all six results are high, a set condition is formed indicating that all optical paths indicate the presence of liquid. The six liquid level determination results are inverted and then input into the AND gate; when all six results are low, a reset condition is formed indicating that all optical paths indicate the absence of liquid. Simultaneously, one liquid level determination result is selected as the comparison benchmark. This result is compared with the other five results individually using an XOR gate, and then the XOR comparison results are summed using an OR gate. When at least one XOR comparison result is high, it indicates that at least two different liquid level determination results exist, thus forming a conflict signal. Six acquisition completion flags are combined using a logical AND operation to form a full acquisition completion signal. Only after the full acquisition completion signal is valid and the results of this round have been stably saved is the set or reset condition allowed to act on the output holding circuit.

[0080] Specifically, when all acquisition completion signals and the set condition are met, the output holding circuit is set to the liquid output state; when all acquisition completion signals and the reset condition are met, the output holding circuit is set to the liquid-free output state.

[0081] When all acquisition completion flags are set, but the six liquid level determination results are not all the same, neither the setting condition nor the reset condition is met. The output holding circuit is prohibited from updating and continues to hold the liquid level output before the update. Similarly, updating the liquid level output is prohibited when at least one acquisition completion flag is not set.

[0082] The output hold circuit can be constructed using a flip-flop with a hold function, and its update control is jointly determined by the complete acquisition signal and the consistency comparison result. The state switching circuit can generate a decision control signal after the last result is written and the relevant logic signals stabilize, so that the output hold circuit completes the current round of output update or hold processing, and then starts the next round of detection and resets each acquisition completion flag.

[0083] For example, when all six optical paths determine the liquid level as present, a liquid presence signal is output; when all six optical paths determine the liquid level as absent, a no-liquid signal is output. If the forward optical path of the first direct-path group determines the liquid presence, while its reverse optical path determines the absence, there is a directional difference within the same optical path group, and updating the liquid level output is prohibited. If both optical paths of the first direct-path group determine the liquid presence, and both optical paths of the second direct-path group determine the absence, although the forward and reverse results within each direct-path group are consistent, there is a difference in determination between different axial positions, and updating the liquid level output is still prohibited. Similarly, if both direct-path groups determine the liquid presence, and at least one optical path in the oblique optical path group determines the absence, updating the liquid level output is also prohibited. Therefore, the determination results of the oblique optical paths directly participate in the final consistency determination and are not ignored due to consistency between the direct-path paths.

[0084] It should be noted that the discrepancies in the above results may arise from factors such as the liquid interface being located at different detection positions, localized bubbles, deposits, or device and optical path anomalies. This embodiment determines whether to update the output based on the consistency of all optical path results; the conflict signal itself is not used to directly determine the specific cause of the discrepancy. Output holding indicates that the current round of results is insufficient to form a new common liquid level conclusion, and the held output is the previously saved output state. When the sensor has not yet completed its initial consistency determination after power-on, the output holding circuit can be at a preset initialization level; this initialization level is not considered as evidence that the current round of detection has been completed.

[0085] This embodiment obtains detection results at different axial positions through two sets of straight optical paths and obtains detection results across different axial positions through oblique optical paths. It also makes a consistent judgment on the forward and reverse detection results of each optical path group, thereby reducing the possibility that abnormal results from a single optical path will directly cause changes in liquid level output.

[0086] For example, this embodiment sets up a group of oblique optical paths and incorporates the determination results of its forward and reverse optical paths into the final consistency comparison. By setting light-shielding ribs between adjacent collimating holes and preserving the light transmission range of each target hole, crosstalk caused by non-target optical channels is reduced. Of course, in some embodiments, another group of oblique optical paths can also be set up, including a forward optical path propagating from the first transmitter EA1 to the fourth receiver RB2, and a reverse optical path propagating from the fourth transmitter EB2 to the first receiver RA1. Correspondingly, collimating holes with corresponding orientations are added to the device, and threshold comparison branches, result latching units, and acquisition completion flags are set up for the two newly added optical paths respectively.

[0087] When using two sets of oblique optical paths, when the first transmitter EA1 is selected, the forward detection signal of the newly added oblique optical path is also obtained through the fourth receiver RB2; when the fourth transmitter EB2 is selected, the reverse detection signal of the newly added oblique optical path is also obtained through the first receiver RA1. The object of the final consistency comparison is correspondingly expanded to the liquid level determination results of all eight optical paths in this round, and its output update principle is the same as that of the aforementioned implementation method.

[0088] Example 2: like Figure 2 and Figure 3 As shown, this embodiment provides a bidirectional cross-redundancy detection method, which is implemented using the photoelectric liquid level sensor with bidirectional cross-redundancy detection described in Embodiment 1.

[0089] This embodiment uses a sensor with two sets of direct optical paths and one set of oblique optical paths as an example to perform time-division acquisition and joint judgment on six detection optical paths. Before detection begins, based on the detection signals obtained by each optical path in both liquid-free and liquid-containing calibration states, corresponding preset thresholds are set, and the output polarity of each threshold comparison branch is unified. Each round of detection involves acquiring data from each of the set forward and reverse optical paths according to the set gating order, and performing consistency judgment and output processing based on the acquisition results of this round. All liquid level judgment results used for consistency judgment in this round should be obtained within this round. The bidirectional cross-redundancy detection method includes the following steps: Step S1: When the commutation drive section selects the transmitter, the transmitters of the first sensing arm and the second sensing arm emit light mutually repulsively. According to the device pairing relationship of the first straight-through optical path group, the second straight-through optical path group and the oblique optical path group, the detection signal of the currently selected transmitter is obtained through the corresponding receiver.

[0090] Specifically, the commutation drive unit generates a transmit gating signal based on the drive state of the state switching circuit, enabling only one transmitter to emit light in each transmit gating state. When switching transmitters, the power supply circuit of the current transmitter is first disconnected, and then the power supply circuit of the next transmitter is connected, so that different transmitters connected to the same receiver do not emit light simultaneously.

[0091] The detection light emitted by the current transmitter passes through the liquid level channel 21 via the wall of the liquid level pipe 2 along the direction defined by the corresponding collimation hole, and is then received by the paired receiver. For transmitters that participate in both the straight-through optical path and the oblique-cross optical path, the detection signals of the two optical paths are acquired by different paired receivers respectively.

[0092] Step S2: The detection signal obtained by the judgment unit is compared with the corresponding preset threshold to obtain the liquid level judgment result of the corresponding optical path, whether there is liquid or not.

[0093] Specifically, the received optical signal is converted into an electrical signal by a photoelectric conversion circuit connected to the receiver, and then, according to the currently selected transmitter, the electrical signal is connected to the threshold comparison branch corresponding to the current detection optical path by a signal gating circuit.

[0094] The comparator in this threshold comparison branch compares the electrical signal with the preset threshold corresponding to that branch, and forms a liquid level determination result based on a unified output polarity. In this embodiment, a high level indicates the presence of liquid, and a low level indicates the absence of liquid.

[0095] Each preset threshold is set by the calibration resistor network of its corresponding branch, based on the detection signals obtained by the corresponding detection optical path in both liquid-free and liquid-containing calibration states. Therefore, the detection signals obtained by the same receiver in different transmission gating states are compared for thresholds according to their corresponding detection optical paths.

[0096] Steps S1 and S2 are executed sequentially according to each emission gating state. That is, after obtaining the detection signal of the corresponding optical path and the liquid level determination result in the current emission gating state, the system switches to the subsequent emission gating state.

[0097] like Figure 3 As shown, this embodiment is executed in the following order: First, only the first transmitter EA1 is selected, while all other transmitters remain disconnected. The forward optical path detection signal of the first through-optical path group is obtained through the third receiver RB1, and it is connected to the corresponding threshold comparison branch to obtain and save the liquid level determination result of the optical path.

[0098] Then, the first transmitter EA1 is disconnected, and only the second transmitter EA2 is selected. The forward optical path detection signal of the second direct optical path group is obtained through the fourth receiver RB2, and the forward optical path detection signal of the oblique optical path group is obtained through the third receiver RB1. The two detection signals are respectively connected to their respective threshold comparison branches, and the liquid level determination results of the two optical paths are obtained and saved.

[0099] Subsequently, the second transmitter EA2 is disconnected, and only the third transmitter EB1 is selected. The reverse optical path detection signal of the first through optical path group is obtained through the first receiver RA1, and the reverse optical path detection signal of the oblique optical path group is obtained through the second receiver RA2. The two detection signals are respectively connected to their respective threshold comparison branches, and the liquid level determination results of the two optical paths are obtained and saved.

[0100] Finally, the third transmitter EB1 is disconnected, and only the fourth transmitter EB2 is selected. The reverse optical path detection signal of the second direct optical path group is obtained through the second receiver RA2, and it is connected to the corresponding threshold comparison branch to obtain and save the liquid level determination result of the optical path.

[0101] Through four transmit gating states, the two liquid level determination results of the first straight-through optical path group, the two liquid level determination results of the second straight-through optical path group, and the two liquid level determination results of the oblique optical path group are obtained in sequence.

[0102] Furthermore, acquisition completion flags are set for each of the six detection optical paths. At the start of each round of detection, all acquisition completion flags are reset. After acquiring and saving the liquid level determination result for each detection optical path, the acquisition completion flag corresponding to that optical path is set. For the results of two optical paths acquired in a single emission gating state, result saving and completion flag setting operations are performed separately. Only when both optical paths have completed result saving will their corresponding two acquisition completion flags both be set.

[0103] like Figure 3 As shown, in step S3, after obtaining the liquid level determination results of all forward and reverse optical paths of the first direct optical path group, the second direct optical path group, and the oblique optical path group in this round of detection, a consistency comparison is performed on all liquid level determination results in this round, and the liquid level output is updated or maintained according to the comparison results.

[0104] Specifically, first check the acquisition completion flags of each detection optical path. Only when all acquisition completion flags are set is it confirmed that all six liquid level determination results for this round of detection have been obtained, and the consistency comparison results are allowed to be used for this round of output processing.

[0105] When all six liquid level determination results are "liquid present," a set condition is established, and the liquid level output is updated to a "liquid present" signal. When all six liquid level determination results are "no liquid present," a reset condition is established, and the liquid level output is updated to a "no liquid present" signal. When the six liquid level determination results are not all the same, a conflict signal is generated, preventing the liquid level output from being updated, and the previous liquid level output is maintained. In this case, the majority result is not used to replace the consistency determination of all results, nor is it excluded that a new output conclusion is formed after considering optical paths with discrepancies.

[0106] If at least one acquisition completion flag is not set, it indicates that not all the required liquid level determination results have been obtained in this round, and updating the liquid level output is prohibited. For optical paths that have not yet completed acquisition, the liquid level determination results saved in the previous round will not be used to supplement the data in this round.

[0107] For example, if the current five optical paths have obtained the liquid level determination results for this round, and all of them show liquid presence, but the sixth optical path has not yet completed saving its results, even if the sixth optical path's result in the previous round also showed liquid presence, this round's result will not be considered as all liquid presence. Only after the sixth optical path obtains and saves its result for this round will the output determination be based on the complete set of six results for this round.

[0108] After completing the current round of output update or hold processing, when starting the next round of detection, all acquisition completion flags are reset, and the liquid level determination results of each optical path are reacquired and saved according to the above-mentioned emission gating sequence. The output hold circuit maintains the saved output state until the new output update conditions are met.

[0109] The bidirectional cross-redundancy detection method in this embodiment maps device pairing relationships, emission gating states, threshold comparison branches, and result storage locations together, enabling direct and oblique optical paths to reuse transmitters and receivers, and ensuring that the final results participating in the consistency comparison come from the same round of detection. The liquid level output is updated when all required optical paths have completed their current round of acquisition and the results are consistent; the original output is maintained when results are inconsistent or acquisition is incomplete, thus forming a complete bidirectional cross-redundancy detection process.

[0110] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0111] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A photoelectric liquid level sensor with bidirectional cross-redundancy detection, characterized in that, include: The sensor housing (1) is provided with a mounting hole (11) for mounting a liquid level tube (2), and a liquid level channel (21) for the liquid to be detected to pass through is formed inside the liquid level tube (2); The first sensing arm and the second sensing arm are respectively disposed on opposite sides of the liquid level tube (2). The first sensing arm and the second sensing arm are provided with a transmitter and a receiver at a first position and a second position spaced apart along the axial direction of the liquid level tube (2). The transmitter and the receiver at the first position on both sides are paired to form a first straight-through optical path group. The transmitter and the receiver at the second position on both sides are paired to form a second straight-through optical path group. The transmitter and the receiver at different axial positions on both sides are paired to form at least one set of oblique optical path groups. Each optical path group has a forward optical path that propagates from the first sensing arm to the second sensing arm and a reverse optical path that propagates from the second sensing arm to the first sensing arm. Each forward optical path and the reverse optical path pass through the liquid level channel (21) through the tube wall of the liquid level tube (2). A commutation drive unit, connected to each of the aforementioned transmitters, is used to time-division select the transmitters, causing the transmitters of the first sensing arm and the second sensing arm to emit light mutually repelling each other, and causing different transmitters leading to the same receiver to emit light at different times; The determination unit, connected to each of the receivers, is used to acquire the detection signals of each forward and reverse optical path, compare each detection signal with the corresponding preset threshold, and obtain the corresponding liquid level determination result of liquid presence or absence. After all the liquid level determination results of the current round of forward and reverse optical paths of each optical path group have been obtained, the consistency comparison of the liquid level determination results of the current round is performed. When all liquid level determination results are liquid presence or all are absence, the liquid level output is updated. When the liquid level determination results are not all the same, updating the liquid level output is prohibited.

2. The photoelectric liquid level sensor with bidirectional cross-redundancy detection according to claim 1, characterized in that, The first sensing arm is provided with a first transmitter EA1 and a first receiver RA1 at a first position, and a second transmitter EA2 and a second receiver RA2 at a second position; the second sensing arm is provided with a third transmitter EB1 and a third receiver RB1 at a first position, and a fourth transmitter EB2 and a fourth receiver RB2 at a second position. The first direct optical path group includes a forward optical path propagating from EA1 to RB1 and a reverse optical path propagating from EB1 to RA1; The second direct optical path group includes a forward optical path propagating from EA2 to RB2, and a reverse optical path propagating from EB2 to RA2; The oblique optical path group is a set, including a forward optical path propagating from EA2 to RB1 and a reverse optical path propagating from EB1 to RA2.

3. The photoelectric liquid level sensor with bidirectional cross-redundancy detection according to claim 1, characterized in that, The sensor housing (1) has detection windows (12) communicating with the mounting hole (11) on both sides of the mounting hole (11). The first sensing arm and the second sensing arm are both provided with collimation holes. Each forward optical path and each reverse optical path are provided with collimation holes. Each collimation hole is connected to the corresponding detection window (12). A light-shielding rib is provided between adjacent collimating apertures and between the transmitter and receiver on the same side. The light-shielding rib is used to block the direct light transmission channel on the same side and the non-target channel between unpaired devices, and to avoid the light transmission range of the collimating aperture.

4. The photoelectric liquid level sensor with bidirectional cross-redundancy detection according to claim 1, characterized in that, The commutation drive unit includes an oscillator, a state switching circuit composed of a trigger, a decoding circuit, and an analog switch; The oscillator is used to generate a periodic control signal, the state switching circuit is used to switch the driving state according to the periodic control signal, and the decoding circuit is used to convert the driving state into mutually exclusive transmit gating signals. The analog switches are connected to each of the transmitters respectively, and are used to connect the power supply circuit of the corresponding transmitter according to the transmission gating signal, and disconnect the power supply circuit of the current transmitter before switching to the next transmitter.

5. The photoelectric liquid level sensor with bidirectional cross-redundancy detection according to claim 1, characterized in that, The determination unit includes a photoelectric conversion circuit, a signal gating circuit, and a threshold comparison branch corresponding to each of the forward and reverse optical paths, which are respectively connected to each receiver. The signal gating circuit is used to connect the output of the photoelectric conversion circuit of the corresponding receiver to the threshold comparison branch corresponding to the current detection optical path according to the currently selected transmitter. Each threshold comparison branch includes a comparator and an independently configured calibration resistor network. The calibration resistor network is used to set a preset threshold based on the detection signals of the corresponding detection optical path in the liquid-free calibration state and the liquid-containing calibration state. The output polarity of each threshold comparison branch is unified so that each branch represents the presence of liquid with the same first logic level and the absence of liquid with the same second logic level.

6. The photoelectric liquid level sensor with bidirectional cross-redundancy detection according to claim 5, characterized in that, The determination unit also includes a consistency comparison circuit and an output hold circuit; The consistency comparison circuit includes an AND gate, an inverter, an XOR gate, and an OR gate. The AND gate and the inverter are used to form a set condition where all liquid level determination results are liquid and a reset condition where all liquid level determination results are no liquid, respectively. The XOR gate is used to compare one liquid level determination result with the other liquid level determination results, and the OR gate is used to summarize the comparison results to generate a conflict signal when at least two liquid level determination results are different. The determination unit is also equipped with a data acquisition completion flag. The output holding circuit updates its stored liquid level output only when all liquid level determination results in this round have been obtained and either the set condition or the reset condition is met.

7. A bidirectional cross-redundancy detection method, employing a photoelectric liquid level sensor with bidirectional cross-redundancy detection as described in any one of claims 1-6, characterized in that, Includes the following steps: Step S1: When the commutation drive section selects the transmitter, the transmitters of the first sensing arm and the second sensing arm emit light mutually repulsively. Each time the transmitter is selected, the detection signal of the currently selected transmitter is obtained through the corresponding receiver according to the device pairing relationship of the first straight optical path group, the second straight optical path group and each oblique optical path group. Step S2: The judgment unit compares the acquired detection signals with the corresponding preset thresholds to obtain the liquid level judgment result of the corresponding optical path, indicating whether there is liquid or not. Step S3: After obtaining the liquid level determination results of all forward and reverse optical paths of the first direct optical path group, the second direct optical path group, and each oblique optical path group in this round of detection, a consistency comparison is performed on all the liquid level determination results obtained in this round of detection. When all liquid level determination results are liquid present, the liquid level output is updated to a liquid present signal. When all liquid level determination results are liquid absent, the liquid level output is updated to a liquid absent signal. When the liquid level determination results are not all the same, updating the liquid level output is prohibited, and the liquid level output before the update is maintained.

8. The bidirectional cross-redundancy detection method according to claim 7, characterized in that, The photoelectric liquid level sensor is provided with a set of oblique optical path groups. The first sensing arm is provided with a first transmitter EA1 and a first receiver RA1 at a first position, and a second transmitter EA2 and a second receiver RA2 at a second position. The second sensing arm is provided with a third transmitter EB1 and a third receiver RB1 at a first position, and a fourth transmitter EB2 and a fourth receiver RB2 at a second position. Steps S1 and S2 are executed in the following gated order: Select only EA1, obtain the detection signal of the forward optical path of the first direct optical path group through RB1, and obtain the corresponding liquid level determination result; By selecting only EA2, the detection signal of the forward optical path of the second direct optical path group is obtained through RB2, and the detection signal of the forward optical path of the oblique optical path group is obtained through RB1, so as to obtain the corresponding liquid level determination results respectively. By selecting only EB1, the detection signal of the reverse optical path of the first direct optical path group is obtained through RA1, and the detection signal of the reverse optical path of the oblique optical path group is obtained through RA2, respectively, and the corresponding liquid level determination results are obtained. Select only EB2, obtain the detection signal of the reverse optical path of the second through optical path group through RA2, and obtain the corresponding liquid level determination result.

9. The bidirectional cross-redundancy detection method according to claim 7, characterized in that, Step S2 includes: The received optical signal is converted into an electrical signal by a photoelectric conversion circuit connected to the receiver. Based on the currently selected transmitter, the electrical signal is connected to the threshold comparison branch corresponding to the current detection optical path through the signal gating circuit; The electrical signal is compared with the preset threshold corresponding to the branch by the comparator in the threshold comparison branch, and the output polarity of each threshold comparison branch is unified so that each branch represents the presence of liquid with the same first logic level and the absence of liquid with the same second logic level. The preset thresholds are set by the calibration resistor network of the corresponding branch, based on the detection signals obtained by the corresponding detection optical path in the liquid-free calibration state and the liquid-containing calibration state.

10. The bidirectional cross-redundancy detection method according to claim 7, characterized in that, Each of the forward and reverse optical paths is assigned a corresponding acquisition completion flag. At the start of each round of detection, each acquisition completion flag is reset. Each time a liquid level determination result is obtained, the liquid level determination result is saved and the acquisition completion flag of the corresponding optical path is set. When all acquisition completion flags are set, it is confirmed that all liquid level determination results of this round of detection have been obtained, and then consistency comparison and liquid level output update are performed; when at least one acquisition completion flag is not set, liquid level output update is prohibited, and liquid level determination results saved from the previous round of detection are not used to supplement the liquid level determination results that have not yet been obtained in this round.