Protective circuit for wearable device and application method thereof

By designing protective circuits in wearable devices, using signal waveforms to determine chip status and controlling LED power, the problem of burns caused by wearable device failures is solved, and user safety and design simplicity are improved.

CN115379622BActive Publication Date: 2024-09-03GUANGDONG TRANSTEK MEDICAL ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211058937.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2024-09-03
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

When existing wearable devices malfunction, the heart rate and blood oxygen lamps can easily cause burns to the user, and there is a lack of effective protective measures.

Method used

A protective circuit for wearable devices is designed. Through the power input port, MOS switch, resistor, capacitor, diode and GPIO port, the signal waveform is used to determine the working status of the chip, control the power supply of the light-emitting diode, and prevent high-brightness and high-temperature burns.

Benefits of technology

It effectively prevents the high brightness and high temperature of LEDs from burning human skin, increases user safety protection, reduces safety accidents and costs, simplifies hardware design, and avoids protection failures caused by software bugs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115379622B
    Figure CN115379622B
Patent Text Reader

Abstract

The present invention provides a protective circuit for a wearable device and an application method thereof, which relates to the technical field of wearable devices, and alleviates the technical problem in the prior art that when a wearable device fails, its heart rate and blood oxygen lamp is prone to scalding the user. The protective circuit includes: an electric energy input port, a first MOS switch, a second MOS switch, a third MOS switch, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first diode, a second diode, a light-emitting diode, and a GPIO port; the protective circuit is connected to the chip through the GPIO port; the protective circuit is used to determine the working state of the chip, and control the light-emitting diode based on the working state of the chip, and by obtaining a special state signal of an abnormal situation of the chip and providing timely shutdown measures at the same time, it can timely and effectively prevent the high-brightness and high-temperature heart rate green light, blood sample red light, heart rate infrared light, etc. from scalding the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wearable devices, and in particular to a protection circuit for wearable devices and an application method thereof. Background Art

[0002] Nowadays, smart wearable devices are becoming more and more diverse, and the additional functions are becoming more and more abundant. For example, heart rate measurement and blood oxygen measurement have almost become standard functions of smart wearables. Wearable devices can use light-emitting diode components such as heart rate green light and blood oxygen red light to measure the user's heart rate and blood oxygen content.

[0003] However, there is a technical problem in the prior art that when a wearable device fails, its heart rate and blood oxygen lamp is prone to burn the user. Summary of the invention

[0004] The purpose of the present application is to provide a protective circuit for a wearable device and an application method thereof, so as to alleviate the technical problem in the prior art that when a wearable device fails, its heart rate and blood oxygen lamp is prone to scalding the user.

[0005] In a first aspect, an embodiment of the present application provides a protection circuit for a wearable device, comprising: an electric energy input port, a first field effect transistor (Metal-Oxide-Semiconductor Field-Effect Transistor, MOS) switch, a second MOS switch, a third MOS switch, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first diode, a second diode, a light-emitting diode, and a general-purpose input / output (GPIO) port;

[0006] The power input port is respectively connected to the source of the first MOS switch, the first pin of the first resistor and the source of the second MOS switch, the drain of the first MOS switch is connected to the first pin of the second resistor, the gate of the first MOS switch is respectively connected to the gate of the third MOS switch, the first pin of the third resistor and the first pin of the fourth resistor, the second pin of the first resistor is respectively connected to the gate of the second MOS switch and the drain of the third MOS switch, the drain of the second MOS switch is connected to the positive electrode of the light-emitting diode, the second pin of the third resistor is respectively connected to the first pin of the first capacitor and the negative electrode of the first diode, the positive electrode of the first diode is respectively connected to the negative electrode of the second diode and the first pin of the second capacitor, the GPIO port is respectively connected to the second pin of the second resistor, the negative electrode of the light-emitting diode and the second pin of the second capacitor, the source of the third MOS switch is grounded, the second pin of the fourth resistor is grounded, the second pin of the first capacitor is grounded, the positive electrode of the second diode is grounded, and the protection circuit is connected to the chip of the wearable device through the GPIO port;

[0007] The protection circuit is used to determine the working state of the chip and control the light emitting diode based on the working state of the chip.

[0008] In a second aspect, an embodiment of the present application provides an application method of a protection circuit of a wearable device, which is applied to the protection circuit as described in the first aspect above, wherein the protection circuit includes a light-emitting diode and a GPIO port, and the protection circuit is connected to a chip of the wearable device through the GPIO port; the method includes:

