Control method and electronic equipment

By using the control method of microcontroller and optocoupler chip in smart handles, the power connection status is automatically adjusted, and the battery over-discharge and design complexity is solved, achieving more efficient power management and longer battery life.

CN119511894APending Publication Date: 2025-02-25HANGZHOU YIYUQIANXIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411663191.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing smart handle power management technology cannot effectively prevent battery over-discharge problems caused by long-term use, and increases the complexity of hardware and software design. User operation errors may also lead to battery over-discharge and handle secondary switch-off abnormalities.

Method used

Through a control method, the microcontroller and the optocoupler chip are used to automatically adjust the level state of the control pin according to the action signal, and the connection channel between the power supply terminal and the electronic device is disconnected or turned on, so as to realize intelligent power management.

Benefits of technology

It effectively avoids the problem of over-release of batteries, reduces the need for human operations, improves the intelligence level of power management, and extends battery life and standby time of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119511894A_ABST
    Figure CN119511894A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and electronic equipment, and the control method comprises the steps: adjusting a level state signal of a first control pin based on an obtained motion signal when the electronic equipment is in a power receiving state; adjusting the level state signal of the second control pin based on the level state signal of the first control pin; and based on the level state signal of the second control pin, disconnecting a connection channel between the power supply end and the electronic equipment. The use state and the electric quantity of the electronic equipment can be intelligently monitored, and when the electronic equipment is not used for a long time or the electric quantity is low, the microcontroller can automatically execute power-off control, so that the problem of over-discharge of a battery is avoided, meanwhile, the requirement for manual operation is reduced, and the intelligent level of power management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power supply circuit control, and in particular to a control method and electronic equipment. Background Art

[0002] In the field of smart controllers, power management technology is the key to ensuring device performance and battery life. Currently, smart controllers mainly use two power management methods: low-power sleep management and power-off management.

[0003] Low-power sleep management mainly relies on software program control and the selection of low-power circuit design to achieve a longer standby period. However, this method has a significant drawback, that is, it cannot effectively solve the problem of battery over-discharge when the handle is not used for a long time. Battery over-discharge will cause battery performance to deteriorate, affecting the service life of the handle and user experience.

[0004] In addition, low-power sleep management requires that the power circuit, module circuit, and chip circuit of the handle all adopt low-power design, which not only increases the complexity of hardware design, but also increases the difficulty of software program control. For peripheral circuits, if there is a low-power chip, it can be used directly; if not, it is necessary to design a power-off and power-on control circuit. For these precision control circuits, there is a risk of not starting up after power-on, and strict power-on timing control is required, which further increases the complexity of the design.

[0005] Power-off management reduces battery power consumption by manually controlling the power on and off, but this method carries the risk of users forgetting to turn the power on and off. If the user fails to turn off the power in time, the controller will remain in operation, causing the battery to continue to discharge, eventually causing the battery to be over-discharged, affecting the battery life and the secondary power on and off function of the controller, thereby reducing the user experience.

[0006] In summary, the existing power management technology has the following problems in smart controllers:

[0007] Low-power sleep management cannot effectively prevent battery over-discharge caused by long-term non-use, and increases the complexity of hardware and software design. Power-off management relies on user operation, and there is a risk of forgetting to turn off the power, resulting in battery over-discharge and abnormal secondary power on and off of the handle.

[0008] Therefore, the prior art fails to provide a solution that can effectively manage power to extend battery life while simplifying the design and improving the user experience. Summary of the invention

[0009] The present invention aims to solve the above problems and provide an improved control method and electronic device to optimize the performance and user experience of a smart handle.

[0010] The purpose of the embodiment of the present application is to provide a control method, the method comprising:

[0011] When the electronic device is in a power receiving state, determining a level state signal of the first control pin based on the acquired action signal;

[0012] Based on the level state signal of the first control pin, adjusting the level state signal of the second control pin;

