Circuit structure, control method and electronic equipment

By designing trigger units and control units in electronic devices and triggering forced download signals using buttons and USB interfaces, the problem of forced downloading is solved without disassembling the machine, which improves the user experience and reduces risks and costs.

CN119065698APending Publication Date: 2024-12-03SHANGHAI INNOVATECH INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411129431.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing electronic devices need to enter the forced download mode when they are running abnormally. They usually need to be disassembled to achieve the problem. The cost is high and there is a risk of damage. How to achieve forced download without disassembling the machine to improve the user experience.

Method used

A circuit structure is designed, including a trigger unit and a control unit. By using the first button, the power supply positive electrode and the diode to cooperate with the switching device and interface, the forced download signal is triggered to be pulled down by pressing the power supply key and connecting to the USB data line, and the electronics are realized. Forced download of the device.

Benefits of technology

Without disassembling the machine, the forced download mode of electronic devices has been successfully triggered, which improves the user experience and reduces operating costs and risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065698A_ABST
    Figure CN119065698A_ABST
Patent Text Reader

Abstract

The invention provides a circuit structure, a control method and electronic equipment. Comprising a trigger unit and a control unit, when a first key (301) in the trigger unit is triggered, a first diode (303) is conducted, and a second control signal provided by a first interface (306) in the control unit controls a second switching device (305) to be conducted, so that a forced downloading signal (310) is pulled down to a zero state, and forced downloading of the electronic device is triggered. The invention provides a circuit structure, a control method and electronic equipment, which can trigger forced downloading of the electronic equipment on the premise of not disassembling a machine and improve the use experience of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of circuits, and more specifically, to a circuit structure, a control method and an electronic device. Background Art

[0002] During operation, electronic devices may experience abnormal operation, which may cause some applications to fail to work properly. In this case, the electronic device needs to enter the forced download mode to update the application. Currently, if electronic devices want to enter the forced download mode, they usually need to be disassembled, but the disassembly process is costly and there is a risk of damaging the electronic device.

[0003] Therefore, how to achieve forced downloading of electronic devices without disassembling them and improve the user experience is an urgent problem to be solved. Summary of the invention

[0004] The present application provides a circuit structure, a control method and an electronic device, which can realize forced downloading of the electronic device without disassembling the electronic device, thereby improving the user experience.

[0005] In a first aspect, a circuit structure is provided, comprising a trigger unit and a control unit, the trigger unit comprising a first button (301), a positive electrode of a power supply (302) and a first diode (303), the first end of the first button (301) being connected to the first end of the first diode (303), the second end of the first diode (303) being connected to the first end of the positive electrode of the power supply (302), the first end of the first button (301) and the first end of the first diode (303) being grounded, the first end of the first diode (303) being a cathode, the second end of the first diode (303) being an anode, the positive electrode of the power supply (302) being used to provide a first control signal, the control unit comprising a first switch device (304), a second switch device (305) and a first interface (306), The first end of the first interface (306) is connected to the second end of the first switch device (304), and the first end of the first interface (306) is connected to the first end of the second switch device (305). The first interface (306) is used to provide a second control signal; the first switch device (304) is used to disconnect the first switch device (304) when the first key (301) is triggered; the first diode (303) is used to obtain the first control signal at the second end of the first diode (303) when the first switch device (304) is disconnected; the second switch device (305) is used to obtain the second control signal at the first end of the second switch device (305) when the first switch device (304) is disconnected, and the second switch device (305) is turned on.

[0006] Exemplarily, the second end of the first diode is an input end of the current or control signal, and the first end of the first diode is an output end of the current or control signal. When the first interface is connected to the USB data line, the first interface will provide a second control signal.

[0007] It should be noted that the first end of the first switch device is the control end of the first switch device, the second end of the first switch device is the input end of the first switch device, and the third end of the first switch device is the output end of the first switch device. The first end of the second switch device is the control end of the second switch device, the second end of the second switch device is the input end of the second switch device, and the third end of the second switch device is the output end of the second switch device.

[0008] Optionally, the first switch device and the second switch device are N-type MOS tubes, and the effective control signal is a high-level signal.

