Bubble sensor calibration method, device, equipment and medium
By automating the control of switching devices and detection processes, efficient and reliable calibration of the bubble sensor is achieved, solving the problems of low calibration efficiency and poor consistency in the existing technology, and ensuring the detection accuracy in gas-liquid states.
Patent Information
- Application Number
- CN202511242574.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-09-02
AI Technical Summary
The existing bubble sensor calibration technology has low efficiency and poor consistency, making it difficult to adapt to large-scale production, and lacks an automated calibration solution for both full liquid and full gas states.
By controlling the switching device to connect the test pipeline to the gas supply source and the liquid supply source in turn, the detection value of the bubble sensor in different states is obtained, and the detection signal strength is automatically adjusted to achieve calibration. Combined with the pressure stabilization mechanism and automatic control, human operation errors are eliminated.
The calibration efficiency and consistency of the bubble sensor are improved, the reliability and repeatability of the test results are ensured, and the automation and standardization of the calibration process are achieved.
Smart Images

Figure CN120742446A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device calibration technology, and in particular to a method, device, equipment and medium for calibrating a bubble sensor. Background Art
[0002] In the medical, electronics, and other fields, air bubble detectors (ABDs) are used to detect bubbles in liquid circuits, ensuring the sealing and safety of equipment, and are a key quality control tool. Their core relies on optocouplers to identify differences in gas-liquid signals. However, individual differences in optocouplers and deviations in the assembly process can lead to inconsistent gas-liquid detection thresholds for different bubble sensors, necessitating precise calibration. However, the relevant technology lacks automated calibration solutions for bubble sensors in both full-liquid and full-gas states. Current calibration solutions suffer from low calibration efficiency, poor consistency, and difficulty adapting to large-scale production. Summary of the Invention
[0003] The purpose of this application is to provide a bubble sensor calibration method, device, equipment and medium, which can improve the calibration efficiency and consistency of the bubble sensor and ensure the reliability of the detection results.
[0004] The present invention provides a method for calibrating a bubble sensor, including: In response to a received calibration instruction, controlling the switching device to connect the test pipeline to the gas supply source and the liquid supply source in sequence; the switching device connects the test pipeline, the gas supply source, and the liquid supply source, the gas supply source is used to provide gas during calibration, and the liquid supply source is used to provide liquid during calibration; Obtaining a detection value obtained by the bubble sensor to be calibrated detecting bubbles in the test pipeline; The bubble sensor is calibrated according to a detection value of the bubble sensor when the test pipeline is connected to the air supply source and a detection value of the bubble sensor when the test pipeline is connected to the liquid supply source.
[0005] In some embodiments, the control switching device enables the bubble sensor to be calibrated to be connected to the air supply source and the liquid supply source in sequence, including: The switching device is controlled to connect the test line to the liquid supply source until the test line is filled with liquid. After the test line is emptied of liquid, the switching device is controlled to connect the test line to the air supply source until the air pressure value in the test line reaches a preset air pressure threshold.
[0006] In some embodiments, calibrating the bubble sensor according to a detection value of the bubble sensor when the test line is connected to the gas supply source and a detection value of the bubble sensor when the test line is connected to the liquid supply source includes: determining a detection deviation between a full liquid detection value and a full gas detection value; the full liquid detection value being a detection value obtained by the bubble sensor when the test line is full of liquid, and the full gas detection value being a detection value obtained by the bubble sensor when the air pressure in the test line reaches a preset air pressure threshold; Determining whether the detection deviation value is less than a reference deviation value; If it is less than, configuring the transmitting tube of the bubble sensor to generate a signal strength of the detection signal in a direction such that the detection deviation value approaches the reference deviation value; and returning to the step of determining the detection deviation value between the full liquid detection value and the full gas detection value; If not, the full liquid detection value and the full gas detection value are stored in a storage unit of the bubble sensor.
[0007] In some embodiments, the bubble sensor calibration method further includes: When the detection deviation value is not less than the reference deviation value, determine whether the full liquid detection value and the full gas detection value both meet the corresponding detection value passing conditions; if not, return to the step of determining the detection deviation value between the full liquid detection value and the full gas detection value.
[0008] In some embodiments, the transmitting tube configured to detect the signal strength of the bubble sensor includes: The duty cycle of the control signal is configured step by step, and the configured control signal is used to control the transmitting tube of the bubble sensor to generate a detection signal with a corresponding signal strength.
[0009] In some embodiments, the bubble sensor calibration method further includes: After the bubble sensor is calibrated, the calibration result of the bubble sensor is displayed, and in response to a received upload instruction, the calibration result is uploaded to a database.
[0010] The present application also provides a bubble sensor calibration device, including: Test pipeline; A gas supply source, used to provide gas during calibration; A liquid supply source, used for providing liquid during calibration; a switching device, connecting the test pipeline, the gas supply source, and the liquid supply source, and enabling the test pipeline to be connected to the gas supply source or the test pipeline to be connected to the liquid supply source; The controller is used to control the switching device in response to the received calibration instruction to connect the test pipeline to the air supply source and the liquid supply source in sequence, obtain the detection value obtained by the bubble sensor to be calibrated when detecting bubbles in the test pipeline, and calibrate the bubble sensor according to the detection value of the bubble sensor when the test pipeline is connected to the air supply source and the detection value when the test pipeline is connected to the liquid supply source.
[0011] In some embodiments, an air source switch and a pressure regulating device are further provided on the pipeline between the air supply source and the switching device, and a diaphragm pump is further provided on the pipeline between the liquid supply source and the switching device. When the test pipeline is connected to the liquid supply source through the switching device, a loop is formed between the liquid supply source, the diaphragm pump and the switching device.
[0012] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned bubble sensor calibration method when executing the computer program.
[0013] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned bubble sensor calibration method is implemented.
[0014] The beneficial effects of this application are as follows: by driving the switching device to connect the test line to the gas supply source and the liquid supply source in turn, the bubble sensor is automatically calibrated based on the detection value of the bubble sensor when the test line is connected to the gas supply source and the detection value when the test line is connected to the liquid supply source, so that the calibrated bubble sensor is in the normal working range. Thus, by automating the control of the switching device and the detection process, human operation errors are eliminated, ensuring that each calibration is carried out under the same gas-liquid filling conditions, which can improve the calibration efficiency and consistency of the bubble sensor and ensure the reliability of the test results. At the same time, the completion status of the test line filling is automatically determined through feedback from the bubble sensor, which significantly improves the consistency and repeatability of the calibration process. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a diagram of the application environment of the bubble sensor calibration method provided in an embodiment of the present application.
[0016] Figure 2 This is a flow chart of the bubble sensor calibration method provided in an embodiment of the present application.
[0017] Figure 3 It is a flowchart of the specific method of step S203 provided in an embodiment of the present application.
[0018] Figure 4It is a structural schematic diagram of the bubble sensor calibration device provided in the first embodiment of the present application.
[0019] Figure 5 It is a structural diagram of the bubble sensor calibration device provided in the second embodiment of the present application.
[0020] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0022] It should be noted that although the device schematics illustrate functional module divisions and the flowcharts illustrate logical sequences, in certain circumstances, the steps illustrated may be performed in a sequence that differs from the module divisions in the device or the sequence in the flowcharts. Terms such as "first" and "second" in the specification, claims, and drawings are used to distinguish similar items and are not intended to describe a specific sequence or precedence.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0024] The bubble sensor calibration method provided in the embodiment of the present application can be executed by a computer device, which can be a terminal device or a server. Among them, the terminal device includes but is not limited to mobile phones, computers, smart home appliances, vehicle-mounted terminals, aircraft, etc. The server can be an independent physical server, or a server cluster composed of multiple physical servers, or a distributed system, or a cloud server. In addition, the information, data and signals involved in the embodiment of the present application are all authorized by the relevant objects or fully authorized by all parties, and the collection, use and processing of relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0025] Figure 1 This is a diagram of the application environment of the bubble sensor calibration method provided in the embodiment of the present application. Figure 1The bubble sensor calibration method is applied to a bubble sensor calibration system. The bubble sensor calibration system includes a terminal 110 and a host computer 120. The terminal 110 and the host computer 120 are connected via a serial port. The terminal 110 can be a desktop terminal or a mobile terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The host computer 120 is used to send a calibration instruction to the terminal 110. The terminal 110 is used to respond to the received calibration instruction, control the switching device to connect the test pipeline to the gas supply source and the liquid supply source in turn, obtain the detection value obtained by the bubble sensor to be calibrated when detecting bubbles in the test pipeline, and calibrate the bubble sensor according to the detection value of the bubble sensor when the test pipeline is connected to the gas supply source and the detection value when the test pipeline is connected to the liquid supply source. The switching device connects the test pipeline, the gas supply source and the liquid supply source. The gas supply source is used to provide gas during calibration, and the liquid supply source is used to provide liquid during calibration.
[0026] To facilitate understanding of the bubble sensor calibration method provided in the embodiment of the present application, the application scenario of the bubble sensor calibration method is exemplarily introduced below, taking the execution subject as the terminal 110 as an example.
[0027] Figure 2 This is a flow chart of the bubble sensor calibration method provided by the embodiment of the present application. Figure 2 In some embodiments, the method includes but is not limited to steps S201 to S203.
[0028] Step S201 , in response to a received calibration instruction, controlling a switching device to connect a test pipeline to an air supply source and a liquid supply source in sequence.
[0029] The switching device connects the test pipeline, the gas supply source and the liquid supply source. The gas supply source is used to provide gas during calibration, and the liquid supply source is used to provide liquid during calibration.
[0030] It can be understood that a switching device refers to an actuator used to change the connection path of the test pipeline. Specifically, it can be implemented as a three-way solenoid valve or rotary valve. Its function is to control the connection between the pipeline and the gas supply or liquid supply source through an electrical signal. The gas supply source is a gas supply device that provides a stable air pressure, such as a compressed air tank or air pump system. Its function is to provide a liquid-free pure gas environment for the test pipeline. The liquid supply source is a container for storing calibration liquid, such as a liquid storage tank or peristaltic pump system. Its function is to provide a bubble-free pure liquid environment for the test pipeline.
[0031] As some examples, when the execution entity receives a calibration instruction, it first activates a switching device to switch the test line to the liquid supply path, completely filling the test line with liquid. It then controls the bubble sensor to detect bubbles in the test line. It then controls the device that closed the test line to open and drain the liquid from the test line. It then activates a switching device to switch the test line to the gas supply path, which drains the liquid from the test line and establishes a stable air pressure. It then controls the bubble sensor to detect bubbles in the test line again.
[0032] Step S202: obtaining a detection value obtained by the bubble sensor to be calibrated by detecting bubbles in the test pipeline.
[0033] The detection value refers to the electrical signal output by the bubble sensor, such as the voltage or current value caused by changes in light intensity. By comparing the signal difference between pure gas and pure liquid states, the sensitivity benchmark of the bubble sensor can be determined.
[0034] As some examples, when the test line is completely filled with liquid and when the gas empties the liquid in the test line and establishes a stable air pressure, the execution entity obtains the current detection value of the bubble sensor, and obtains the detection value when the test line is connected to the air supply source and the detection value when the test line is connected to the liquid supply source.
[0035] Step S203 , calibrating the bubble sensor according to the detection value of the bubble sensor when the test pipeline is connected to the air supply source and the detection value of the bubble sensor when the test pipeline is connected to the liquid supply source.
[0036] As some examples, the executing entity determines whether the signal strength of the detection signal of the bubble sensor is within the normal working range based on the deviation between the detection value of the bubble sensor when the test pipeline is connected to the air supply source and the detection value when the test pipeline is connected to the liquid supply source. If not, the signal strength of the detection signal of the bubble sensor is adjusted until the signal strength of the detection signal is within the normal working range.
[0037] In practical application, after the user secures the bubble sensor to be calibrated in the desired position, they interact with the host computer and issue a calibration command to the execution entity. Upon receiving the calibration command, the execution entity first activates a switching device to switch the test line to the liquid supply path, allowing the liquid to completely fill the test line and eliminate bubble interference. Once the test line is filled with liquid, the bubble sensor collects and stores the full-liquid detection value. The switching device then switches to the gas supply path, which evacuates the liquid from the test line and establishes a stable pressure. The bubble sensor then collects the corresponding detection value again. By calculating the deviation range between the two detection values, it can be determined whether the bubble sensor is within its normal operating range. If the deviation exceeds the deviation range, the execution entity automatically adjusts the signal strength of the bubble sensor's detection signal until the deviation range between the two detection values meets the calibration requirements. Finally, the corresponding detection value is written to the bubble sensor's storage unit, completing the calibration of the bubble sensor. This automated control of the switching device and the detection process eliminates human error, ensures that each calibration is performed under the same gas-liquid filling conditions, and improves the efficiency and consistency of bubble sensor calibration, thereby ensuring the reliability of the test results. At the same time, the filling completion status of the test pipeline is automatically determined through feedback from the bubble sensor, which significantly improves the consistency and repeatability of the calibration process.
[0038] In some embodiments, the switching device is controlled to connect the bubble sensor to be calibrated to the gas supply source and the liquid supply source in sequence, including: controlling the switching device to connect the test line to the liquid supply source until the test line is filled with liquid; after the test line is emptied of liquid, controlling the switching device to connect the test line to the gas supply source until the air pressure value in the test line reaches a preset air pressure threshold.
[0039] The preset pressure threshold refers to the stable pressure value that the gas must reach after entering the test pipeline. It can be achieved by using a pressure sensor combined with closed-loop control adjustment. Its function is to eliminate the interference of pressure fluctuations on the detection signal by stabilizing the gas pressure.
[0040] During the calibration process, the switching device is first controlled to connect the test pipeline to the liquid supply source, and liquid is continuously injected until there is no residual gas in the pipeline. At this time, the bubble sensor is in a full liquid detection state. After the liquid filling is completed, the pipeline is emptied by draining the liquid, and then the switching device is switched to the gas supply source. Gas is continuously input into the pipeline until the pressure sensor detects that the pressure reaches the preset air pressure threshold. At this time, a stable full-gas environment is formed in the test pipeline. By controlling the medium switching sequence in stages and setting the pressure stabilization conditions, the gas-liquid state boundary is ensured to be clear during the calibration process, and detection errors caused by residual medium mixing are avoided. Therefore, through automated sequential control and pressure threshold monitoring, the gas-liquid switching process is standardized, and differences in human operations are eliminated. At the same time, the consistency of the detection environment is ensured through the pressure stabilization mechanism.
[0041] See Figure 3 In some embodiments, step S203 may specifically include but is not limited to steps S301 to S304. Figure 3 These four steps are introduced in detail.
[0042] Step S301 : determining a detection deviation value between a full liquid detection value and a full gas detection value.
[0043] The full liquid detection value is the value obtained by the bubble sensor when the test line is completely filled with liquid. It can be understood that the full liquid detection value refers to the detection signal output by the bubble sensor when the test line is completely filled with liquid. Specifically, it can be achieved by collecting the signal in a stable state after the test line is completely filled with liquid, and is used to establish a baseline reference value in a liquid environment.
[0044] The full-gas detection value is the value detected by the bubble sensor when the air pressure in the test line reaches a preset pressure threshold. It can be understood that the full-gas detection value refers to the detection signal output by the bubble sensor when the test line is completely filled with gas. This can be achieved by collecting the signal in a stable state after the gas pressure reaches the preset threshold, which is used to establish a baseline reference value for the gas environment.
[0045] Step S302: determine whether the detection deviation value is smaller than the reference deviation value.
[0046] If it is less than, execute step S303; if it is not less than, execute step S304.
[0047] The detection deviation value is the difference between the full liquid detection value and the full gas detection value. This can be calculated by calculating the absolute or relative difference between the two values, and is used to evaluate the sensor's ability to distinguish between gas and liquid phases. The baseline deviation value is a preset allowable deviation range, which can be determined based on experimental data or sensor performance indicators and is used to determine whether the calibration is qualified.
[0048] Step S303: Arrange the emission tube of the bubble sensor to generate the signal strength of the detection signal in a direction such that the detection deviation value approaches the reference deviation value. Return to step S301.
[0049] Step S304: storing the full liquid detection value and the full gas detection value in a storage unit of the bubble sensor.
[0050] When the test line is connected to the liquid supply source, liquid is injected into the test line until it is completely filled. At this time, the output of the bubble sensor is collected as the full liquid detection value. Subsequently, the liquid is emptied and the gas supply source is connected. After the air pressure in the test line reaches the preset threshold, the output is collected as the full gas detection value. By calculating the detection deviation value between the two, if the detection deviation value is less than the reference deviation value, it indicates that the sensor sensitivity is insufficient, and it is necessary to gradually increase the detection signal difference by adjusting the signal strength of the detection signal of the bubble sensor's transmitting tube, such as increasing the duty cycle in a fixed step, and re-execute the detection process. If the reference deviation value reaches or exceeds the reference deviation value, the current full liquid detection value and the current full gas detection value are stored as calibration parameters in the storage unit of the bubble sensor to complete the calibration. Thus, by automatically collecting the gas-liquid two-phase reference value and dynamically adjusting the signal strength, closed-loop control of the calibration process is achieved, avoiding errors caused by manual intervention.
[0051] In some embodiments, the bubble sensor calibration method further includes: when the detection deviation value is not less than the reference deviation value, determining whether the full liquid detection value and the full gas detection value both meet the corresponding detection value passing conditions; if not, returning to the step of determining the detection deviation value between the full liquid detection value and the full gas detection value.
[0052] It can be understood that the detection value passing condition refers to the pre-set effective range of the detection value. For example, the full liquid detection value needs to be in the theoretical response range of the liquid state, and the full gas detection value needs to be in the theoretical response range of the gas state. This condition can be determined through experimental data statistics or sensor performance indicators, and is used to eliminate abnormal detection data caused by pipeline blockage or sensor failure.
[0053] Specifically, if the detection deviation value does not reach the baseline deviation value, it indicates that the bubble sensor's sensitivity to gas-liquid two-phase states is insufficient. Further verification of the full liquid and full gas detection values is required. For example, if the full liquid detection value exceeds the theoretical response range for liquid states, it may be due to residual bubbles in the pipeline, causing the liquid to be incompletely filled. If the full gas detection value does not reach the theoretical response threshold for gas states, it may be due to insufficient gas supply pressure or a pipeline leak. If the full liquid detection value or the full gas detection value does not meet the conditions, the calibration process will automatically return to reconnect the pipeline and obtain new test data, preventing invalid calibration results from being stored. This process can be implemented using the controller's built-in state verification module, for example, by logically comparing the full liquid detection value and the full gas detection value against preset thresholds, triggering a loop execution mechanism. This adds a step to determine whether the detection value passes the condition, forming a closed-loop verification mechanism that can automatically identify and eliminate calibration errors caused by environmental interference or equipment anomalies, reducing the need for manual intervention.
[0054] In some embodiments, configuring the emission tube of the bubble sensor to generate a detection signal strength includes: stepwise configuring the duty cycle of the control signal, and using the configured control signal to control the emission tube of the bubble sensor to generate a detection signal of corresponding signal strength.
[0055] It can be understood that the duty cycle of the step-by-step configuration control signal refers to gradually adjusting the duty cycle parameters of the control signal at fixed intervals. Specifically, this can be achieved by using a microcontroller to output pulse width modulation signals with different duty cycles. For example, each time the duty cycle is adjusted, it is increased or decreased in steps of 5%. The signal strength is optimized through step-by-step approximation to avoid instability of the detection signal due to sudden changes in the duty cycle.
[0056] When the detection deviation value is less than the reference deviation value, the duty cycle of the control signal output by the execution body is gradually adjusted, for example, increasing or decreasing at a fixed step size from the initial value. After each adjustment, the full liquid and full gas detection values are remeasured and the new detection deviation value is calculated. If the adjusted detection deviation value approaches the reference deviation value, the duty cycle continues to be adjusted in the current direction. If the detection deviation value no longer decreases, the adjustment is stopped and the signal strength corresponding to the current duty cycle is used as the optimal configuration. This process is achieved through automated control without the need for manual intervention. Thus, through the step-by-step duty cycle adjustment, the signal strength of the detection signal of the bubble sensor is finely controlled, and it can dynamically adapt to transmitting tubes of different batches or individual differences, ensuring the efficiency and stability of the calibration process.
[0057] In some embodiments, the bubble sensor calibration method further includes: after calibrating the bubble sensor, displaying the calibration result of the bubble sensor, and uploading the calibration result to a database in response to a received upload instruction.
[0058] It can be understood that the calibration result refers to the sensor calibration parameter calculated through the full liquid detection value and the full gas detection value, which can be presented in the form of a numerical value, a status mark or an error range to reflect the accuracy of the sensor detection performance.
[0059] When the calibration process is completed, the calibration results are automatically generated and stored in the local memory. At this time, the display screen shows the status information of the calibration results in real time, such as "calibration successful" or "calibration failed", and displays the specific detection deviation value or calibration parameter. The user can trigger the upload instruction through the human-computer interaction interface of the execution entity, and the execution entity will then transmit the calibration results to the cloud database or local server through the built-in communication module. After receiving the data, the database is classified and stored according to information such as timestamp and equipment number, which is convenient for subsequent quality traceability, production batch analysis or equipment maintenance decision-making. Therefore, through the automated display and upload mechanism, the inefficiency caused by manual intervention is avoided, and a digital management link for calibration data is established to ensure data traceability and integrity.
[0060] See Figure 4 The present application also provides a bubble sensor calibration device that can implement the above-mentioned bubble sensor calibration method. The device includes: Test pipeline 1; Gas supply source 2, used to provide gas during calibration; A liquid supply source 3, used for providing liquid during calibration; The switching device 4 connects the test pipeline 1, the gas supply source 2 and the liquid supply source 3, and can connect the test pipeline 1 to the gas supply source 2 or connect the test pipeline 1 to the liquid supply source 3; The controller 5 is used to respond to the received calibration instruction, control the switching device 4 to connect the test pipeline 1 to the air supply source 2 and the liquid supply source 3 in sequence, obtain the detection value obtained by the bubble sensor to be calibrated when detecting bubbles in the test pipeline 1, and calibrate the bubble sensor according to the detection value of the bubble sensor when the test pipeline 1 is connected to the air supply source 2 and the detection value when the test pipeline 1 is connected to the liquid supply source 3.
[0061] When the controller 5 receives a calibration command from an external input, it first controls the switching device 4 to connect the test line 1 with the liquid supply 3, filling the test line 1 with liquid to simulate a full-liquid state. The bubble sensor then acquires a full-liquid detection value. The controller 5 then controls the switching device 4 to disconnect the liquid supply 3 and connect the gas supply 2, injecting gas into the test line 1 until the preset pressure threshold is reached, creating a full-gas state. The bubble sensor then acquires a full-gas detection value. The controller 5 compares and analyzes the full-liquid detection value with the full-gas detection value, calculating the deviation between the full-liquid and full-gas detection values to determine whether the sensor sensitivity meets the required standards. If the deviation exceeds the allowable range, the controller 5 dynamically adjusts the bubble sensor's signal emission strength or triggers a recalibration process until calibration parameters meet the preset conditions. Thus, by integrating the gas supply 2, liquid supply 3, and automatic switching device 4, a closed-loop control system is constructed, enabling automatic switching between gas and liquid states and real-time processing of detection data, avoiding errors caused by manual intervention. Furthermore, the compact piping design reduces the risk of liquid residue or gas leakage during the calibration process.
[0062] See Figure 5 In some embodiments, an air source switch 6 and a pressure regulating device 7 are further provided on the pipeline between the air supply source 2 and the switching device 4, and a diaphragm pump 8 is further provided on the pipeline between the liquid supply source 3 and the switching device 4. When the test pipeline 1 is connected to the liquid supply source 3 through the switching device 4, a loop is formed between the liquid supply source 3, the diaphragm pump 8 and the switching device 4.
[0063] It will be understood that the gas source switch 6 is a valve used to control the flow of gas, specifically a solenoid valve or manual valve. Its function is to precisely control the timing of gas entering the test pipeline 1 to prevent gas leakage from interfering with the calibration process. The pressure regulating device 7 is a device used to regulate gas pressure, specifically a proportional valve or a pressure reducing valve. Its function is to maintain the stability of the gas pressure output by the gas supply source 2 to ensure the accuracy of the full gas state detection value.
[0064] When the test pipeline 1 needs to be connected to the liquid supply source 3, the diaphragm pump 8 starts and pushes the liquid out of the liquid supply source 3, passes through the switching device 4 and enters the test pipeline 1, and then the liquid flows back to the liquid supply source 3 through the loop, forming a circulating flow. This loop design can avoid the stagnation of liquid and the residual bubbles, and at the same time, flush the inner wall of the pipeline through continuous flow to ensure that the liquid fills the pipeline. When the test pipeline 1 needs to be connected to the gas supply source 2, the gas source switch 6 is turned on, and the pressure regulating device 7 adjusts the gas pressure output by the gas supply source 2 to a preset threshold value, so that a stable full-gas environment is formed in the test pipeline 1. The combined use of the gas source switch 6 and the pressure regulating device 7 can avoid the influence of gas pressure fluctuations on the test value, and reduce the frequency of manual intervention. Thus, by constructing a liquid circulation loop through the diaphragm pump 8, combined with the linkage control of the gas source switch 6 and the pressure regulating device 7, the automation of the gas-liquid switching process and the precise regulation of pressure parameters are realized, eliminating manual operation errors.
[0065] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment.
[0066] Refer to the following Figure 6 hereinafter, an electronic device 600 according to this embodiment of the present disclosure is described. Figure 6 The electronic device 600 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0067] like Figure 6 As shown, electronic device 600 is implemented as a general-purpose computing device. Components of electronic device 600 may include, but are not limited to, at least one processing unit 610, at least one storage unit 620, a bus 630 connecting various system components (including storage unit 620 and processing unit 610), a display unit 640, and the like.
[0068] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present disclosure described in the above bubble sensor calibration method section of this specification.
[0069] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0070] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0071] Bus 630 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0072] The electronic device 600 can also communicate with one or more external devices 600' (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication can occur via an input / output (I / O) interface 650. Furthermore, the electronic device 600 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 660. The network adapter 660 can communicate with other modules of the electronic device 600 via the bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the electronic device 600, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0073] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned bubble sensor calibration method is implemented.
[0074] The bubble sensor calibration method, device, equipment, and medium provided in the embodiments of the present application, by driving a switching device to connect the test line to the gas supply source and the liquid supply source in turn, automatically calibrates the bubble sensor based on the detection value of the bubble sensor when the test line is connected to the gas supply source and the detection value when the test line is connected to the liquid supply source, so that the calibrated bubble sensor is in a normal working range. Thus, by automatically controlling the switching device and the detection process, human operation errors are eliminated, ensuring that each calibration is performed under the same gas-liquid filling conditions, and improving the calibration efficiency and consistency of the bubble sensor, and ensuring the reliability of the test results. At the same time, the completion status of the test line filling is automatically determined through feedback from the bubble sensor, which significantly improves the consistency and repeatability of the calibration process.
[0075] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above-mentioned method according to the embodiments of the present disclosure.
[0076] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0077] Computer-readable storage media may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0078] Those skilled in the art will appreciate that the modules described above can be distributed in the device according to the description of the embodiment, or can be modified accordingly to be used in one or more devices that are different from the embodiment. The modules of the above embodiment can be combined into one module or further divided into multiple submodules.
[0079] While the exemplary embodiments of the present disclosure have been specifically illustrated and described above, it should be understood that the present disclosure is not limited to the detailed structures, configurations, or implementations described herein; rather, the present disclosure is intended to encompass various modifications and equivalent configurations within the spirit and scope of the appended claims.
Claims
1. A bubble sensor calibration method, characterized in that: include: In response to the received calibration instruction, the switching device is controlled to connect the test pipeline to the gas supply source and the liquid supply source in sequence; The switching device connects the test pipeline, the gas supply source and the liquid supply source, the gas supply source is used to provide gas during calibration, and the liquid supply source is used to provide liquid during calibration; Obtaining a detection value obtained by the bubble sensor to be calibrated detecting bubbles in the test pipeline; The bubble sensor is calibrated according to a detection value of the bubble sensor when the test pipeline is connected to the air supply source and a detection value of the bubble sensor when the test pipeline is connected to the liquid supply source.
2. The bubble sensor calibration method according to claim 1, characterized in that: The control switching device enables the bubble sensor to be calibrated to be connected to the air supply source and the liquid supply source in sequence, including: The switching device is controlled to connect the test line to the liquid supply source until the test line is filled with liquid. After the test line is emptied of liquid, the switching device is controlled to connect the test line to the air supply source until the air pressure value in the test line reaches a preset air pressure threshold.
3. The bubble sensor calibration method according to claim 1, characterized in that: The calibrating the bubble sensor according to the detection value of the bubble sensor when the test pipeline is connected to the gas supply source and the detection value when the test pipeline is connected to the liquid supply source includes: determining a detection deviation between a full liquid detection value and a full gas detection value; the full liquid detection value being a detection value obtained by the bubble sensor when the test line is full of liquid, and the full gas detection value being a detection value obtained by the bubble sensor when the air pressure in the test line reaches a preset air pressure threshold; Determining whether the detection deviation value is less than a reference deviation value; If it is less than, configuring the transmitting tube of the bubble sensor to generate a signal strength of the detection signal in a direction such that the detection deviation value approaches the reference deviation value; and returning to the step of determining the detection deviation value between the full liquid detection value and the full gas detection value; If not, the full liquid detection value and the full gas detection value are stored in a storage unit of the bubble sensor.
4. The bubble sensor calibration method according to claim 3, characterized in that: Also includes: When the detection deviation value is not less than the reference deviation value, determine whether the full liquid detection value and the full gas detection value both meet the corresponding detection value passing conditions; if not, return to the step of determining the detection deviation value between the full liquid detection value and the full gas detection value.
5. The bubble sensor calibration method according to claim 3, characterized in that: The transmitting tube configured to detect the signal strength of the bubble sensor includes: The duty cycle of the control signal is configured step by step, and the configured control signal is used to control the transmitting tube of the bubble sensor to generate a detection signal with a corresponding signal strength.
6. The air bubble sensor calibration method according to claim 1, characterized in that: Also includes: After the bubble sensor is calibrated, the calibration result of the bubble sensor is displayed, and in response to a received upload instruction, the calibration result is uploaded to a database.
7. A bubble sensor calibration device, characterized in that: include: Test pipeline; A gas supply source, used to provide gas during calibration; A liquid supply source, used for providing liquid during calibration; a switching device, connecting the test pipeline, the gas supply source, and the liquid supply source, and enabling the test pipeline to be connected to the gas supply source or the test pipeline to be connected to the liquid supply source; The controller is used to control the switching device in response to the received calibration instruction to connect the test pipeline to the air supply source and the liquid supply source in sequence, obtain the detection value obtained by the bubble sensor to be calibrated when detecting bubbles in the test pipeline, and calibrate the bubble sensor according to the detection value of the bubble sensor when the test pipeline is connected to the air supply source and the detection value when the test pipeline is connected to the liquid supply source.
8. The bubble sensor calibration device according to claim 7, characterized in that: An air source switch and a pressure regulating device are also provided on the pipeline between the air supply source and the switching device, and a diaphragm pump is also provided on the pipeline between the liquid supply source and the switching device. When the test pipeline is connected to the liquid supply source through the switching device, a loop is formed between the liquid supply source, the diaphragm pump and the switching device.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the bubble sensor calibration method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the bubble sensor calibration method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Pipeline bubble monitoring method and device, storage medium and analysis equipment
CN111122817A
Infusion pump bubble sensor self-checking system and method
CN118178793A
Systems, apparatuses, and methods for testing gas sensors
EP4589294A1