Bubble sensor calibration methods, apparatus, equipment and media
By automating the switching of devices and the detection process, 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 accurate calibration of the bubble sensor in both liquid and gaseous states.
Patent Information
- Application Number
- CN202511242574.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2045-09-02
AI Technical Summary
Existing technologies for bubble sensors suffer from low calibration efficiency and poor consistency, making them difficult to adapt to large-scale production, and lack automated calibration solutions for both liquid and gaseous states.
By controlling the switching device to connect the test pipeline to the gas supply source and the liquid supply source in sequence, the detection values of the bubble sensor under different states are obtained, and the detection signal strength is automatically adjusted to achieve calibration. Combined with the pressure stabilization mechanism and automatic control, human operation error is eliminated.
This improves the calibration efficiency and consistency of bubble sensors, ensures the reliability of test results and the repeatability of the calibration process, and reduces errors caused by human intervention.
Smart Images

Figure CN120742446B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of device calibration technology, and in particular to a method, apparatus, equipment and medium for calibrating a bubble sensor. Background Technology
[0002] In fields such as medical and electronics, air bubble detectors (ABDs) are used to detect air bubbles in liquid circuits, ensuring equipment sealing and safety, 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 assembly process deviations can lead to inconsistent gas-liquid detection thresholds among different air bubble detectors, requiring precise calibration. However, there is a lack of automated calibration schemes for air bubble detectors in both fully liquid and fully gaseous states. Current calibration schemes suffer from low efficiency, poor consistency, and difficulty in adapting to large-scale production. Summary of the Invention
[0003] The purpose of this application is to provide a method, apparatus, device, and medium for calibrating a bubble sensor, which can improve the calibration efficiency and consistency of the bubble sensor and ensure the reliability of the test results.
[0004] This application provides a bubble sensor calibration method, including:
[0005] In response to a received calibration command, a switching device is controlled to connect the test pipeline to a gas supply source and a liquid supply source sequentially. 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.
[0006] Obtain the detection value obtained by the bubble sensor to be calibrated from the bubble in the test pipeline;
[0007] The bubble sensor is calibrated based on the detection values of the bubble sensor when the test pipeline is connected to the gas supply source and when the test pipeline is connected to the liquid supply source.
[0008] In some embodiments, the control switching device connects the bubble sensor to be calibrated sequentially to the gas supply source and the liquid supply source, including:
[0009] The switching device is controlled to connect the test pipeline to the liquid supply source until the test pipeline is filled with liquid. After the liquid is drained from the test pipeline, the switching device is controlled to connect the test pipeline to the air supply source until the air pressure in the test pipeline reaches a preset air pressure threshold.
[0010] In some embodiments, calibrating the bubble sensor based on 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:
[0011] Determine the detection deviation between the total liquid detection value and the total gas detection value; the total liquid detection value is the detection value obtained by the bubble sensor when the test pipeline is filled with liquid, and the total gas detection value is the detection value obtained by the bubble sensor when the gas pressure in the test pipeline reaches a preset gas pressure threshold.
[0012] Determine whether the detected deviation value is less than the reference deviation value;
[0013] If it is less than the reference deviation value, adjust the signal strength of the detection signal generated by the emitter tube of the bubble sensor in the direction that makes the detection deviation value approach the reference deviation value; return to the step of determining the detection deviation value between the total liquid detection value and the total gas detection value;
[0014] If the value is not less than the specified value, the total liquid detection value and the total gas detection value are stored in the storage unit of the bubble sensor.
[0015] In some embodiments, the bubble sensor calibration method further includes:
[0016] When the detection deviation value is not less than the reference deviation value, determine whether the total liquid detection value and the total gas detection value both meet the corresponding detection value passing conditions. If they do not meet the conditions, return to the step of determining the detection deviation value between the total liquid detection value and the total gas detection value.
[0017] In some embodiments, the signal strength of the detection signal generated by the transmitter of the bubble sensor includes:
[0018] The duty cycle of the step-by-step configuration control signal is used to control the emitter of the bubble sensor to generate a detection signal of corresponding signal strength.
[0019] In some embodiments, the bubble sensor calibration method further includes:
[0020] After calibrating the bubble sensor, the calibration result of the bubble sensor is displayed, and in response to the received upload command, the calibration result is uploaded to the database.
[0021] This application embodiment also provides a bubble sensor calibration device, including:
[0022] Test piping;
[0023] Gas supply source, used to provide gas at calibration time;
[0024] A liquid supply source, used to provide liquid during calibration;
[0025] By switching the device and connecting the test pipeline, the gas supply source, and the liquid supply source, the test pipeline can be connected to the gas supply source or the test pipeline can be connected to the liquid supply source.
[0026] The controller is configured to respond to a received calibration command by controlling the switching device to connect the test pipeline to the gas supply source and the liquid supply source sequentially, acquire the detection value obtained by the bubble sensor to be calibrated from the bubbles in the test pipeline, and calibrate the bubble sensor based on 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.
[0027] In some embodiments, a gas source switch and a pressure regulating device are further provided on the pipeline between the gas 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.
[0028] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described bubble sensor calibration method.
[0029] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described bubble sensor calibration method.
[0030] The beneficial effects of this application are as follows: By driving the switching device to connect the test pipeline to the gas supply source and the liquid supply source sequentially, and based on the detection values of the bubble sensor when the test pipeline is connected to the gas supply source and when it is connected to the liquid supply source, the bubble sensor is automatically calibrated, ensuring that the calibrated bubble sensor is within its normal operating range. Therefore, by automating the switching device and the testing process, human error is eliminated, ensuring that each calibration is performed under the same gas-liquid filling conditions, which improves the calibration efficiency and consistency of the bubble sensor and guarantees the reliability of the test results. Simultaneously, the automatic determination of the test pipeline filling completion status through bubble sensor feedback significantly improves the consistency and repeatability of the calibration process. Attached Figure Description
[0031] Figure 1 This diagram illustrates the application environment of the bubble sensor calibration method provided in the embodiments of this application.
[0032] Figure 2 This is a flowchart of the bubble sensor calibration method provided in the embodiments of this application.
[0033] Figure 3 This is a flowchart of the specific method of step S203 provided in the embodiments of this application.
[0034] Figure 4 This is a schematic diagram of the structure of the bubble sensor calibration device provided in the first embodiment of this application.
[0035] Figure 5 This is a schematic diagram of the structure of the bubble sensor calibration device provided in the second embodiment of this application.
[0036] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0038] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and drawings are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0040] The bubble sensor calibration method provided in this application can be executed by a computer device, which can be a terminal device or a server. The terminal device includes, but is not limited to, mobile phones, computers, smart home appliances, vehicle terminals, and aircraft. The server can be a standalone physical server, a server cluster consisting of multiple physical servers, a distributed system, or a cloud server. Furthermore, the information, data, and signals involved in this application's embodiments are all authorized by the relevant parties or have been fully authorized by all parties, and the collection, use, and processing of related data comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0041] Figure 1 This diagram illustrates the application environment of the bubble sensor calibration method provided in this embodiment. (See attached diagram.) Figure 1 This 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, tablet computer, or laptop computer. The host computer 120 is used to send calibration commands to the terminal 110. In response to the received calibration commands, the terminal 110 controls a switching device to connect the test pipeline to a gas supply source and a liquid supply source sequentially. It then acquires the detection values obtained by the bubble sensor detecting bubbles in the test pipeline, and calibrates the bubble sensor based on the detection values when the test pipeline is connected to the gas supply source and when it 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 provides gas during calibration, and the liquid supply source provides liquid during calibration.
[0042] To facilitate understanding of the bubble sensor calibration method provided in this application embodiment, the following example uses terminal 110 as the execution subject to illustrate the application scenario of the bubble sensor calibration method.
[0043] Figure 2 This is a flowchart of the bubble sensor calibration method provided in an embodiment of this application. (See attached document.) Figure 2 In some embodiments, the method includes, but is not limited to, steps S201 to S203.
[0044] In step S201, in response to the received calibration command, the switching device is controlled to connect the test pipeline to the gas supply source and the liquid supply source in sequence.
[0045] 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.
[0046] 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 using a three-way solenoid valve or a rotary valve. Its function is to control the connection status between the pipeline and the gas or liquid supply source via an electrical signal. The gas supply source refers to a gas supply device that provides stable gas pressure, such as a compressed air tank or air pump system, whose function is to provide a liquid-free, pure gas environment for the test pipeline. The liquid supply source refers to a container that stores the calibration liquid, such as a liquid storage tank or peristaltic pump system, whose function is to provide a bubble-free, pure liquid environment for the test pipeline.
[0047] As examples, when the executing entity receives the calibration command, it first activates the switching device to switch the test pipeline to the liquid supply path, completely filling the test pipeline with liquid. Then, it controls the bubble sensor to detect bubbles in the test pipeline. Subsequently, it controls the device that closes the test pipeline to open and drain the liquid from the test pipeline. It then activates the switching device to switch the test pipeline to the gas supply path, allowing gas to drain the liquid from the test pipeline and establish a stable gas pressure. Finally, it controls the bubble sensor to detect bubbles in the test pipeline again.
[0048] Step S202: Obtain the detection value obtained by the bubble sensor to be calibrated in the test pipeline for detecting bubbles.
[0049] The detected value refers to the electrical signal quantity output by the bubble sensor, such as the voltage or current value caused by changes in light intensity. By comparing the signal differences between pure gas and pure liquid states, the sensitivity benchmark of the bubble sensor can be determined.
[0050] As examples, when the test pipeline is completely filled with liquid and when the gas empties the liquid in the test pipeline and establishes a stable gas pressure, the execution body obtains the current detection value of the bubble sensor, thus obtaining the detection value 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.
[0051] Step S203: The bubble sensor is calibrated based on the detection values of the bubble sensor when the test pipeline is connected to the air supply source and when the test pipeline is connected to the liquid supply source.
[0052] As examples, the execution entity determines whether the signal strength of the bubble sensor's detection signal is within the normal operating range based on the deviation between 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. If it is not, the execution entity adjusts the signal strength of the bubble sensor's detection signal until the signal strength of the detection signal is within the normal operating range.
[0053] In practical applications, after fixing the bubble sensor to be calibrated in the appropriate position, the user interacts with the host computer and sends a calibration command to the execution unit. Upon receiving the calibration command, the execution unit first drives the switching device to switch the test pipeline to the liquid supply path, ensuring the test pipeline is completely filled with liquid to eliminate bubble interference. After the test pipeline is filled with liquid, the bubble sensor collects and stores the full liquid detection value. Subsequently, the switching device switches to the gas supply path, and gas empties the liquid in the test pipeline 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 unit 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 into the bubble sensor's storage unit, completing the calibration of the bubble sensor. Thus, by automating the switching device and the detection process, human error is eliminated, ensuring that each calibration is performed under the same gas-liquid filling conditions. This improves the calibration efficiency and consistency of the bubble sensor, guaranteeing the reliability of the detection results. Meanwhile, the automatic determination of the filling status of the test pipeline through feedback from the bubble sensor significantly improves the consistency and repeatability of the calibration process.
[0054] In some embodiments, controlling the switching device to connect the bubble sensor to be calibrated to the air supply source and the liquid supply source sequentially includes: controlling the switching device to connect the test pipeline to the liquid supply source until the test pipeline is filled with liquid; after the liquid is drained from the test pipeline, controlling the switching device to connect the test pipeline to the air supply source until the air pressure value in the test pipeline reaches a preset air pressure threshold.
[0055] The preset gas pressure threshold refers to the stable pressure value that the gas needs to reach after entering the test pipeline. Specifically, 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.
[0056] During calibration, the switching device first connects the test pipeline to the liquid supply source, continuously injecting liquid until no residual gas remains in the pipeline. At this point, the bubble sensor is in full-liquid detection mode. After liquid filling is complete, the pipeline is emptied via a draining operation. Subsequently, the switching device switches to the gas supply source, and gas is continuously input into the pipeline until the pressure sensor detects that the pressure has reached the preset gas pressure threshold. At this point, a stable full-gas environment is formed within the test pipeline. By controlling the medium switching sequence in stages and setting pressure stabilization conditions, the gas-liquid state boundary is clearly defined during calibration, avoiding detection errors caused by residual medium mixing. Thus, through automated sequential control and pressure threshold monitoring, the gas-liquid switching process is standardized, eliminating human error, while the pressure stabilization mechanism ensures the consistency of the detection environment.
[0057] See Figure 3 In some embodiments, step S203 may specifically include, but is not limited to, steps S301 to S304, as described below. Figure 3 These four steps will be explained in detail.
[0058] Step S301: Determine the detection deviation between the total liquid detection value and the total gas detection value.
[0059] The total liquid detection value is the value obtained by the bubble sensor when the test tube is completely filled with liquid. In other words, the total liquid detection value refers to the detection signal output by the bubble sensor when the test tube is completely filled with liquid. This can be achieved by acquiring the signal in a stable state after the test tube is completely filled with liquid, and is used to establish a baseline reference value in a liquid environment.
[0060] The full-gas detection value is the value obtained by the bubble sensor when the gas pressure in the test pipeline reaches a preset gas pressure threshold. In other words, the full-gas detection value refers to the detection signal output by the bubble sensor when the test pipeline is completely filled with gas. Specifically, it can be achieved by acquiring the signal under stable conditions after the gas pressure reaches the preset threshold, and is used to establish a benchmark reference value in the gas environment.
[0061] Step S302: Determine whether the detection deviation value is less than the reference deviation value.
[0062] If it is less than, proceed to step S303; if it is not less than, proceed to step S304.
[0063] The detection deviation value refers to the difference between the total liquid detection value and the total gas detection value. This can be calculated by determining 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 reference deviation value is a preset allowable deviation range, which can be determined through experimental data or sensor performance indicators, and is used to judge whether the calibration is qualified.
[0064] Step S303: Configure the signal strength of the detection signal generated by the emitter of the bubble sensor in the direction that makes the detection deviation value approach the reference deviation value. Return to step S301.
[0065] Step S304: Store the total liquid detection value and the total gas detection value into the storage unit of the bubble sensor.
[0066] When the test pipeline is connected to the liquid supply source, liquid is injected into the test pipeline until it is completely filled. At this point, the output of the bubble sensor is collected as the total liquid detection value. Subsequently, the liquid is emptied and the gas supply source is connected. Once the gas pressure in the test pipeline reaches a preset threshold, the output is collected as the total gas detection value. By calculating the detection deviation between the two, if the detection deviation is less than the reference deviation, it indicates that the sensor sensitivity is insufficient. The difference in detection signal needs to be gradually increased by adjusting the signal strength of the detection signal from the bubble sensor's transmitter tube, for example, by increasing the duty cycle with a fixed step size, and the detection process is repeated. If the reference deviation reaches or exceeds the reference deviation, the current total liquid detection value and the current total gas detection value are stored as calibration parameters in the bubble sensor's storage unit, completing the calibration. Thus, by automatically collecting the reference values of the gas and liquid phases and dynamically adjusting the signal strength, closed-loop control of the calibration process is achieved, avoiding errors caused by manual intervention.
[0067] 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 total liquid detection value and the total gas detection value both meet the corresponding detection value passing conditions; if they do not meet the conditions, returning to the step of determining the detection deviation value between the total liquid detection value and the total gas detection value.
[0068] It is understandable that the detection value pass condition refers to the pre-set valid range of the detection value. For example, the detection value of the whole liquid must be within the theoretical response range of the liquid state, and the detection value of the whole gas must be within the theoretical response range of the gas state. This condition can be determined by experimental data statistics or sensor performance indicators, and is used to exclude abnormal detection data caused by pipeline blockage or sensor failure.
[0069] Specifically, when the detection deviation value does not reach the benchmark deviation value, it indicates that the bubble sensor's sensitivity to the gas-liquid two-phase state is insufficient. In this case, further verification of the validity of the total liquid and total gas detection values is required. For example, if the total liquid detection value exceeds the theoretical response range for the liquid state, it may be due to residual air bubbles in the pipeline causing incomplete liquid filling. If the total gas detection value does not reach the theoretical response threshold for the gas state, it may be due to insufficient gas supply pressure or pipeline leakage. When either the total liquid or total gas detection value fails to meet the conditions, the calibration process will automatically return to re-execute the pipeline connection operation and obtain new detection data, preventing invalid calibration results from being stored. This process can be implemented through the controller's built-in state verification module, for example, by logically comparing the total liquid and total gas detection values with preset threshold ranges, triggering a loop execution mechanism. This adds a judgment step for the detection value passing conditions, forming a closed-loop verification mechanism that can automatically identify and eliminate calibration errors caused by environmental interference or equipment malfunctions, reducing the number of manual interventions.
[0070] In some embodiments, configuring the signal strength of the detection signal generated by the emitter of the bubble sensor includes: stepping the duty cycle of the control signal, and using the configured control signal to control the emitter of the bubble sensor to generate a detection signal of corresponding signal strength.
[0071] It is understandable that the duty cycle of the step-type configuration control signal refers to the gradual adjustment of the duty cycle parameter of the control signal at fixed intervals. Specifically, it 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 can be increased or decreased in steps of 5%, and the signal strength can be optimized by gradually approximating the signal to avoid instability of the detection signal due to sudden changes in the duty cycle.
[0072] When the detection deviation is less than the reference deviation, the duty cycle of the control signal output by the actuator is gradually adjusted, for example, by increasing or decreasing it in fixed steps from the initial value. After each adjustment, the detection values for both liquid and gas are remeasured, and a new detection deviation is calculated. If the adjusted detection deviation approaches the reference deviation, the duty cycle continues to be adjusted in the current direction. If the detection deviation no longer decreases, the adjustment stops, and the signal strength corresponding to the current duty cycle is taken as the optimal configuration. This process is achieved through automated control without manual intervention. Therefore, by adjusting the step-by-step duty cycle, precise control of the signal strength of the bubble sensor's detection signal is achieved, enabling dynamic adaptation to different batches or individual differences in the transmitter tubes, ensuring the efficiency and stability of the calibration process.
[0073] In some embodiments, the bubble sensor calibration method further includes: displaying the calibration result of the bubble sensor after calibration, and uploading the calibration result to a database in response to a received upload command.
[0074] It is understood that calibration results refer to the sensor calibration parameters calculated from the total liquid detection value and the total gas detection value. Specifically, they can be presented in the form of numerical values, status indicators, or error ranges to reflect the accuracy of the sensor's detection performance.
[0075] Once the calibration process is complete, the calibration results are automatically generated and stored in local memory. At this point, the display screen shows the real-time status information of the calibration results, such as "calibration successful" or "calibration failed," along with the specific detection deviation value or calibration parameters. Users can trigger an upload command through the human-machine interface of the executing unit, which then transmits the calibration results to a cloud database or local server via its built-in communication module. After receiving the data, the database categorizes and stores it according to information such as timestamps and device numbers, facilitating subsequent quality traceability, production batch analysis, or equipment maintenance decisions. Thus, through an automated display and upload mechanism, the inefficiency caused by manual intervention is avoided, while establishing a digital management chain for calibration data, ensuring data traceability and integrity.
[0076] See Figure 4 This application also provides a bubble sensor calibration device that can implement the above-described bubble sensor calibration method. The device includes:
[0077] Test conduit 1;
[0078] Gas supply source 2 is used to provide gas during calibration.
[0079] Liquid supply source 3 is used to provide liquid during calibration.
[0080] Switching device 4 connects test line 1, gas supply source 2 and liquid supply source 3, which can connect test line 1 to gas supply source 2 or connect test line 1 to liquid supply source 3.
[0081] The controller 5 is used to respond to the received calibration command, 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 from the bubble 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.
[0082] When controller 5 receives an external calibration command, it first controls switching device 4 to connect test pipeline 1 to liquid supply source 3, filling test pipeline 1 with liquid to simulate a full liquid state. At this time, the bubble sensor collects the full liquid detection value. Subsequently, controller 5 controls switching device 4 to cut off liquid supply source 3 and connect gas supply source 2, injecting gas into test pipeline 1 until a preset gas pressure threshold is reached, forming a full gas state. The bubble sensor collects the full gas detection value. Controller 5 compares and analyzes the full liquid detection value and the full gas detection value, and determines whether the sensor sensitivity meets the requirements by calculating the deviation between the two values. If the deviation exceeds the allowable range, controller 5 can dynamically adjust the signal transmission intensity of the bubble sensor or trigger a recalibration process until calibration parameters that meet the preset conditions are obtained. Thus, by integrating gas supply source 2, liquid supply source 3, and automatic switching device 4, a closed-loop control system is constructed to realize automatic switching of gas and liquid states and real-time processing of detection data, avoiding errors caused by manual intervention. In addition, the compact pipeline design reduces the risk of liquid residue or gas leakage during the calibration process.
[0083] See Figure 5 In some embodiments, a gas source switch 6 and a pressure regulating device 7 are also provided on the pipeline between the gas supply source 2 and the switching device 4, and a diaphragm pump 8 is also 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.
[0084] It can be understood that the gas source switch 6 refers to the valve used to control the flow of gas, which can be implemented using a solenoid valve or a manual valve. Its function is to precisely control the timing of gas entering the test pipeline 1, avoiding gas leakage that could interfere with the calibration process. The pressure regulating device 7 refers to the device used to regulate the gas pressure, which can be implemented using a proportional valve or a pressure reducing valve. Its function is to maintain a stable gas pressure output from the gas supply source 2, ensuring the accuracy of the full gas state detection value.
[0085] When test line 1 needs to be connected to liquid supply source 3, diaphragm pump 8 starts and pushes liquid out of liquid supply source 3, through switching device 4 into test line 1, and then the liquid flows back to liquid supply source 3 through a loop, forming a circulating flow. This loop design can avoid liquid stagnation and the resulting air bubbles, while the continuous flow flushes the inner wall of the line, ensuring that the line is full of liquid. When test line 1 needs to be connected to gas supply source 2, gas source switch 6 is turned on, and pressure regulating device 7 adjusts the gas pressure output from gas supply source 2 to a preset threshold, creating a stable all-gas environment in test line 1. The combined use of gas source switch 6 and pressure regulating device 7 can avoid the influence of gas pressure fluctuations on the test values, while reducing the frequency of manual intervention. Thus, by constructing a liquid circulation loop through diaphragm pump 8, combined with the linkage control of gas source switch 6 and pressure regulating device 7, the gas-liquid switching process is automated and the pressure parameters are precisely controlled, eliminating human operation errors.
[0086] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0087] The following reference Figure 6 To describe an electronic device 600 according to such an embodiment of the present disclosure. Figure 6 The electronic device 600 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0088] like Figure 6 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the 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 different system components (including storage unit 620 and processing unit 610), a display unit 640, etc.
[0089] The storage unit stores program code, which can be executed by the processing unit 610, causing the processing unit 610 to perform the steps described in the bubble sensor calibration method section of this specification according to various exemplary embodiments of this disclosure.
[0090] Storage unit 620 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include a read-only memory (ROM) 6203.
[0091] Storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0092] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0093] Electronic device 600 can also communicate with one or more external devices 600' (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. Network adapter 660 can communicate with other modules of electronic device 600 via 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 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.
[0094] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described bubble sensor calibration method.
[0095] The bubble sensor calibration method, apparatus, device, and medium provided in this application embodiment connect the test pipeline to a gas supply source and a liquid supply source sequentially by driving a switching device. Based on the detection values of the bubble sensor when the test pipeline is connected to the gas supply source and when it is connected to the liquid supply source, the bubble sensor is automatically calibrated, ensuring that the calibrated bubble sensor is within its normal operating range. Therefore, by automating the switching device and the detection process, human error is eliminated, ensuring that each calibration is performed under the same gas-liquid filling conditions. This improves the calibration efficiency and consistency of the bubble sensor, guaranteeing the reliability of the detection results. Simultaneously, the automatic determination of the test pipeline filling completion status through bubble sensor feedback significantly improves the consistency and repeatability of the calibration process.
[0096] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, or network device, etc.) to execute the methods described above according to the embodiments of this disclosure.
[0097] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0098] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0099] Those skilled in the art will understand that the above modules can be distributed in the device as described in the embodiments, or they can be modified accordingly and placed in one or more devices that are unique to this embodiment. The modules in the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.
[0100] Exemplary embodiments of this disclosure have been specifically shown and described above. It should be understood that this disclosure is not limited to the detailed structures, arrangements, or implementations described herein; rather, this disclosure is intended to cover various modifications and equivalent arrangements contained within the spirit and scope of the appended claims.
Claims
1. A method for calibrating a bubble sensor, characterized in that, include: In response to the received calibration command, the control switching device connects the test pipeline to the gas supply source and the liquid supply source in sequence. The switching device is connected to 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. Obtain the detection value obtained by the bubble sensor to be calibrated from the bubble in the test pipeline; The bubble sensor is calibrated based on the detection values of the bubble sensor when the test pipeline is connected to the gas supply source and when the test pipeline is connected to the liquid supply source; The calibration of the bubble sensor based on the detection values of the bubble sensor when the test pipeline is connected to the gas supply source and when the test pipeline is connected to the liquid supply source includes: Determine the detection deviation between the total liquid detection value and the total gas detection value; the total liquid detection value is the detection value obtained by the bubble sensor when the test pipeline is filled with liquid, and the total gas detection value is the detection value obtained by the bubble sensor when the gas pressure in the test pipeline reaches a preset gas pressure threshold. Determine whether the detected deviation value is less than the reference deviation value; If it is less than the reference deviation value, adjust the signal strength of the detection signal generated by the emitter tube of the bubble sensor in the direction that makes the detection deviation value approach the reference deviation value; return to the step of determining the detection deviation value between the total liquid detection value and the total gas detection value; If the value is not less than the value of the total liquid detection value and the total gas detection value, the total liquid detection value and the total gas detection value are stored in the storage unit of the bubble sensor. The signal strength of the detection signal generated by the transmitter tube configured with the bubble sensor includes: The duty cycle of the step-by-step configuration control signal is used to control the emitter of the bubble sensor to generate a detection signal of corresponding signal strength.
2. The bubble sensor calibration method according to claim 1, characterized in that, Also includes: When the detection deviation value is not less than the reference deviation value, determine whether the total liquid detection value and the total gas detection value both meet the corresponding detection value passing conditions. If they do not meet the conditions, return to the step of determining the detection deviation value between the total liquid detection value and the total gas detection value.
3. The bubble sensor calibration method according to claim 1, characterized in that, Also includes: After calibrating the bubble sensor, the calibration result of the bubble sensor is displayed, and in response to the received upload command, the calibration result is uploaded to the database.
4. A bubble sensor calibration device, characterized in that, include: Test piping; Gas supply source, used to provide gas at calibration time; A liquid supply source, used to provide liquid during calibration; By switching the device and connecting the test pipeline, the gas supply source, and the liquid supply source, the test pipeline can be connected to the gas supply source or the test pipeline can be connected to the liquid supply source. The controller is used to respond to the received calibration command, control the switching device to connect the test pipeline to the gas supply source and the liquid supply source in sequence, obtain the detection value obtained by the bubble sensor to be calibrated from the bubble 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 calibration of the bubble sensor based on the detection values of the bubble sensor when the test pipeline is connected to the gas supply source and when the test pipeline is connected to the liquid supply source includes: Determine the detection deviation between the total liquid detection value and the total gas detection value; the total liquid detection value is the detection value obtained by the bubble sensor when the test pipeline is filled with liquid, and the total gas detection value is the detection value obtained by the bubble sensor when the gas pressure in the test pipeline reaches a preset gas pressure threshold. Determine whether the detected deviation value is less than the reference deviation value; If it is less than the reference deviation value, adjust the signal strength of the detection signal generated by the emitter tube of the bubble sensor in the direction that makes the detection deviation value approach the reference deviation value; return to the step of determining the detection deviation value between the total liquid detection value and the total gas detection value; If the value is not less than the value of the total liquid detection value and the total gas detection value, the total liquid detection value and the total gas detection value are stored in the storage unit of the bubble sensor. The signal strength of the detection signal generated by the transmitter tube configured with the bubble sensor includes: The duty cycle of the step-by-step configuration control signal is used to control the emitter of the bubble sensor to generate a detection signal of corresponding signal strength.
5. The bubble sensor calibration device according to claim 4, characterized in that, A gas source switch and a pressure regulating device are also provided on the pipeline between the gas supply source and the switching device. 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.
6. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the bubble sensor calibration method according to any one of claims 1 to 3.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the bubble sensor calibration method according to any one of claims 1 to 3.
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