[0009] Based on the above scheme, when the first button is triggered, the anode of the first diode obtains the first control signal output by the positive electrode of the power supply, and the cathode of the first diode is grounded, so that the first diode is turned on. The control end of the first switching device will not be able to receive the high-level first control signal, so that the input end and the output end of the first switching device cannot be turned on. When the data line of the first interface is connected, since the first switching device is disconnected, the control end of the second switching device will obtain the second control signal, so that the second switching device is turned on. After the second switching device is turned on, the forced download signal NBOOT can be pulled down to the 0 state, so that the electronic device enters the forced download state.

[0010] In combination with one aspect, in certain implementations of the first aspect, the trigger unit also includes a first resistor (307), and the first end of the positive electrode (302) of the power supply is connected to the first end of the first switching device (304) through the first resistor (307), and the first resistor (307) is used to control the first control signal.

[0011] For example, the first resistor may be a current limiting resistor to limit the current passing through the electronic component to prevent the electronic component from being damaged by excessive current. The resistance value of the first resistor may be 100K.

[0012] In combination with the first aspect, in certain implementations of the first aspect, the control unit further includes a second resistor (308), the first end of the first interface (306) is connected to the first end of the second switch device (305) through the second resistor (308), and the second resistor (308) is used to control the second control signal; the control unit further includes a third resistor (309), and the second end of the second switch device (305) is connected to the forced download signal (310) through the third resistor (309).

[0013] Exemplarily, the second resistor may be a current limiting resistor to limit the current passing through the electronic component to prevent the electronic component from being damaged by excessive current. The resistance value of the second resistor may be 10K. The third resistor may be an adjustment resistor to adjust the current passing through so that the forced download signal NBOOT is pulled down to the 0 state.

[0014] In combination with the first aspect, in certain implementations of the first aspect, the control unit further includes a fourth resistor (311) and a fifth resistor (312), the second end of the first diode (303) is connected to the first end of the first switch device (304) through the fourth resistor (311), the fourth resistor (311) is used to adjust the first control signal, the first end of the first switch device (304) is grounded through the fifth resistor (312), and the fifth resistor (312) is used to adjust the first control signal.

[0015] Exemplarily, the fourth resistor and the fifth resistor are adjustment resistors to adjust the magnitude of the current passing through. The first switch device may be a 2SC5585 model, or a transistor of other models, and the fourth resistor and the fifth resistor may adjust the magnitude of the current passing through according to different models of the first switch device, so that the first switch device is in a saturated working state.

[0016] In combination with the first aspect, in certain implementations of the first aspect, the control unit further includes a sixth resistor (313), the first end of the second switching device (305) is grounded through the sixth resistor (313), and the sixth resistor (313) is used to adjust the second control signal.

[0017] Exemplarily, the sixth resistor is an adjustment resistor to adjust the current passing through. The second switch device can be a 2SC5585 model, or other types of transistors. The sixth resistor can adjust the current passing through according to different models of the second switch device, so that the second switch device is in a saturated working state.

[0018] In combination with the first aspect, in some implementations of the first aspect, the effective control signal of the first switching device is a high-level signal, and the effective control signal of the second switching device is a high-level signal.

[0019] In combination with the first aspect, in some implementations of the first aspect, the first control signal is a high-level control signal, and the second control signal is a high-level control signal.

[0020] In a second aspect, a control method is provided, which is applied to an electronic device, wherein the electronic device includes a circuit structure as in the first aspect and any possible implementation thereof, and the method includes: in response to triggering the first button, the first diode is turned on and the first switch device is turned off; in response to providing the second control signal from the first interface, the second switch device is turned on.

[0021] Exemplarily, when the user presses the power button of the electronic device, the first button is triggered. When a USB data cable is inserted into the first interface, the first interface provides the second control signal.

[0022] In combination with the second aspect, in some implementations of the second aspect, the method further includes: when the second switch device is turned on, pulling down a forced download signal, where the forced download signal is used to trigger a forced download mode of the electronic device.

[0023] Based on the above solution, without disassembling the electronic device, when the user presses the power button and connects the USB data cable, the forced download signal can be pulled down to the 0 state, thereby triggering the forced download of the electronic device and improving the user experience.

[0024] In a third aspect, an electronic device is provided, which includes a circuit structure as in the first aspect and any possible implementation manner thereof.

[0025] According to a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer executes the method according to the second aspect and any possible implementation thereof.

[0026] According to a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method according to the second aspect and any possible implementation thereof.

[0027] In a sixth aspect, a chip is provided, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method of the second aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application.

[0029] Figure 2 It is a schematic diagram of a system architecture provided in an embodiment of the present application.

[0030] Figure 3 It is a schematic diagram of a circuit structure provided in an embodiment of the present application.