[0009] Obtaining a signal waveform of the GPIO port;

[0010] Determining the working state of the chip according to the signal waveform;

[0011] The light emitting diode is controlled based on the working state of the chip.

[0012] In a possible implementation, the signal waveform includes any one or more of the following:

[0013] Constant high level waveform, pulse width modulation (PWM) waveform, constant low level waveform.

[0014] In a possible implementation, the step of determining the working state of the chip according to the signal waveform includes:

[0015] If the signal waveform is a constant high level waveform, it is determined that the chip is in a powered-on but non-working state;

[0016] If the signal waveform is a PWM waveform, it is determined that the chip is in a normal working state;

[0017] If the signal waveform is a constant low level waveform, it is determined that the chip is in an abnormal working state.

[0018] In a possible implementation, the signal waveform is a constant high-level waveform, and the chip is in a powered-on, non-working state; and the step of controlling the light-emitting diode based on the working state of the chip includes:

[0019] In response to the chip being in a powered-on non-working state, the light emitting diode is controlled to remain off.

[0020] In a possible implementation, the signal waveform is a PWM waveform, and the chip is in a normal working state; and the step of controlling the light emitting diode based on the working state of the chip includes:

[0021] In response to the chip being in a normal working state, the light emitting diode is controlled to continue working.

[0022] In a possible implementation, the signal waveform is a constant low-level waveform, and the chip is in an abnormal working state; the step of controlling the light-emitting diode based on the working state of the chip includes:

[0023] In response to the chip being in an abnormal working state, the light emitting diode is controlled to be turned off.

[0024] In a third aspect, an embodiment of the present application provides an application device of a protection circuit of a wearable device, which is applied to the protection circuit as described in the first aspect above, wherein the protection circuit includes a light-emitting diode and a GPIO port, and the protection circuit is connected to the chip of the wearable device through the GPIO port; the device includes:

[0025] An acquisition module, used to acquire the signal waveform of the GPIO port;

[0026] A determination module, used to determine the working state of the chip according to the signal waveform;

[0027] A control module is used to control the light emitting diode based on the working state of the chip.

[0028] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the steps of the method described in the second aspect are implemented.

[0029] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method described in the second aspect above.

[0030] The embodiments of the present application bring the following beneficial effects:

[0031] The embodiments of the present application provide a protection circuit for a wearable device and an application method thereof, the protection circuit comprising: an electric energy input port, a first MOS switch, a second MOS switch, a third MOS switch, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first diode, a second diode, a light-emitting diode and a GPIO port; the electric energy input port is respectively connected to the source of the first MOS switch, the first pin of the first resistor and the source of the second MOS switch, the drain of the first MOS switch is connected to the first pin of the second resistor, the gate of the first MOS switch is respectively connected to the gate of the third MOS switch, the first pin of the third resistor and the first pin of the fourth resistor, and the second pin of the first resistor is respectively connected to the gate of the second MOS switch The gate of the third MOS switch is connected to the drain of the third MOS switch, the drain of the second MOS switch is connected to the anode of the light-emitting diode, the second pin of the third resistor is respectively connected to the first pin of the first capacitor and the cathode of the first diode, the anode of the first diode is respectively connected to the cathode of the second diode and the first pin of the second capacitor, the GPIO port is respectively connected to the second pin of the second resistor, the cathode of the light-emitting diode and the second pin of the second capacitor, the source of the third MOS switch is grounded, the second pin of the fourth resistor is grounded, the second pin of the first capacitor is grounded, the anode of the second diode is grounded, the protection circuit is connected to the chip of the wearable device through the GPIO port, and the protection circuit is used to determine the working state of the chip and control the light-emitting diode based on the working state of the chip.

[0032] The protection circuit of the wearable device provided in this solution utilizes the abnormal signal of the identification chip to timely determine the action to cut off the power supply of the LED, which can effectively prevent the LED from being too bright and too high in temperature and burning the human skin. It is a pure hardware circuit and does not require the main control MCU to provide IO port resources, reducing the difficulty and complexity of the wiring. It does not require software control, has no code cost, is highly reliable, and has low cost. It avoids failure to act due to software bugs and other reasons, and adds a more powerful safety barrier for the personal safety of users of wearable devices and wearable products, reducing safety accidents, safety customer complaints, safety lawsuits, etc. It alleviates the technical problem in the prior art that when a wearable device fails, its heart rate blood oxygen lamp is prone to scalding the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 A schematic diagram of the structure of a protection circuit for a wearable device provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of a working waveform provided in an embodiment of the present application;

