ECG testing method, device, equipment and medium

Through the testing method of ECG signal conversion and analysis processing in the wearable device with ECG function, the problem of lack of communication transmission testing in the prior art ECG function test is solved, and more accurate and reliable test results are achieved, improving the user experience.

CN115389845BActive Publication Date: 2025-04-25GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211032784.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2025-04-25
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

When testing wearable devices with ECG function, the prior art lacks a comprehensive test of the communication transmission between the chip and the motherboard, resulting in large errors in ECG signal, and corrections may be accompanied by risk of disassembly and reduce user experience.

Method used

A test method for ECG is provided, by obtaining the conversion signal obtained by converting the ECG signal, performing analysis processing to obtain the final signal, and determining the test results based on the correspondence between the ECG signal and the final signal, ensuring the accuracy of the test results.

Benefits of technology

Through this method, the accuracy and reliability of ECG function testing can be effectively improved, the risks brought about by disassembly and correction after packaging can be avoided, and the user experience can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115389845B_ABST
    Figure CN115389845B_ABST
Patent Text Reader

Abstract

The present invention discloses an ECG testing method, device, equipment and medium, which are applicable to the field of testing technology. Obtain a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator simulating a human ECG signal; the conversion signal is analyzed and processed to obtain a final signal; and the test result is determined according to the correspondence between the ECG signal and the final signal. The method is based on the welding test of the hardware, and a communication transmission test of the ECG functional chip is added. Through communication transmission, the conversion signal obtained through the amplifier and the AD converter is analyzed to obtain the final signal, thereby determining the test result. If the test result is that the test passes, it is packaged to avoid the risk of disassembling and correcting after packaging, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to an ECG testing method, device, equipment and medium. Background Art

[0002] Currently, consumer electronic products such as smart watches, smart wristbands and other wearable devices are very popular, and the product functions they realize are relatively similar, such as Near Field Communication (NFC) / Bluetooth / Global Positioning System (GPS) / heart rate detection, etc. However, as users' health awareness becomes stronger and stronger, wearable devices are gradually unable to meet users' needs for rapid health monitoring. Wearable devices with electrocardiogram (ECG) data medical certification are undoubtedly becoming hot in the wearable device market.

[0003] Currently in the industry, the chip with ECG function is welded into the mainboard chip of the wearable device. The testers only test the welding, resulting in the lack of testing of the communication transmission between the chip with ECG function and other mainboard chips of the wearable device. Therefore, the wearable device with ECG function cannot be fully tested. If the error of ECG signal is large, its correction may be accompanied by the risk of disassembling the wearable device, which reduces the user experience.

[0004] Therefore, how to improve the test effect of ECG function is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] The purpose of the present invention is to provide an ECG testing method, device, equipment and medium to avoid the risk problems caused by disassembly and correction after packaging, thereby improving the user experience.

[0006] In order to solve the above technical problems, the present invention provides an ECG testing method, comprising:

[0007] Acquire a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator that simulates a human ECG signal;

[0008] Analyze and process the converted signal to obtain the final signal;

[0009] The test result is determined based on the corresponding relationship between the ECG signal and the final signal.

[0010] Preferably, the ECG signal at least includes an analog signal corresponding to a limb lead of a human body, and before obtaining the conversion signal, further includes:

[0011] Count the number of ECG acquisition pins, where the number of ECG acquisition pins is greater than or equal to 3 in the PCBA motherboard to be tested;

[0012] If the number is less than the number of leads corresponding to the analog signal, the analog signal of the upper limb lead of the human body and the analog signal of one of the lower limbs are selected as the ECG signal output by the signal generator;

[0013] In the PCBA mainboard to be tested, the analog signal of one lower limb is connected to the electrical circuit corresponding to the analog signal of the other lower limb, and combined with the analog signal of the upper limb lead of the human body to facilitate the generation of the conversion signal.

[0014] Preferably, determining the test result according to the correspondence between the ECG signal and the final signal includes:

[0015] Get the original amplification factor of the amplifier;

[0016] The actual amplification factor is obtained by taking the quotient of the ECG signal and the final signal;

[0017] If the actual magnification is the same as the original magnification, the test result is determined to be a passed test;

[0018] If the actual magnification is different from the original magnification, the test result is determined to be a test failure.

[0019] Preferably, determining the test result according to the correspondence between the ECG signal and the final signal includes:

[0020] Get the original amplification factor of the amplifier;

[0021] The actual amplification factor is obtained by taking the quotient of the ECG signal and the final signal;

[0022] The actual magnification is subtracted from the original magnification to obtain the magnification difference;

[0023] Determine whether the multiple difference is within a threshold range;

[0024] If yes, the test result is determined to be a test pass;

[0025] If not, the test result is determined to be a test failure.