[0031] Figure 4 It is a schematic diagram of a circuit structure provided in an embodiment of the present application.

[0032] Figure 5 It is a schematic flow chart of a control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The technical solution in this application will be described below in conjunction with the accompanying drawings.

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

[0035] The terms "first", "second", etc. in the specification embodiments, claims, and drawings of the present application are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. "Connected", "connected", and similar words are used to express the intercommunication or interaction between different components, which may include connection, direct connection, indirect connection through other components, etc. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, including a series of steps or units. Methods, systems, products, or devices are not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0036] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0037] Figure 11 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be, for example, a terminal consumer product or a 3C electronic product (computer, communication, consumer electronic products), such as a mobile phone, a mobile power supply, a portable computer, a tablet computer, an e-reader, a notebook computer, a digital camera, a wearable device, a vehicle-mounted terminal, a headset, and the like. The electronic device 100 may also be a mobile device. The mobile device may be, for example, a vehicle, an electric skateboard, an electric bicycle, and the like. Figure 1 The illustrated embodiment is described by taking the electronic device 100 as a mobile phone as an example.

[0038] The electronic device 100 includes a power button 10 and a universal serial bus (USB) interface 20. The power button 10 can also be understood as a switch key, which is used to turn on or off the electronic device 100, or to turn on or off the screen of the electronic device. The USB interface 20 is used to realize data transmission and device connection. In the embodiment of the present application, the forced download signal can be pulled low by pressing the power button 10 and connecting the USB interface 20 to realize forced download of the electronic device.

[0039] It should be noted that in the embodiment of the present application, if the forced signal is pulled low by pressing the power button and connecting the USB interface, the electronic device needs to have a certain circuit structure. The circuit structure of the electronic device in the embodiment of the present application will be specifically introduced below in conjunction with the accompanying drawings.

[0040] like Figure 2 As shown, a schematic diagram of a system architecture provided by an embodiment of the present application is shown. The system architecture can be applied to Figure 1 In the electronic device shown. Figure 2 The exemplary system architecture may include a trigger unit 30 and a control unit 40. The trigger unit 30 includes Figure 1 The power button 10 shown in the figure, the trigger unit 30 may include a circuit related to the power button 10. The control unit 40 includes Figure 1 With reference to the USB interface 20 shown, the control unit 40 may include circuits related to the USB interface 20 .

[0041] It should be noted that Figure 2 The system architecture is divided into a trigger unit and a control unit, which is only an exemplary logical division and does not represent a physical division. When the USB interface in the control unit 40 is connected and the power button in the trigger unit 30 is pressed, the forced signal is pulled low.

[0042] The circuit structure involved in the embodiments of the present application will be described in detail below.

[0043] like Figure 3 , a circuit structure provided by an embodiment of the present application is shown, and the circuit structure can be applied to electronic devices such as mobile phone terminals, tablet computers, personal computers, etc. The circuit structure includes a trigger unit 30 and a control unit 40.

[0044] The trigger unit 30 comprises a first button (301), a positive electrode of a power supply (302) and a first diode (303).

[0045] Specifically, the first end of the first button (301) is connected to the first end of the first diode (303), the second end of the first diode (303) is connected to the first end of the positive electrode (302) of the power supply, and the first end of the first button (301) and the first end of the first diode (303) are grounded. The first end of the first diode (303) is a cathode, and the second end of the first diode (303) is an anode. The positive electrode (302) of the power supply is used to provide a first control signal.

[0046] It should be noted that the first control signal may be a high level signal.

[0047] Exemplarily, the second end of the first diode (303) is an input end of the current or the control signal, and the first end of the first diode (303) is an output end of the current or the control signal.

[0048] Optionally, the first button (301) may be Figure 1 A power button 10 on the electronic device is shown.

[0049] The control unit 40 includes a first switch device (304), a second switch device (305) and a first interface (306).

[0050] Specifically, the first end of the first interface (306) is connected to the second end (end b) of the first switch device (304), and the first end of the first interface (306) is connected to the first end (end a) of the second switch device (305). The first interface (306) is used to provide a second control signal.

[0051] It should be noted that the second control signal may be a high level signal.

[0052] Optionally, when the first interface (306) is connected to a USB data cable, the first interface (306) will provide a second control signal.