[0036] Figure 3 Another working waveform diagram provided for an embodiment of the present application;

[0037] Figure 4 Another working waveform diagram provided for an embodiment of the present application;

[0038] Figure 5 Another working waveform diagram provided for an embodiment of the present application;

[0039] Figure 6 Another working waveform diagram provided for an embodiment of the present application;

[0040] Figure 7 A schematic diagram of a flow chart of an application method of a protection circuit for a wearable device provided in an embodiment of the present application;

[0041] Figure 8 A schematic diagram of the structure of an application device of a protection circuit for a wearable device provided in an embodiment of the present application;

[0042] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0044] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0045] Nowadays, all major wearable product manufacturers have customer complaints about users being burned or scalded due to overheating of wearable devices. Under abnormal conditions, the input / output (IO) pins of the health chip of the wearable device are directly connected to the ground, causing one or more of the heart rate green light, blood oxygen red light, and heart rate infrared light to be on at the same time. The higher voltage is directly loaded to both ends of the above lights, generating a large current, causing the temperature rise of the light to be too high and burn the human body. The heart rate green light and heart rate infrared light are generally used for wearing detection of wearable products. Even if the continuous heart rate and blood oxygen function is not turned on, the heart rate green light and heart rate infrared light will light up intermittently. If the health chip suddenly becomes abnormal, it may cause scalds or burns to the human body. Because of the issue of user personal safety, it may lead to more serious consequences, so it is very necessary to design an anti-scalding circuit for the heart rate blood sample light on wearable devices and wearable products.

[0046] Based on this, the embodiment of the present application provides a protective circuit for a wearable device and an application method thereof, which can alleviate the technical problem in the prior art that when a wearable device fails, its heart rate and blood oxygen lamp is prone to scalding the user.

[0047] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0048] Figure 1 This is a schematic diagram of the structure of a protection circuit of a wearable device provided in an embodiment of the present application. Figure 1As shown, the circuit includes a power input port 101, a first MOS switch 102, a second MOS switch 103, a third MOS switch 104, a first resistor 105, a second resistor 106, a third resistor 107, a fourth resistor 108, a first capacitor 109, a second capacitor 110, a first diode 111, a second diode 112, a light emitting diode 113 and a GPIO port 114;

[0049] The power input port 101 is respectively connected to the source of the first MOS switch 102, the first pin of the first resistor 105, and the source of the second MOS switch 103; the drain of the first MOS switch 102 is connected to the first pin of the second resistor 106; the gate of the first MOS switch 102 is respectively connected to the gate of the third MOS switch 104, the first pin of the third resistor 107, and the first pin of the fourth resistor 108; the second pin of the first resistor 105 is respectively connected to the gate of the second MOS switch 103 and the drain of the third MOS switch 104; the drain of the second MOS switch 103 is connected to the anode of the light emitting diode 113; the gate of the third MOS switch 104 is respectively connected to the gate of the third MOS switch 104, the first pin of the third resistor 107, and the first pin of the fourth resistor 108; the second pin of the first resistor 105 is respectively connected to the gate of the second MOS switch 103 and the drain of the third MOS switch 104; the drain of the second MOS switch 103 is connected to the anode of the light emitting diode 113; the gate of the third resistor 107 is respectively connected to the gate of the third MOS switch 104, the first pin of the third resistor 107, and the first pin of the fourth resistor 108; the gate of the third MOS switch 104 is respectively connected to the gate of the third MOS switch 104, the drain of the third MOS switch 103 is connected to the anode of the light emitting diode 113; the gate of the third resistor 107 ... The second pin of the resistor 107 is respectively connected to the first pin of the first capacitor 109 and the cathode of the first diode 111, the anode of the first diode 111 is respectively connected to the cathode of the second diode 112 and the first pin of the second capacitor 110, the GPIO port 114 is respectively connected to the second pin of the second resistor 106, the cathode of the light-emitting diode 113 and the second pin of the second capacitor 110, the source of the third MOS switch 104 is grounded, the second pin of the fourth resistor 108 is grounded, the second pin of the first capacitor 109 is grounded, the anode of the second diode 112 is grounded, and the protection circuit is connected to the chip of the wearable device through the GPIO port 114;