[0026] In order to solve the above technical problems, the present invention also provides an ECG test device, including a signal generator for simulating human ECG signals and a PCBA mainboard to be tested, wherein the PCBA mainboard to be tested includes at least an amplifier, an AD converter, an ECG acquisition pin and an MCU;

[0027] The signal generator is connected to the ECG acquisition pin, the ECG acquisition pin is connected to the amplifier, the amplifier is connected to the AD converter, and the AD converter is connected to the MCU;

[0028] The MCU is used to receive the conversion signal obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, analyze the conversion signal to obtain a final signal, and determine the test result according to the corresponding relationship between the ECG signal and the final signal.

[0029] Preferably, the signal generator is connected to the ECG acquisition pin via a shielded wire.

[0030] Preferably, it also includes a host computer;

[0031] The MCU is connected to the host computer via a USB communication cable, which is used to transmit the final signal to the host computer for display.

[0032] Preferably, it also includes a mobile terminal device;

[0033] The MCU and the mobile terminal device are connected wirelessly via BLE to transmit the final signal to the mobile terminal device for viewing.

[0034] Preferably, the signal generator is a vital sign simulator.

[0035] In order to solve the above technical problems, the present invention further provides an ECG testing device, comprising:

[0036] An acquisition module is used to acquire a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator simulating a human ECG signal;

[0037] The analysis module is used to analyze the converted signal to obtain the final signal;

[0038] The determination module is used to determine the test result according to the corresponding relationship between the ECG signal and the final signal.

[0039] In order to solve the above technical problems, the present invention further provides an ECG testing device, comprising:

[0040] Memory for storing computer programs;

[0041] A processor is used to implement the steps of the ECG testing method as described above when executing a computer program.

[0042] In order to solve the above technical problems, the present invention 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 ECG testing method as described above are implemented.

[0043] The present invention provides an ECG testing method, comprising: obtaining a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator simulating a human ECG signal; parsing and processing the conversion signal to obtain a final signal; and determining the test result according to the correspondence between the ECG signal and the final signal. The method is based on the welding test of the hardware, and adds a communication transmission test on the ECG functional chip. Through communication transmission, the conversion signal obtained through the amplifier and the AD converter is then parsed to obtain the final signal, thereby determining the test result. If the test result is that the test passes, it is packaged to avoid the risk of disassembling and correcting after packaging, thereby improving the user experience.

[0044] The present invention provides an ECG test device, comprising a signal generator for simulating human ECG signals and a PCBA mainboard to be tested, wherein the PCBA mainboard to be tested comprises at least an amplifier, an AD converter, an ECG acquisition pin and an MCU; the signal generator is connected to the ECG acquisition pin, the ECG acquisition pin is connected to the amplifier, the amplifier is connected to the AD converter, and the AD converter is connected to the MCU; the MCU is used to receive a conversion signal obtained by amplifying the ECG signal through the amplifier and converting it through the AD converter, analyze the conversion signal to obtain a final signal, and determine the test result according to the correspondence between the ECG signal and the final signal. The device is based on the welding test of the hardware, and adds a communication transmission test for the ECG functional chip. Through communication transmission, the conversion signal obtained through the amplifier and the AD converter is analyzed to obtain the final signal, thereby determining the test result. If the test result is that the test passes, it is packaged to avoid the risk of disassembling and correcting after packaging, thereby improving the user experience.

[0045] In addition, the present invention also provides an ECG testing device and medium, which have the same beneficial effects as the above-mentioned ECG testing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A flow chart of an ECG testing method provided by an embodiment of the present invention;

[0048] Figure 2 A structural diagram of an ECG testing device provided by an embodiment of the present invention;

[0049] Figure 3 It is a schematic diagram of the actual ECG signal strength;

[0050] Figure 4 Schematic diagram of ECG signal strength under external interference;

[0051] Figure 5 A structural diagram of an ECG testing device provided by an embodiment of the present invention;

[0052] Figure 6 A structural diagram of another ECG testing device provided by an embodiment of the present invention;

[0053] Figure 7 A structural diagram of a PCBA motherboard to be tested provided by an embodiment of the present invention;

[0054] Figure 8 A structural diagram of an ECG testing device provided in another embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] The core of the present invention is to provide an ECG testing method, device, equipment and medium to avoid the risk problems caused by disassembly and correction after packaging, thereby improving the user experience.

[0057] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0058] It should be noted that the ECG testing method provided by the present invention is to test the chip with ECG function, and encapsulate the chip with ECG function that has passed the test into a wearable device, and the wearable device can be a smart watch, a smart wristband, augmented reality (AR) glasses, virtual reality (VR) glasses or a Bluetooth headset, etc., which are not limited here. Wearable devices based on ECG function generally collect leads on the wrist of the human body, most of which are smart watches and smart wristbands. Correspondingly, the process of collecting the user's ECG by the wearable device can obtain the ECG signals at other leads of the limbs based on the ECG signal at one lead through the impedance value relationship, thereby obtaining a real ECG signal.