[0013] Based on the level state signal of the second control pin, the connection channel between the power supply end and the electronic device is disconnected.

[0014] As an optional embodiment, the method further includes:

[0015] When the electronic device is in a power-off state, adjusting the level state signal of the second control pin based on the acquired action signal;

[0016] Based on the level state signal of the second control pin, a connection channel between the power supply end and the electronic device is turned on.

[0017] As an optional embodiment, when the electronic device is in a power-off state, adjusting the level state signal of the second control pin based on the acquired action signal includes:

[0018] When the electronic device is in a power-off state, based on the acquired action signal, a microcontroller of the electronic device is powered on;

[0019] The level state signal of the second control pin is adjusted by the microcontroller.

[0020] As an optional embodiment, the level state signal of the first control pin when the electronic device is in a powered state and the level state signal of the first control pin when the electronic device is in a powered-off state are different level state signals.

[0021] As an optional embodiment, the method further includes:

[0022] Based on the acquired voltage parameter value of the power supply, the level state signal of the second control pin is adjusted.

[0023] As an optional embodiment, the action signal includes an action signal of a key switch and / or an action signal of a function key.

[0024] The purpose of the embodiment of the present application is to provide a control device, the device comprising:

[0025] A first adjustment unit, configured to adjust a level state signal of the first control pin based on the acquired action signal when the electronic device is in a power receiving state;

[0026] a second adjustment unit, configured to adjust a level state signal of the second control pin based on the level state signal of the first control pin;

[0027] The execution unit is configured to disconnect the connection channel between the power supply end and the electronic device based on the level state signal of the second control pin.

[0028] The embodiment of the present application is also intended to provide an electronic device, including:

[0029] A power supply end, used for providing electric energy;

[0030] An input terminal, connected to the power supply terminal, for supplying power to the electronic device;

[0031] Microcontroller;

[0032] An AND gate chip connected to the microcontroller;

[0033] An optical coupler chip, which is connected to the microcontroller, the AND gate chip, and the power supply terminal;

[0034] A key switch connected to the microcontroller and the optocoupler chip;

[0035] The microcontroller controls the opening and closing of the AND gate chip and the optical coupling chip according to the action signal of the key switch, so as to open and close the connection channel between the power supply end and the electronic device.

[0036] As an optional embodiment, the power supply end is connected to a first pull-up resistor and a first MOS transistor respectively, the other end of the first pull-up resistor is connected to the first MOS transistor through a first protection resistor, and the first MOS transistor is connected to the input end.

[0037] As an optional embodiment, pin No. 2 of the optocoupler chip is connected to the first pull-up resistor and the push switch respectively, its pin No. 1 is connected to pin No. 4 of the AND gate chip through a second MOS tube, and its pin No. 4 is connected to pin No. 5 of the AND gate chip through a second pull-up resistor.

[0038] The beneficial effects of the embodiments of the present application are:

[0039] The present invention can intelligently monitor the use status and power level of electronic devices. When the electronic device is not used for a long time or the power is low, the microcontroller will automatically perform power-off control, thereby avoiding the problem of battery over-discharge, reducing the need for manual operation, and improving the intelligent level of power management. Through power-off control, the maximum endurance time of the electronic device in low-power mode is achieved. Compared with traditional low-power sleep management, power-off control is more direct and efficient, and can significantly extend the service life of the battery and the standby time of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 The process of the control method of the embodiment of the present application is Figure 1 ;

[0041] Figure 2 The process of the control method of the embodiment of the present application is Figure 2 ;

[0042] Figure 3 The process of the control method of the embodiment of the present application is Figure 3 ;

[0043] Figure 4 is a structural block diagram of a control device according to an embodiment of the present application;

[0044] Figure 5 A circuit diagram of an electronic device according to an embodiment of the present application.

[0045] in,