[0050] The protection circuit is used to determine the working state of the chip and control the light emitting diode 113 based on the working state of the chip.

[0051] For example, Figure 1 As shown, the embodiment of the present application also performs voltage sampling at four nodes S1, S2, S3 and S4 of the protection circuit, and is described in conjunction with related waveforms.

[0052] The voltage waveforms of each path when the protection circuit is powered on for the first time and does not work are as follows: Figure 2As shown. Among them, the path sequence of path 1 is the power input port 101, the source of the first MOS switch 102, the gate of the first MOS switch 102, and the fourth resistor 108; the path sequence of path 2 is the power input port 101, the source of the first MOS switch 102, the drain of the first MOS switch 102, the second resistor 106, the second capacitor 110, the first diode 111, the third resistor 107, and the fourth resistor 108; the path sequence of path 3 is the power input port 101, the source of the first MOS switch 102, the drain of the first MOS switch 102, the second resistor 106, the second capacitor 110, the first diode 111, and the first capacitor 109. Since the current flows through path 1, the first MOS switch 102 is turned on, the current flows through the first MOS switch 102, the second resistor 106 charges the second capacitor 110, and the potential of the GPIO port 114 becomes a high level. The charging waveform is shown as follows Figure 2 As shown in the waveform S3 in FIG. 1 , at this time, since the charging path passes through the first capacitor 109, the voltage across the first capacitor 109 increases, and at the same time, the voltage across the fourth resistor 108 also increases, as shown in FIG. Figure 2 As shown in waveform S2.

[0053] When the healthy chip is working normally, the chip's GPIO starts to output PWM waveform in open-drain mode. At this time, the first waveform of PWM low is as follows Figure 3 As shown in the waveform S3 in FIG, when the GPIO is pulled low, there are two discharge paths, wherein the path sequence of the first discharge path is the power input port 101, the source of the first MOS switch 102, the drain of the first MOS switch 102, the second resistor 106, and the GPIO port 114; the path sequence of the second discharge path is the second diode 112, the second capacitor 110, and the GPIO port 114. After GPIO is pulled low, the potential will slowly rise. There will be the following two charging paths in the process of rising. The path sequence of the first charging path is the power input port 101, the source of the first MOS switch 102, the drain of the first MOS switch 102, the second resistor 106, the second capacitor 110, the first diode 111, and the first capacitor 109. The first capacitor 109 and the second capacitor 110 are charged at the same time. The path sequence of the second charging path is the power input port 101, the source of the first MOS switch 102, the drain of the first MOS switch 102, the second resistor 106, the second capacitor 110, the first diode 111, the third resistor 107, and the fourth resistor 108. The second capacitor 110 is mainly charged. Then, due to the charging of the first capacitor 109, the potential at both ends of the fourth resistor 108 is also increased. Figure 3As shown in the waveform S2 in FIG. 1 , after the first signal is pulled down (eg, 210 μs), the voltage across the fourth resistor 108 rises (eg, 800 mV), the third MOS switch 104 is turned on, the first MOS switch 102 is turned off, and the second MOS switch 103 is turned on.

[0054] The purpose of turning on the third MOS switch 104 is to perform logic inversion and control the turning on of the second MOS switch 103. The purpose of turning off the first MOS switch 102 is to save power consumption during operation. The first MOS switch 102 is turned on at the beginning only for the GPIO pull-up of the chip, and as an excitation level to charge the second capacitor 110 and provide power. When the second MOS switch 103 is turned on, the first MOS switch 102 has no effect and can only increase power consumption. Therefore, the first MOS switch 102 needs to be turned off logically at this time. The purpose of turning on the second MOS switch 103 is to directly provide power to the light-emitting diode 113 during normal operation, and it is the main power supply path.