[0053] The first end (end a) of the first switch device (304) is the control end of the first switch device (304), the second end (end b) of the first switch device (304) is the input end of the first switch device (304), and the third end (end c) of the first switch device (304) is the output end of the first switch device (304).

[0054] The first end (end a) of the second switch device (305) is the control end of the second switch device (305), the second end (end b) of the second switch device (305) is the input end of the second switch device (305), and the third end (end c) of the second switch device (305) is the output end of the second switch device (305).

[0055] Optionally, the first switch device (304) and the second switch device (305) are N-type MOS tubes, and the effective control signal is a high-level signal.

[0056] When the first button (301) is triggered, the first switch device (304) is disconnected, the second end of the first diode (303) obtains the first control signal, the first diode (303) is turned on, the first end (end a) of the second switch device (305) obtains the second control signal, and the second switch device (305) is turned on.

[0057] Exemplarily, when the user presses the power button of the electronic device, the first button (301) is triggered.

[0058] Specifically, when the first button (301) is triggered, the anode of the first diode (303) obtains the first control signal output by the positive electrode of the power supply (302), and the cathode of the first diode (303) is grounded, so that the first diode (303) is turned on. The control end (end a) of the first switch device (304) will not be able to receive the first control signal of a high level, so that the input end (end b) and the output end (end c) of the first switch device (304) cannot be turned on. When the data line of the first interface (306) is connected, since the first switch device (304) is disconnected, the control end (end a) of the second switch device (305) will obtain the second control signal, so that the second switch device (305) is turned on. After the second switch device (305) is turned on, the forced download signal NBOOT can be pulled down to the 0 state, so that the electronic device enters the forced download state.

[0059] Optionally, if the first button (301) is not triggered, the control end (end a) of the first switch device (304) will obtain the first control signal output by the positive electrode of the power supply (302), so that the first switch device (304) is turned on. When the data line of the first interface (306) is connected, since the first switch device (304) is turned on, the control end (end a) of the second switch device (305) will not obtain the second control signal, the second switch device (305) will not be turned on, the forced download signal NBOOT will not be pulled low, and the electronic device will not be able to enter the forced download state.

[0060] It can be seen that when the power button of the electronic device is pressed and the USB data cable is connected, the electronic device can trigger the forced download mode.

[0061] The trigger unit 30 may further include a first resistor (307), wherein the first end of the positive electrode (302) of the power supply is connected to the first end (end a) of the first switch device (304) through the first resistor (307), and the first resistor (307) is used to control the first control signal.

[0062] Optionally, the first resistor (307) is connected between the positive electrode of the power supply (302) and the first switch device (304), or the first resistor (307) is connected between the positive electrode of the power supply (302) and the first diode (303). The first resistor (307) is used to control the first control signal provided by the positive electrode of the power supply (302).

[0063] Exemplarily, the first resistor (307) may be a current-limiting resistor to limit the current passing through the electronic component to prevent the electronic component from being damaged by excessive current.

[0064] Optionally, the resistance value of the first resistor (307) may be 100K.

[0065] The control unit 40 may further include a second resistor (308), the first end of the first interface (306) is connected to the first end (end a) of the second switch device (305) through the second resistor (308), and the second resistor (308) is used to control the second control signal. The control unit 40 may further include a third resistor (309), the second end (end b) of the second switch device (305) is connected to the forced download signal NBOOT (310) through the third resistor (309).

[0066] Optionally, the second resistor (308) is connected between the first interface (306) and the first switch device (304), or the second resistor (308) is connected between the first interface (306) and the second switch device (305). The second resistor (308) is used to control the second control signal provided by the first interface (306).

[0067] Exemplarily, the second resistor (308) may be a current-limiting resistor to limit the current passing through the electronic component to prevent the electronic component from being damaged by excessive current.

[0068] Optionally, the resistance value of the second resistor (308) may be 10K.

[0069] Optionally, the third resistor (309) is connected to the input end (end b) of the second switch device (305). When the second switch device is turned on, the forced download signal NBOOT (310) at the other end of the third resistor (309) will be pulled low.

[0070] Exemplarily, the third resistor (309) may be an adjustment resistor to adjust the magnitude of the current passing therethrough so that the forced download signal NBOOT is pulled down to a 0 state.