[0046] VCC, power supply end; Vin, input end; U3, AND gate chip; U2, optocoupler chip; SW1, key switch; Q2, first MOS tube; Q3, second MOS tube; R7, first pull-up resistor; R9, first protection resistor; R8, second pull-up resistor; R10, first pull-down resistor; R11, second pull-down resistor; R13, third pull-down resistor; R12, second protection resistor; POWER_IN, first control pin; POWER_1 / 2, second control pin. DETAILED DESCRIPTION

[0047] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0048] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0049] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0050] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0051] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0052] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0053] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0054] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0055] A control method according to an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0056] S11 . When the electronic device is in a power receiving state, a level state signal of the first control pin POWER_IN is determined based on the acquired action signal.

[0057] In this embodiment, the power receiving state refers to the state in which the electronic device is receiving power supply. For example, a smart phone is in the power receiving state when it is powered by a USB port or a battery.

[0058] Action signals refer to signals generated by user operations, which can be keystrokes, touches, gestures, etc. For example, when a user presses the power button on a TV remote control, this keystroke action generates an action signal.

[0059] The first control pin POWER_IN is an interface used in electronic devices to control the state of the circuit. The level state signal refers to the voltage level on these pins, which is usually divided into high level and low level. For example, in a microcontroller, a high level may represent a logic 1 and a low level represents a logic 0.

[0060] S12: Based on the level state signal of the first control pin POWER_IN, adjust the level state signal of the second control pin POWER_1 / 2.

[0061] In this embodiment, the second control pin POWER_1 / 2 is another interface for control, and its level state signal also affects the behavior of the circuit.

[0062] S13: disconnecting the connection channel between the power supply terminal VCC and the electronic device based on the level state signal of the second control pin POWER_1 / 2.

[0063] In this embodiment, disconnecting the connection channel between the power supply terminal VCC and the electronic device means cutting off the power supply line so that the electronic device stops receiving power. For example, unplugging the power adapter of a laptop computer disconnects the connection channel between the power supply terminal VCC and the electronic device. Alternatively, disconnecting the charging circuit between the power adapter and the laptop computer.

[0064] Specifically, when the electronic device is receiving power (power receiving state), the microcontroller will adjust the level state signal of the first control pin POWER_IN from a low level to a high level according to the acquired action signal. When the first control pin POWER_IN is at a high level, the microcontroller will adjust the high level of the second control pin POWER_1 / 2 to a low level to disconnect the operation of the connection channel between the power supply terminal VCC and the electronic device, that is, cut off the power supply.

[0065] The present application intelligently controls the disconnection of power supply to reduce unnecessary energy consumption, reduce the loss of equipment in standby mode, and extend the service life of equipment. Through such a control method, electronic equipment can intelligently manage power supply according to the actual usage of users, improve energy efficiency and safety.

[0066] In one embodiment, if Figure 2 As shown, the method also includes:

[0067] S21 . When the electronic device is in a power-off state, the level state signal of the second control pin POWER_1 / 2 is adjusted based on the acquired action signal.

[0068] In this embodiment, the power-off state refers to the state in which the electronic device does not receive power supply. For example, a mobile phone automatically shuts down after the battery is exhausted, which is in the power-off state. Or, a laptop computer has no battery and is not connected to a power adapter, which is also in the power-off state.

[0069] S22 . Based on the level state signal of the second control pin POWER_1 / 2 , a connection channel between the power supply terminal VCC and the electronic device is turned on.

[0070] In this embodiment, connecting the power supply terminal VCC to the electronic device means establishing or restoring the power supply line so that the electronic device starts to receive power. For example, plugging in the power adapter of a laptop computer connects the power supply terminal VCC to the electronic device. Alternatively, connecting the charging circuit between the power adapter and the laptop computer.

[0071] Specifically, when the electronic device has no power supply (power-off state), the microcontroller will adjust the level state signal of the second control pin POWER_1 / 2 to a high level according to the acquired action signal. Then, according to the high level of the second control pin POWER_1 / 2, the microcontroller will turn on the connection channel between the power supply terminal VCC and the electronic device, that is, restore the power supply to the electronic device.