[0055] The normal waveform of each node during operation is as follows: Figure 4 After the GPIO of the chip normally opens and drains to output the PWM waveform, the third MOS switch 104 is turned on, the first MOS switch 102 is turned off, and the second MOS switch 103 is turned on. At this time, there are three main current paths (when PWM is at a high level): the path sequence of path 1 is the power input port 101, the source of the second MOS switch 103, the drain of the second MOS switch 103, the light-emitting diode 113, and the GPIO port 114, and the main function is to supply power to the light-emitting diode 113; the path sequence of path 2 is the power input port 101, the source of the second MOS switch 103, the drain of the second MOS switch 103, the light-emitting diode 113, the second capacitor 110, the first diode 111, and the first capacitor 109, and the main function is to charge the second capacitor 110 and the first capacitor 109; the path sequence of path 3 is the power input port 101, the source of the second MOS switch 103, the drain of the second MOS switch 103, the light-emitting diode 113, the second capacitor 110, the first diode 111, the third resistor 107, and the fourth resistor 108, and the main function is to charge the second capacitor 110 and the first capacitor 10. At the same time, there are two main current paths (when PWM is at a low level): the path sequence of path 4 is the power input port 101, the source of the second MOS switch 103, the drain of the second MOS switch 103, the light-emitting diode 113, and the GPIO port 114; the path sequence of path 4 is the second diode 112, the second capacitor 110, and the GPIO port 114. The waveforms of each node during normal power-off are as follows: Figure 5 shown.

[0056] When the wearable device does not need to test the heart rate value or blood oxygen value, the LED will be turned off, and the chip's GPIO will no longer open-drain and output PWM. At this time, the GPIO state will become a constant high level, such as Figure 5 As shown in the waveform S3 in FIG. 1 , at this time, the state of the entire protection circuit will change, the first capacitor 109 will no longer be charged, but can only be discharged, the potential will continue to decrease, and finally the third MOS switch 104 will be turned off, the second MOS switch 103 will be turned off, and the first MOS switch 102 will be turned on. At this time, the current path is as follows: the path sequence of path 1 is the power input port 101, the source of the first MOS switch 102, the gate of the first MOS switch 102, and the fourth resistor 108. This path is continuously discharged, causing the gate potentials of the third MOS switch 104 and the first MOS switch 102 to decrease. After a period of time (for example, 124ms), the state is reversed; the path sequence of path 2 is the second capacitor 109, the third resistor 107, and the fourth resistor 108. This path continues to pass current, and the first MOS switch 102 is always turned on to prepare for the next light-emitting diode 113 to light up.

[0057] When the chip works abnormally, causing the GPIO to be directly connected to the reference ground, or connected to the reference ground with low impedance, such as Figure 6 As shown in the waveform S3, the GPIO no longer generates a PWM signal. At this time, the second capacitor 110 is no longer charged. The performance of blocking DC and passing AC causes the first capacitor 109 to be continuously discharged. The gate potential of the third MOS switch 104 drops to a certain state (for example, 102ms). Figure 6 As shown in the waveform S2, the third MOS switch 104 is turned off, so that the gate potential of the second MOS switch 103 is raised. Figure 6 As shown in the waveform S1, the second MOS switch 103 is also turned off, and the power supply of the light emitting diode 113 is cut off, and the light emitting diode 113 can no longer be bright and hot. When the power supply of the light emitting diode 113 is cut off, the first MOS switch 102 is turned on to prepare for the next light emitting diode 113 to light up.

[0058] The embodiments of the present application are explained with the following parameters. It should be noted that the following parameters are used for illustration only and are not limited to the embodiments of the present application. The abnormal action time can be set to 102ms, and the gate signal holding time of the MOS switch can be set to 124.5ms. The above two values ​​are determined by the capacitance of the first capacitor 109, the resistance of the third resistor 107 and the fourth resistor 108. The time can be adjusted by adjusting their parameters. The forward conduction current of the MOS switch can also be set to 660mA, the gate voltage to 0.61V, and the on-resistance to 650mΩ. The above values ​​are determined by the model of the second MOS switch 103, and this value can be adjusted by changing the model.