[0059] Figure 1 A flow chart of an ECG testing method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:

[0060] S11: Acquire a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator simulating a human ECG signal;

[0061] S12: Analyze and process the converted signal to obtain a final signal;

[0062] S13: Determine the test result according to the corresponding relationship between the ECG signal and the final signal.

[0063] Specifically, a conversion signal obtained after the ECG signal is converted is obtained, wherein the conversion signal is a signal obtained by converting the ECG signal through an amplifier and then through an analog to digital (AD) converter. An amplifier is a device for amplifying electrical signals. Its basic task is to amplify weak signals to the required value without distortion, that is, to control a larger signal with a smaller signal, and to amplify the voltage or power of the input signal. It is composed of electron tubes or transistors, power transformers and other electrical components. The types of amplifiers include linear amplifiers and nonlinear amplifiers. The output of the linear amplifier is the reproduction and enhancement of the input signal, and the output of the nonlinear amplifier is in a certain functional relationship with the output signal. In this regard, the embodiment of the present invention does not make specific restrictions, as long as it can be obtained through a certain functional relationship or linear relationship. The circuit of the amplifier includes an inverse / in-phase proportional operational amplifier circuit, a voltage follower, an adder, a subtractor, an integrator circuit, a differential circuit, a differential amplifier circuit, an I / V conversion circuit, a V / I conversion circuit, a voltage boost circuit, etc. The basic circuit type of the amplifier can be selected according to actual conditions, and is not limited here.

[0064] The AD converter converts analog quantities that are continuous in time and continuous in amplitude into digital quantities that are discrete in time and discrete in amplitude, so that the output digital quantity is proportional to the input analog quantity. The conversion process includes four stages: sampling, holding, quantization, and encoding. Sampling is the process of converting a continuous time signal into a discrete time signal. After sampling, an analog signal that is continuous in time and continuous in value becomes a signal that is discrete in time and continuous in value, called a sampling signal. The sampling circuit is equivalent to an analog switch, which works periodically. Theoretically, in each cycle, the closing time of the analog switch approaches 0. At the moment when the analog switch is closed (sampling moment), a "sample" of the analog signal is "sampled". Quantization is the process of converting a continuous numerical signal into a discrete numerical signal. Theoretically, after quantization, a sampling signal that is discrete in time and continuous in value can be converted into a digital signal that is discrete in time and discrete in value. In the circuit, digital quantities are usually represented by binary codes. Therefore, there is an encoding circuit behind the quantization circuit to convert the numerical value of the digital signal into binary code.

[0065] However, quantization and encoding always take a certain amount of time to complete, so there must be a holding circuit in front of the quantization circuit. Holding is the process of converting a discrete-time, continuous-value signal into a continuous-value, discrete-value signal. During quantization and encoding, the holding circuit is equivalent to a constant voltage source, which "holds" the signal voltage at the sampling moment at the input of the quantizer. Although the holder is a separate unit in logic, the holder is always built together with the sampler in engineering. The two are collectively called a sample-and-hold device.

[0066] ECG signals are generated by a signal generator that simulates human ECG signals. A signal generator is a device that can provide electrical signals of various frequencies, waveforms, and output levels. It is used as a test signal source or excitation source when measuring the amplitude characteristics, frequency characteristics, transmission characteristics, and other electrical parameters of various telecommunication systems or telecommunication equipment, as well as when measuring the characteristics and parameters of components.

[0067] Signal generator, also known as signal source or oscillator, is widely used in production practice and science and technology. Various waveform curves are represented by trigonometric function equations. A circuit that can generate a variety of waveforms, such as triangular wave, sawtooth wave, rectangular wave (including square wave), and sine wave is called a function signal generator. Signal generators are divided into sinusoidal signal generators, low-frequency signal generators, high-frequency signal generators, microwave signal generators, function generators, pulse signal generators, etc. according to different frequency characteristics. This application does not make specific restrictions here, as long as it can simulate the ECG signals at different collection leads of the human body.

[0068] The obtained converted signal is subjected to analytical processing to obtain a final signal. Specifically, the analytical processing may be noise reduction processing, spectrum analysis, etc. to obtain the final signal. In this embodiment, no specific limitation is made to the analytical analysis, wherein the specific analytical processing methods such as noise reduction processing, spectrum analysis, etc. are not specifically limited and may be set according to actual conditions.

[0069] It can be understood that the ECG signal output by the signal generator is a time domain signal, which represents the waveform data within a unit time. For ease of viewing, the final signal is in the form of BPM / PEAK, where BPM represents the number of heart rate fluctuations per minute, and PEAK represents the waveform amplitude of the limb leads.