[0072] In one embodiment, when the electronic device is in a power-off state, adjusting the level state signal of the second control pin POWER_1 / 2 based on the acquired action signal includes:

[0073] When the electronic device is in a power-off state, based on the acquired action signal, a microcontroller of the electronic device is powered on;

[0074] The level state signal of the second control pin POWER_1 / 2 is adjusted by the microcontroller.

[0075] In this embodiment, the power-off state refers to a state in which the electronic device is not connected to a power source or the power source is cut off, and the device cannot work normally. For example, when the power plug of a TV is unplugged, the TV is in the power-off state. Alternatively, the charging circuit between the power plug and the TV is disconnected.

[0076] Powering up a microcontroller refers to providing power to the microcontroller so that it starts to work. For example, when a battery is installed in an electronic clock, the microcontroller receives power and starts to run.

[0077] The level state signal of the second control pin POWER_1 / 2 refers to the level state of a specific pin on the microcontroller used to control other circuits, which can be high or low. For example, in a microcontroller, a pin being set to a high level may indicate turning on a certain device.

[0078] Specifically, when the electronic device is in a power-off state, if an action signal is detected, the microcontroller will be powered on, and then the microcontroller will adjust the level state signal of the second control pin POWER_1 / 2 to a high level to achieve control of the electronic device.

[0079] In one embodiment, the level state signal of the first control pin POWER_IN when the electronic device is in a power-on state and the level state signal of the first control pin POWER_IN when the electronic device is in a power-off state are different level state signals.

[0080] In this embodiment, the level state of the same control pin is different in different states of the electronic device. For example, the first control pin POWER_IN is at a low level in the powered state and may be at a high level in the powered-off state.

[0081] In one embodiment, the method further comprises:

[0082] Based on the acquired voltage parameter value of the power supply, the level state signal of the second control pin POWER_1 / 2 is adjusted.

[0083] In this embodiment, the voltage parameter value of the power source refers to the specific value of the voltage provided by the power source, which can reflect the power supply state and power supply capacity of the power source. The power source can be a battery.

[0084] Through this method, the electronic device can intelligently adjust its working state according to the voltage parameter value of the power supply, thereby improving the flexibility and safety of the device.

[0085] In one embodiment, the action signal includes an action signal of the key switch SW1 and / or an action signal of a function key.

[0086] In this embodiment, the action signal of the key switch SW1 specifically refers to a signal generated by a physical key or switch. For example, when a user presses a light switch, this physical action generates an action signal.

[0087] Function key action signals refer to signals generated by specific function keys on a device, which are usually used to perform specific operations. For example, when a user presses the volume up key on a smartphone, this action generates a function key action signal.

[0088] The sources of the action signal include two types: the action signal of the key switch SW1 and the action signal of the function key. This means that any action signal generated by the key switch SW1 or the function key can trigger the subsequent control process.

[0089] For example, Figure 3 As shown, when the smart handle adopts the above control method, it specifically includes the following three methods:

[0090] The first one:

[0091] The microcontroller of the smart handle continuously monitors the action signal, which comes from the change of the operation of the key switch SW1. For example, when the user presses the key switch SW1 on the handle, an action signal is generated and captured by the microcontroller.

[0092] When the microcontroller detects an action signal, it will automatically adjust the level state of the first control pin POWER_IN, and adjust the level state of the second control pin POWER_1 / 2 according to the level state of the first control pin POWER_IN, and then disconnect the power supply to the smart handle according to the level state of the second control pin POWER_1 / 2, so that the smart handle does not work.

[0093] Second type:

[0094] The microcontroller of the smart handle continuously monitors action signals, which come from changes in the operation of function buttons (such as a jump button or a shooting button).