[0059] The functions of each component in the embodiment of the present application are as follows: the first MOS switch 102 is used as a power supply for charging the first capacitor 109 and the second capacitor 110 at the first startup. Since the GPIO of the health chip is generally an open-drain output, without the first MOS switch 102 providing a high level, the second MOS switch 103 cannot be turned on to power the light-emitting diode 113. In addition, the second MOS switch 103 will be cut off after the light-emitting diode 113 works normally, thereby reducing the continuous current consumption of the pull-up, which has the effect of reducing power consumption. The second MOS switch 103 is mainly used as a switching device to control the power supply of the light-emitting diode 113 to be turned on or off. The third MOS switch 104 is mainly used as a logic inversion to control the conduction or cutoff of the second MOS switch 103. The first resistor 105 provides a pull-up level for the gate of the second MOS switch 103. The second resistor 106 and the first MOS switch 102 together form a circuit for providing a pull-up level at the first startup, which mainly plays a role in current limiting. The third resistor 107 mainly drives the gates of the first MOS switch 102 and the third MOS switch 104, while limiting current and dividing voltage. The third resistor 108 is mainly used to discharge the charge of the gate of the first MOS switch 102 and the third MOS switch 104, and at the same time plays a role of voltage division. The second capacitor 110 mainly uses its capacitor to block direct current and pass alternating current. When the healthy chip is normal, it allows the PWM signal to pass and charge the first capacitor 109; when the healthy chip is abnormal, it blocks the unchanged DC level and cannot charge the first capacitor 109, so that the subsequent circuit can be protected. The first capacitor 109 is mainly used to store energy, providing a potential signal for the gate of the first MOS switch 102 and the third MOS switch 104, and extending the gate signal holding time during discharge. The first diode 111 mainly uses its unidirectional conduction characteristics to prevent GPIO from releasing the electric energy of the first capacitor 109 when the level is low. The second diode 112 mainly utilizes its unidirectional conduction characteristic. When the GPIO is at a low level, the second capacitor 110 can release the charge to the GPIO to provide a ring path, so as to prepare for charging the second capacitor 110 when the GPIO becomes high next time. If there is no second diode 112, the second capacitor 110 can only be charged but not discharged, and the role of passing AC will not be played, because the capacitor needs to be continuously charged and discharged to pass AC.

[0060] The protection circuit of the wearable device provided in the embodiment of the present application utilizes the abnormal signal of the identification chip to timely determine the action to cut off the power supply of the LED, which can effectively prevent the LED from being too bright and too high in temperature and burning the human skin. The pure hardware circuit does not require the main control MCU to provide IO port resources, reduces the difficulty and complexity of the wiring, does not require software control, has no code cost, has high reliability, and is low in cost. It avoids failure to act due to software bugs and other reasons, adds a more powerful safety barrier for the personal safety of users of wearable devices and wearable products, reduces safety accidents, safety customer complaints, safety lawsuits, etc., and alleviates the technical problem in the prior art that when a wearable device fails, its heart rate blood oxygen lamp is prone to scalding the user.

[0061] Figure 7 The present invention provides a flowchart of a method for applying a protective circuit of a wearable device, which can be applied to the protective circuit described above. The protective circuit includes a light-emitting diode and a GPIO port, and the protective circuit is connected to the chip of the wearable device through the GPIO port. Figure 7 As shown, the method includes:

[0062] Step S701, obtaining the signal waveform of the GPIO port.

[0063] Step S702, determining the working state of the chip according to the signal waveform.

[0064] Step S703: Control the light emitting diode based on the working state of the chip.

[0065] The application method of the protection circuit of the wearable device provided in the embodiment of the present application utilizes the abnormal signal of the identification chip to timely determine the action to cut off the power supply of the LED, which can effectively prevent the LED from being too bright and too high in temperature and burning the human skin. The pure hardware circuit does not require the main control MCU to provide IO port resources, reduces the difficulty and complexity of the wiring, does not require software control, has no code cost, has high reliability, and is low in cost. It avoids failure to act due to software bugs and other reasons, adds a more powerful safety barrier for the personal safety of users of wearable devices and wearable products, reduces safety accidents, safety customer complaints, safety lawsuits, etc., and alleviates the technical problem in the prior art that when a wearable device fails, its heart rate blood oxygen lamp is prone to scalding the user.

[0066] In some embodiments, the signal waveform may include multiple types, so as to flexibly respond to the working state of the chip, thereby effectively controlling the light-emitting diode to prevent scalding the user. As an example, the signal waveform includes any one or more of the following:

[0067] Constant high level waveform, PWM waveform, constant low level waveform.

[0068] For example, by using different signal waveforms to reflect different working states of the chip, the protection circuit can quickly respond to the working state of the chip according to the signal waveform, effectively control the light-emitting diode, and prevent the user from being scalded.

[0069] In some embodiments, the protection circuit can accurately determine the working state of the chip through the signal waveform of the GPIO port, so as to quickly respond and effectively control the light-emitting diode to prevent the user from being scalded. As an example, the above step S702 may specifically include the following steps:

[0070] Step a), if the signal waveform is a constant high level waveform, it is determined that the chip is in a powered-on but non-working state.

[0071] Step b), if the signal waveform is a PWM waveform, it is determined that the chip is in a normal working state.

