An electronic device and an electrocardiogram detection method for an electronic device

CN122827700APending Publication Date: 2026-09-29HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611328468.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

但是,目前一些电子设备集成生物电信号检测功能的成本较高,或者电子设备需要连接额外的配件,又或者需要对原有的工业设计(industrial design,ID)进行调整,从而导致电子设备的可量产性较差

Benefits of technology

通过第一检测电极和第二检测电极采集心电信号。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122827700A_ABST
    Figure CN122827700A_ABST
Patent Text Reader

Abstract

The application provides an electronic device and an electrocardiogram detection method for the electronic device, and relates to the technical field of electronic devices.The material of the frame of the electronic device provided by the application is a lively metal.The frame comprises a first detection electrode and a second detection electrode, and the first detection electrode and the second detection electrode are spaced apart and insulated.The surface of the first detection electrode is covered with a first insulating layer, and the surface of the second detection electrode is covered with a second insulating layer.The electronic device further comprises a collection circuit, the first detection electrode and the second detection electrode are coupled with the collection circuit, and the collection circuit is used for collecting an electrocardiogram signal through the first detection electrode and the second detection electrode.The electrocardiogram signal collection scheme provided by the application makes it possible to use the frame made of a lively metal material as a detection electrode, and the integration difficulty and implementation cost are both low, and the appearance of the electronic device can be avoided from being obviously affected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and in particular to an electronic device and an electrocardiogram detection method for use in an electronic device. Background Technology

[0002] With the continuous improvement of living standards, people are paying more and more attention to their health. To meet user needs, more and more electronic devices are integrating bioelectrical signal detection functions, such as electrocardiogram (ECG) detection. However, the cost of integrating bioelectrical signal detection functions into some electronic devices is currently high, or the devices require the connection of additional accessories, or adjustments to the original industrial design (ID), resulting in poor mass production feasibility. Therefore, how to reduce the integration difficulty of bioelectrical signal detection functions into electronic devices to lower implementation costs has become a pressing problem for those skilled in the art. Summary of the Invention

[0003] This application provides an electronic device and an electrocardiogram (ECG) detection method for the electronic device, which reduces the integration difficulty of ECG detection function in electronic devices.

[0004] Firstly, this application provides an electronic device including a frame made of a reactive metal, the frame being arranged circumferentially around the electronic device. The frame includes a first detection electrode and a second detection electrode, which are spaced apart and insulated from each other. The surface of the first detection electrode is covered with a first insulating layer, and the surface of the second detection electrode is covered with a second insulating layer. The electronic device also includes a data acquisition circuit, with the first and second detection electrodes coupled to the acquisition circuit, which is used to acquire electrocardiogram (ECG) signals through the first and second detection electrodes. In the ECG signal acquisition scheme provided by this application, since a portion of the frame structure of the electronic device can be used as the first and second detection electrodes respectively, and the surfaces of the first and second detection electrodes can be covered with insulating layers to avoid direct contact between the detection electrodes and human skin, the acquisition circuit can acquire ECG signals through the first and second detection electrodes. Therefore, using the ECG signal acquisition scheme provided by this application eliminates the need for additional detection electrodes. Furthermore, for reactive metal frames, an insulating layer is typically provided on their surface to improve corrosion resistance; therefore, the implementation of this ECG signal acquisition scheme does not require additional processing of the frame and does not affect the appearance of the electronic device. In other words, the ECG signal acquisition scheme provided in this application can effectively reduce the integration difficulty of ECG detection function in electronic devices and help reduce implementation costs.

[0005] In one possible implementation of this application, the first detection electrode includes a first electrode and a second electrode, which are spaced apart and insulated from each other. The electronic device also includes a first switch, with the first electrode connected to the receiving port of the first switch and the output port of the first switch connected to the acquisition circuit. When the signal acquired by the acquisition circuit within a set time meets the first switching condition, the acquisition circuit further controls the receiving port of the first switch to switch to be connected to the second electrode. Using this scheme, the first electrode and the second electrode can be switched via the first switch, thereby increasing the probability that the acquisition circuit acquires a valid ECG signal, and thus improving the reliability of the ECG detection function of the electronic device.

[0006] This application does not limit the aforementioned first switching condition. Exemplarily, in one possible implementation, the first switching condition may include at least one of the following conditions: the signal voltage amplitude does not meet a first preset condition; or, the signal frequency does not meet a second preset condition; or, the signal phase does not meet a third preset condition. By judging the first switching condition, it can be determined whether the signal acquired by the acquisition circuit is valid, thereby determining whether the acquisition circuit controls the first switching switch to switch between the first and second electrodes. This is beneficial for improving the accuracy of electrocardiogram signal acquisition by the electronic device.

[0007] In one possible implementation of this application, the first insulating layer may include a first sub-insulating layer and a second sub-insulating layer, with the first sub-insulating layer covering the surface of the first electrode and the second sub-insulating layer covering the surface of the second electrode. This reduces the risk of direct contact between human skin and the first and second electrodes, thereby improving the effectiveness of ECG signal acquisition and enhancing the flexibility in selecting the placement positions of the first and second electrodes.

[0008] In one possible implementation of this application, the first electrode and the second electrode can be separated by a gap. This facilitates the simplification of the electronic device structure.

[0009] In another possible implementation, the aforementioned gap can be an antenna radiation gap. Since the antenna radiation gap can be used to meet the signal radiation requirements of the antenna, this design scheme can realize the reuse of the frame between the antenna and the electrocardiogram detection function, thereby improving the utilization rate of the frame and improving the integration of electronic devices.

[0010] It is understood that in this application, the first detection electrode and the second detection electrode can also be separated by a gap. This simplifies the structural design of the electronic device while avoiding short circuits between the first and second detection electrodes.

[0011] In one possible implementation of this application, the second detection electrode may include a fourth electrode and a fifth electrode, which are spaced apart and insulated from each other. The electronic device also includes a second switch, with the fourth electrode connected to the receiving port of the second switch and the output port of the second switch connected to the acquisition circuit. When the signal acquired by the acquisition circuit within a set time meets the second switching condition, the acquisition circuit further controls the receiving port of the second switch to switch to connection with the fifth electrode. Using this scheme, the fourth and fifth electrodes can be switched via the second switch, increasing the probability of the acquisition circuit acquiring a valid ECG signal, thereby improving the reliability of the ECG detection function of the electronic device.

[0012] In one possible implementation of this application, the second insulating layer may include a fourth sub-insulating layer and a fifth sub-insulating layer, with the fourth sub-insulating layer covering the surface of the fourth electrode and the fifth sub-insulating layer covering the surface of the fifth electrode. This reduces the risk of direct contact between human skin and the fourth and fifth electrodes, thereby improving the effectiveness of ECG signal acquisition and enhancing the flexibility in selecting the placement positions of the fourth and fifth electrodes.

[0013] In one possible implementation of this application, the fourth and fifth electrodes can also be separated by a gap. This satisfies the requirements of spacing and insulation between the fourth and fifth electrodes while simplifying the structure of the electronic device.