[0095] If no action signal trigger is detected within the set time (e.g. 5 minutes), the microcontroller will assume that the smart handle does not need to perform any functional operation temporarily. At this time, the microcontroller will automatically adjust the level state of the first control pin POWER_IN, and adjust the level state of the second control pin POWER_1 / 2 according to the level state of the first control pin POWER_IN, and then disconnect the power supply to the smart handle according to the level state of the second control pin POWER_1 / 2, so that the smart handle does not work.

[0096] Among them, the set time can be adjusted according to actual usage and battery life requirements.

[0097] The third type:

[0098] The microcontroller of the smart handle can also adjust the level state of the second control pin POWER_1 / 2 according to the voltage parameter value of the battery of the smart handle.

[0099] If the battery voltage drops below a certain threshold (for example, 3.4V), the microcontroller will automatically adjust the level state of the first control pin POWER_IN, and adjust the level state of the second control pin POWER_1 / 2 according to the level state of the first control pin POWER_IN, and then disconnect the power supply to the smart handle according to the level state of the second control pin POWER_1 / 2, thereby effectively protecting the battery life and avoiding over-discharge of the battery in extreme cases.

[0100] Among them, when the action signal is obtained, the microcontroller adjusts the level state signal of the first control pin POWER_IN to a high level, so that the level state signal of the second control pin POWER_1 / 2 is a low level, thereby disconnecting the connection channel between the power supply terminal VCC and the smart handle, so that the smart handle is in a power-off state.

[0101] In addition, when the action signal is obtained again, the microcontroller controls the level state signal of the second control pin POWER_1 / 2 to be high level, thereby connecting the connection channel between the power supply terminal VCC and the smart handle, so that the smart handle is in a powered state.

[0102] Through the above control method, the smart handle can automatically power off when not in use, effectively extending battery life while maintaining rapid responsiveness to user operations. This approach not only improves the energy efficiency of the smart handle, but also enhances the user experience because it reduces unnecessary battery consumption while ensuring that the device can be quickly awakened and put into use when needed.

[0103] An electronic device according to an embodiment of the present application, such as Figure 5 As shown, it includes a power supply terminal VCC, an input terminal Vin, a microcontroller, an AND gate chip U3, a spectrum chip and a key switch SW1.

[0104] The power supply terminal VCC is used to provide electrical energy. The power supply terminal VCC refers to the part of the electronic device that provides electrical energy, usually a power interface or a battery. The input terminal Vin is connected to the power supply terminal VCC and is used to power the electronic device. The input terminal Vin refers to the interface in the electronic device for receiving electrical energy. A microcontroller is an integrated circuit chip used to control the operation of an electronic device.

[0105] The AND gate chip U3 is connected to the microcontroller. The AND gate chip U3 is a logic gate chip. The output is high only when all input signals are high. For example, in the application of a security microcontroller, two conditions may need to be met at the same time to trigger an alarm.

[0106] The optocoupler chip U2 is connected to the microcontroller, the AND gate chip U3, and the power supply terminal VCC. The optocoupler chip U2 is an isolation device that uses optical signals to transmit electrical signals and is often used to achieve electrical isolation. For example, the optocoupler chip U2 can be used to transmit signals between a microcontroller and a high-voltage circuit to protect the microcontroller from being damaged by high voltage.

[0107] The key switch SW1 is connected to the microcontroller and the optocoupler chip U2. The key switch SW1 is a physical button that generates an action signal when operated by a user. For example, the key switch SW1 adopts a self-reset switch. A self-reset switch is a switch that can automatically return to its original position after operation. After being pressed or triggered, this switch does not require external force to return, but automatically resets through a built-in mechanical structure or electronic control. Self-reset switches are widely used in various electronic devices, including smart handles, etc., to provide a convenient operating experience.

[0108] The microcontroller controls the opening and closing of the AND gate chip U3 and the optical coupling chip U2 according to the action signal of the key switch SW1, so as to open and close the connection channel between the power supply terminal VCC and the electronic device.

[0109] The action signal is generated by the key switch SW1, which indicates that the user has performed a certain operation. For example, when the user presses the self-reset switch, the microcontroller will receive an action signal.