[0071] Based on Figure 3 In the circuit structure shown, the trigger unit includes a first button (301), a positive power supply electrode (302) and a first diode (303), and the control unit includes a first switch device (304), a second switch device (305) and a first interface (306). When the first button (301) is triggered, the first control signal provided by the positive power supply electrode (302) is used to turn on the first diode (303), resulting in the control end of the first switch device (304) being unable to obtain the first control signal, so that the first switch device (304) is disconnected. When the USB data cable is inserted into the first interface (306), the second control signal provided by the first interface (306) is used to turn on the second switch device (305), so that the forced download signal NBOOT is pulled down to the 0 state, and the electronic device triggers the forced download mode.

[0072] like Figure 4 , a circuit structure provided by an embodiment of the present application is shown, and the circuit structure can be applied to electronic devices such as mobile phone terminals, tablet computers, personal computers, etc. The circuit structure includes a trigger unit 30 and a control unit 40.

[0073] Specifically, the first end of the first button (301) is connected to the first end of the first diode (303), the second end of the first diode (303) is connected to the first end of the positive electrode (302) of the power supply, and the first end of the first button (301) and the first end of the first diode (303) are grounded. The first end of the first diode (303) is a cathode, and the second end of the first diode (303) is an anode. The positive electrode (302) of the power supply is used to provide a first control signal.

[0074] It should be noted that the first control signal may be a high level signal.

[0075] Exemplarily, the second end of the first diode (303) is an input end of the current or the control signal, and the first end of the first diode (303) is an output end of the current or the control signal.

[0076] Optionally, the first button (301) may be Figure 1 A power button 10 on the electronic device is shown.

[0077] The control unit 40 includes a first switch device (304), a second switch device (305) and a first interface (306).

[0078] Specifically, the first end of the first interface (306) is connected to the second end (end b) of the first switch device (304), and the first end of the first interface (306) is connected to the first end (end a) of the second switch device. The first interface (306) is used to provide a second control signal.

[0079] It should be noted that the second control signal may be a high level signal.

[0080] Optionally, when the first interface (306) is connected to a USB data cable, the first interface (306) will provide a second control signal.

[0081] The first end (end a) of the first switch device (304) is the control end of the first switch device (304), the second end (end b) of the first switch device (304) is the input end of the first switch device (304), and the third end (end c) of the first switch device (304) is the output end of the first switch device (304).

[0082] The first end (end a) of the second switch device (305) is the control end of the second switch device (305), the second end (end b) of the second switch device (305) is the input end of the second switch device (305), and the third end (end c) of the second switch device (305) is the output end of the second switch device (305).

[0083] Optionally, the first switch device (304) and the second switch device (305) are N-type MOS tubes, and the effective control signal is a high-level signal.

[0084] When the first button (301) is triggered, the first switch device (304) is disconnected, the second end of the first diode (303) obtains the first control signal, the first diode (303) is turned on, the first end (end a) of the second switch device (305) obtains the second control signal, and the second switch device (305) is turned on.

[0085] Exemplarily, when the user presses the power button of the electronic device, the first button (301) is triggered.

[0086] Specifically, when the first button (301) is triggered, the anode of the first diode (303) obtains the first control signal output by the positive electrode of the power supply (302), and the cathode of the first diode (303) is grounded, so that the first diode (303) is turned on. The control end (end a) of the first switch device (304) will not be able to receive the first control signal of a high level, so that the input end (end b) and the output end (end c) of the first switch device (304) cannot be turned on. When the data line of the first interface (306) is connected, since the first switch device (304) is disconnected, the control end (end a) of the second switch device (305) will obtain the second control signal, so that the second switch device (305) is turned on. After the second switch device (305) is turned on, the forced download signal NBOOT can be pulled down to the 0 state, so that the electronic device enters the forced download state.

[0087] Optionally, if the first button (301) is not triggered, the control end (end a) of the first switch device (304) will obtain the first control signal output by the positive electrode of the power supply (302), so that the first switch device (304) is turned on. When the data line of the first interface (306) is connected, since the first switch device (304) is turned on, the control end (end a) of the second switch device (305) will not obtain the second control signal, the second switch device (305) will not be turned on, the forced download signal NBOOT will not be pulled low, and the electronic device will not be able to enter the forced download state.

[0088] It can be seen that when the power button of the electronic device is pressed and the USB data cable is connected, the electronic device can trigger the forced download mode.

[0089] The trigger unit 30 may further include a first resistor (307), wherein the first end of the positive electrode (302) of the power supply is connected to the first end (end a) of the first switch device (304) through the first resistor (307), and the first resistor (307) is used to control the first control signal.