[0014] This application does not limit the placement of the first and second detection electrodes on the frame. For example, in one possible implementation, the frame includes multiple borders, with the first and second detection electrodes located on the same border, or at least partially on different borders. In other words, the placement of the first and second detection electrodes on the frame is flexible, which helps reduce the implementation difficulty of the electrocardiogram (ECG) detection function in electronic devices.

[0015] In one possible implementation of this application, the frame material may include at least one of magnesium, aluminum, potassium, zinc, or iron. Alternatively, the frame material may include at least one of magnesium alloy, aluminum alloy, potassium alloy, zinc alloy, or stainless steel. In other words, the electrocardiogram detection solution provided in this application is applicable to frames made of various reactive metals, thus having a wide range of applications.

[0016] Secondly, this application also provides an electrocardiogram (ECG) detection method for an electronic device. The electronic device includes a frame made of a reactive metal, and the frame is arranged circumferentially around the electronic device. The frame includes a first detection electrode and a second detection electrode, which are spaced apart and insulated from each other. The surface of the first detection electrode is covered with a first insulating layer, and the surface of the second detection electrode is covered with a second insulating layer. The ECG detection method may then include: Electrocardiogram (ECG) signals are acquired using the first and second detection electrodes.

[0017] The electrocardiogram (ECG) detection method provided in this application utilizes a portion of the electronic device's frame structure as the first and second detection electrodes, respectively. Furthermore, the surfaces of both electrodes are covered with insulating layers to prevent direct contact between the electrodes and human skin, thus enabling the acquisition of ECG signals. Therefore, the ECG signal acquisition scheme provided in this application eliminates the need for additional detection electrodes. Moreover, for reactive metal frames, insulating layers are typically applied to their surfaces to enhance corrosion resistance. Consequently, the implementation of this ECG signal acquisition scheme requires no additional processing of the frame and does not affect the appearance of the electronic device. In other words, the ECG signal acquisition scheme provided in this application effectively reduces the integration difficulty of ECG detection functions in electronic devices and contributes to lower implementation costs.

[0018] In one possible implementation of this application, the first detection electrode includes a first electrode and a second electrode, which are spaced apart and insulated from each other. The electronic device also includes a first switch, and the first electrode is connected to the receiving port of the first switch. The electrocardiogram detection method may further include: Determine whether the acquired electrocardiogram signal meets the first switching condition; In response to the ECG signal collected within a set time meeting the first switching condition, the receiving port of the first switching switch is controlled to switch to be connected to the second electrode.

[0019] By adopting this scheme, the first electrode and the second electrode can be switched by the first switching switch, thereby increasing the probability that the acquisition circuit can acquire a valid electrocardiogram signal, and thus improving the reliability of the electrocardiogram detection function of the electronic device.

[0020] In one possible implementation of this application, the electrocardiogram detection method may further include: Determine whether there is an electrocardiogram signal at the second electrode; If not, output a prompt to change the grip method.

[0021] This ensures that the first electrode touched by the user is consistent with the first electrode connected to the receiving port of the first switch, thereby improving the effectiveness of ECG signal acquisition.

[0022] In one possible implementation of this application, the electronic device further includes a motion detection sensor for acquiring motion signals; then, before determining whether the acquired electrocardiogram (ECG) signal meets the first switching condition, the ECG detection method further includes: Filter motion signals.

[0023] This reduces the impact of exercise on ECG signal acquisition, thereby improving the accuracy of ECG detection.

[0024] In one possible implementation of this application, the second detection electrode includes a fourth electrode and a fifth electrode, which are spaced apart and insulated from each other. The electronic device also includes a second switch, with the fourth electrode connected to the receiving port of the second switch. Therefore, the electrocardiogram detection method further includes: In response to the ECG signal collected within a set time meeting the second switching condition, the receiving port of the second switching switch is switched to be connected to the fifth electrode.

[0025] By adopting this scheme, the fourth and fifth electrodes can be switched via a second switching switch, thereby increasing the probability that the acquisition circuit can acquire a valid ECG signal and thus improving the reliability of the ECG detection function of the electronic device.

[0026] In one possible implementation of this application, the electrocardiogram detection method further includes: The ECG signal acquisition is completed when the ECG signal collected within the set time meets the detection conditions.

[0027] This can improve the effectiveness of the collected electrocardiogram (ECG) signals, thereby helping to improve the accuracy of ECG detection. Attached Figure Description

[0028] Figure 1a A schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 1b A schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 2a This is a schematic diagram of a normal electrocardiogram; Figure 2b A schematic diagram of an electrocardiogram obtained by direct contact between an aluminum alloy detection electrode and the skin. Figure 3 A topology diagram illustrating the electrocardiogram (ECG) signal acquisition principle provided in this application embodiment; Figure 4 A schematic diagram of a detection electrode with a surface-covered insulating layer provided in an embodiment of this application; Figure 5 A partial structural diagram illustrating another structure of the electronic device provided in an embodiment of this application; Figure 6 A schematic diagram of an electrocardiogram (ECG) detection interface of an electronic device provided in an embodiment of this application; Figure 7 A flowchart of an electrocardiogram detection method for an electronic device provided in an embodiment of this application; Figure 8a The valid electrocardiogram signal curve acquired by the acquisition circuit; Figure 8b The signal acquired by the acquisition circuit after aluminum leakage; Figure 9 Another schematic diagram of the electrocardiogram detection interface of the electronic device provided in the embodiments of this application; Figure 10 Another flowchart of the electrocardiogram detection method for electronic devices provided in the embodiments of this application.

[0029] Figure label: 100 - Frame; 1 - First detection electrode; 101 - First electrode; 102 - Second electrode; 103 - Third electrode; 2 - Second detection electrode; 3-Reference electrode; 4-Gap; 5-First insulating layer; 51-First sub-insulating layer; 52-Second sub-insulating layer; 53-Third sub-insulating layer; 501 - Oxide hole; 6 - Second insulating layer; 7 - Acquisition circuit; 8 - First switching switch; 9 - Capacitor; 10 - Resistor. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein. The same reference numerals in the figures denote the same or similar structures, and therefore repeated descriptions of them will be omitted. The terms expressing position and direction described in the embodiments of this application are illustrative based on the accompanying drawings, but changes can be made as needed, and all such changes are included within the scope of protection of this application. The accompanying drawings of the embodiments of this application are only for illustrating relative positional relationships and do not represent actual scale.

[0031] It should be noted that specific details are set forth in the following description to facilitate understanding of this application. However, the embodiments of this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the embodiments of this application. Therefore, this application is not limited to the specific embodiments disclosed below.

[0032] To facilitate understanding of the technical solutions provided in the embodiments of this application, the application scenarios will be explained first below.