[0070] In step S13, the test result is determined according to the correspondence between the ECG signal and the final signal. Specifically, the test result can be determined according to the relationship between the multiple of the ECG signal and the final signal and the amplification factor of the amplifier, or the test result can be determined by the relationship between the multiple and the threshold range of the amplification factor, or the test result can be determined by the regression relationship between the multiple and the amplification factor, or the test result can be determined by verifying the robustness relationship between the multiple and the amplification factor through an artificial intelligence algorithm. This embodiment does not limit this, as long as the test result can be determined by two signals, so as to determine whether the printed circuit board (PCBA) to be tested can be packaged into a wearable device for use.

[0071] The present invention provides an ECG testing method, comprising: obtaining a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator simulating a human ECG signal; parsing and processing the conversion signal to obtain a final signal; and determining the test result according to the correspondence between the ECG signal and the final signal. The method is based on the welding test of the hardware, and adds a communication transmission test on the ECG functional chip. Through communication transmission, the conversion signal obtained through the amplifier and the AD converter is then parsed to obtain the final signal, thereby determining the test result. If the test result is that the test passes, it is packaged to avoid the risk of disassembling and correcting after packaging, thereby improving the user experience.

[0072] On the basis of the above embodiment, the ECG signal at least includes an analog signal corresponding to a limb lead of a human body, and before obtaining the conversion signal, it also includes:

[0073] Count the number of ECG acquisition pins, where the number of ECG acquisition pins is greater than or equal to 3 in the PCBA motherboard to be tested;

[0074] If the number is less than the number of leads corresponding to the analog signal, the analog signal of the upper limb lead of the human body and the analog signal of one of the lower limbs are selected as the ECG signal output by the signal generator;

[0075] In the PCBA mainboard to be tested, the analog signal of one lower limb is connected to the electrical circuit corresponding to the analog signal of the other lower limb, and combined with the analog signal of the upper limb lead of the human body to facilitate the generation of the conversion signal.

[0076] It should be noted that ECG signal is a general term for multiple lead data collected from the user's body, and the ECG signal provided in the embodiment of the present invention at least includes signals corresponding to the limb leads of the human body. Since it is an ECG signal simulated by a signal generator, the ECG signal of this embodiment at least includes simulated signals corresponding to the limb leads of the human body.

[0077] Since the test method of the ECG signal of the present invention is measured by a hardware communication method, it is necessary to check whether the ECG acquisition pins in the PCBA motherboard to be tested can meet the introduction of the lead data of the signal generator. The ECG acquisition pins and the lead output present a one-to-one relationship, so it is necessary to count the number of ECG acquisition pins in the PCBA motherboard to be tested to determine the lead data of the ECG signal output of the signal generator.

[0078] Different leads of the electrocardiogram represent different parts of the human body. Leads I and avl represent the upper lateral wall of the left heart, leads II, III, and avf represent the lower wall of the left heart, leads avr represent the right heart, leads V1-V4 represent the anterior wall of the heart, leads V5-V6 represent the lateral wall, and leads V7-V8 represent the posterior wall. Problems with different leads often indicate problems in the corresponding parts. Standard leads I, II, and III reflect the potential difference between the two limbs. Lead I connects the left upper limb electrode to the positive terminal of the electrocardiograph, and the right upper limb electrode to the negative terminal, reflecting the potential difference between the left upper limb (L) and the right upper limb (R). Lead II connects the left lower limb electrode to the positive terminal of the electrocardiograph, and the right upper limb electrode to the negative terminal, reflecting the potential difference between the left lower limb (F) and the right upper limb (R). Lead III connects the left lower limb to the positive terminal of the electrocardiograph and the left upper limb electrode to the negative terminal, reflecting the potential difference between the left lower limb (F) and the left upper limb (L).

[0079] In order to meet the collection of basic standard lead information, the number of ECG acquisition pins of the PCBA motherboard to be tested needs to be greater than or equal to 3, at least to meet the input of three lead information of the standard lead, that is, two lead information of the upper limbs and one lead information of the lower limbs. Based on the spatial layout of the PCBA motherboard to be tested, the number of ECG acquisition pins can be set to 3. If different lead information is considered, the number of ECG acquisition pins is the same as the number of output leads of the ECG signal. At the same time, the ECG signal can be collected based on the standard 12 leads, or based on the standard 15, 16, and 18 leads. The present invention does not limit this. In other words, the signal generator can be based on which standard lead to set according to actual conditions. Taking into account the applicability of wearable devices and the acceptance of the mass consumption level, the number of ECG acquisition pins is generally 3 or 4 to meet the basic limb acquisition of the electrocardiogram.

[0080] The wearable device can collect ECG data from one lead, and through the mapping relationship of impedance values, obtain the ECG data of other limbs, thereby measuring the ECG signal of the user wearing the wearable device.