[0110] The connection channel refers to the electrical connection path between the power supply terminal VCC and the electronic device, for example, the charging power supply between the power adapter (power supply terminal VCC) and the laptop computer (electronic device).

[0111] Specifically, the power supply terminal VCC is connected to the S pole of the first pull-up resistor R7 and the first MOS tube Q2 respectively, the other end of the first pull-up resistor R7 is connected to the G pole of the first MOS tube Q2 through the first protection resistor R9, the D pole of the first MOS tube Q2 is connected to the input terminal Vin, and the input terminal Vin is connected to the electrical components of the electronic device.

[0112] The second pin of the optical coupling chip U2 is connected to the first pull-up resistor R7 and the key switch SW1 respectively, and the other end of the key switch SW1 is grounded. The third pin of the optical coupling chip U2 is grounded, and the fourth pin of the optical coupling chip U2 is connected to the fifth pin of the AND gate chip U3 through the second pull-up resistor R8, and the fourth pin is the first control pin POWER_IN, which is connected to the microcontroller.

[0113] The first pin of the optical coupling chip U2 is connected to the D pole of the second MOS tube Q3, the S pole of the second MOS tube Q3 is grounded, and the G pole of the second MOS tube Q3 is connected to the fourth pin of the AND gate chip U3 through the second protection resistor R12. The line between the second protection resistor R12 and the G pole of the second MOS tube Q3 is grounded through the third pull-down resistor R13.

[0114] The first and second pins of the AND gate chip U3 are the second control pins POWER_1 / 2 and are connected to the microcontroller. The first pin of the AND gate chip U3 is grounded through a first pull-down resistor R10, the second pin of the AND gate chip U3 is grounded through a second pull-down resistor R11, and the third pin of the AND gate chip U3 is grounded.

[0115] In summary, if Figure 3 and Figure 5 As shown, when the key switch SW1 is not pressed (the self-reset switch is in the off state by default), the entire circuit has no voltage output by default, that is, the voltage of the input terminal Vin is 0, the power supply voltage VDD is 0, and the voltage of the entire microcontroller is 0. The level of the second control pin POWER_1 / 2 is 0V, and the fourth pin of the AND gate chip U3 is at a low level. At this time, the G pole pin of the second MOS tube Q3 is at a low level. According to the characteristics of the second MOS tube Q3 as an NMOS tube, the high level is turned on, and at this time, the second MOS tube Q3 is not turned on.

[0116] Moreover, since the key switch SW1 is not pressed, the optocoupler chip U2 is not conducting at this time, and the G pole of the first MOS tube Q2 is at a high level. According to the characteristic that the first MOS tube Q2 is a PMOS tube, the high level is not conducting. At this time, the first MOS tube Q2 is not conducting, and the voltage of the input terminal Vin is 0.

[0117] When the push switch SW1 is pressed for the first time, the microcontroller is powered on and works. The microcontroller sets the second control pin POWER_1 / 2 to a high level. At this time, the output of the fourth pin of the AND gate chip U3 is a high level, thereby turning on the second MOS tube Q3.

[0118] At this time, the optocoupler chip U2 is turned on, the voltage value of the G pole of the first MOS tube Q2 is less than 0.11V, which is a low level, and the first MOS tube Q2 is turned on. At this time, the voltage of the input terminal Vin is the voltage of the power supply terminal VCC. In addition, the power supply voltage is 3.3V after passing through the boost power supply circuit and the buck voltage circuit (not shown in the figure). In addition, the microcontroller detects that the first control pin POWER_IN is at a high level.

[0119] Then, release the key switch SW1, and the whole circuit is still in normal working state. The microcontroller detects that the first control pin POWER_IN is at a low level. When the first control pin POWER_IN is at a low level, the second control pin POWER_1 / 2 is kept at a high level.