[0033] With the development of electronic devices, users have placed higher demands on the user experience. For example, they not only require electronic devices to have a metallic appearance, but also hope that electronic devices can integrate more functions, such as bioelectrical signal detection. Bioelectrical signal detection uses high-sensitivity sensors and signal processing technology to capture and analyze weak electrical signals generated by living organisms (such as the heart, brain, and muscles) to reflect the state of vital activities or to diagnose diseases.

[0034] Taking electrocardiogram (ECG) detection as an example, the application of ECG detection function in wearable electronic devices such as smartwatches is relatively mature. This is mainly achieved by placing electrocardiogram (ECG) electrodes on the surface of the wearable electronic device that comes into contact with the human body, thus conveniently detecting the human electrocardiogram. However, this ECG detection solution is more difficult to implement in other non-wearable electronic devices. For example, in some electronic devices such as mobile phones with frames made of reactive metals such as aluminum alloys, the reactive metals easily generate polarization voltages with human skin, making it impossible to collect ECG signals.

[0035] In view of this, this application provides an integrated solution for electrocardiogram (ECG) detection function in electronic devices with frames made of a vibrant metallic material. The integration is relatively simple, thus reducing implementation costs. To facilitate understanding of the solution provided in this application, a detailed description is provided below with reference to the accompanying drawings.

[0036] Figure 1a This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 1a In the example shown, a candybar phone is used as an example to illustrate the electronic device. The electronic device includes a frame 100, which is set around the circumference of the electronic device.

[0037] Additionally, refer to Figure 1b , Figure 1b This is another structural schematic diagram of the electronic device provided in an embodiment of this application. In this embodiment, the electronic device is a foldable electronic device, that is, the electronic device includes multiple housings rotatably connected by pivots. For the foldable electronic device, the frame 100 is also arranged circumferentially around the electronic device.

[0038] In this application, the frame 100 can be made of an active metal, which refers to a chemically active metal that readily loses electrons, typically a metal preceding hydrogen in the activity series of metals. In some embodiments of this application, the frame 100 may be made of at least one of magnesium, aluminum, potassium, zinc, or iron, or at least one of magnesium alloy, aluminum alloy, potassium alloy, zinc alloy, or stainless steel. For ease of explanation, the following embodiments use an aluminum alloy frame as an example.

[0039] You can continue to refer to Figure 1a or Figure 1b In this application, the frame 100 may include a first detection electrode 1 and a second detection electrode 2, which are spaced apart and insulated from each other to facilitate their use as detection electrodes for electrocardiogram (ECG) detection. That is, in this application, both the first detection electrode 1 and the second detection electrode 2 are made of reactive metals, such as aluminum alloy electrodes.

[0040] It should be noted that this application does not limit the placement of the first detection electrode 1 and the second detection electrode 2 on the frame 100. Since the frame 100 includes multiple frame edges, at least a portion of the first detection electrode 1 and the second detection electrode 2 can be located on different frame edges. For example, in... Figure 1a and Figure 1b In the illustrated electronic device, the first detection electrode 1 and the second detection electrode 2 are respectively disposed on two opposite frame edges. For example, the first detection electrode 1 is disposed on the top frame edge, and the second detection electrode 2 is disposed on the bottom frame edge. The top frame edge of the electronic device can be the uppermost frame edge in normal use, or the frame edge closest to the camera, while the bottom frame edge is the frame edge furthest from the top frame edge. In other embodiments of this application, the first detection electrode 1 and the second detection electrode 2 can also be disposed on two opposite side frames. It is understood that by disposing the first detection electrode 1 and the second detection electrode 2 on two opposite frame edges, it is easier for the user to hold the two detection electrodes with both hands, thereby improving the operational convenience of electrocardiogram (ECG) testing.

[0041] In other embodiments of this application, at least a portion of the first detection electrode 1 and the second detection electrode 2 may be located on the same frame edge. Their specific configuration can be determined based on the layout of other structures on the frame. Therefore, it can be seen that the electrocardiogram detection scheme provided in this application offers high flexibility in the configuration of the detection electrodes.

[0042] It is understandable that, such as Figure 1a or Figure 1b As shown, the electronic device may further include a reference electrode 3, wherein the number of reference electrodes 3 is not limited, and they may be exemplarily of the following: Figure 1aOne of the ones shown can also be Figure 1b The two or more shown. In this application, the reference electrode 3 may be spaced apart from and insulated from the first detection electrode 1 and the second detection electrode 2. The specific implementation of this can be referred to the above description of the spaced apart and insulated arrangement of the first detection electrode 1 and the second detection electrode 2, and will not be repeated here. Furthermore, the reference electrode 3 can serve as a reference for the signals detected by the first detection electrode 1 and the second detection electrode 2; in other words, the signals detected by the first detection electrode 1 and the second detection electrode 2 are both relative to the reference electrode 3.

[0043] It is worth mentioning that, in some embodiments of this application, the housing of the electronic device may include a mid-frame, which may include a border 100 and structures located inside the electronic device. In other embodiments of this application, the mid-frame may be a one-piece structure, and the border 100 is part of the mid-frame.

[0044] In some embodiments of this application, such as Figure 1a or Figure 1b As shown, the first detection electrode 1 and the second detection electrode 2 can be separated by a gap 4. This also prevents the first detection electrode 1 and the second detection electrode 2 from short-circuiting, thereby achieving an insulating effect between the first detection electrode 1 and the second detection electrode 2.

[0045] Since the radiators of an antenna can typically be positioned on the frame 100, and the radiators can be spaced apart by gaps to allow for antenna signal radiation, thus meeting the antenna's signal radiation requirements, in some embodiments of this application, the gap 4 between the first detection electrode 1 and the second detection electrode 2 can also be used as a gap between the radiators. This allows the gap 4 to be reused between the two detection electrodes and the two radiators, which is beneficial for improving the integration of electronic devices.

[0046] In addition, insulating materials such as plastic can be filled into the gap 4 between the first detection electrode 1 and the second detection electrode 2 to improve the insulation effect between the first detection electrode 1 and the second detection electrode 2 and to improve the structural reliability of the frame 100.

[0047] In this application, the portion of the frame 100 that serves as the radiator of the antenna can also be used as the detection electrode for implementing the electrocardiogram (ECG) detection function. In other words, the frame 100 can be reused between the antenna and the ECG detection function. This improves the utilization rate of the frame 100, thereby enhancing the integration of the electronic device.

[0048] Reference Figure 2a and Figure 2b ,in, Figure 2a This is a schematic diagram of a normal electrocardiogram. Figure 2bThis is a schematic diagram of an electrocardiogram (ECG) obtained by direct contact between an aluminum alloy detection electrode and the skin. The comparison shows that... Figure 2b It is difficult to obtain an electrocardiogram (ECG) signal in the diagram shown. This is because the direct contact of reactive metals such as aluminum alloys with human skin generates a large polarization voltage, which overwhelms the ECG signal, making it invisible.