[0081] After counting the number of ECG acquisition pins in the PCBA motherboard to be tested, if the number is less than the number of leads corresponding to the analog signal, the limb leads under the standard lead are selected as the output leads. For example, if the number of leads corresponding to the analog signal is 12 leads and the number of ECG acquisition pins is 3, the actual three leads of the limb leads are selected as the output leads.

[0082] Since the lead effects of the analog signals of the lower limbs are the same, the electrical circuits corresponding to the analog signals of the two lower limbs are turned on in the PCBA mainboard to be tested, and at the same time, the analog signals of the upper limb leads of the human body are combined to form the input of four lead data to facilitate the generation of conversion signals.

[0083] The ECG signal corresponding to the limb lead provided in this embodiment is connected in the lead of the PCBA main board to be tested, so as to realize the three leads of the signal generator as input, form a circuit loop to obtain a conversion signal, save the main board area of ​​the PCBA main board to be tested, and save the cost of the main board.

[0084] Based on the above embodiment, determining the test result according to the correspondence between the ECG signal and the final signal in step S13 includes:

[0085] Get the original amplification factor of the amplifier;

[0086] The actual amplification factor is obtained by taking the quotient of the ECG signal and the final signal;

[0087] If the actual magnification is the same as the original magnification, the test result is determined to be a passed test;

[0088] If the actual magnification is different from the original magnification, the test result is determined to be a test failure.

[0089] Specifically, the test result is determined based on the actual amplification factor obtained after the ECG signal and the final signal are processed as a quotient, and the relationship between the actual amplification factor and the original amplification factor. If they are the same, the test passes, and if they are different, the test fails. Strictly execute according to the amplification factor of the amplifier to improve the test accuracy of the PCBA motherboard to be tested.

[0090] In addition, due to the startup process of different modules in the PCBA motherboard to be tested, errors may occur in the conversion signal, and the actual amplification factor calculated is different from the original amplification factor in most cases. However, the error is allowed to occur in the engineering implementation process. Therefore, in order to consider the error factor, as another embodiment, the test result is determined according to the corresponding relationship between the ECG signal and the final signal in step S13, including:

[0091] Get the original amplification factor of the amplifier;

[0092] The actual amplification factor is obtained by taking the quotient of the ECG signal and the final signal;

[0093] The actual magnification is subtracted from the original magnification to obtain the magnification difference;

[0094] Determine whether the multiple difference is within a threshold range;

[0095] If yes, the test result is determined to be a test pass;

[0096] If not, the test result is determined to be a test failure.

[0097] Specifically, the actual magnification is subtracted from the original magnification to obtain a magnification difference. It should be noted that the former and the latter in the former minus the latter corresponding to this embodiment are not limited, and the obtained magnification difference can be a negative number, 0 or a positive number. Subsequently, it is determined whether the magnification difference is within a threshold range, and the threshold range is set between positive and negative numbers, for example, (-0.5, 0.5). If the magnification difference is within the threshold range, it is determined that the test passes, and if it is not within the threshold range, it is determined that the test fails.

[0098] As another embodiment, after obtaining the multiple difference, the absolute value is taken. If it is less than or equal to a certain threshold, the test passes; if it is greater than the threshold, the test fails.

[0099] The embodiment of the present invention provides a process for determining the test result based on the correspondence between the ECG signal and the final signal, which verifies the communication transmission test of the ECG functional chip through the multiple relationship, thereby avoiding the risk of disassembling and correcting the device after packaging.

[0100] Figure 2 A structural diagram of an ECG testing device provided by an embodiment of the present invention, such as Figure 2 As shown, the device includes a signal generator 6 for simulating human ECG signals and a PCBA mainboard 5 to be tested, and the PCBA mainboard 5 to be tested includes at least an amplifier 2, an AD converter 3, an ECG acquisition pin 1 and an MCU 4;

[0101] The signal generator 6 is connected to the ECG acquisition pin 1, the ECG acquisition pin 1 is connected to the amplifier 2, the amplifier 2 is connected to the AD converter 3, and the AD converter 3 is connected to the MCU 4;

[0102] MCU4 is used to receive the conversion signal obtained by amplifying the ECG signal through the amplifier 2 and converting it through the AD converter 3, analyze the conversion signal to obtain the final signal, and determine the test result according to the corresponding relationship between the ECG signal and the final signal.

[0103] Specifically, the PCBA motherboard 5 to be tested is placed in a test fixture, and the grounding contact is first contacted with the motherboard to be tested to eliminate the ground potential difference between the motherboard to be tested and the test fixture to avoid damage to components caused by potential imbalance. The power contact / ground contact inputs 3.7V to simulate battery power supply. There are contacts of the ECG acquisition pin 1 on the motherboard to be tested, which are used to establish data transmission connections with each lead of the signal generator 6.