[0072] Step c), if the signal waveform is a constant low level waveform, it is determined that the chip is in an abnormal working state.

[0073] Exemplarily, if the signal waveform obtained by the protection circuit from the GPIO port is a constant high-level waveform, the protection circuit can determine that the chip is in a powered-on and non-working state; if the signal waveform obtained by the protection circuit from the GPIO port is a PWM waveform, the protection circuit can determine that the chip is in a normal working state; if the signal waveform obtained by the protection circuit from the GPIO port is a constant low-level waveform, the protection circuit can determine that the chip is in an abnormal working state.

[0074] By accurately judging the working status of the chip based on the signal waveform of the GPIO port, the chip can respond quickly and effectively control the light-emitting diode to prevent users from being scalded.

[0075] In some embodiments, the protection circuit determines that the chip is in a powered-on but not working state by detecting that the signal waveform is a constant high-level waveform, and then controls the light-emitting diode in response. As an example, the signal waveform is a constant high-level waveform, and the chip is in a powered-on but not working state; the above step S703 may specifically include the following steps:

[0076] Step d), in response to the chip being in a powered-on but non-working state, controlling the light emitting diode to remain off.

[0077] For example, if the protection circuit determines that the chip is in a powered-on but non-working state according to the constant high-level signal waveform, the light-emitting diode can be kept in a non-working and extinguished state to prevent the user from being scalded.

[0078] In some embodiments, the protection circuit detects that the signal waveform is a PWM waveform, so that the chip is in a normal working state, and then controls the response of the light-emitting diode. As an example, the signal waveform is a PWM waveform, and the chip is in a normal working state; the above step S703 may specifically include the following steps:

[0079] Step e), in response to the chip being in a normal working state, controlling the light emitting diode to continue working.

[0080] For example, if the protection circuit determines that the chip is in a normal working state according to the PWM signal waveform, the light-emitting diode can be controlled to work normally to measure the heart rate and blood oxygen for the user.

[0081] In some embodiments, the protection circuit detects that the signal waveform is a constant low-level waveform, so that the chip is in an abnormal working state, and then controls the light-emitting diode in response. As an example, the signal waveform is a constant low-level waveform, and the chip is in an abnormal working state; the above step S703 may specifically include the following steps:

[0082] Step f), in response to the chip being in an abnormal working state, controlling the light emitting diode to turn off.

[0083] For example, if the protection circuit determines that the chip is in an abnormal working state according to the constant low-level signal waveform, the light-emitting diode can be controlled to turn off in time to prevent the user from being scalded.

[0084] Figure 8 The present invention provides a schematic diagram of a structure of an application device for a protection circuit of a wearable device, which can be applied to the above-mentioned protection circuit. The protection circuit includes a light-emitting diode and a GPIO port, and the protection circuit is connected to the chip of the wearable device through the GPIO port. Figure 8 As shown, the device comprises:

[0085] The acquisition module 801 is used to acquire the signal waveform of the GPIO port.

[0086] The determination module 802 is used to determine the working state of the chip according to the signal waveform.

[0087] The control module 803 is used to control the light emitting diode based on the working state of the chip.

[0088] In some embodiments, the signal waveform includes any one or more of the following:

[0089] Constant high level waveform, PWM waveform, constant low level waveform.

[0090] In some embodiments, the determination module 802 is specifically configured to:

[0091] If the signal waveform is a constant high level waveform, it is determined that the chip is in a powered-on but not working state;

[0092] If the signal waveform is a PWM waveform, it is determined that the chip is in normal working state;

[0093] If the signal waveform is a constant low level waveform, it is determined that the chip is in an abnormal working state.

[0094] In some embodiments, the signal waveform is a constant high level waveform, and the chip is in a powered-on but not working state; the control module 803 is specifically used for:

[0095] In response to the chip being in a powered-on non-working state, the light emitting diode is controlled to remain off.

[0096] In some embodiments, the signal waveform is a PWM waveform, and the chip is in a normal working state;

[0097] In response to the chip being in a normal working state, the light emitting diode is controlled to continue working.

[0098] In some embodiments, the signal waveform is a constant low-level waveform, and the chip is in an abnormal working state;

[0099] In response to the chip being in an abnormal working state, the light emitting diode is controlled to be turned off.

[0100] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the system embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0101] An embodiment of the present invention provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes any one of the methods in the above implementation manners.

