Zero point calibration method, device, equipment and storage medium for gravity sensor of infusion pump
By acquiring the gravity sensor status and circuit analog quantity, determining and adjusting the zero-point digital quantity of the infusion pump, the problems of low efficiency and susceptibility to temperature are solved, and higher detection accuracy and efficiency are achieved.
Patent Information
- Application Number
- CN202210249828.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-03-11
AI Technical Summary
The traditional infusion pump gravity sensor zero point calibration method is inefficient and susceptible to temperature, resulting in a decrease in detection accuracy.
By obtaining the gravity sensor status, obtaining the current analog quantity of the preset gravity sensor circuit, determining the zero point digital quantity, and changing the zero point mark according to the zero point digital quantity, adjusting the zero point through digital-analog conversion and analog-to-digital conversion to ensure accurate calibration.
It improves the accuracy and efficiency of zero point calibration, reduces the need for manual adjustment, and reduces the impact of temperature changes on zero point, thereby improving the detection accuracy of the infusion pump.
Smart Images

Figure CN114755741B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of infusion pumps, and in particular to a method, device, equipment and storage medium for zero point calibration of a gravity sensor of an infusion pump. Background Art
[0002] With the rapid development of infusion pump technology, infusion pumps are increasingly used in the medical field. At the same time, there are higher requirements for the safety and efficiency of the use of infusion pumps. Nowadays, the use of infusion pumps is to detect whether the infusion pump is blocked by the degree of pressure on the gravity sensor. The key to the detection is to calibrate the zero point position of the gravity sensor. The traditional zero point calibration method is to manually adjust the mechanical potentiometer to determine the zero point position of the gravity sensor. This zero point calibration method has great defects. Manually adjusting the mechanical potentiometer will lead to the problem of low efficiency in adjusting the zero point, and the temperature change during the use of the infusion pump will also cause the zero point to change. This zero point calibration method not only has low calibration efficiency for the zero point of the gravity sensor, but also temperature changes will cause the zero point to change, which will cause the detection accuracy of the infusion pump to decrease. Summary of the invention
[0003] The main purpose of the present invention is to propose a zero point calibration method, device, equipment and storage medium for an infusion pump gravity sensor, aiming to solve the technical problem of how to improve the detection accuracy of the infusion pump.
[0004] To achieve the above object, the present invention provides a method for zero point calibration of a gravity sensor of an infusion pump, the method comprising the following steps:
[0005] Acquire the state of the gravity sensor, acquire the current analog quantity of the preset gravity sensor circuit based on the state of the gravity sensor, and determine the zero-point digital quantity corresponding to the current analog quantity;
[0006] Obtaining a preset zero point qualified digital quantity range, and detecting whether the zero point digital quantity is within the zero point qualified digital quantity range;
[0007] If the zero point digital quantity is within the zero point qualified digital quantity range, the zero point mark is changed according to the zero point digital quantity.
[0008] Optionally, the step of changing the zero point mark according to the zero point digital quantity comprises:
[0009] Obtaining a preset deviation value library, and extracting the deviation value corresponding to the zero point digital quantity in the deviation value library;
[0010] Determine a deviation analog quantity corresponding to the deviation value, and change the zero point calibration according to the deviation analog quantity.
[0011] Optionally, the step of determining a deviation analog quantity corresponding to the deviation value includes:
[0012] Using the deviation value as a deviation value input of a preset digital-to-analog conversion circuit, and obtaining a deviation value output corresponding to the deviation value input in the digital-to-analog conversion circuit;
[0013] The deviation value is output as a deviation value analog quantity.
[0014] Optionally, the step of changing the zero point calibration according to the deviation analog quantity comprises:
[0015] Using the deviation value analog quantity as a zeroing input of a preset zeroing circuit, and changing the current analog quantity according to the zeroing input;
[0016] The changed analog quantity is used as the current analog quantity and the step of determining the corresponding zero-point digital quantity according to the current analog quantity is performed.
[0017] Optionally, the step of determining a zero-point digital quantity corresponding to the current analog quantity includes:
[0018] Using the current analog quantity as an analog quantity input of a preset analog-to-digital conversion circuit, and obtaining an analog quantity output corresponding to the analog quantity input in the analog-to-digital conversion circuit;
[0019] The analog quantity is output as a zero-point digital quantity.
[0020] Optionally, after the step of detecting whether the zero point digital quantity is within the zero point qualified digital quantity range, the method further comprises:
[0021] If the zero point digital quantity is within the qualified zero point digital quantity range, the zero point digital quantity is used as the marking zero point.
[0022] Optionally, the step of acquiring a current analog value of a preset gravity sensor circuit based on the gravity sensor state includes:
[0023] Detecting whether the gravity sensor is in a compressed state;
[0024] If the gravity sensor is in a pressure state, an analog value of a preset gravity sensor circuit is obtained as the current analog value.
[0025] In addition, to achieve the above-mentioned purpose, the present invention also provides an infusion pump gravity sensor zero point calibration device, comprising:
[0026] An acquisition module, used to acquire a state of the gravity sensor, acquire a current analog quantity of a preset gravity sensor circuit based on the state of the gravity sensor, and determine a zero-point digital quantity corresponding to the current analog quantity;
[0027] A detection module, used for obtaining a preset zero point qualified digital quantity range, and detecting whether the zero point digital quantity is within the zero point qualified digital quantity range;
[0028] A processing module is used to change the zero point mark according to the zero point digital quantity if the zero point digital quantity is within the zero point qualified digital quantity range.
[0029] In addition, to achieve the above-mentioned purpose, the present invention also provides an infusion pump gravity sensor zero point calibration device, comprising: a memory, a processor, and an infusion pump gravity sensor zero point calibration program stored in the memory and executable on the processor, wherein the infusion pump gravity sensor zero point calibration program implements the steps of the above-mentioned infusion pump gravity sensor zero point calibration method when executed by the processor.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides an infusion pump gravity sensor zero point calibration storage medium, on which is stored an infusion pump gravity sensor zero point calibration program, and when the infusion pump gravity sensor zero point calibration program is executed by the processor, the steps of the infusion pump gravity sensor zero point calibration method as described above are implemented.
[0031] The present invention obtains the current analog quantity of the preset gravity sensor circuit when the infusion pump is turned on and the gravity sensor is not squeezed, determines the corresponding zero point digital quantity according to the current analog quantity; obtains the preset zero point qualified digital quantity range, and detects whether the zero point digital quantity meets the zero point qualified digital quantity range; if it meets, the obtained zero point digital quantity is used as the calibration zero point actually required, if it does not meet the zero point qualified digital quantity range, the zero point is marked according to the zero point digital quantity, and the zero point is adjusted according to the actual difference between the qualified range, and finally the zero point is accurately calibrated. By performing digital-to-analog conversion and analog-to-digital conversion on the zero point at all times, the accuracy of the zero point calibration is guaranteed, thereby avoiding the problem of low efficiency of adjusting the zero point due to manual adjustment of the mechanical potentiometer, and the phenomenon that the temperature change during the use of the infusion pump will also cause the problem of zero point change. This zero point calibration method not only does not require manual adjustment, thereby ensuring the adjustment efficiency, but also is not easily affected by the temperature during use, thereby ensuring the detection accuracy of the infusion pump. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a structural schematic diagram of an infusion pump gravity sensor zero point calibration device in a hardware operating environment involved in an embodiment of the present invention;
[0033] Figure 2 It is a flow chart of the first embodiment of the zero point calibration method of the infusion pump gravity sensor of the present invention;
[0034] Figure 3A schematic diagram of a device module for zero point calibration of a gravity sensor of an infusion pump according to the present invention;
[0035] Figure 4 It is a schematic diagram of the zero point calibration technical solution of the infusion pump gravity sensor of the present invention.
[0036] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0037] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0038] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of an infusion pump gravity sensor zero point calibration device in the hardware operating environment involved in the embodiment of the present invention.
[0039] like Figure 1 As shown, the zero point calibration device of the gravity sensor of the infusion pump may include: a processor 0003, such as a central processing unit (CPU), a communication bus 0001, an acquisition interface 0002, a processing interface 0004, and a memory 0005. Among them, the communication bus 0001 is used to realize the connection and communication between these components. The acquisition interface 0002 may include an information acquisition device and an acquisition unit such as a computer, and the acquisition interface 0002 may optionally include a standard wired interface and a wireless interface. The processing interface 0004 may optionally include a standard wired interface and a wireless interface. The memory 0005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 0005 may also be a storage device independent of the aforementioned processor 0003.
[0040] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the zero point calibration device of the gravity sensor of the infusion pump, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0041] like Figure 1 As shown, the memory 0005 as a storage medium may include an operating system, an acquisition interface module, an execution interface module, and an infusion pump gravity sensor zero point calibration program.
[0042] exist Figure 1In the infusion pump gravity sensor zero point calibration device shown, the communication bus 0001 is mainly used to realize the connection communication between components; the acquisition interface 0002 is mainly used to connect to the background server and communicate data with the background server; the processing interface 0004 is mainly used to connect to the deployment end (user end) and communicate data with the deployment end; the processor 0003 and the memory 0005 in the infusion pump gravity sensor zero point calibration device of the present invention can be set in the infusion pump gravity sensor zero point calibration device, and the infusion pump gravity sensor zero point calibration device calls the infusion pump gravity sensor zero point calibration program stored in the memory 0005 through the processor 0003, and executes the infusion pump gravity sensor zero point calibration method provided by the embodiment of the present invention.
[0043] Based on the above hardware structure, an embodiment of a zero point calibration method for an infusion pump gravity sensor of the present invention is proposed.
[0044] The embodiment of the present invention provides a method for zero point calibration of an infusion pump gravity sensor, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a method for zero point calibration of a gravity sensor of an infusion pump according to the present invention.
[0045] In this embodiment, the zero point calibration method of the infusion pump gravity sensor includes:
[0046] Step S10, obtaining the state of the gravity sensor, obtaining the current analog quantity of the preset gravity sensor circuit based on the state of the gravity sensor, and determining the zero point digital quantity corresponding to the current analog quantity;
[0047] With the progress of medical industry, infusion pumps are increasingly used in medical industry, and the safety of infusion pumps has also become a topic of concern. The safety of infusion pumps is mainly to prevent infusion pump blockage. The commonly used device for detecting blockage in the infusion pump tube is to use the pressure degree of the gravity sensor to achieve it. The zero point position of the gravity sensor needs to be calibrated before it can be used. The traditional calibration method of the zero point mark of the gravity sensor of the infusion pump is to calibrate it by manually adjusting the mechanical potentiometer. This method has the following defects: First, manual adjustment is inefficient. According to the actual use situation, the infusion pump used by each patient needs to be adjusted, which will not only waste the time of medical staff, but also delay the diagnosis and treatment of patients; secondly, the adjustment accuracy is not easy to control. There will always be a gray area of judgment or adjustment fatigue when adjusting it manually, which can easily cause low adjustment accuracy, and then cause inaccurate subsequent judgment; finally, the zero point of the gravity sensor is easily affected by temperature. After adjustment once, the zero point will fluctuate as soon as the temperature changes, which will easily block the detection accuracy. When it is adjusted manually, the temperature is high, causing the liquid to expand, resulting in inaccurate judgment of the zero point of the adjustment. When the temperature is restored and judged again, the accuracy of the zero point will be inaccurate.
[0048] Based on the above-mentioned insufficiency of the zero point calibration of the gravity sensor of the infusion pump, the zero point calibration scheme of the present application is proposed. When the zero point of the gravity sensor of the infusion pump needs to be calibrated, the controller will detect the infusion pump. When it is detected that the infusion pump has been turned on and the gravity sensor therein is not squeezed, the controller will obtain the analog value at that time. Among them, the step of obtaining the current analog value of the preset gravity sensor circuit based on the state of the gravity sensor includes:
[0049] Step B11, detecting whether the gravity sensor is in a compressed state;
[0050] The controller will continuously detect the infusion pump. When it detects that the infusion pump has been turned on, it will get the information that zero point calibration is required. It will detect the state of the gravity sensor and detect whether it meets the preset pressure state according to the state of the gravity sensor. The gravity sensor state refers to the state of the gravity sensor, which mainly detects whether it is squeezed. The pressure state refers to the gravity sensor that is not squeezed. In other words, when the gravity sensor is not squeezed, the infusion pump will be zero-calibrated, otherwise it is not currently in compliance with the conditions for zero point calibration. By judging the state of the gravity sensor, it can be determined whether zero point calibration can be performed, thereby ensuring the accuracy of zero point calibration.
[0051] Step B12: If the gravity sensor is in a pressure state, an analog value of a preset gravity sensor circuit is obtained as a current analog value.
[0052] When the controller's inspection result shows that the gravity sensor state meets the preset pressure state, the analog value of the internal gravity sensor circuit will be obtained as the current analog value, otherwise the analog value of the internal gravity sensor circuit will not be obtained. Among them, the gravity sensor circuit refers to the detection circuit for detecting the gravity sensor, and the analog value refers to the circuit parameters in the circuit, which can be current, voltage, etc. For example, when the gravity sensor is not squeezed, the analog value C at this time will be obtained, and the obtained analog value will be used as the current analog value. On the contrary, when the gravity sensor detects that there is a pressure value, the current analog value will not be obtained, which means that the current state of the infusion pump does not meet the state of zero point calibration. It may be that the user intends to press or it is blocked, so it will be calibrated at zero point. By determining the current analog value, a calibration basis can be provided for zero point calibration.
[0053] After the current analog quantity is obtained, the corresponding digital quantity will be obtained according to the current analog quantity. The step of determining the zero-point digital quantity corresponding to the current analog quantity includes:
[0054] Step B13, using the current analog quantity as an analog quantity input of a preset analog-to-digital conversion circuit, and obtaining an analog quantity output corresponding to the analog quantity input in the analog-to-digital conversion circuit;
[0055] Step B14, outputting the analog quantity as a zero-point digital quantity.
[0056] In this embodiment, the controller converts the current analog quantity into a digital quantity after obtaining it, because the final zero point is the digital quantity observed by the corresponding user. The controller first uses the current analog quantity as the analog quantity input of the preset analog-to-digital conversion circuit, and obtains the analog quantity output of the analog-to-digital conversion circuit according to the analog quantity input, and finally uses the analog quantity output as the zero-point digital quantity. Among them, the analog-to-digital conversion circuit refers to a circuit that converts the input analog quantity into a digital quantity for output. For example, when the analog quantity of the analog-to-digital conversion circuit refers to voltage, the voltage will be defined. When the definition of voltage is that the analog quantity of 1 volt voltage is converted into a digital quantity of 0.5, that is, when the input voltage of the analog-to-digital conversion circuit is 20 volts, the circuit will eventually output a digital quantity, which will be 20*0.5=10 according to the defined rules. The analog quantity input refers to the current analog quantity, and the analog quantity output refers to the digital quantity corresponding to the current analog quantity, which is the zero-point digital quantity mentioned later. In this embodiment, the infusion pump and the gravity sensor are judged to obtain the current analog quantity, and the corresponding digital quantity is obtained through the current analog quantity, which provides a calibration basis for the final zero point calibration.
[0057] Step S20, obtaining a preset zero point qualified digital quantity range, and detecting whether the zero point digital quantity is within the zero point qualified digital quantity range;
[0058] In this embodiment, after the controller obtains the zero point digital quantity corresponding to the current analog quantity, it will judge the digital quantity to detect whether the digital quantity meets the requirements. It will obtain the preset zero point qualified digital quantity range and check whether the obtained zero point digital quantity meets the zero point qualified digital quantity range. Among them, the zero point qualified digital quantity range is the user's defined range of zero point in advance. After the step of detecting whether the zero point digital quantity is within the zero point qualified digital quantity range, it includes:
[0059] Step B21: If the zero point digital quantity is within the qualified zero point digital quantity range, the zero point digital quantity is used as the mark zero point.
[0060] By judging the zero-point digital quantity, it is determined whether it meets the requirements. When it meets the requirements, the zero-point digital quantity will be used as the marked zero point. The marked zero point refers to the zero point that can be marked. For example, when the zero-point digital quantity corresponding to the current analog quantity C is 1200, when the preset qualified digital quantity range is 1000-1500, it can be known that the zero-point digital quantity meets the qualified digital quantity range, and 1200 will be used as the zero-point calibration, that is, the zero-point calibration of the infusion pump gravity sensor is 1200. By judging the obtained zero-point digital quantity, the accuracy of the obtained zero-point digital quantity can be guaranteed.
[0061] Step S30: If the zero point digital quantity is within the qualified zero point digital quantity range, then the zero point mark is changed according to the zero point digital quantity.
[0062] When the test result is that the zero point digital quantity does not meet the zero point qualified digital quantity range, the zero point calibration will be changed according to the current analog quantity of the existing zero point digital quantity. Changing the zero point calibration means that if the current zero point does not match the actual value, the zero point will be changed through the controller, so that the zero point reaches a value that meets the preset requirements. By changing the zero point that does not meet the requirements and then calibrating it, the accuracy of the zero point calibration can be guaranteed, which can provide an accurate basis for the blockage of the infusion pump to ensure the detection accuracy of the infusion pump.
[0063] Furthermore, a schematic diagram of a zero point calibration technical solution for an infusion pump gravity sensor is provided for this embodiment. Figure 4In this embodiment, the single-chip microcomputer (MCU) will continue to detect the infusion pump. When the single-chip microcomputer detects that the pump door of the infusion pump has been opened and the gravity sensor is not squeezed, the single-chip microcomputer will read the current gravity sensor zero point value. The analog quantity read is converted into a digital quantity according to the analog-to-digital conversion circuit, and the digital quantity is used as the acquired zero point. After that, the obtained zero point will be judged to detect whether the zero point is within the internal preset qualified range. When it is determined to be within the qualified range, the zero point will be used as the zero point to be determined, that is, the calibration of the zero point is completed. On the contrary, when the zero point is not within the qualified range, a voltage will be input to the internal circuit through the obtained zero point, and a new analog quantity will be obtained by combining it with the existing voltage, and the new analog quantity will be converted. If it meets the qualified range, it will be output, otherwise it will be adjusted until the numerical value corresponding to the changed analog quantity meets the qualified range and the update will be stopped. In this way, not only the accuracy of the zero point calibration is guaranteed, but also the detection accuracy of the infusion pump will be guaranteed by ensuring the accuracy of the detection basis.
[0064] In this embodiment, when the infusion pump is turned on and the gravity sensor is not squeezed, the current analog quantity of the preset gravity sensor circuit is obtained, and the corresponding zero point digital quantity is determined according to the current analog quantity; the preset zero point qualified digital quantity range is obtained, and the zero point digital quantity is detected whether it meets the zero point qualified digital quantity range; if it meets, the obtained zero point digital quantity is used as the calibration zero point actually required, and if it does not meet the zero point qualified digital quantity range, the zero point is marked according to the zero point digital quantity, and the zero point is adjusted according to the actual difference between the qualified range, and finally the zero point is accurately calibrated. By performing digital-to-analog conversion and analog-to-digital conversion on the zero point at all times, the accuracy of the zero point calibration is guaranteed, thereby avoiding the problem of low efficiency of adjusting the zero point due to manual adjustment of the mechanical potentiometer, and the phenomenon that the temperature change during the use of the infusion pump will also cause the zero point to change. This zero point calibration method not only does not require manual adjustment, thereby ensuring the adjustment efficiency, but also ensures the detection accuracy of the infusion pump by not being easily affected by the temperature during use.
[0065] Further, based on the first embodiment of the zero point calibration method of the gravity sensor of the infusion pump of the present invention, a second embodiment of the zero point calibration method of the gravity sensor of the infusion pump of the present invention is proposed. The zero point calibration method of the gravity sensor of the infusion pump comprises:
[0066] Furthermore, the step of changing the zero point mark according to the zero point digital value includes:
[0067] Step c, obtaining a preset deviation value library, and extracting the deviation value corresponding to the zero point digital quantity in the deviation value library;
[0068] Step d, determine the deviation analog quantity corresponding to the deviation value, and change the zero calibration according to the deviation analog quantity.
[0069] In this embodiment, the controller obtains a preset deviation value library, then extracts the corresponding deviation value in the library according to the zero digital quantity, finally determines the corresponding deviation analog quantity according to the obtained deviation value, and changes the zero calibration according to the obtained deviation analog quantity. The deviation value library refers to a digital quantity library preset inside the controller, where the digital quantities correspond to the deviation values to be used. The deviation value refers to the digital quantity required for the zero digital quantity, and the deviation analog quantity refers to the analog quantity obtained according to the deviation value. For example, when the zero digital quantity corresponding to the current analog quantity C is 1200, and the preset qualified digital quantity range is 900 - 1100, it can be known that the zero digital quantity does not meet the qualified digital quantity range, and the zero calibration will be changed according to 200. First, obtain the preset deviation value library, find the deviation value corresponding to 1200 in the deviation value library. There is a definition of the deviation value in the deviation value library. For example, it is defined that the value of the zero digital quantity greater than the maximum value of the qualified digital quantity range or less than the minimum value of the qualified digital quantity range is D. Then D can be defined. For example, when D < F, the deviation value is f; when F < D < E, the deviation value is e; when E < D, the deviation value is g. The controller will obtain the corresponding deviation value according to the internal definition, get the deviation analog quantity according to the deviation value, and finally realize the change of the zero calibration by the deviation analog quantity.
[0070] In this embodiment, by obtaining the preset deviation value library, extracting the deviation value corresponding to the zero digital quantity in the deviation value library, determining the corresponding deviation analog quantity according to the deviation value, and changing the zero calibration according to the deviation analog quantity, the inaccurate zero digital quantity is finally changed, which can further improve the accuracy rate of the zero digital quantity.
[0071] Further, the step of determining the deviation analog quantity corresponding to the deviation value includes:
[0072] Step e, input the deviation value as the deviation value input of a preset digital-to-analog conversion circuit, and obtain the deviation value output corresponding to the deviation value input in the digital-to-analog conversion circuit;
[0073] Step f, use the deviation value output as the deviation analog quantity.
[0074] In this embodiment, the controller converts the deviation value into an analog quantity after obtaining it, because the final zero point is changed by the analog quantity. The controller first uses the deviation value as the deviation value input of the preset digital-to-analog conversion circuit, and obtains the deviation value output of the digital-to-analog conversion circuit according to the deviation value input, and finally uses the deviation value output as the deviation value analog quantity. Among them, the digital-to-analog conversion circuit refers to a circuit that converts the input digital quantity into an analog quantity for output. For example, when the analog quantity of the digital-to-analog conversion circuit refers to voltage, the voltage will be defined. When the definition of voltage is the analog quantity of the digital quantity 0.5 converted into 1 volt voltage, that is, when the input digital quantity of the digital-to-analog conversion circuit is 10, the circuit will eventually output an analog quantity, and the analog quantity will be 10 / 0.5=20 according to the defined rules. The deviation value input refers to the digital quantity of the deviation value, and the deviation value output refers to the analog quantity corresponding to the digital quantity of the deviation value, which is the deviation value analog quantity mentioned later.
[0075] In this embodiment, by using the deviation value as the deviation value input of the preset digital-to-analog conversion circuit, obtaining the deviation value output of the digital-to-analog conversion circuit, and finally using the deviation value output as the deviation value analog quantity, the analog quantity that needs to be changed for zero point calibration can be determined, providing a basis for changing the analog quantity of the zero point.
[0076] Furthermore, the step of changing the zero point calibration according to the deviation analog quantity includes:
[0077] Step g, using the deviation value analog quantity as a zeroing input of a preset zeroing circuit, and changing the current analog quantity according to the zeroing input;
[0078] In this embodiment, the controller uses the deviation analog quantity as the zeroing input of the preset zeroing circuit, and changes the current analog quantity according to the zeroing input. The zeroing circuit refers to a circuit that changes the zero point of the gravity sensor, and the zeroing input refers to the input variable. For example, when the current analog quantity is 5V, the deviation analog quantity can be 2V or -1V, and the current analog quantity is changed to 7V or 4V. The existing analog quantity is changed by inputting the analog quantity, thereby ensuring the accuracy of the changed analog quantity.
[0079] Step h, taking the changed analog quantity as the current analog quantity and executing the step of determining the corresponding zero-point digital quantity according to the current analog quantity.
[0080] After obtaining the changed analog quantity, the changed analog quantity will be used as the current analog quantity and the step of determining the corresponding zero point digital quantity according to the current analog quantity will be executed. In other words, a loop will be entered, a loop for judging the accuracy of the zero point. When the zero point meets the requirement, the loop will be jumped out, otherwise the loop will be executed until the zero point meets the requirement. By establishing a loop of zero point judgment and change optimization, the accuracy of the zero point of the gravity sensor is guaranteed, and the infusion pump can be monitored in real time to ensure the accuracy of the infusion pump test.
[0081] In this embodiment, by using the deviation value analog quantity as the zeroing input of the preset zeroing circuit, changing the current analog quantity according to the zeroing input, and then using the changed analog quantity as the current analog quantity and executing the step of determining the corresponding zero-point digital quantity according to the current analog quantity, the final accuracy of the zero-point mark of the gravity sensor can be guaranteed, and further an accurate basis can be provided for the detection of the infusion pump, thereby improving the detection accuracy of the infusion pump.
[0082] The present invention also provides a zero point calibration device for an infusion pump gravity sensor, referring to Figure 3 , the infusion pump gravity sensor zero point calibration device comprises:
[0083] An acquisition module A01 is used to acquire a state of a gravity sensor, acquire a current analog quantity of a preset gravity sensor circuit based on the state of the gravity sensor, and determine a zero-point digital quantity corresponding to the current analog quantity;
[0084] A detection module A02 is used to obtain a preset zero point qualified digital quantity range and detect whether the zero point digital quantity is within the zero point qualified digital quantity range;
[0085] The processing module A03 is used to change the zero point mark according to the zero point digital quantity if the zero point digital quantity is within the zero point qualified digital quantity range.
[0086] Optionally, the processing module A03 is further used for:
[0087] Obtaining a preset deviation value library, and extracting the deviation value corresponding to the zero point digital quantity in the deviation value library;
[0088] Determine a deviation analog quantity corresponding to the deviation value, and change the zero point calibration according to the deviation analog quantity.
[0089] Optionally, the processing module A03 is further used for:
[0090] Using the deviation value as a deviation value input of a preset digital-to-analog conversion circuit, and obtaining a deviation value output corresponding to the deviation value input in the digital-to-analog conversion circuit;
[0091] The deviation value is output as a deviation value analog quantity.
[0092] Optionally, the processing module A03 is further used for:
[0093] Using the deviation value analog quantity as a zeroing input of a preset zeroing circuit, and changing the current analog quantity according to the zeroing input;
[0094] The changed analog quantity is used as the current analog quantity and the step of determining the corresponding zero-point digital quantity according to the current analog quantity is performed.
[0095] Optionally, the acquisition module A01 is further used to:
[0096] Using the current analog quantity as an analog quantity input of a preset analog-to-digital conversion circuit, and obtaining an analog quantity output corresponding to the analog quantity input in the analog-to-digital conversion circuit;
[0097] The analog quantity is output as a zero-point digital quantity.
[0098] Optionally, the detection module A02 is further used for:
[0099] If the zero point digital quantity is within the qualified zero point digital quantity range, the zero point digital quantity is used as the marking zero point.
[0100] Optionally, the acquisition module A01 is further used to:
[0101] Detecting whether the gravity sensor is in a compressed state;
[0102] If the gravity sensor is in a pressure state, an analog value of a preset gravity sensor circuit is obtained as the current analog value.
[0103] The methods executed by the above-mentioned program modules can refer to the various embodiments of the zero point calibration method of the infusion pump gravity sensor of the present invention, and will not be repeated here.
[0104] The invention also provides a zero point calibration device for the gravity sensor of an infusion pump.
[0105] The device of the present invention includes: a memory, a processor, and an infusion pump gravity sensor zero point calibration program stored in the memory and executable on the processor. When the infusion pump gravity sensor zero point calibration program is executed by the processor, the steps of the infusion pump gravity sensor zero point calibration method as described above are implemented.
[0106] The invention also provides a storage medium.
[0107] The storage medium of the present invention stores an infusion pump gravity sensor zero point calibration program, and when the infusion pump gravity sensor zero point calibration program is executed by a processor, the steps of the infusion pump gravity sensor zero point calibration method as described above are implemented.
[0108] Among them, the method implemented when the infusion pump gravity sensor zero point calibration program running on the processor is executed can refer to the various embodiments of the infusion pump gravity sensor zero point calibration method of the present invention, and will not be repeated here.
[0109] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0110] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0112] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for zero point calibration of an infusion pump gravity sensor, characterized in that: The zero point calibration method of the infusion pump gravity sensor comprises: Obtaining the state of the gravity sensor, and obtaining the current analog quantity of the preset gravity sensor circuit based on the gravity sensor state, wherein the step of obtaining the current analog quantity of the preset gravity sensor circuit based on the gravity sensor state includes: detecting whether the state of the gravity sensor is a pressure state; if the state of the gravity sensor is a pressure state, obtaining the analog quantity of the preset gravity sensor circuit as the current analog quantity, and determining the zero-point digital quantity corresponding to the current analog quantity, wherein the step of determining the zero-point digital quantity corresponding to the current analog quantity includes: Using the current analog quantity as the analog quantity input of a preset analog-to-digital conversion circuit, and obtaining the analog quantity output corresponding to the analog quantity input in the analog-to-digital conversion circuit; using the analog quantity output as the zero-point digital quantity; Obtaining a preset zero point qualified digital quantity range, and detecting whether the zero point digital quantity is within the zero point qualified digital quantity range; If the zero point digital quantity is not within the zero point qualified digital quantity range, the zero point mark is changed according to the zero point digital quantity.
2. The zero point calibration method of the infusion pump gravity sensor according to claim 1, characterized in that: The step of changing the zero point mark according to the zero point digital quantity comprises: Obtaining a preset deviation value library, and extracting the deviation value corresponding to the zero point digital quantity in the deviation value library; Determine a deviation analog quantity corresponding to the deviation value, and change the zero point calibration according to the deviation analog quantity.
3. The zero point calibration method of the infusion pump gravity sensor according to claim 2, characterized in that: The step of determining the deviation analog quantity corresponding to the deviation value comprises: Using the deviation value as a deviation value input of a preset digital-to-analog conversion circuit, and obtaining a deviation value output corresponding to the deviation value input in the digital-to-analog conversion circuit; The deviation value is output as a deviation value analog quantity.
4. The zero point calibration method of the infusion pump gravity sensor according to claim 2, characterized in that: The step of changing the zero point calibration according to the deviation analog quantity comprises: Using the deviation value analog quantity as a zeroing input of a preset zeroing circuit, and changing the current analog quantity according to the zeroing input; The changed analog quantity is used as the current analog quantity and the step of determining the corresponding zero-point digital quantity according to the current analog quantity is performed.
5. The zero point calibration method of the infusion pump gravity sensor according to claim 1, characterized in that: After the step of detecting whether the zero point digital quantity is within the zero point qualified digital quantity range, the following steps are included: If the zero point digital quantity is within the qualified zero point digital quantity range, the zero point digital quantity is used as the marking zero point.
6. A zero point calibration device for an infusion pump gravity sensor, characterized in that: The zero point calibration device of the infusion pump gravity sensor comprises: An acquisition module is used to acquire the state of the gravity sensor, and acquire the current analog quantity of the preset gravity sensor circuit based on the state of the gravity sensor, wherein the step of acquiring the current analog quantity of the preset gravity sensor circuit based on the state of the gravity sensor comprises: detecting whether the state of the gravity sensor is a pressure state; if the state of the gravity sensor is a pressure state, acquiring the analog quantity of the preset gravity sensor circuit as the current analog quantity, and determining the zero-point digital quantity corresponding to the current analog quantity, wherein the step of determining the zero-point digital quantity corresponding to the current analog quantity comprises: Using the current analog quantity as the analog quantity input of a preset analog-to-digital conversion circuit, and obtaining the analog quantity output corresponding to the analog quantity input in the analog-to-digital conversion circuit; using the analog quantity output as the zero-point digital quantity; A detection module, used for obtaining a preset zero point qualified digital quantity range, and detecting whether the zero point digital quantity is within the zero point qualified digital quantity range; A processing module is used to change the zero point mark according to the zero point digital quantity if the zero point digital quantity is not within the zero point qualified digital quantity range.
7. An infusion pump gravity sensor zero point calibration device, characterized in that: The infusion pump gravity sensor zero point calibration device includes: a memory, a processor, and an infusion pump gravity sensor zero point calibration program stored in the memory and executable on the processor. When the infusion pump gravity sensor zero point calibration program is executed by the processor, the steps of the infusion pump gravity sensor zero point calibration method as described in any one of claims 1 to 5 are implemented.
8. A storage medium, characterized in that: The storage medium stores an infusion pump gravity sensor zero point calibration program, and when the infusion pump gravity sensor zero point calibration program is executed by the processor, the steps of the infusion pump gravity sensor zero point calibration method as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Infusion pump with functions of pressure automatic zero setting and verification
CN106730130A
Gravity sensor testing method and device, electronic device and storage medium
CN111399080A
Motor zero point adjustment method, electronic equipment and computer readable storage medium
CN113759247A