[0090] Optionally, the first resistor (307) is connected between the positive electrode of the power supply (302) and the first switch device (304), or the first resistor (307) is connected between the positive electrode of the power supply (302) and the first diode (303). The first resistor (307) is used to control the first control signal provided by the positive electrode of the power supply (302).

[0091] Exemplarily, the first resistor (307) may be a current-limiting resistor to limit the current passing through the electronic component to prevent the electronic component from being damaged by excessive current.

[0092] Optionally, the resistance value of the first resistor (307) may be 100K.

[0093] The control unit 40 may further include a second resistor (308), the first end of the first interface (306) is connected to the first end (end a) of the second switch device (305) through the second resistor (308), and the second resistor (308) is used to control the second control signal. The control unit 40 may further include a third resistor (309), the second end (end b) of the second switch device (305) is connected to the forced download signal NBOOT (310) through the third resistor (309).

[0094] Optionally, the second resistor (308) is connected between the first interface (306) and the first switch device (304), or the second resistor (308) is connected between the first interface (306) and the second switch device (305). The second resistor (308) is used to control the second control signal provided by the first interface (306).

[0095] Exemplarily, the second resistor (308) may be a current-limiting resistor to limit the current passing through the electronic component to prevent the electronic component from being damaged by excessive current.

[0096] Optionally, the resistance value of the second resistor (308) may be 10K.

[0097] Optionally, the third resistor (309) is connected to the input end (end b) of the second switch device (305). When the second switch device is turned on, the forced download signal NBOOT (310) at the other end of the third resistor (309) will be pulled low.

[0098] Exemplarily, the third resistor (309) may be an adjustment resistor to adjust the magnitude of the current passing therethrough so that the forced download signal NBOOT is pulled down to a 0 state.

[0099] The control unit 40 may further include a fourth resistor (311) and a fifth resistor (312); the second end of the first diode (303) is connected to the first end (end a) of the first switch device (304) through the fourth resistor (311); the fourth resistor (311) is used to adjust the first control signal; the first end (end a) of the second switch device (304) is grounded through the fifth resistor (312); the fifth resistor is used to adjust the first control signal.

[0100] Optionally, the fourth resistor (311) is connected between the positive electrode of the power supply (302) and the first switch device (304), and the fifth resistor (312) is connected between the first switch device (304) and ground. The fourth resistor (311) and the fifth resistor (312) are used to adjust the first control signal provided by the positive electrode of the power supply (302), or the fourth resistor (311) and the fifth resistor (312) are used to adjust the first control signal passing through the control end of the first switch device (304).

[0101] Exemplarily, the fourth resistor (311) and the fifth resistor (312) are adjustment resistors to adjust the magnitude of the current passing therethrough.

[0102] It should be noted that the first switch device (304) can be a 2SC5585 model or other models of transistors, and the fourth resistor (311) and the fifth resistor (312) can adjust the current passing therethrough according to different models of the first switch device (304) so ​​that the first switch device (304) is in a saturated working state.

[0103] The control unit 40 may further include a sixth resistor (313), the first end (end a) of the second switch device (305) is grounded via the sixth resistor (313), and the sixth resistor (313) is used to adjust the second control signal.

[0104] Optionally, the sixth resistor (313) is connected between the second switch device (305) and ground. The sixth resistor (313) is used to adjust the second control signal provided by the first interface (306).

[0105] Exemplarily, the sixth resistor (313) is an adjustment resistor to adjust the magnitude of the current passing therethrough.

[0106] It should be noted that the second switch device (305) can be a transistor of model 2SC5585 or other models, and the sixth resistor (313) can adjust the current passing therethrough according to the different models of the second switch device (305) so that the second switch device (305) is in a saturated working state.

[0107] Based on the above Figure 3 or Figure 4 The circuit structure provided in the present application embodiment provides a control method, which can be applied to an electronic device including the above circuit structure. By using this method, the forced download of the electronic device can be triggered without disassembling the electronic device. Figure 5 , a control method provided in an embodiment of the present application is specifically introduced.

[0108] S501, in response to triggering a first button, the first diode is turned on, and the first switch device is turned off.

[0109] Exemplarily, when the user presses the power button of the electronic device, the first button is triggered.

[0110] S502 , in response to a second control signal provided from the first interface, the second switch device is turned on.

[0111] Exemplarily, when a USB data cable is inserted into the first interface, the first interface provides a second control signal.

[0112] It should be noted that the USB data cable inserted into the first interface can be connected to a device for forced downloading, such as a personal computer.