[0049] Therefore, it can continue to be referenced. Figure 1a or Figure 1b In this application, the surface of the first detection electrode 1 is covered with a first insulating layer 5, and the surface of the second detection electrode 2 is covered with a second insulating layer 6. This avoids direct contact between human skin and the detection electrode made of a reactive metal, thereby preventing the generation of polarization voltage when human skin comes into contact with the first insulating layer 5 and the second insulating layer 6, thus enabling normal acquisition of electrocardiogram signals.

[0050] It is understood that, in this embodiment of the application, the electronic device further includes a data acquisition circuit 7, and the first detection electrode 1 and the second detection electrode 2 can be coupled to the data acquisition circuit 7. Thus, when the user's left hand is in contact with the first insulating layer 5 and their right hand is in contact with the second insulating layer 6, the human body can form an electrocardiogram (ECG) signal acquisition circuit with the data acquisition circuit 7 through the first detection electrode 1 and the second detection electrode 2.

[0051] It should be noted that, in the embodiments of this application, "coupling" refers to the interconnection of different devices through circuit structures or the mutual generation of measurable influences through physical fields. Interconnection through circuit structures includes direct connection via wires, as well as connection to other devices via wires. This application describes circuit connections as an example, but it does not impose any special limitations on the specific coupling methods between different devices.

[0052] To facilitate understanding of the ECG signal acquisition scheme provided in this application, please refer to... Figure 3 , Figure 3This is a topological diagram illustrating the electrocardiogram (ECG) signal acquisition principle provided in this application. It can be seen that, using the scheme provided in this application, when the hand contacts the insulating layer, and since both the hand and the detection electrode are conductors separated by the insulating layer, the hand and the detection electrode can be considered as the two electrodes of a parallel-plate capacitor, or in other words, an equivalent capacitor 9 can be formed between the hand and the detection electrode. The human body's ECG AC signal can be coupled to the detection electrode through this equivalent capacitor 9, and then coupled to the acquisition circuit 7 connected to the detection electrode. Since the insulating layer is located between the hand and the detection electrode, the human body's AC signal needs to pass through the insulating layer to couple to the detection electrode. It is understood that the human body's AC signal will experience some loss when passing through the insulating layer. Therefore, in some embodiments of this application, an equivalent resistor 10 can also be formed between the hand and the detection electrode. Thus, in the actual measurement process, the human body's ECG AC signal can be coupled to the acquisition circuit 7 through an equivalent structure formed by the parallel connection of the equivalent capacitor 9 and the resistor 10, thereby enabling the acquisition circuit 7 to acquire the ECG signal.

[0053] Furthermore, in electronic devices, parasitic distributed capacitance may exist between electrodes and reference electrodes, or in other words, between electrodes and reference ground. Figure 3 In the topology diagram shown, the branch with the capacitance to ground is used for illustration. It should be understood that the smaller the value of this capacitance to ground, the more effectively the AC discharge loss of the ECG signal can be reduced, and the stability and accuracy of the ECG signal acquired by the acquisition circuit will be improved accordingly.

[0054] As described above, in the ECG signal acquisition scheme provided in this application, a portion of the frame 100 can be used as the first detection electrode 1 and the second detection electrode 2, respectively. Furthermore, the surfaces of the first detection electrode 1 and the second detection electrode 2 can be covered with insulating layers to prevent direct contact between the detection electrodes and human skin. This allows the acquisition circuit 7 to acquire ECG signals through the first detection electrode 1 and the second detection electrode 2. Therefore, using the ECG signal acquisition scheme provided in this application eliminates the need for additional detection electrodes. Moreover, for reactive metal frames such as aluminum alloy frames, insulating layers are typically applied to their surfaces to improve corrosion resistance. Thus, the implementation of this ECG signal acquisition scheme requires no additional processing of the frame 100 and does not affect the appearance of the electronic device. In other words, the ECG signal acquisition scheme provided in this application effectively reduces the integration difficulty of the ECG detection function in electronic devices and helps reduce implementation costs.

[0055] In the embodiments of this application, the insulating layer may be, for example, a functional thin film formed on the surface of a substrate by processes such as anodizing, electroplating, or spraying. For example, see [reference needed]. Figure 4 , Figure 4This is a schematic diagram of a detection electrode with a surface-covered insulating layer provided in an embodiment of this application, which can be used to show a cross-sectional view of the frame 100 at the first detection electrode 1. Figure 4 In this process, the first insulating layer 5 covering the surface of the first detection electrode 1 can be, for example, an anodic oxide layer. Since the oxide pores 501 of the anodic oxide layer are small, it is beneficial to improve the corrosion resistance of the frame 100.

[0056] Generally, the bonding reliability between the insulating layer formed by the above process and the detection electrode is good. However, in some cases, there is still a possibility of the insulating layer detaching. For example, the insulating layer may be damaged due to factors affecting the mechanical reliability of electronic devices, such as drops, impacts, or scratches. Similarly, during use, contact with sweat, seawater, or other corrosive liquids can corrode the detection electrode, potentially causing the insulating layer to detach. Alternatively, when designing antennas, one can refer to... Figure 1a or Figure 1b Due to fluctuations in processing tolerances such as the gaps 4 on the frame 100, local insulation layer loss may occur. Since the loss of insulation layer leads to exposure of the detection electrodes, in some embodiments of this application, when the frame 100 is an aluminum alloy frame, the loss of insulation layer causes the aluminum alloy to be exposed to air, which can also be referred to as aluminum leakage. As described above, when a human hand comes into contact with the exposed active metal detection electrodes, a polarization voltage is generated, resulting in the failure of ECG signal acquisition.

[0057] To address this, this application provides a solution for improving the effectiveness of electrocardiogram (ECG) signal acquisition. Specifically, please refer to... Figure 5 , Figure 5 This is a partial structural diagram of another structure of the electronic device provided in an embodiment of this application. In this embodiment, the first detection electrode 1 includes a first electrode 101 and a second electrode 102, which are spaced apart and insulated from each other. The way in which the first electrode 101 and the second electrode 102 are spaced apart and insulated from each other can be referred to the above description of the way in which the first detection electrode 1 and the second detection electrode 2 are spaced apart and insulated from each other. For example, the first electrode 101 and the second electrode 102 can be separated by a gap 4, which will not be elaborated here.

[0058] In some embodiments of this application, reference may be made, for example, to... Figure 5The first insulating layer 5 may include multiple sub-insulating layers, such as a first sub-insulating layer 51 and a second sub-insulating layer 52. The first sub-insulating layer 51 covers the surface of the first electrode 101, and the second sub-insulating layer 52 covers the surface of the second electrode 102. This reduces the risk of direct contact between human skin and the first electrode 101 and the second electrode 102, thereby improving the effectiveness of ECG signal acquisition and enhancing the flexibility in selecting the placement positions of the first electrode 101 and the second electrode 102.

[0059] You can continue to refer to Figure 5 The electronic device may also include a first switching switch 8, a first electrode 101 connected to the receiving port of the first switching switch 8, and an output port of the first switching switch 8 connected to the acquisition circuit 7.