[0104] An ECG test device provided by an embodiment of the present invention includes a signal generator for simulating human ECG signals and a PCBA mainboard to be tested, wherein the PCBA mainboard to be tested includes at least an amplifier, an AD converter, an ECG acquisition pin and an MCU; the signal generator is connected to the ECG acquisition pin, the ECG acquisition pin is connected to the amplifier, the amplifier is connected to the AD converter, and the AD converter is connected to the MCU; the MCU is used to receive a conversion signal obtained by amplifying the ECG signal through the amplifier and converting it through the AD converter, analyze the conversion signal to obtain a final signal, and determine the test result according to the correspondence between the ECG signal and the final signal. The device is based on the welding test of the hardware, and adds a communication transmission test for the ECG functional chip. Through communication transmission, the conversion signal obtained through the amplifier and the AD converter is analyzed to obtain the final signal, thereby determining its test result. If the test result is that the test passes, it is packaged to avoid the risk of disassembling and correcting after packaging, thereby improving the user experience.

[0105] On the basis of the above-mentioned embodiments, during the PCBA motherboard test process, since the ECG signals output by each lead of the signal generator are AC signals, the signal strength is easily interfered by external electromagnetic waves. For example, when the PCBA motherboard is tested, radio frequency signals, power-on, etc. will interfere with the ECG signal. Figure 3This is a schematic diagram of the actual ECG signal strength. Figure 4 Schematic diagram of ECG signal strength under external interference, such as Figure 3 , Figure 4 As shown in the figure, the horizontal axis is ms and the vertical axis is mV. The signal strength after interference is quite different from the actual ECG signal strength. If no anti-interference measures are taken, the signal distortion in subsequent analysis will be serious. Therefore, the signal generator and the ECG acquisition pin are connected through a shielded line.

[0106] There is no limitation on the specific specifications of the shielded wire, which can be set according to actual conditions such as the length of the transmission distance, the size of the transmitted data, and the material of the shielded wire. As a preferred embodiment, a shielded wire within 80CM can be selected for the transmission of AC signals.

[0107] The signal generator provided by the embodiment of the present invention is connected to the ECG acquisition pin through a shielded line, thereby ensuring the waveform stability of the AC signal output by the signal generator and improving the anti-interference performance of data transmission.

[0108] On the basis of the above embodiment, the device further includes a host computer;

[0109] The MCU is connected to the host computer via a USB communication cable, which is used to transmit the final signal to the host computer for display.

[0110] Specifically, the multi-point control unit (Micro Control Unit, MCU) is connected to the host computer through a universal serial bus (Universal Serial BUS, USB) communication line, transmits the final signal to the host computer, and interacts with the host computer for command data. The ECG waveform content can be intuitively viewed on the screen of the host computer.

[0111] It should be noted that the connection between the MCU and the host computer can also be through a two-wire serial bus (Inter-Integrated Circuit, I2C) or other buses, which are not specifically limited here.

[0112] In addition, the apparatus also includes a mobile terminal device;

[0113] The MCU and the mobile terminal device are connected wirelessly via BLE to transmit the final signal to the mobile terminal device for viewing.

[0114] It should be noted that the mobile terminal device can be a mobile phone, laptop or other mobile device, which is used to upload to the application of the mobile terminal device for saving records, or to analyze with other vital sign parameters of the user to obtain a specific health status report, etc. Correspondingly, the MCU and the mobile terminal are connected wirelessly via BLE, and can also be connected via other wireless forms, such as traditional Bluetooth connection, Wi-Fi wireless connection, etc.

[0115] In order to ensure low power consumption during data transmission, low-power Bluetooth technology is adopted. Its biggest feature is ultra-low operating power consumption and standby power consumption, which improves the reliability of data transmission.

[0116] The MCU provided in this embodiment is connected to the host computer via a USB communication cable to transmit the final signal to the host computer for display. The MCU is wirelessly connected to the mobile terminal device via BLE to transmit the final signal to the mobile terminal device for viewing. This facilitates viewing by staff and users and improves the experience.

[0117] As a preferred embodiment, the signal generator is a vital sign simulator. Based on the dipole theory of the electrocardiogram in the conventional lead mode and the non-uniform model of the human body trunk, the transfer coefficient matrix between the body surface potential and the cardiac equivalent dipole source term is used to solve the corresponding simultaneous equations to obtain a set of necessary parameters, according to which the lead data can be obtained, that is, the ECG signal simulating the human body.

[0118] It should be noted that the vital signs simulator has no restrictions on the specific manufacturer, the scenarios it is suitable for, the number of leads, or the classification of standard leads, as long as it can simulate the human ECG signal.

[0119] The signal generator provided in this embodiment is a vital sign simulator, which is convenient for testing and improves the testing effect of the entire testing device.

[0120] The above describes in detail various embodiments corresponding to the ECG testing method. On this basis, the present invention also discloses an ECG testing device corresponding to the above method. Figure 5 The structure diagram of an ECG test device provided by an embodiment of the present invention. Figure 5 As shown, the ECG test equipment includes:

[0121] An acquisition module 11 is used to acquire a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator simulating a human ECG signal;

[0122] The analysis module 12 is used to analyze the converted signal to obtain a final signal;

[0123] The determination module 13 is used to determine the test result according to the corresponding relationship between the ECG signal and the final signal.

[0124] Since the embodiments of the device part correspond to the above embodiments, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be repeated here.

[0125] For an introduction to an ECG testing device provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above ECG testing method.

[0126] Figure 6 A structural diagram of another ECG test device provided by an embodiment of the present invention, such as Figure 6 As shown, the device includes:

[0127] A memory 21, used for storing computer programs;

[0128] The processor 22 is used to implement the steps of the ECG testing method when executing the computer program.

[0129] The ECG testing 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.

[0130] Among them, the processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 22 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 22 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 22 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 22 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0131] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 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 21 is at least used to store the following computer program 211, wherein, after the computer program is loaded and executed by the processor 22, the relevant steps of the ECG test method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 212 may include Windows, Unix, Linux, etc. The data 213 may include but is not limited to the data involved in the ECG test method, etc.

[0132] In some embodiments, the ECG testing device may further include a display screen 23 , an input / output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 .

[0133] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the ECG test device, and may include more or fewer components than shown in the figure.

[0134] The processor 22 implements the ECG testing method provided by any of the above embodiments by calling the instructions stored in the memory 21 .

[0135] For an introduction to an ECG testing device provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above ECG testing method.

[0136] Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 22, the steps of the ECG testing method as described above are implemented.

[0137] 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 invention 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 perform all or part of the steps of the method described in each embodiment of the present invention. 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.

[0138] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above ECG testing method.

[0139] As a preferred embodiment, Figure 7 A structural diagram of a PCBA motherboard to be tested provided by an embodiment of the present invention, such as Figure 7 As shown, the PCBA motherboard to be tested includes a VBAT power supply 32, a charger chip startup module 33, a buckboost chip startup module 35, an ECG module 31, an MCU4, an OLED startup module 36, and an LDO startup module 34. The VBAT power supply 32 of the PCBA motherboard to be tested provides 3.7V. After the charger chip startup module 33 is started, the buckboost chip startup module 35 is driven, the product is turned on, and the external signal is input through the ECG acquisition pin 1, amplified by the amplifier 2, and converted by the AD converter 3. The MCU4 analyzes the ECG signal, and then outputs the ECG signal to the OLED startup module 36 through USB communication, and displays it on the screen. At the same time, after the OLED startup module 36 is started, the LDO startup module 34 is started.

[0140] Figure 8 A structural diagram of an ECG testing device provided by another embodiment of the present invention, such as Figure 8As shown, when the ECG limb lead is detected, the four leads RA, LA, RL, and LL of the vital sign simulator 37 of FLUKE PROSIM2 are required. However, considering the spatial layout of the PCBA motherboard to be tested, and after RL and LL are short-circuited, the three-lead and four-lead effects are the same. The RL and LL electrical circuits are connected inside the PCBA motherboard to be tested, and the vital sign simulator 37 is connected to the ECG acquisition pin 1 in the PCBA motherboard to be tested through the three leads RA (right arm), LA (left arm), and RL (right leg), forming a current loop, which is displayed as an ECG. The programmable power supply 39 outputs 3.7V to the VBAT power supply 32 of the PCBA motherboard to be tested. After the PCBA motherboard to be tested is turned on, the vital sign simulator 37 outputs an ECG waveform of 80bpm / 1mV. Through the test device, the AC signal is introduced into the product, the ECG waveform is amplified by the amplifier 2, converted by the AD converter 3, and analyzed by the MCU4. The BPM and PEAK values ​​are transmitted to the software application of the host computer 38 through the USB data interface.

[0141] For the introduction of the structure of the PCBA motherboard to be tested and the structure of the ECG testing device provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above ECG testing method.

[0142] The above is a detailed introduction to an ECG testing method, an ECG testing device and a medium provided by the present invention. 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 various 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 principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

[0143] 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 "comprises", "comprising" 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 sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. An ECG testing method, characterized in that: include: Acquire a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator that simulates a human ECG signal; Analyze and process the converted signal to obtain a final signal; Determining a test result according to a correspondence between the ECG signal and the final signal; Correspondingly, the ECG signal at least includes an analog signal corresponding to a limb lead of a human body, and before obtaining the conversion signal, further includes: Count the number of ECG acquisition pins, wherein the ECG acquisition pins are located in the PCBA motherboard to be tested, and the number is greater than or equal to 3; If the number is less than the number of leads corresponding to the analog signal, the analog signal of the upper limb lead of the human body and the analog signal of one of the lower limbs are selected as the ECG signal output by the signal generator; wherein, by collecting ECG data at one lead, the mapping relationship of impedance values ​​is used to obtain the lead ECG data of other limbs; In the PCBA mainboard to be tested, the electrical circuit corresponding to the analog signal of one of the lower limbs is connected with the analog signal of the other lower limb, and the analog signal of the upper limb lead of the human body is combined to facilitate the generation of the conversion signal.