[0120] When the push switch SW1 is pressed for the second time, since the second pin of the optocoupler chip U2 is directly grounded and a minimum voltage difference of 0.7V is required between the first and second pins of the optocoupler chip U2 to conduct, the optocoupler chip U2 is not conducting at this time.

[0121] At this time, the microcontroller detects that the first control pin POWER_IN is at a high level, and the microcontroller sets the second control pin POWER_1 / 2 to a low level, so that the fourth pin of the AND gate chip U3 is at a low level, and then the second MOS tube Q3 is not turned on.

[0122] Next, release the key switch SW1, the optocoupler chip U2 is not conducting, the first MOS tube Q2 is not conducting, and the voltage of the input terminal Vin is 0, thus realizing the power-off control of the entire circuit. The present application avoids the situation where the initial level of the AND gate chip U3 is abnormal due to power on and off instantaneously, thereby avoiding circuit misoperation and improving the stability of the circuit through the design of the second control pin POWER_1 / 2 of the AND gate chip U3 and multiple pull-down resistors.

[0123] The present application adopts a self-resetting key switch SW1 and flexibly uses an optocoupler chip U2. By detecting the state of the key switch SW1, the microcontroller detects a clear input trigger point judgment, which is beneficial to improving the stability of use.

[0124] A control device according to an embodiment of the present application, such as Figure 4 As shown, the device includes a first adjustment unit, a second adjustment unit and an execution unit.

[0125] The first adjustment unit is configured to adjust the level state signal of the first control pin POWER_IN based on the acquired action signal when the electronic device is in a power receiving state.

[0126] The second adjustment unit is configured to adjust the level state signal of the second control pin POWER_1 / 2 based on the level state signal of the first control pin POWER_IN.

[0127] The execution unit is configured to disconnect the connection channel between the power supply terminal VCC and the electronic device based on the level state signal of the second control pin POWER_1 / 2.

[0128] In this embodiment, the control device refers to a hardware microcontroller for managing and controlling the operation of the electronic device, which includes a series of components and circuits for performing specific control tasks.

[0129] The first adjustment unit is a component in the control device, and its function is to adjust the level state of the first control pin POWER_IN according to the received action signal when the electronic device receives power (power receiving state).

[0130] The second adjustment unit is another component in the control device, and its function is to further adjust the level state of the second control pin POWER_1 / 2 based on the level state signal of the first control pin POWER_IN.

[0131] The execution unit is an execution component in the control device, and its function is to execute a specific operation, such as disconnecting a power supply, based on the level state signal of the second control pin POWER_1 / 2.

[0132] First control pin POWER_IN / second control pin POWER_1 / 2: refers to the physical interface or contact point in the control device for receiving and sending electrical signals, used to control specific functions of electronic equipment. The level state signal refers to the voltage level on the control pin, which is usually divided into high level and low level, used to indicate different logical states or control instructions.

[0133] The power supply terminal VCC refers to the starting point of the power supply, such as a battery or a power adapter. The connection channel refers to the electrical connection path between the power supply terminal VCC and the electronic device.

[0134] It should be noted that the principle of solving the technical problem by the control device provided in the embodiment of the present application is similar to the control method provided in the embodiment of the present application. Therefore, the implementation of the control device provided in the embodiment of the present application can refer to the implementation of the control method provided in the embodiment of the present application, and the repeated parts will not be repeated.

[0135] The present application also provides an electronic device, which can be any type of electronic device, and the electronic device at least includes a memory and a processor, wherein the processor is used to execute the firmware parameter update control method in any of the above embodiments. The memory is used to store programs required for the processor to perform operations. The electronic device may also include a display unit and an input unit, etc.

[0136] The processor may be a general purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The general purpose processor may be a microprocessor or any conventional processor.

[0137] Since the electronic device introduced in the embodiments of the present application is an electronic device provided with a memory for implementing the method disclosed in the embodiments of the present application, based on the method introduced in the embodiments of the present application, technical personnel in this field can understand the structure and deformation of the electronic device introduced in the embodiments of the present application, so it is not repeated here.