[0060] As described above, the absence of an insulating layer exposes the active metal detection electrode. Contact between a human hand and this exposed electrode generates a polarization voltage, resulting in the acquired signal parameters differing significantly from those of a normal electrocardiogram (ECG) signal. Therefore, in one embodiment of this application, as... Figure 5 As shown, in the initial stage of electrocardiogram detection, the acquisition circuit 7 acquires signals through the first electrode 101 connected to the receiving port of the first switch 8.

[0061] Additionally, the presence or absence of abnormalities in the acquired signal can determine whether the acquisition circuit 7 needs to control the first switching switch 8 to switch the electrodes connected to its receiving port. For example, when the acquired ECG signal meets the first switching condition, or when the acquired ECG signal is determined to be abnormal, the electrode switching process can be initiated, and the abnormal data can be discarded. The receiving port of the first switching switch 8 is then switched to connect to the second electrode 102. In some embodiments, simultaneously with or after initiating the electrode switching process, the electronic device can also output a prompt to change the grip position. The user can then grip the corresponding electrode according to the prompt, such as the second electrode 102. The acquisition circuit 7 then continues to acquire ECG signals, and when the acquired signal is a normal signal, the ECG signal acquisition is complete.

[0062] It is understandable that the number of electrodes in the first detection electrode 1 that can be switched via the first switching switch 8 can be selected according to actual design requirements. For example, in Figure 5 In the embodiment shown, the first detection electrode 1 may further include a third electrode 103, which is spaced apart from and insulated from the second electrode 102. The way in which the second electrode 102 and the third electrode 103 are spaced apart and insulated can be referred to the above description of the way in which the first detection electrode 1 and the second detection electrode 2 are spaced apart and insulated. For example, the second electrode 102 and the third electrode 103 can be spaced apart by a gap 4, which will not be described in detail here.

[0063] In addition, the first insulating layer 5 may also include a third sub-insulating layer 53, which covers the third electrode 103. Then, when the receiving port of the first switching switch is connected to the second electrode 102, and the ECG signal acquired by the acquisition circuit still meets the first switching condition, the receiving port of the first switching switch 8 switches to be connected to the third electrode 103.

[0064] It is worth mentioning that when the first detection electrode 1 includes more electrodes, they can all refer to the above description of the arrangement of the first electrode 101, the second electrode 102 and the third electrode 103, and will not be repeated here.

[0065] In this application, there are multiple ways to determine whether the acquired signal is abnormal. For example, in one possible embodiment, a first switching condition can be set. When the signal acquired by the acquisition circuit 7 within a set time meets the first switching condition, or when the acquired signal is determined to be abnormal, the acquisition circuit 7 is further configured to control the receiving port of the first switching switch 8 to switch to connection with the second electrode 102. This enables the acquisition of a valid electrocardiogram (ECG) signal.

[0066] As described above, the acquisition circuit 7 can be used for both acquiring electrocardiogram (ECG) signals and controlling the switching of the first electrode 101 and the second electrode 102 by the first switching switch 8. Therefore, in one possible embodiment of this application, the part of the acquisition circuit 7 used for acquiring ECG signals and the part used for controlling the first switching switch 8 can be two independently configured parts, or they can be integrated into a single design. This application does not specifically limit their integration.

[0067] In this application, the first switching condition is not limited. For example, in some embodiments of this application, a preset condition can be defined to determine whether the first switching condition is met by judging whether the acquired signal meets the preset condition. Exemplarily, in one possible embodiment, the first switching condition may include the voltage amplitude of the signal not meeting the first preset condition. For example, the first preset condition may include a first baseline threshold range, wherein the voltage amplitude of a normal electrocardiogram signal is within the first baseline threshold range. Then, the voltage amplitude of the signal not meeting the first preset condition may be, for example, the proportion of points where the voltage amplitude of the signal acquired by the acquisition circuit 7 within a set time is outside the first baseline threshold range is greater than a first set value, such as greater than 30%, etc., which can be considered as damage to the first insulating layer 5 at the first electrode 101, or aluminum leakage, thereby causing the failure of electrocardiogram signal detection.

[0068] Alternatively, in other embodiments of this application, the first switching condition may also include, for example, the signal frequency not meeting a second preset condition. For example, the second preset condition may include a second baseline threshold range, wherein the frequency of a normal electrocardiogram signal is within the second baseline threshold range. Then, the signal frequency not meeting the second preset condition may be, for example, that the proportion of points in the acquisition circuit 7 whose signal frequency is outside the second baseline threshold range within a set time is greater than a second set value, such as greater than 25%.

[0069] In some embodiments of this application, the first switching condition may further include, for example, that the phase of the signal does not meet a third preset condition. For example, the third preset condition may include a third baseline threshold range, wherein the phase of a normal electrocardiogram signal is within the third baseline threshold range. The signal phase not meeting the third preset condition may be, for example, that the proportion of points in the acquisition circuit 7 whose phase is outside the third baseline threshold range within a set time is greater than a third set value, such as greater than 28%.

[0070] It is worth mentioning that the above embodiments are merely introductions to some possible settings of the first switching condition. In this application, the setting of the first switching condition is not limited to these, and can be specifically designed according to actual design needs. In addition, in this application, the first switching condition can be a single condition or a combination of multiple conditions. For example, it can include at least one of the first switching conditions introduced in the above embodiments to improve the accuracy of aluminum leakage detection.

[0071] Similar to the arrangement of the first detection electrode 1 described above, in some embodiments of this application, the second detection electrode 2 may also include multiple electrodes, such as a fourth electrode and a fifth electrode, which are spaced apart and insulated from each other. The way the fourth and fifth electrodes are spaced apart and insulated from each other can be referred to the above description of the arrangement of the first detection electrode 1 and the second detection electrode 2, for example, the fourth and fifth electrodes can be separated by a gap, etc., which will not be elaborated upon here.

[0072] In some embodiments of this application, the second insulating layer may include multiple sub-insulating layers, such as a fourth sub-insulating layer and a fifth sub-insulating layer, with the fourth sub-insulating layer covering the surface of the fourth electrode and the fifth sub-insulating layer covering the surface of the fifth electrode. This reduces the risk of direct contact between human skin and the fourth and fifth electrodes, thereby improving the effectiveness of ECG signal acquisition and enhancing the flexibility in selecting the placement locations of the fourth and fifth electrodes.

[0073] It is understandable that a missing fourth insulating layer on the fourth electrode would also cause the ECG signal detection to fail. Therefore, in some embodiments of this application, the electronic device may further include a second switch, in which the fourth electrode can be connected to the receiving port of the second switch, and the output port of the second switch is connected to the acquisition circuit 7. Thus, when the signal acquired by the acquisition circuit 7 within a set time meets the second switching condition, the acquisition circuit 7 is also used to control the receiving port of the second switch to switch to connection with the fifth electrode. This enables the acquisition of a valid ECG signal.

[0074] In this application, the setting method of the second switching condition can refer to the above description of the setting method of the first switching condition, and will not be repeated here.