[0113] Optionally, when the second switch device is turned on, the forced download signal is pulled low, and the forced download signal is used to trigger the forced download mode of the electronic device.

[0114] When the first button is not triggered and the USB data cable is not inserted into the first interface, the forced download signal will not be pulled down to the 0 state.

[0115] When the first button is not triggered and a USB data cable is inserted into the first interface, the forced download signal will not be pulled down to the 0 state.

[0116] When the first button is triggered and no USB data cable is inserted into the first interface, the forced download signal will not be pulled down to the 0 state.

[0117] It can be seen that when the user presses the power button and connects the USB data cable, the NBOOT forced download signal can be pulled down to the 0 state, thereby triggering the forced download of the electronic device.

[0118] Based on the above scheme, the present application provides a circuit structure, a control method and an electronic device. Without disassembling the electronic device, when the user presses the power button and connects the USB data cable, the forced download signal can be pulled down to the 0 state, thereby triggering the forced download of the electronic device and improving the user experience.

[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0120] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0123] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0124] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A circuit structure, characterized in that: Including trigger unit and control unit, The trigger unit comprises a first button (301), a positive electrode of a power supply (302) and a first diode (303); the first end of the first button (301) is connected to the first end of the first diode (303); the second end of the first diode (303) is connected to the first end of the positive electrode of the power supply (302); the first end of the first button (301) and the first end of the first diode (303) are grounded; the first end of the first diode (303) is a cathode; the second end of the first diode (303) is an anode; the positive electrode of the power supply (302) is used to provide a first control signal; The control unit comprises a first switch device (304), a second switch device (305) and a first interface (306), wherein a first end of the first interface (306) is connected to a second end of the first switch device (304), a first end of the first interface (306) is connected to a first end of the second switch device (305), and the first interface (306) is used to provide a second control signal; The first switch device (304) is used for disconnecting the first switch device (304) when the first button (301) is triggered; The first diode (303) is used for obtaining the first control signal at a second end of the first diode (303) when the first switch device (304) is disconnected; The second switch device (305) is used for, when the first switch device (304) is turned off, the first end of the second switch device (305) obtains the second control signal, and the second switch device (305) is turned on.

2. The circuit structure according to claim 1, characterized in that: The trigger unit further comprises a first resistor (307), the first end of the positive electrode (302) of the power supply is connected to the first end of the first switch device (304) through the first resistor (307), and the first resistor (307) is used to control the first control signal.

3. The circuit structure according to claim 1 or 2, characterized in that: The control unit further comprises a second resistor (308), the first end of the first interface (306) is connected to the first end of the second switch device (305) via the second resistor (308), and the second resistor (308) is used to control the second control signal; The control unit further comprises a third resistor (309), and the second end of the second switch device (305) is connected to the forced download signal (310) via the third resistor (309).

4. The circuit structure according to claim 3, characterized in that: The control unit further comprises a fourth resistor (311) and a fifth resistor (312); the second end of the first diode (303) is connected to the first end of the first switch device (304) via the fourth resistor (311); the fourth resistor (311) is used to adjust the first control signal; the first end of the first switch device (304) is grounded via the fifth resistor (312); the fifth resistor (312) is used to adjust the first control signal.

5. The circuit structure according to claim 4, characterized in that: The control unit further comprises a sixth resistor (313), the first end of the second switch device (305) is grounded via the sixth resistor (313), and the sixth resistor (313) is used to adjust the second control signal.

6. The circuit structure according to any one of claims 1, 2, 4 or 5, characterized in that: The effective control signal of the first switch device is a high level signal, and the effective control signal of the second switch device is a high level signal.

7. The circuit structure according to any one of claims 1, 2, 4 or 5, characterized in that: The first control signal is a high level control signal, and the second control signal is a high level control signal.

8. A control method, characterized in that: The method is applied to an electronic device, the electronic device comprising a circuit structure as claimed in any one of claims 1 to 7, and the method comprises: In response to triggering the first button, the first diode is turned on and the first switch device is turned off; In response to the second control signal being provided from the first interface, the second switching device is turned on.

9. The method according to claim 8, characterized in that The method further comprises: When the second switch device is turned on, the forced download signal is pulled low, and the forced download signal is used to trigger the forced download mode of the electronic device.

10. An electronic device, characterized in that: The electronic device comprises the circuit structure according to any one of claims 1 to 7.