2. The ECG testing method according to claim 1, characterized in that: Determining the test result according to the correspondence between the ECG signal and the final signal includes: Obtaining the original amplification factor of the amplifier; Obtaining an actual amplification factor by performing a quotient process between the ECG signal and the final signal; If the actual magnification is the same as the original magnification, determining that the test result is a test pass; If the actual magnification is different from the original magnification, the test result is determined to be a test failure.

3. The ECG testing method according to claim 1, characterized in that: Determining the test result according to the correspondence between the ECG signal and the final signal includes: Obtaining the original amplification factor of the amplifier; Obtaining an actual amplification factor by performing a quotient process between the ECG signal and the final signal; Subtracting the actual magnification from the original magnification to obtain a magnification difference; Determine whether the multiple difference is within a threshold range; If yes, then determining that the test result is a test pass; If not, the test result is determined to be a test failure.

4. An ECG testing device, characterized in that: It includes a signal generator for simulating human ECG signals and a PCBA mainboard to be tested, wherein the PCBA mainboard to be tested includes at least an amplifier, an AD converter, an ECG acquisition pin and an MCU; The signal generator is connected to the ECG collection pin, the ECG collection pin is connected to the amplifier, the amplifier is connected to the AD converter, and the AD converter is connected to the MCU; The MCU is used to receive a conversion signal obtained by amplifying the ECG signal by the amplifier and converting the ECG signal by the AD converter, analyze the conversion signal to obtain a final signal, and determine a test result according to a corresponding relationship between the ECG signal and the final signal; Correspondingly, the ECG signal at least includes an analog signal corresponding to a limb lead of a human body, and before obtaining the conversion signal, further includes: Count the number of ECG acquisition pins, wherein the ECG acquisition pins are located in the PCBA motherboard to be tested, and the number is greater than or equal to 3; If the number is less than the number of leads corresponding to the analog signal, the analog signal of the upper limb lead of the human body and the analog signal of one of the lower limbs are selected as the ECG signal output by the signal generator; wherein, by collecting ECG data at one lead, the mapping relationship of impedance values ​​is used to obtain the lead ECG data of other limbs; In the PCBA mainboard to be tested, the electrical circuit corresponding to the analog signal of one of the lower limbs is connected with the analog signal of the other lower limb, and the analog signal of the upper limb lead of the human body is combined to facilitate the generation of the conversion signal.

5. The ECG testing device according to claim 4, characterized in that: The signal generator is connected to the electrocardiogram collection pin via a shielded line.

6. The ECG testing device according to claim 5, characterized in that: It also includes the host computer; The MCU is connected to the host computer via a USB communication line, so as to transmit the final signal to the host computer for display.

7. The ECG testing device according to claim 5 or 6, characterized in that: Also includes mobile terminal equipment; The MCU is wirelessly connected to the mobile terminal device via BLE, so as to transmit the final signal to the mobile terminal device for viewing.

8. The ECG testing device according to claim 5, characterized in that: The signal generator is a vital sign simulator.

9. An ECG testing device, characterized in that: include: An acquisition module, used for acquiring a conversion signal obtained by converting an ECG signal, wherein the conversion signal is obtained by amplifying the ECG signal through an amplifier and converting it through an AD converter, and the ECG signal is generated by a signal generator simulating a human ECG signal; An analysis module, used for analyzing the conversion signal to obtain a final signal; A determination module, used to determine a test result according to a corresponding relationship between the ECG signal and the final signal; Correspondingly, the ECG signal at least includes an analog signal corresponding to a limb lead of a human body, and before obtaining the conversion signal, further includes: Count the number of ECG acquisition pins, wherein the ECG acquisition pins are located in the PCBA motherboard to be tested, and the number is greater than or equal to 3; If the number is less than the number of leads corresponding to the analog signal, the analog signal of the upper limb lead of the human body and the analog signal of one of the lower limbs are selected as the ECG signal output by the signal generator; wherein, by collecting ECG data at one lead, the mapping relationship of impedance values ​​is used to obtain the lead ECG data of other limbs; In the PCBA mainboard to be tested, the electrical circuit corresponding to the analog signal of one of the lower limbs is connected with the analog signal of the other lower limb, and the analog signal of the upper limb lead of the human body is combined to facilitate the generation of the conversion signal.

10. An ECG testing device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the ECG testing method according to any one of claims 1 to 3 when executing the computer program.

11. 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 ECG testing method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Wristband type ECG integrated detection system

    CN213883248U