[0102] Fig. 9 A structural diagram of an electronic device provided for an embodiment of the present invention, the electronic device includes: a processor 901, a memory 902, a bus 903 and a communication interface 904, the processor 901, the communication interface 904 and the memory 902 are connected via the bus 903; the processor 901 is used to execute an executable module stored in the memory 902, such as a computer program.

[0103] The memory 902 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (Non-volatile Memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 904 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0104] The bus 903 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0105] Among them, the memory 902 is used to store programs, and the processor 901 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any of the embodiments of the above-mentioned embodiments of the present invention can be applied to the processor 901, or implemented by the processor 901.

[0106] The processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 901. The above processor 901 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902 and completes the steps of the above method in combination with its hardware.

[0107] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method in the previous method embodiment. The specific implementation can be referred to the previous method embodiment, which will not be repeated here.

[0108] If the function 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, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0109] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A protective circuit for a wearable device, characterized in that: include: An electric energy input port, a first MOS switch, a second MOS switch, a third MOS switch, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first diode, a second diode, a light emitting diode, and a GPIO port; The power input port is respectively connected to the source of the first MOS switch, the first pin of the first resistor and the source of the second MOS switch, the drain of the first MOS switch is connected to the first pin of the second resistor, the gate of the first MOS switch is respectively connected to the gate of the third MOS switch, the first pin of the third resistor and the first pin of the fourth resistor, the second pin of the first resistor is respectively connected to the gate of the second MOS switch and the drain of the third MOS switch, the drain of the second MOS switch is connected to the positive electrode of the light-emitting diode, the second pin of the third resistor is respectively connected to the first pin of the first capacitor and the negative electrode of the first diode, the positive electrode of the first diode is respectively connected to the negative electrode of the second diode and the first pin of the second capacitor, the GPIO port is respectively connected to the second pin of the second resistor, the negative electrode of the light-emitting diode and the second pin of the second capacitor, the source of the third MOS switch is grounded, the second pin of the fourth resistor is grounded, the second pin of the first capacitor is grounded, the positive electrode of the second diode is grounded, and the protection circuit is connected to the chip of the wearable device through the GPIO port; The protection circuit is used to determine the working state of the chip and control the light emitting diode based on the working state of the chip.

2. An application method of a protective circuit for a wearable device, characterized in that: Applied to the protection circuit according to claim 1, the protection circuit comprises a light emitting diode and a GPIO port, and the protection circuit is connected to the chip of the wearable device through the GPIO port; the method comprises: Obtaining a signal waveform of the GPIO port; Determining the working state of the chip according to the signal waveform; The light emitting diode is controlled based on the working state of the chip.

3. The method according to claim 2, characterized in that The signal waveform includes any one or more of the following: Constant high level waveform, PWM waveform, constant low level waveform.

4. The method according to claim 3, characterized in that The step of determining the working state of the chip according to the signal waveform comprises: If the signal waveform is a constant high level waveform, it is determined that the chip is in a powered-on but non-working state; If the signal waveform is a PWM waveform, it is determined that the chip is in a normal working state; If the signal waveform is a constant low level waveform, it is determined that the chip is in an abnormal working state.

5. The method according to claim 2, characterized in that: The signal waveform is a constant high-level waveform, and the chip is in a powered-on, non-working state; the step of controlling the light-emitting diode based on the working state of the chip comprises: In response to the chip being in a powered-on non-working state, the light emitting diode is controlled to remain off.

6. The method according to claim 2, characterized in that The signal waveform is a PWM waveform, and the chip is in a normal working state; the step of controlling the light emitting diode based on the working state of the chip includes: In response to the chip being in a normal working state, the light emitting diode is controlled to continue working.

7. The method according to claim 2, characterized in that The signal waveform is a constant low-level waveform, and the chip is in an abnormal working state; the step of controlling the light-emitting diode based on the working state of the chip comprises: In response to the chip being in an abnormal working state, the light emitting diode is controlled to be turned off.

8. An application device of a protective circuit of a wearable device, characterized in that: Applied to the protection circuit according to claim 1, the protection circuit comprises a light emitting diode and a GPIO port, and the protection circuit is connected to the chip of the wearable device through the GPIO port; the device comprises: An acquisition module, used to acquire the signal waveform of the GPIO port; A determination module, used to determine the working state of the chip according to the signal waveform; A control module is used to control the light emitting diode based on the working state of the chip.

9. An electronic terminal, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 2 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method according to any one of claims 2 to 7.