[0075] It is worth mentioning that when both the first detection electrode 1 and the second detection electrode 2 include multiple electrodes, upon detecting aluminum leakage, the receiving port of the second switch can remain connected to the fourth electrode. Then, the first switch 8 is used to switch between the first electrode 101 and the second electrode 102 until a valid ECG signal is acquired. If no valid ECG signal is acquired, the receiving port of the second switch is switched to connect to the fifth electrode, and the first switch 8 is used to switch between the first electrode 101 and the second electrode 102. This process continues until a valid ECG signal is acquired. If all electrodes in the first detection electrode 1 and all electrodes in the second detection electrode 2 have been visited, and a valid ECG signal is still not acquired, the electronic device exits the current ECG detection and will restart the detection once the conditions for the next ECG detection are met. Additionally, when the electronic device exits the current ECG detection, it can also output a reminder to wait a set time before resuming the detection.

[0076] In addition, in some embodiments of this application, when the first detection electrode 1 includes multiple electrodes, the second detection electrode 2 can also be a single electrode, so as to simplify the electronic device's judgment steps for aluminum leakage and shorten the time for ECG signal acquisition.

[0077] Based on the above description of the method for determining aluminum leakage, in some embodiments of this application, reference can continue to be made to... Figure 5 Taking the first detection electrode 1, which includes three electrodes, as an example, the electrocardiogram detection method of the electronic device provided in this application will be introduced. Figure 5 In the first electrode 101, the second electrode 102 and the third electrode 103 are arranged sequentially along the first direction, and it can be considered that in the initial state, the first electrode 101, which is located first along the first direction, is connected to the receiving port of the first switching switch 8.

[0078] When performing electrocardiogram (ECG) testing using the electronic device provided in this application, the user can, for example, access the ECG testing interface by clicking the ECG testing program module of the electronic device. For example, refer to... Figure 6 , Figure 6 This is a schematic diagram of an electrocardiogram (ECG) detection interface for an electronic device provided in an embodiment of this application. As can be seen, this ECG detection interface can display the user's hand grip positions and the electrodes currently held by the user, for example, by highlighting them or displaying them in different colors. It can also provide measurement prompts and a measurement time countdown, where the countdown can be used to display the remaining measurement time, and the ECG signal can be displayed in real time during the measurement process.

[0079] When the user's hands press Figure 6 When the detection electrode is held in the corresponding position as shown, the acquisition circuit 7 can acquire electrocardiogram (ECG) signals. Taking the first detection electrode 1, which includes the first electrode 101 and the second electrode 102, as an example, the ECG signal acquisition process will be explained.

[0080] Reference Figure 7 , Figure 7 A flowchart illustrating an electrocardiogram (ECG) detection method for an electronic device provided in this application embodiment. The ECG detection method may include the following steps: S701: Acquire electrocardiogram signals through the first detection electrode 1 and the second detection electrode 2.

[0081] S702: Determine whether the acquired electrocardiogram signal meets the first switching condition.

[0082] In specific implementation, for example, you can refer to Figure 8a , Figure 8a This represents the effective electrocardiogram (ECG) signal curve acquired by the acquisition circuit. The area between the two dashed lines represents the defined baseline threshold range. It can be seen that... Figure 8a In this study, the electrocardiogram signals generally fell within the baseline threshold range. Additionally, referring to... Figure 8b , Figure 8b The signal collected by the acquisition circuit after aluminum leakage is statistically analyzed. If, within a set time period, such as the first 5 seconds of signal acquisition, the acquired signal meets the first switching condition (e.g., the proportion of points where the voltage amplitude of the acquired signal is outside the first baseline range is greater than the first set value), then the acquired signal can be judged to be abnormal, indicating that aluminum leakage is present. Further reference can then be made. Figure 7 Electrocardiogram (ECG) testing methods may also include: S703: In response to the ECG signal collected within a set time meeting the first switching condition, control the receiving port of the first switching switch 8 to switch to connect with the second electrode 102.

[0083] To facilitate the user's hands in gripping the corresponding electrodes, in some embodiments of this application, such as... Figure 7 As shown, the electrocardiogram (ECG) detection method may also include the following steps: S704: Determine whether there is an electrocardiogram signal on the second electrode 102.

[0084] This step S704 is to determine whether the user is holding the second electrode 102.

[0085] If an electrocardiogram (ECG) signal is detected at the second electrode 102, the process jumps to step S701 to detect the ECG signal using the first detection electrode 1 and the second detection electrode 2.

[0086] However, if it is determined that there is no ECG signal at the second electrode 102, the process jumps to step S705.

[0087] S705: Outputs a prompt indicating a change in grip style.

[0088] This ensures that the electrodes touched by the user are consistent with the electrodes connected to the receiving port of the first switching switch 8, thereby improving the effectiveness of ECG signal acquisition.

[0089] In this application, the electronic device can output a prompt indicating a change in grip in various ways; for example, it can refer to... Figure 9 , Figure 9 This is another schematic diagram of the electrocardiogram (ECG) detection interface of the electronic device provided in this application embodiment. It can be used to show the ECG detection interface of the electronic device after the receiving port of the first switch 8 is switched to be connected to the second electrode 102. In this ECG detection interface, the position where the user's hands need to hold the device can be displayed, and measurement prompts and a countdown timer for measurement time can be provided. In other embodiments of this application, prompts to change the holding method can also be output through voice reminders or the like.

[0090] It is understandable that, taking the first detection electrode 1 as an example, when the spacing between multiple electrodes of the first detection electrode 1 is small, a person's hand can simultaneously grasp multiple electrodes of the first detection electrode 1. Thus, when the ECG signal collected within a set time meets the first switching condition, the receiving port of the first switching switch 8 switches to connect with the second electrode 102, but the electronic device does not output a prompt indicating a change in grip. In other words, in some embodiments, step S705 may not be executed, which is beneficial for improving the user's ECG detection experience.

[0091] Since the set of signals that meet the first switching condition are invalid signals, they are discarded. After the receiving port of the first switching switch 8 is switched to be connected to the second electrode 102, and the user touches the second electrode 102, step S706 can be executed.

[0092] S706: Acquire ECG signals through the first detection electrode 1 and the second detection electrode 2. Continue acquiring ECG signals through the first detection electrode 1 and the second detection electrode 2. Then proceed to step S707.

[0093] S707: Determine whether the acquired ECG signal meets the first switching condition. Continue to determine whether the acquired ECG signal meets the first switching condition. If the first switching condition is not met at this time, proceed to step S708.

[0094] S708: In response to the ECG signal acquired within a set time meeting the detection conditions, the acquisition of the ECG signal is completed.

[0095] As can be seen from the above introduction, if the acquired electrocardiogram signal meets the detection conditions, it can be understood that the parameters of the signal all fall within the defined baseline threshold range. For example, the voltage amplitude, frequency and phase of the signal all fall within the corresponding baseline threshold range.