[0138] Another embodiment of the present application further provides a storage medium, which includes a stored program, wherein when the program is executed, a device including the storage medium is controlled to execute the control method as described in any one of the above embodiments.

[0139] The storage medium in this embodiment may be included in the electronic device, or may exist independently without being installed in the electronic device. The storage medium carries one or more computer programs, and when the one or more computer programs are executed, any step of the control method provided in the embodiment of the present application is implemented.

[0140] It should be understood that each scheme in this embodiment has the corresponding technical effects in the above method embodiment, which will not be repeated here.

[0141] The embodiment of the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-readable instructions, and when the computer-executable instructions are executed, at least one processor executes the control method in the embodiment described above. It should be understood that each solution in this embodiment has the corresponding technical effect in the above method embodiment, which will not be repeated here.

[0142] It should be noted that the computer storage medium of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the above two. The computer readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the above.

[0143] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program configured to be used by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, antenna, optical cable, RF, etc., or any suitable combination of the above.

[0144] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A control method, characterized in that: The method comprises: When the electronic device is in a power receiving state, determining a level state signal of the first control pin based on the acquired action signal; Based on the level state signal of the first control pin, adjusting the level state signal of the second control pin; Based on the level state signal of the second control pin, the connection channel between the power supply end and the electronic device is disconnected.

2. The control method according to claim 1, characterized in that: The method further comprises: When the electronic device is in a power-off state, adjusting the level state signal of the second control pin based on the acquired action signal; Based on the level state signal of the second control pin, a connection channel between the power supply end and the electronic device is turned on.

3. The control method according to claim 2, characterized in that: When the electronic device is in a power-off state, adjusting the level state signal of the second control pin based on the acquired action signal includes: When the electronic device is in a power-off state, based on the acquired action signal, a microcontroller of the electronic device is powered on; The level state signal of the second control pin is adjusted by the microcontroller.

4. The control method according to claim 1, characterized in that: The level state signal of the first control pin when the electronic device is in a power-on state and the level state signal of the first control pin when the electronic device is in a power-off state are different level state signals.

5. The control method according to claim 1, characterized in that: The method further comprises: Based on the acquired voltage parameter value of the power supply, the level state signal of the second control pin is adjusted.

6. The control method according to claim 1, characterized in that: The action signal includes an action signal of a key switch and / or an action signal of a function key.

7. A control device, characterized in that: The device comprises: A first adjustment unit, configured to adjust a level state signal of the first control pin based on the acquired action signal when the electronic device is in a power receiving state; a second adjustment unit, configured to adjust a level state signal of the second control pin based on the level state signal of the first control pin; The execution unit is configured to disconnect the connection channel between the power supply end and the electronic device based on the level state signal of the second control pin.

8. An electronic device, characterized in that: include: A power supply end, used for providing electric energy; An input terminal, connected to the power supply terminal, for supplying power to the electronic device; Microcontroller; An AND gate chip connected to the microcontroller; An optical coupler chip, which is connected to the microcontroller, the AND gate chip, and the power supply terminal; A key switch connected to the microcontroller and the optocoupler chip; The microcontroller controls the opening and closing of the AND gate chip and the optical coupling chip according to the action signal of the key switch, so as to open and close the connection channel between the power supply end and the electronic device.

9. The electronic device according to claim 8, characterized in that: The power supply end is connected to a first pull-up resistor and a first MOS transistor respectively, the other end of the first pull-up resistor is connected to the first MOS transistor through a first protection resistor, and the first MOS transistor is connected to the input end.

10. The electronic device according to claim 9, characterized in that: Pin No. 2 of the optocoupler chip is connected to the first pull-up resistor and the key switch respectively, its pin No. 1 is connected to pin No. 4 of the AND gate chip through a second MOS tube, and its pin No. 4 is connected to pin No. 5 of the AND gate chip through a second pull-up resistor.