A method, device and medium for determining the impedance value of an impedance pressure measuring device
By correcting the target initial sampling position and signal fitting after impedance channel switching, the problem of incomplete sampling signals after impedance channel switching is solved, and the accuracy of impedance value is improved.
Patent Information
- Application Number
- CN202111645447.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-12-29
AI Technical Summary
When calculating the multi-channel impedance value, in the prior art, the initial sampling position of the sampled signal after the impedance channel is switched deviates from the initial phase, resulting in incomplete sampling signal and affecting the accuracy of the impedance value.
After the impedance channel switching, by obtaining the initial sampling position, setting the target search range, selecting the target initial sampling position, and using it as the starting position to obtain the sampling signal, determining the impedance value according to the correspondence between the sampling signal and the impedance value, using the correlation coefficient and Integration or discrete Fourier transform method performs signal fitting, correcting the initial sampling position to improve accuracy.
By correcting the initial sampling position, the integrity of the collected signal is ensured, the accuracy of determination of impedance values is improved, and the calculation error is reduced.
Smart Images

Figure CN114397510B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of impedance determination, and in particular to a method, device and medium for determining the impedance value of an impedance pressure measuring device. Background Art
[0002] Impedance refers to the ability of a device or circuit to resist the current flowing through it. Impedance is usually an important parameter for evaluating circuits, components, and the materials used to make components.
[0003] In current technology, the impedance measurement method usually adopts the sine wave sampling method. By adding an excitation signal of a certain frequency to the impedance, sampling its response signal and performing data analysis, the impedance value is obtained.
[0004] However, the method has the defect that when the impedance channel is switched, the initial sampling position of the sampling signal will deviate from the initial phase, so that the sampling signal is not a complete sine wave signal, which affects the accuracy of the subsequent impedance value calculation.
[0005] It can be seen that how to improve the accuracy of impedance value determination when calculating impedance values of multiple channels is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0006] The purpose of the present application is to provide a method, device and medium for determining the impedance value of an impedance pressure measuring device, so as to improve the accuracy of impedance value determination when calculating the impedance values of multiple channels.
[0007] In order to solve the above technical problems, the present application provides a method for determining the impedance value of an impedance pressure measuring device, the method comprising:
[0008] After detecting the impedance channel switching, obtaining the initial sampling position of the sampling signal output by the impedance pressure measuring device;
[0009] Setting a target search range according to the initial sampling position;
[0010] Selecting a target initial sampling position in the target search range;
[0011] Taking the target initial sampling position as the starting position, acquiring the sampling signal;
[0012] The impedance value is determined according to the corresponding relationship between the sampling signal and the impedance value.
[0013] Preferably, selecting the target initial sampling position in the target search range includes:
[0014] Acquiring the acquisition frequency of the sampling signal;
[0015] According to the acquisition frequency, a preset number of sampling signal data are collected within the target search range;
[0016] Starting from the initial phase of the standard sine curve, the same preset number of standard signal data within one cycle is collected;
[0017] Solving the correlation coefficient between the sampled signal data and the standard signal data;
[0018] The position corresponding to the largest correlation coefficient among the correlation coefficients obtained by solving is selected as the target initial sampling position.
[0019] Preferably, the setting of the target search range includes:
[0020] A search range before the initial sampling position and a search range after the initial sampling position are set.
[0021] Preferably, the size of the search range before the initial sampling position and the size of the search range after the initial sampling position are 0.3 times the period size of the sampling signal.
[0022] Preferably, determining the impedance value according to the correspondence between the sampling signal and the impedance value comprises:
[0023] Using an integration method or a discrete Fourier transform method, an initial amplitude value of the sine signal wave is calculated according to the sampling signal, and used as the amplitude value of the first standard sine curve;
[0024] Obtaining the accuracy of the preset impedance value;
[0025] Adding an amplitude of the precision to the initial amplitude value to obtain an amplitude value of the second standard sine curve;
[0026] reducing the initial amplitude value by an amplitude of the precision to obtain an amplitude value of the third standard sine curve;
[0027] Fitting the sinusoidal signal wave with the first standard sinusoidal curve, the second standard sinusoidal curve, and the third standard sinusoidal curve respectively;
[0028] If the fitting error of the first standard sine curve is the smallest, determining the amplitude value of the first standard sine curve as the final amplitude value of the sine signal wave;
[0029] According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
[0030] Preferably, it also includes
[0031] If the fitting error of the second standard sine curve is the smallest, then the amplitude of the precision of the second standard sine curve is increased successively until the fitting error obtained no longer decreases;
[0032] Determine the amplitude value of the second standard sine curve at which the fitting error no longer decreases as the final amplitude value of the sine signal wave;
[0033] According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
[0034] Preferably, it also includes:
[0035] If the fitting error of the third standard sine curve is the smallest, then the amplitude of the accuracy of the third standard sine curve is reduced one by one in sequence until the fitting error of the obtained sine signal wave no longer decreases;
[0036] Determine the amplitude value of the third standard sine curve at which the fitting error no longer decreases as the final amplitude value of the sine signal wave;
[0037] According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
[0038] In order to solve the above technical problems, the present application also provides a device for determining the impedance value of an impedance pressure measuring device, the device comprising:
[0039] A first acquisition module is used to acquire an initial sampling position of a sampling signal output by the impedance pressure measuring device after detecting the switching of the impedance channel;
[0040] A setting module, used for setting a target search range according to the initial sampling position;
[0041] A selection module, used for selecting a target initial sampling position within the target search range;
[0042] A second acquisition module, configured to acquire the sampling signal with the target initial sampling position as a starting position;
[0043] The determination module is used to determine the impedance value according to the corresponding relationship between the sampling signal and the impedance value.
[0044] In order to solve the above technical problems, the present application also provides another device for determining the impedance value of an impedance pressure measuring device, the device comprising a memory for storing a computer program;
[0045] A processor is used to implement the steps of the method for determining the impedance value of the impedance pressure measuring device as described above when executing the computer program.
[0046] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for determining the impedance value of the impedance pressure measuring device as described above are implemented.
[0047] The impedance value determination method of the impedance pressure measuring device provided in the present application, after detecting the switching of the impedance channel, obtains the initial sampling position of the sampling signal output by the impedance pressure measuring device; sets the target search range according to the initial sampling position; selects the target initial sampling position in the target search range; takes the target initial sampling position as the starting position, obtains the sampling signal; determines the impedance value according to the correspondence between the sampling signal and the impedance value. Compared with the current technology, when calculating the impedance value, the sampling signal is incomplete due to the inaccurate initial sampling position, which in turn affects the accuracy of the impedance value. With the present technical solution, after the impedance channel is switched, a search is performed near the initial sampling position, and an accurate target initial sampling position that meets the initial phase is selected to achieve correction of the initial sampling position. Starting from the target initial sampling position, the sampling signal is collected so that the collected sampling signal is a complete signal, thereby improving the accuracy of the impedance value determination.
[0048] In addition, the device and medium for determining the impedance value of the impedance pressure measuring device provided in the present application correspond to the method for determining the impedance value of the impedance pressure measuring device described above, and the effects are the same as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 A flowchart of a method for determining an impedance value of an impedance pressure measuring device provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of a response signal provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of initial sampling position adjustment provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of a standard sine wave curve fitting a sine wave signal provided in an embodiment of the present application;
[0054] Figure 5A structural diagram of a device for determining an impedance value of an impedance pressure measuring device provided in an embodiment of the present application;
[0055] Figure 6 A structural diagram of a device for determining the impedance value of another impedance pressure measuring device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] The core of the present application is to provide a method, device and medium for determining the impedance value of an impedance pressure measuring device, so as to improve the accuracy of impedance value determination when calculating the impedance values of multiple channels.
[0058] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0059] It should be noted that the method for determining the impedance value of an impedance pressure measuring device provided in the present application is applied to an impedance pressure measuring device. The device can obtain the impedance of the human body by connecting to the human body, and obtain the impedance value by adding an excitation signal of a certain frequency to the impedance, sampling the response signal and performing data analysis, so as to evaluate the health of the human body.
[0060] Figure 1 A flowchart of a method for determining the impedance value of an impedance pressure measuring device provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0061] S10: After detecting the impedance channel switching, obtaining the initial sampling position of the sampling signal output by the impedance pressure measuring device.
[0062] It is understandable that after adding an excitation signal to the impedance, the impedance pressure measuring device will obtain a response signal, sample the response signal, obtain a sampling signal, and analyze the sampling signal to calculate the impedance value. However, in a specific implementation, after each impedance channel is switched, the initial sampling position of the sampling signal may be at the initial phase of the sine wave of the sampling signal, or may not be at the initial phase of the sine wave. Figure 2 A schematic diagram of a response signal provided in an embodiment of the present application, such as Figure 2As shown, the initial sampling position of the sampling signal may be at point a, point b, or point c, where point c is the initial phase of the sine wave of the sampling signal. It can be understood that the sampling period is usually a complete sine wave period. If points a and b are used as the initial sampling positions, the final waveform is not a complete sine wave. If point c is used as the initial sampling position, a complete sine wave will be obtained.
[0063] S11: Setting the target search range according to the initial sampling position.
[0064] In step S11, the target search range is set according to the initial sampling position. It is understandable that the initial sampling position can be within the target search range, or the initial sampling position can be used as the start or end of the target search range. Figure 2 It can be seen that the initial sampling position may be before the initial phase of the sine wave or after the initial phase of the sine wave. Therefore, in order to improve the accuracy of the target search range, the initial sampling position should be within the target search range.
[0065] S12: Selecting an initial sampling position of a target in the target search range.
[0066] In a specific implementation, since the initial sampling position of the sampling signal may be offset each time the impedance channel is switched, in step S12, the position closest to the initial phase of the sine wave is selected in the target search range as the target initial sampling position to correct the initial sampling position. It can be understood that since the initial sampling position is inconsistent each time the impedance channel is switched, correction is required regardless of whether the initial sampling position is the position of the initial phase of the sine wave after the impedance channel is switched.
[0067] S13: Taking the target initial sampling position as the starting position, acquiring the sampling signal.
[0068] In step S13, after the target initial sampling position is found, the target initial sampling position is used as the starting position to obtain the sampling signal. In a specific implementation, a response signal of one cycle is usually collected as the sampling signal.
[0069] S14: Determine the impedance value according to the corresponding relationship between the sampling signal and the impedance value.
[0070] In specific implementations, the impedance value is usually calculated by sampling the signal using a maximum value method, an integral method, a discrete Fourier transform method, or the like.
[0071] The impedance value determination method of the impedance pressure measuring device provided in the embodiment of the present application, after detecting the switching of the impedance channel, obtains the initial sampling position of the sampling signal output by the impedance pressure measuring device; sets the target search range according to the initial sampling position; selects the target initial sampling position in the target search range; takes the target initial sampling position as the starting position, obtains the sampling signal; and determines the impedance value according to the correspondence between the sampling signal and the impedance value. Compared with the current technology, when calculating the impedance value, the sampling signal is incomplete due to the inaccurate initial sampling position, thereby affecting the accuracy of the impedance value. With the present technical solution, after the impedance channel is switched, a search is performed near the initial sampling position, and an accurate target initial sampling position that meets the initial phase is selected to achieve correction of the initial sampling position. Starting from the target initial sampling position, the sampling signal is collected so that the collected sampling signal is a complete signal, thereby improving the accuracy of the impedance value determination.
[0072] Based on the above embodiment, this embodiment provides a specific method for selecting an initial sampling position of a target. Selecting an initial sampling position of a target in a target search range includes:
[0073] Get the acquisition frequency of the sampling signal;
[0074] According to the acquisition frequency, a preset number of sampling signal data are collected within the target search range;
[0075] Starting from the initial phase of the standard sine curve, the same preset number of standard signal data within one cycle is collected;
[0076] Solve the correlation coefficient between the sampled signal data and the standard signal data;
[0077] The position corresponding to the largest correlation coefficient among the solved correlation coefficients is selected as the target initial sampling position.
[0078] Figure 3 A schematic diagram of adjusting the initial sampling position provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the initial sampling position before adjustment is X0, and [X0-R1, X0+R2] is the target search range. Assuming that the acquisition frequency of the sampling signal is n, the sampling signal data at n positions are sequentially selected within the range of [X0-R1, X0+R2]. And, starting from the initial phase of the standard sine curve of the same frequency, n standard signal data within one cycle are collected. It can be understood that there is no order of precedence between this step and the above steps, and the sampling signal data can be collected first, or the standard signal data can be collected first. After collecting the sampling signal data and the standard signal data, the correlation coefficient is solved to obtain R2+R1+1 correlation coefficients. The position with the largest correlation coefficient in the correlation coefficient is the target initial sampling position closest to the initial phase of the sine wave, such as Figure 3 The adjusted initial sampling position in .
[0079] The method for determining the impedance value of the impedance pressure measuring device provided in the embodiment of the present application solves the correlation coefficient by collecting data within the target search range and the data collected within the standard sine curve, and selects the maximum value of the correlation coefficient as the target initial sampling position, thereby realizing the correction of the initial sampling position.
[0080] In a specific implementation, since the initial sampling position may be before the initial phase of the sine wave or after the initial phase of the sine wave, in order to improve the accuracy of the target search range, based on the above embodiment, in this embodiment, setting the target search range includes:
[0081] Set the search range before the initial sampling position and the search range after the initial sampling position.
[0082] like Figure 3 As shown, the target search range is [X0-R1, X0+R2]. It can be understood that the ranges of R1 and R2 can be the same or different. The settings of R1 and R2 are based on the initial sampling position. In order to avoid extremes, the ranges of R1 and R2 should not differ too much.
[0083] The method for determining the impedance value of the impedance pressure measuring device provided in the embodiment of the present application enhances the accuracy of the target search range by setting the search range before the initial sampling position and the search range after the initial sampling position, thereby facilitating finding the target initial sampling position.
[0084] In a specific implementation, a sampling signal of one cycle is usually collected to calculate the impedance value. It is understandable that after switching the impedance channel, the initial sampling position should be near the initial phase of the sine wave. When setting the target search range, there is no need to set an excessively large target search range in order to reduce the selection time of the target initial sampling position.
[0085] On the basis of the above embodiment, in this embodiment, the size of the search range before the initial sampling position and the search range after the initial sampling position is 0.3 times the period size of the sampling signal in total.
[0086] The method for determining the impedance value of the impedance pressure measuring device provided in the embodiment of the present application sets the search range before the initial sampling position and the search range after the initial sampling position to be 0.3 times the period size of the sampling signal in total, so as to reduce the selection time of the target initial sampling position.
[0087] On the basis of the above embodiment, in this embodiment, according to the correspondence between the sampling signal starting from the target initial sampling position and the impedance value, determining the impedance value includes:
[0088] Using the integration method or the discrete Fourier transform method, the initial amplitude value of the sine signal wave is calculated according to the sampling signal, and is used as the amplitude value of the first standard sine curve;
[0089] Get the accuracy of the preset impedance value;
[0090] Add an amplitude of precision to the initial amplitude value as the amplitude value of the second standard sine curve;
[0091] The initial amplitude value is reduced by an amplitude of a precision degree to be used as the amplitude value of the third standard sine curve;
[0092] Fitting the sinusoidal signal wave with the first standard sinusoidal curve, the second standard sinusoidal curve and the third standard sinusoidal curve respectively;
[0093] If the fitting error of the first standard sine curve is the smallest, then determining the amplitude value of the first standard sine curve as the final amplitude value of the sine signal wave;
[0094] According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
[0095] Figure 4 A schematic diagram of a standard sine wave curve fitting a sine wave signal provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the first standard sine curve is Figure 4 In sin_wave2, the second standard sine curve is Figure 4 The third standard sine curve is sin_wave3 in Figure 4 sin_wave1 in .
[0096] The method for determining the impedance value of the impedance pressure measuring device provided in the embodiment of the present application provides a method for calculating the impedance value, which uses the integration method or the discrete Fourier transform method to calculate the impedance value according to the sampling signal.
[0097] In the above embodiment, when the fitting error of the first standard sine curve is the smallest, the impedance value can be calculated by the amplitude of the first standard sine curve according to the corresponding relationship between the impedance value and the amplitude of the sine signal wave. In this embodiment, it also includes:
[0098] If the fitting error of the second standard sine curve is the smallest, then the amplitude of the precision of the second standard sine curve is increased successively until the fitting error is no longer reduced;
[0099] Determine the amplitude value of the second standard sine curve at which the fitting error no longer decreases as the final amplitude value of the sine signal wave;
[0100] According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
[0101] The method for determining the impedance value of the impedance pressure measuring device provided in the embodiment of the present application is, when the fitting error of the second standard sine curve is the smallest, the amplitude of the second standard sine curve is successively increased by one precision until the fitting error of the obtained sinusoidal signal wave no longer decreases, and the impedance value is calculated by the amplitude of the sinusoidal signal wave where the fitting error no longer decreases, so as to calculate the most accurate impedance value.
[0102] Based on the above embodiment, in this embodiment, it further includes:
[0103] If the fitting error of the third standard sine curve is the smallest, the amplitude of the third standard sine curve is reduced by one degree of accuracy in sequence until the fitting error of the obtained sine signal wave no longer decreases;
[0104] Determine the amplitude value of the third standard sine curve at which the fitting error no longer decreases as the final amplitude value of the sine signal wave;
[0105] According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
[0106] The method for determining the impedance value of the impedance pressure measuring device provided in the embodiment of the present application is, when the fitting error of the third standard sine curve is the smallest, the amplitude of the third standard sine curve is reduced by one degree of accuracy in sequence until the fitting error of the obtained sinusoidal signal wave no longer decreases, and the impedance value is calculated by the amplitude of the sinusoidal signal wave whose fitting error no longer decreases, so as to calculate the most accurate impedance value.
[0107] In the above embodiments, the method for determining the impedance value of the impedance pressure measuring device is described in detail, and the present application also provides an embodiment corresponding to the device for determining the impedance value of the impedance pressure measuring device. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the perspective of the functional module, and the other is based on the perspective of the hardware.
[0108] Figure 5 A structural diagram of a device for determining the impedance value of an impedance pressure measuring device provided in an embodiment of the present application, such as Figure 5 As shown, the device comprises:
[0109] A first acquisition module 10 is used to acquire an initial sampling position of a sampling signal output by the impedance pressure measuring device after detecting the switching of the impedance channel;
[0110] A setting module 11, used to set a target search range according to an initial sampling position;
[0111] A selection module 12, used to select an initial sampling position of a target in a target search range;
[0112] A second acquisition module 13 is used to acquire a sampling signal with the target initial sampling position as the starting position;
[0113] The determination module 14 is used to determine the impedance value according to the corresponding relationship between the sampling signal and the impedance value.
[0114] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0115] The impedance value determination device of the impedance pressure measuring device provided in the embodiment of the present application obtains the initial sampling position of the sampling signal output by the impedance pressure measuring device after detecting the switching of the impedance channel; sets the target search range according to the initial sampling position; selects the target initial sampling position in the target search range; obtains the sampling signal with the target initial sampling position as the starting position; and determines the impedance value according to the correspondence between the sampling signal and the impedance value. Compared with the current technology, when calculating the impedance value, the sampling signal is incomplete due to the inaccurate initial sampling position, thereby affecting the accuracy of the impedance value. With the present technical solution, after the impedance channel is switched, a search is performed near the initial sampling position, and an accurate target initial sampling position that meets the initial phase is selected to achieve correction of the initial sampling position. Starting from the target initial sampling position, the sampling signal is collected so that the collected sampling signal is a complete signal, thereby improving the accuracy of the impedance value determination.
[0116] Figure 6 A structural diagram of another device for determining the impedance value of an impedance pressure measuring device provided in an embodiment of the present application, such as Figure 6 As shown, the device comprises: a memory 20 for storing a computer program;
[0117] The processor 21 is used to implement the steps of the method for determining the impedance value of the impedance pressure measuring device in the above embodiment when executing the computer program.
[0118] The device for determining the impedance value of the impedance pressure measuring device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0119] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0120] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the method for determining the impedance value of the impedance pressure measuring device disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to an initial sampling position, a target initial sampling position, a target search range, etc.
[0121] In some embodiments, the device for determining the impedance value of the impedance pressure measuring device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0122] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the device for determining the impedance value of the impedance pressure measuring device, and may include more or less components than those shown in the figure.
[0123] An impedance value determination device for an impedance pressure measuring device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: after detecting the switching of the impedance channel, obtaining the initial sampling position of the sampling signal output by the impedance pressure measuring device; setting a target search range according to the initial sampling position; selecting a target initial sampling position in the target search range; obtaining a sampling signal with the target initial sampling position as the starting position; and determining the impedance value according to the correspondence between the sampling signal and the impedance value.
[0124] The impedance value determination device of the impedance pressure measuring device provided in the embodiment of the present application obtains the initial sampling position of the sampling signal output by the impedance pressure measuring device after detecting the switching of the impedance channel; sets the target search range according to the initial sampling position; selects the target initial sampling position in the target search range; obtains the sampling signal with the target initial sampling position as the starting position; and determines the impedance value according to the correspondence between the sampling signal and the impedance value. Compared with the current technology, when calculating the impedance value, the sampling signal is incomplete due to the inaccurate initial sampling position, thereby affecting the accuracy of the impedance value. With the present technical solution, after the impedance channel is switched, a search is performed near the initial sampling position, and an accurate target initial sampling position that meets the initial phase is selected to achieve correction of the initial sampling position. Starting from the target initial sampling position, the sampling signal is collected so that the collected sampling signal is a complete signal, thereby improving the accuracy of the impedance value determination.
[0125] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0126] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0127] The computer-readable storage medium provided in the embodiment of the present application obtains the initial sampling position of the sampling signal output by the impedance pressure measuring device after detecting the switching of the impedance channel; sets the target search range according to the initial sampling position; selects the target initial sampling position in the target search range; uses the target initial sampling position as the starting position to obtain the sampling signal; and determines the impedance value according to the correspondence between the sampling signal and the impedance value. Compared with the current technology, when calculating the impedance value, the sampling signal is incomplete due to the inaccurate initial sampling position, which in turn affects the accuracy of the impedance value. With the present technical solution, after the impedance channel is switched, a search is performed near the initial sampling position, and an accurate target initial sampling position that conforms to the initial phase is selected to achieve correction of the initial sampling position. Starting from the target initial sampling position, the sampling signal is collected so that the collected sampling signal is a complete signal, thereby improving the accuracy of the impedance value determination.
[0128] The above is a detailed introduction to the impedance value determination method, device and medium of the impedance pressure measuring device provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0129] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device 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 device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for determining the impedance value of an impedance pressure measuring device, characterized in that: include: After detecting the impedance channel switching, obtaining the initial sampling position of the sampling signal output by the impedance pressure measuring device; Setting a target search range according to the initial sampling position; Selecting a target initial sampling position in the target search range; Taking the target initial sampling position as the starting position, acquiring the sampling signal; The impedance value is determined according to the corresponding relationship between the sampling signal and the impedance value.
2. The method for determining the impedance value of the impedance pressure measuring device according to claim 1, characterized in that: The selecting of the target initial sampling position in the target search range comprises: Acquiring the acquisition frequency of the sampling signal; According to the acquisition frequency, a preset number of sampling signal data are collected within the target search range; Starting from the initial phase of the standard sine curve, the same preset number of standard signal data within one cycle is collected; Solving the correlation coefficient between the sampled signal data and the standard signal data; The position corresponding to the largest correlation coefficient among the correlation coefficients obtained by solving is selected as the target initial sampling position.
3. The method for determining the impedance value of the impedance pressure measuring device according to claim 1 or 2, characterized in that: The target search range is set as follows: A search range before the initial sampling position and a search range after the initial sampling position are set.
4. The method for determining the impedance value of the impedance pressure measuring device according to claim 3, characterized in that: The size of the search range before the initial sampling position and the size of the search range after the initial sampling position are 0.3 times the period size of the sampling signal.
5. The method for determining the impedance value of the impedance pressure measuring device according to claim 1, characterized in that: Determining the impedance value according to the correspondence between the sampling signal and the impedance value includes: Using an integration method or a discrete Fourier transform method, an initial amplitude value of the sine signal wave is calculated according to the sampling signal, and used as the amplitude value of the first standard sine curve; Obtaining the accuracy of the preset impedance value; Adding an amplitude of the precision to the initial amplitude value to obtain an amplitude value of the second standard sine curve; reducing the initial amplitude value by an amplitude of the precision to obtain an amplitude value of the third standard sine curve; Fitting the sinusoidal signal wave with the first standard sinusoidal curve, the second standard sinusoidal curve, and the third standard sinusoidal curve respectively; If the fitting error of the first standard sine curve is the smallest, determining the amplitude value of the first standard sine curve as the final amplitude value of the sine signal wave; According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
6. The method for determining the impedance value of the impedance pressure measuring device according to claim 5, characterized in that: Also includes If the fitting error of the second standard sine curve is the smallest, then the amplitude of the precision of the second standard sine curve is increased successively until the fitting error obtained no longer decreases; Determine the amplitude value of the second standard sine curve at which the fitting error no longer decreases as the final amplitude value of the sine signal wave; According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
7. The method for determining the impedance value of the impedance pressure measuring device according to claim 5, characterized in that: Also includes: If the fitting error of the third standard sine curve is the smallest, then the amplitude of the accuracy of the third standard sine curve is reduced one by one in sequence until the fitting error of the obtained sine signal wave no longer decreases; Determine the amplitude value of the third standard sine curve at which the fitting error no longer decreases as the final amplitude value of the sine signal wave; According to the corresponding relationship between the impedance value and the final amplitude value of the sinusoidal signal wave, the impedance value is calculated by the final amplitude value of the sinusoidal signal wave.
8. A device for determining the impedance value of an impedance pressure measuring device, characterized in that: include: A first acquisition module is used to acquire an initial sampling position of a sampling signal output by the impedance pressure measuring device after detecting the switching of the impedance channel; A setting module, used for setting a target search range according to the initial sampling position; A selection module, used for selecting a target initial sampling position within the target search range; A second acquisition module, configured to acquire the sampling signal with the target initial sampling position as a starting position; The determination module is used to determine the impedance value according to the corresponding relationship between the sampling signal and the impedance value.
9. A device for determining the impedance value of an impedance pressure measuring device, characterized in that: comprising a memory for storing a computer program; A processor, configured to implement the steps of the method for determining the impedance value of the impedance pressure measuring device according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for determining the impedance value of the impedance pressure measuring device according to any one of claims 1 to 7 are implemented.