[0096] like Figure 7 As shown, if the ECG signal still meets the first switching condition after the receiving port of the first switching switch 8 is switched to be connected to the second electrode 102, that is, if the electrodes in the first detection electrode 1 have all been switched in sequence but no effective ECG signal is still collected, the process can proceed to step S709.

[0097] S709: Exit this ECG test.

[0098] After exiting the main body ECG detection, step S701 can be repeated once the conditions for starting the next ECG detection are met. Additionally, in some embodiments, after step S709, i.e., after exiting the main body ECG detection, the electronic device can output a warning indicating a test failure and requesting the user to check if the electrodes are dirty or damaged, so that the user can re-perform the test after confirming that the electrodes are intact.

[0099] It is worth mentioning that, in the embodiments of this application, reference can continue to be made to... Figure 7 Steps S705, S706, S707, and S709 are all optional steps. That is, in some embodiments, all of steps S705, S706, S707, and S709 are executed; or, in some embodiments, one of steps S705, S706, S707, and S709 is executed; or, in other embodiments, none of steps S705, S706, S707, and S709 are executed.

[0100] As can be seen from the above description, the second detection electrode 2 may also include multiple electrodes. Therefore, in some embodiments of this application, after switching multiple electrodes in the first detection electrode 1 through the first switching switch 8, if no valid electrocardiogram signal is still collected, the receiving port of the second switching switch can be controlled to switch to connect with the fifth electrode in response to the electrocardiogram signal collected within a set time meeting the second switching condition.

[0101] This ensures that the electrode of the second detection electrode 2 touched by the user is consistent with the electrode connected to the receiving port of the second switch, thereby improving the effectiveness of ECG signal acquisition.

[0102] In some embodiments of this application, when the first detection electrode 1 includes a first electrode 101, a second electrode 102 and a third electrode 103, the first electrode 101, the second electrode 102 and the third electrode 103 are switched sequentially based on the first switching switch 8. After switching to the third electrode 103, the determination step of whether the acquired electrocardiogram signal meets the first switching condition can be referred to steps S704-S709, etc., which will not be described in detail here.

[0103] It is understood that, as mentioned above, in some embodiments of this application, the second switching switch and the first switching switch 8 may not switch the electrodes connected to them at the same time, so as to simplify the switching logic of each electrode and thus be able to confirm whether there is aluminum leakage in each electrode, thereby improving the accuracy of the acquisition circuit in acquiring electrocardiogram signals.

[0104] In addition, when or after the receiving port of the second switch is switched to connect with the fifth electrode, a prompt to change the grip method can be output in response to the ECG signal collected within a set time meeting the second switching condition.

[0105] The specific implementation of the prompt to change the grip method can be found in the above description, and will not be repeated here.

[0106] It is understandable that when a user's body moves significantly, the aforementioned baseline may drift, resulting in the collected signal being outside the baseline. Therefore, in some embodiments of this application, the electronic device may further include a motion detection sensor, which can be used to collect motion signals.

[0107] This application does not limit the type of motion detection sensor; it may be, for example, an accelerometer or an angle sensor, as long as it can detect the motion of the electronic device. It is understood that eliminating invalid signals caused by motion can improve the accuracy of electrocardiogram (ECG) detection.

[0108] Based on this, the presence of motion can be detected before determining whether the electrocardiogram signal meets the first switching condition. In specific implementation, the example of the first detection electrode 1 including the first electrode 101 and the second electrode 102 will be used for illustration. (Refer to...) Figure 10 , Figure 10 Another flowchart illustrates the electrocardiogram (ECG) detection method for an electronic device provided in this application embodiment. This ECG detection method may include the following steps: S1001: Acquire electrocardiogram signals through the first detection electrode 1 and the second detection electrode 2.

[0109] In this step, the specific implementation of acquiring electrocardiogram signals through the first detection electrode 1 and the second detection electrode 2 can refer to any of the above embodiments, and will not be elaborated here.

[0110] S1002: Acquire motion signals.

[0111] As described above, motion signals can be acquired using the motion detection sensor mentioned above. Furthermore, the signals acquired in steps S1001 and S1002 can both be transmitted to the same processor for processing.

[0112] S1003: Determine whether there is motion.

[0113] In addition, Figure 10 In the electrocardiogram detection method shown, the order of the above steps is not limited. For example, steps S1001 and S1002 can be performed simultaneously.

[0114] You can continue to refer to Figure 10 In this embodiment, it can first be determined whether there is motion. If it is determined that there is no motion, the process can jump to step S1004.

[0115] S1004: Determine whether the acquired electrocardiogram signal meets the first switching condition.

[0116] In some embodiments of this application, determining whether the acquired electrocardiogram (ECG) signal meets the first switching condition may include counting the number of points in the acquired ECG signal that meet the first switching condition. Furthermore, the method for counting the number of points in the acquired ECG signal that meet the first switching condition in this step can also refer to the above embodiments, and will not be elaborated upon here.

[0117] In addition, if it is determined in step S1004 that the acquired electrocardiogram signal meets the first switching condition, then the process jumps to step S1005.

[0118] S1005: In response to the ECG signal collected within a set time meeting the first switching condition, control the receiving port of the first switching switch 8 to switch to connect with the second electrode 102.

[0119] In some embodiments of this application, the processor can process the acquired electrocardiogram signal and determine whether it meets the first switching condition. The determination result can be transmitted back to the acquisition circuit 7 so that the acquisition circuit 7 can control the switching of the electrode connected to the receiving port of the first switching switch 8.

[0120] In addition, in step S1004 above, if it is determined that the acquired electrocardiogram signal does not meet the first switching condition, then the process jumps to step S1006.

[0121] S1006: In response to the ECG signal collected within a set time meeting the detection conditions, the ECG signal acquisition is completed.

[0122] You can continue to refer to Figure 10 In some embodiments of this application, if it is determined that there is motion in step S1003, step S1007 is executed.

[0123] S1007: Filter motion signals.

[0124] This reduces the impact of exercise on ECG signal acquisition, thereby improving the accuracy of ECG detection.

[0125] It should be noted that, in Figure 10 In the ECG detection flowchart shown, the execution method of steps S1008-S1012 can be referred to the description in the above embodiments, and will not be repeated here. Furthermore, in the ECG detection flowcharts provided in the above embodiments, only some possible detection steps are shown. When the structure of the electronic device and detection requirements change, the ECG detection steps can be adaptively adjusted, such as adding or removing some steps, which will not be listed here.

[0126] As mentioned above, the electrocardiogram (ECG) detection method for electronic devices provided in this application detects the exposure of detection electrodes caused by the lack of insulation layer, thereby judging the effectiveness of ECG signal acquisition. After determining that the detection electrodes are exposed, the detection electrodes are switched by a switching switch to acquire ECG signals that meet the detection requirements. This method is beneficial to improving the accuracy of ECG detection and reducing the difficulty of implementing ECG detection function in electronic devices.

[0127] In the above embodiments of this application, an aluminum alloy frame is used as an example for describing the implementation scheme of using an active metal as an electrocardiogram (ECG) detection electrode provided by this application. When the frame 100 is made of other active metals, the implementation method of using the frame 100 for ECG detection is similar, and will not be described in detail here.

[0128] Furthermore, this application does not specifically limit the type of electronic device; it can be used for more than just electronic devices. Figure 1a The candybar phone shown, or Figure 1b The foldable electronic device shown can also be a tablet computer, a laptop computer, or other electronic devices with active metal structural components. The electrocardiogram (ECG) detection scheme for electronic devices provided in this application is implemented in similar ways across various electronic devices, and will not be described in detail here.

[0129] It is understood that the electrocardiogram detection solution provided in this application is not only applicable to scenarios where the frame is made of active metal as the detection electrode, but other structural components made of active metal can also be used as detection electrodes, such as back covers or camera decorative covers, as long as they can meet the above two requirements for setting up detection electrodes.

[0130] It is worth mentioning that, in the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions between different embodiments are consistent and can be referenced by each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0131] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of the embodiments of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.

Claims

1. An electronic device, characterized in that, The electronic device includes a frame (100) made of a resilient metal, and the frame (100) is arranged circumferentially around the electronic device, wherein: The frame (100) includes a first detection electrode (1) and a second detection electrode (2), the first detection electrode (1) and the second detection electrode (2) are spaced apart and insulated from each other; the surface of the first detection electrode (1) is covered with a first insulating layer (5), and the surface of the second detection electrode (2) is covered with a second insulating layer (6). The electronic device further includes a data acquisition circuit (7) and a first switching switch (8), wherein the first detection electrode (1) and the second detection electrode (2) are coupled to the data acquisition circuit (7); the data acquisition circuit (7) is used to acquire electrocardiogram signals through the first detection electrode (1) and the second detection electrode (2); The first detection electrode (1) includes a first electrode (101) and a second electrode (102), the first electrode (101) and the second electrode (102) are spaced apart and insulated from each other; the first electrode (101) is connected to the receiving port of the first switching switch (8), and the output port of the first switching switch (8) is connected to the acquisition circuit (7); When the signal acquired by the acquisition circuit (7) within a set time meets the first switching condition, the acquisition circuit (7) is also used to control the receiving port of the first switching switch (8) to be connected to the second electrode (102).

2. The electronic device as claimed in claim 1, characterized in that, The first switching condition includes at least one of the following conditions: The voltage amplitude of the signal does not meet the first preset condition; or, The frequency of the signal does not meet the second preset condition; or, The phase of the signal does not satisfy the third preset condition.

3. The electronic device as described in claim 1 or 2, characterized in that, The first insulating layer (5) includes a first sub-insulating layer (51) and a second sub-insulating layer (52), the first sub-insulating layer (51) covering the surface of the first electrode (101) and the second sub-insulating layer (52) covering the surface of the second electrode (102).

4. The electronic device as described in claim 1 or 2, characterized in that, The first electrode (101) and the second electrode (102) are separated by a gap (4).

5. The electronic device as described in claim 1 or 2, characterized in that, The first detection electrode (1) and the second detection electrode (2) are separated by a gap (4).

6. The electronic device as claimed in claim 1 or 2, characterized in that, The second detection electrode (2) includes a fourth electrode and a fifth electrode, wherein the fourth electrode and the fifth electrode are spaced apart and insulated from each other; The electronic device further includes a second switching switch, the fourth electrode is connected to the receiving port of the second switching switch, and the output port of the second switching switch is connected to the acquisition circuit (7); When the signal acquired by the acquisition circuit (7) within a set time meets the second switching condition, the acquisition circuit (7) is also used to control the receiving port of the second switching switch to be connected to the fifth electrode.

7. The electronic device as claimed in claim 6, characterized in that, The second insulating layer includes a fourth sub-insulating layer and a fifth sub-insulating layer, wherein the fourth sub-insulating layer covers the surface of the fourth electrode and the fifth sub-insulating layer covers the surface of the fifth electrode.

8. The electronic device as claimed in claim 6, characterized in that, The fourth electrode and the fifth electrode are separated by a gap (4).

9. The electronic device as claimed in claim 1 or 2, characterized in that, The frame (100) includes multiple frame edges, with the first detection electrode (1) and the second detection electrode (2) located on the same frame edge, or at least a portion of the first detection electrode (1) and the second detection electrode (2) located on different frame edges.

10. The electronic device as claimed in claim 1 or 2, characterized in that, The material of the frame (100) includes at least one of magnesium, aluminum, potassium, zinc or iron; or the material of the frame (100) includes at least one of magnesium alloy, aluminum alloy, potassium alloy, zinc alloy or stainless steel.

11. A method for electrocardiogram detection in electronic devices, characterized in that, The electronic device includes a frame (100) arranged circumferentially around the electronic device; the frame (100) includes a first detection electrode (1) and a second detection electrode (2), the first detection electrode (1) and the second detection electrode (2) being spaced apart and insulated from each other; the surface of the first detection electrode (1) is covered with a first insulating layer (5), and the surface of the second detection electrode (2) is covered with a second insulating layer (6); the first detection electrode (1) includes a first electrode (101) and a second electrode (102), the first electrode (101) and the second electrode (102) being spaced apart and insulated from each other; the electronic device also includes a first switch (8), the first electrode (101) being connected to the receiving port of the first switch (8); wherein, the electrocardiogram detection method includes: Electrocardiogram (ECG) signals are acquired through the first detection electrode (1) and the second detection electrode (2); Determine whether the acquired electrocardiogram signal meets the first switching condition; In response to the ECG signal collected within a set time meeting the first switching condition, the receiving port of the first switching switch (8) is controlled to switch to be connected to the second electrode (102).

12. The electrocardiogram detection method as described in claim 11, characterized in that, The electrocardiogram detection method also includes: The presence or absence of an electrocardiogram signal at the second electrode (102) is determined. If not, output a prompt to change the grip method.

13. The electrocardiogram detection method as described in claim 11 or 12, characterized in that, The electronic device further includes a motion detection sensor for acquiring motion signals; before determining whether the acquired electrocardiogram signal meets the first switching condition, the electrocardiogram detection method further includes: The motion signal is filtered.

14. The electrocardiogram detection method as described in claim 11 or 12, characterized in that, The second detection electrode (2) includes a fourth electrode and a fifth electrode, which are spaced apart and insulated from each other; the electronic device also includes a second switching switch, and the fourth electrode is connected to the receiving port of the second switching switch; The electrocardiogram detection method also includes: In response to the ECG signal collected within a set time meeting the second switching condition, the receiving port of the second switching switch is controlled to switch to be connected to the fifth electrode.

15. The electrocardiogram detection method as described in claim 11 or 12, characterized in that, The electrocardiogram detection method also includes: The ECG signal acquisition is completed when the ECG signal collected within the set time meets the detection conditions.