A control method of an electronic device and an electronic device

By setting a target circuit and a switching component between the charging port of the electronic device and the battery, and controlling the on/off state of the switching component and voltage adjustment, the problem of electric arcing when the charger is disconnected from the Type-C port of the laptop is solved, thus realizing the safety protection of the device and the efficient use of electrical energy.

CN115173540BActive Publication Date: 2026-07-24LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2022-07-29
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In electronic devices, when the charger is disconnected from the Type-C port of a laptop, the generation of an electric arc can damage the device, which is difficult to avoid effectively with existing technology.

Method used

A target circuit is set between the charging port and the battery, and equipped with a switching assembly. By controlling the on and off of the switching assembly and the voltage regulator, the battery voltage is adjusted to control the voltage difference between the charging port and the adapter connector, thus preventing the generation of electric arcs.

Benefits of technology

It effectively avoids the generation of electric arcs between the charging port and the adapter connector, protecting the device's safety and preventing energy waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115173540B_ABST
    Figure CN115173540B_ABST
Patent Text Reader

Abstract

The application provides a control method of an electronic device and the electronic device. The electronic device has a battery and a charging port. The charging port is used for connecting an adapter to obtain electric energy. A target circuit is arranged between the battery and the charging port. A switch assembly is arranged on the target circuit. The method comprises the following steps: if the charging port is connected to the adapter, the switch assembly is controlled to be closed; if the charging port is disconnected from the adapter, the switch assembly is controlled to be disconnected after a target time period is delayed, so that the electric energy of the battery can be transmitted to the charging port through the target circuit within the target time period, and then the pressure difference between the charging port and the adapter connector can meet a target threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a control method and an electronic device. Background Technology

[0002] As is well known, mechanical switching devices use contacts to break circuits, such as plugs and sockets, adapter connectors of electronic devices, and connection ports of devices. When breaking a circuit in the atmosphere, if the voltage exceeds 12-20V and the current exceeds 0.25-1A, a nearly cylindrical gas with extremely high temperature, strong light, and conductivity is usually generated in the contact gap; this is an electric arc. The electric arc that occurs in switching devices is simply called a switching arc. An electric arc is a high-temperature, highly conductive ionized gas that delays circuit shutdown and has a significant destructive effect on the contacts.

[0003] Taking a laptop's Type-C charger as an example, when the charger is unplugged from the laptop during use, the voltage difference between the laptop's Type-C port and the charger's connector pins is about 20V. Therefore, an electric arc will be generated between the connectors. The larger the interrupted current, the larger the arc and the stronger the destructive power. Over time, it may even cause the pins to melt due to arcing, resulting in damage to the charger or laptop. Summary of the Invention

[0004] This application provides a control method for an electronic device, the electronic device having a battery and a charging port, the charging port being used to connect an external adapter to obtain electrical energy, a target circuit being provided between the battery and the charging port, and a switching component being provided on the target circuit, the method comprising:

[0005] If the charging port is connected to the adapter, the switch assembly is controlled to close;

[0006] If the charging port is disconnected from the adapter, the switching component is controlled to disconnect after a target time period, so that the battery's electrical energy can be delivered to the charging port through the target circuit within the target time period, thereby ensuring that the voltage difference between the charging port and the adapter connector meets the target threshold.

[0007] As an alternative embodiment, the switching assembly includes a first switch, and the electronic device controls the first switch to close or delay opening.

[0008] As an optional embodiment, the switch assembly includes a second switch that automatically turns on based on the disconnection of the adapter connector from the charging port.

[0009] As an optional embodiment, the target circuit is provided with a voltage regulator;

[0010] The method further includes:

[0011] At least when the adapter is connected to the charging port, the voltage difference between the charging port and the battery is determined;

[0012] The voltage regulator is controlled to adjust the battery voltage based at least on the voltage difference, so that when the charging port is disconnected from the adapter connector, the voltage difference between the charging port and the adapter connector meets the target threshold.

[0013] As an optional embodiment, controlling the voltage regulator to adjust the battery voltage based at least on the voltage difference includes:

[0014] The voltage regulator is controlled to adjust the battery voltage based on the voltage difference and a target threshold.

[0015] As an optional embodiment, controlling the voltage regulator to adjust the battery voltage based on the voltage difference and a target threshold includes:

[0016] If the pressure difference is within the target threshold, then increase the voltage of the battery;

[0017] If the pressure difference is greater than the target threshold, the battery voltage is maintained.

[0018] This application also provides an electronic device having a battery and a charging port, wherein the charging port is used to connect an external adapter to obtain electrical energy, a target circuit is provided between the battery and the charging port, and a switching component is provided on the target circuit; the electronic device further includes:

[0019] The controller is configured to close the switch assembly when the adapter is connected to the charging port, and to open the switch assembly after a target time period when the charging port is disconnected from the adapter, so that the battery's electrical energy can be delivered to the charging port through the target circuit within the target time period, thereby ensuring that the voltage difference between the charging port and the adapter connector meets the target threshold.

[0020] As an optional embodiment, the switching assembly includes a first switch, and the controller controls the first switch to close or delay opening.

[0021] As an optional embodiment, the switch assembly includes a second switch that automatically turns on based on the disconnection of the adapter connector from the charging port.

[0022] As an optional embodiment, the target circuit is provided with a voltage regulator;

[0023] The controller is also used for:

[0024] At least when the adapter is connected to the charging port, the voltage difference between the charging port and the battery is determined;

[0025] The voltage regulator is controlled to adjust the battery voltage based at least on the voltage difference, so that when the charging port is disconnected from the adapter connector, the voltage difference between the charging port and the adapter connector meets the target threshold.

[0026] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.

[0027] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0028] The accompanying drawings are provided to further illustrate the present application and form part of the specification. They are used together with the embodiments of the present application to explain the application and do not constitute a limitation thereof. In the drawings:

[0029] Figure 1 This is a flowchart of the control method for the electronic device in the embodiments of this application.

[0030] Figure 2 This is a circuit diagram of the control method for the electronic device in the embodiments of this application.

[0031] Figure 3 This is another flowchart of the control method for the electronic device in the embodiments of this application.

[0032] Figure 4 This is a structural block diagram of the electronic device in the embodiments of this application. Detailed Implementation

[0033] The specific embodiments of this application will now be described in detail with reference to the accompanying drawings, but these are not intended to limit the scope of this application.

[0034] It should be understood that various modifications can be made to the embodiments disclosed herein. Therefore, the following description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this disclosure will be apparent to those skilled in the art.

[0035] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present disclosure and, together with the general description of the disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.

[0036] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.

[0037] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application, which have the features described in the claims and are therefore all within the scope of protection defined herein.

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

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

[0040] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in still another embodiment,” all of which may refer to one or more of the same or different embodiments according to this disclosure.

[0041] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0042] like Figure 1 As shown in the figure, this application discloses a control method for an electronic device. The electronic device has a battery and a charging port. The charging port is used to connect an external adapter to obtain electrical energy. A target circuit is provided between the battery and the charging port. A switching component is provided on the target circuit. The method includes:

[0043] S100: If the charging port is connected to the adapter, the control switch assembly closes;

[0044] S200: If the charging port is disconnected from the adapter, the control switch assembly is disconnected after a target time period, so that the battery's electrical energy can be delivered to the charging port through the target circuit within the target time period, thereby ensuring that the voltage difference between the charging port and the adapter connector meets the target threshold.

[0045] For example, the electronic device is a laptop or other device that can be connected to an external power source. This electronic device has an internal battery, which can be a lithium battery, a rechargeable battery, etc. The electronic device also has a charging port for connecting an external adapter to obtain power. The power through the charging port directly powers the entire electronic device or charges the battery. The circuits for powering the device and charging the battery are different and different from the target circuit of this embodiment. In this embodiment, a target circuit is provided between the charging port and the battery, and this target circuit has a switching component. This switching component is controlled by the electronic device or its system to open or close. Specifically, if the system detects that an adapter is connected to the charging port, it controls the switching component to close. For example, if the system detects that the target electrical signal level of the charging port is high, it can determine that an adapter is connected. If the system detects that the charging port is disconnected from the adapter, for example, if the system detects that the target electrical signal level of the charging port is low, it can determine that the adapter is disconnected. When the system determines that the two are disconnected, it controls the switching component to open after a target time period delay. That is, the system determines that the disconnection of the charging port and the adapter is the starting point, and controls the switching component to close after a target time period delay. When the switch assembly is closed, the target circuit is conductive but has no voltage, meaning no current flows through it, or a small current flows through it, resulting in a low voltage at the charging port. This allows for a faster voltage increase at the charging port when it is disconnected from the adapter, saving time. By delaying the disconnection of the switch assembly when the charging port is disconnected from the adapter, the battery's energy can be released through the target circuit, increasing the charging port voltage and preventing the voltage at the charging port from being too low compared to the adapter connector, which could cause a large voltage difference, generate arcing, and affect device safety. Disconnecting the switch assembly prevents energy waste caused by the battery releasing energy and flowing through the target circuit when the electronic device is powered by the battery.

[0046] Based on the disclosure of the above embodiments, it can be understood that the beneficial effects of this embodiment include adding a target circuit between the charging port and the battery, and setting a switching component on the circuit. Based on this, the system can control the on / off state of the switching component according to whether the charging port is connected to the adapter, that is, control whether the target circuit is on or off. Thus, when the adapter connector is disconnected from the charging port, the battery's electrical energy can be released based on the target circuit, thereby increasing the voltage of the charging port, reducing the voltage difference between the charging port and the adapter connector, avoiding the generation of switching arcs, and protecting the safety of the charging port and the adapter.

[0047] Furthermore, such as Figure 2As shown, the switching assembly in this embodiment includes a first switch, which is controlled by an electronic device to close or delay opening. The first switch can be an electronic switch, controlled by the electronic device system. The specific target time period for delaying opening is not fixed; it can be 0.5s, 1s, or even 1.5s, but it should not be too long, as an excessively long time can easily cause energy loss due to the target circuit when the battery releases power.

[0048] For example, if the adapter's input voltage is approximately 20V, and the charging port voltage is 0V under normal conditions when the adapter connector is disconnected, the voltage difference between the adapter connector and the charging port will be approximately 20V, which is greater than the target threshold of 12V (this value is variable and may vary depending on the actual situation). This can easily lead to arcing. However, by introducing the method of this embodiment, the first switch is activated when the adapter is connected to the charging port, and when the adapter connector is disconnected from the charging port, the system controls the first switch to deactivate after a delay of approximately 0.5 seconds. This allows the battery's energy to be released and transferred to the charging port, increasing its voltage, such as to 12V. This makes the voltage difference between the port voltage and the adapter connector approximately 20V - 12V (battery voltage) 8V, which is less than 12V. Therefore, this effectively avoids the generation of switching arcs, ensuring the safety of the device, while also preventing the waste of battery energy.

[0049] Furthermore, the switch assembly in this embodiment also includes a second switch, which is a switching transistor. The second switch adapter connector is disconnected from the charging port and automatically turned on.

[0050] For example, the second switch is a diode, which is installed in the target circuit. When the adapter is connected to the charging port and the first switch is closed, the port voltage is greater than the battery voltage, and the diode is in a non-conductive state. When the adapter is disconnected from the charging port, the first switch remains closed for the target time period after disconnection. At this time, the battery voltage is higher than the port voltage, the diode is turned on, and the battery energy is released, the port voltage rises to the battery voltage, ensuring that the voltage difference between the port voltage and the adapter connector voltage is less than the target threshold, and no switching arc is generated. This target threshold is equivalent to the minimum voltage at which a switching arc is generated. This minimum voltage may fluctuate under different environments, so the target threshold can be adjusted accordingly. This adjustment can be manual or automatic by the device. For example, the system stores target thresholds for different environments. The system can obtain environmental parameters through detectors, determine the current environment based on the environmental parameters, and finally determine a matching target threshold based on the environment to help ensure that no switching arc is generated.

[0051] Furthermore, the target threshold was adjusted. To ensure that no switching arcing occurs, the port voltage when the adapter is unplugged also needs to be adjusted. Even with a constant target threshold, different batteries produce different voltages. To ensure that the voltage difference between the port voltage and the connector voltage does not generate an arc when the adapter connector is unplugged from the charging port, the battery voltage also needs to be adaptively adjusted.

[0052] Specifically, such as Figure 2 As shown, the target circuit in this embodiment is also equipped with a voltage regulator;

[0053] like Figure 3 As shown, the method in this embodiment further includes:

[0054] S300: Determine the voltage difference between the charging port and the battery, at least when the adapter is connected to the charging port;

[0055] S400: At least based on a differential pressure control voltage regulator, the battery voltage is adjusted so that the differential pressure between the charging port and the adapter connector meets a target threshold when the charging port is disconnected from the adapter connector.

[0056] For example, such as Figure 2 As shown, the structure of a voltage regulator can be formed by combining diodes, switches, capacitors, and other components, or it can be formed by other structures. The specific structure is not unique, as long as it can achieve the effect of adjusting the voltage. In application, when the adapter is connected to the charging port, the voltage difference between the charging port and the battery can be determined, that is, the voltage difference between the adapter voltage and the battery voltage. Then, based on this voltage difference and a target threshold or other preset threshold, it can be determined whether the battery voltage needs to be adjusted. For example, if the battery voltage is low, causing the voltage difference between it and the port voltage to be too large, exceeding the target threshold, then it indicates that a switching arc will occur when the adapter is disconnected from the charging port. In this case, the voltage difference needs to be reduced. The method to reduce the voltage difference is to adjust the battery output voltage, such as increasing the output voltage, so that the electrical energy passing through the target circuit is increased after being adjusted by the voltage regulator. This, in turn, increases the port voltage value when the adapter is disconnected from the charging port, ultimately effectively reducing the voltage difference between it and the adapter connector voltage, preventing the generation of a switching arc. In other words, the system in this embodiment can determine whether the battery voltage needs to be adjusted based on the voltage difference between the actual output voltage of the battery and the voltage of the charging port when the adapter is connected to the charging port. If adjustment is needed, the voltage regulator is controlled to adjust the electrical energy released by the battery to the target circuit, thereby adjusting the port voltage when the adapter is disconnected from the charging port, effectively avoiding the generation of switching arcs.

[0057] Specifically, in this embodiment, the control voltage regulator adjusts the battery voltage based at least on the voltage difference, including:

[0058] S401: The voltage regulator adjusts the battery voltage based on differential pressure and differential pressure threshold.

[0059] In other words, the system control voltage regulator adjusts the battery voltage based on the voltage difference between the adapter and the charging port when the adapter is unplugged and a preset voltage difference threshold. This adjustment can be done by increasing the voltage value, decreasing the voltage value, or keeping the voltage value unchanged.

[0060] Specifically, in this embodiment, adjusting the battery voltage based on the voltage difference and voltage difference threshold control voltage regulator includes:

[0061] S402: If the differential pressure is within the differential pressure threshold, increase the battery voltage;

[0062] If the differential pressure is greater than the differential pressure threshold, the battery voltage is maintained.

[0063] For example, the system can control the voltage regulator to compare the measured voltage difference with a preset voltage difference threshold. If the voltage difference is within the threshold, it indicates that the battery voltage needs to be increased to increase the voltage at the charging port. Alternatively, the system can control the voltage regulator to compare the measured voltage difference with the preset voltage difference threshold. If the voltage difference is greater than the threshold, it indicates that the current voltage difference can ensure that no switching arc will occur, and the voltage does not need to be adjusted. That is, the system can control the voltage regulator to perform the above-mentioned judgment and adjustment operations. Alternatively, the system can compare the measured voltage difference with the preset voltage difference threshold and directly control the voltage regulator to adjust the battery output voltage based on the judgment result. In this embodiment, the voltage difference threshold can be matched with a target threshold so that the voltage difference threshold can match the actual voltage difference that will cause a switching arc. This ensures that through the judgment and calibration of the voltage difference threshold, the difference between the adjusted battery output voltage and the connector voltage when the adapter is unplugged will not trigger the generation of a switching arc.

[0064] The specific adjustment value can be matched and adjusted according to the actual pressure difference. Specifically, a list can be set up containing the voltage adjustment values ​​corresponding to various pressure differences within a pressure difference threshold. The system can determine the matching voltage adjustment value based on this list and then adjust the battery's output voltage. Alternatively, the system can perform real-time calculations. For example, the system can determine whether the battery's output voltage needs adjustment and how it needs to be adjusted based solely on the pressure difference and the pressure difference threshold—that is, whether the battery's output voltage needs to be increased. If adjustment is determined, the current battery output voltage is determined, along with the charging port voltage / adapter connection voltage. Then, based on the two determined voltage values, the pressure difference, and the target threshold, the required increase in the battery's output voltage is determined, and the voltage regulator is controlled to adjust accordingly.

[0065] For example, if the voltage when the adapter connector is disconnected is 20V, while the battery can supply 6V to the charging port, then the voltage difference between the adapter connector voltage and the charging port voltage is 14V. Assuming a voltage difference threshold of 13V-15V, the voltage difference is within this threshold, so the battery output voltage needs to be adjusted. The system can then look up the corresponding battery output voltage adjustment value when the voltage difference is 14V and the port voltage is 20V. For example, if the adjustment value is 6V, the system can control the voltage regulator to adjust the battery output voltage to 12V. This results in a voltage difference of 8V between the battery and the adapter connector voltage, which is less than the target threshold of 12V, thus preventing switching arcing. Alternatively, if the system determines that the voltage when the adapter connector is disconnected is 20V, and the battery can supply 6V to the charging port, then with the adapter disconnected, the voltage difference between the adapter connector and the charging port is 14V, which is within the voltage difference threshold. In this case, if voltage adjustment is needed, the system can calculate based on the voltage when the adapter connector is disconnected, the battery supply voltage to the charging port, and the target threshold. This calculation would determine that the battery output voltage needs to be increased to at least 12V to prevent switching arcing when disconnected. Furthermore, if the port voltage and adapter connector voltage are determined, and the voltage difference is calculated to be less than the voltage difference threshold, then the current battery output voltage is not low and meets the requirements, requiring no adjustment. In this case, the system can remain inactive and only control the first switch.

[0066] In practical applications, the voltage adjustment value can also be a fixed value. For example, the voltage adjustment value can be predetermined based on the battery voltage in the actual device and the charging voltage of the adapter. Then, when the adapter is disconnected from the charging port, the system can directly control the voltage regulator to adjust the battery output voltage based on the predetermined voltage adjustment value.

[0067] like Figure 4 As shown, another embodiment of this application provides an electronic device having a battery and a charging port. The charging port is used to connect an external adapter to obtain power. A target circuit is provided between the battery and the charging port. A switching component is provided on the target circuit. The electronic device further includes:

[0068] The controller is configured to close the switch assembly when the adapter is connected to the charging port, and to open the switch assembly after a target time period when the charging port is disconnected from the adapter, so that the battery's electrical energy can be delivered to the charging port through the target circuit within the target time period, thereby ensuring that the voltage difference between the charging port and the adapter connector meets the target threshold.

[0069] The electronic device in this embodiment can be a laptop computer, or other devices with a battery and an external power source; the specific type is not unique. The controller can be an embedded controller, an IC chip, a CPU, etc.; the specific type is not unique.

[0070] Based on the disclosure of the above embodiments, it can be understood that the beneficial effects of this embodiment include adding a target circuit between the charging port and the battery, and setting a switching component on the circuit. Based on this, the system can control the on / off state of the switching component according to whether the charging port is connected to the adapter, that is, control whether the target circuit is on or off. Thus, when the adapter connector is disconnected from the charging port, the battery's electrical energy can be released based on the target circuit, thereby increasing the voltage of the charging port, reducing the voltage difference between the charging port and the adapter connector, avoiding the generation of switching arcs, and protecting the safety of the charging port and the adapter.

[0071] As an optional embodiment, the switching assembly includes a first switch, and the controller controls the first switch to close or delay opening.

[0072] As an optional embodiment, the switch assembly includes a second switch, which is a switching transistor, and the adapter connector is disconnected from the charging port by the second switch and automatically turned on.

[0073] As an optional embodiment, the target circuit is provided with a voltage regulator;

[0074] The controller is also used for:

[0075] At least when the adapter is connected to the charging port, the voltage difference between the charging port and the battery is determined;

[0076] The voltage regulator adjusts the battery voltage based at least on the differential pressure control so that the differential pressure between the charging port and the adapter connector satisfies the target threshold when the charging port is disconnected from the adapter connector.

[0077] As an optional embodiment, controlling the voltage regulator to adjust the battery voltage based at least on the voltage difference includes:

[0078] The voltage regulator is controlled to adjust the battery voltage based on the differential pressure and the differential pressure threshold.

[0079] As an optional embodiment, controlling the voltage regulator to adjust the battery voltage based on the voltage difference and a target threshold includes:

[0080] If the pressure difference is within the pressure difference threshold, then the voltage of the battery is increased;

[0081] If the pressure difference is greater than the pressure difference threshold, the battery voltage is maintained.

[0082] Another embodiment of this application also provides an electronic device, including:

[0083] One or more processors;

[0084] Memory, configured to store one or more programs;

[0085] When the one or more programs are executed by the one or more processors, the one or more processors shall implement the methods described above.

[0086] One embodiment of this application also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the method described above. It should be understood that the various solutions in this embodiment have the corresponding technical effects in the above method embodiments, and will not be repeated here.

[0087] This application also provides a computer program product that is tangibly stored on a computer-readable medium and includes computer-readable instructions that, when executed, cause at least one processor to perform methods such as those described in the embodiments above.

[0088] It should be understood that the various solutions in this embodiment have the same technical effects as those in the above method embodiments, and will not be repeated here.

[0089] It should be noted that the computer storage medium of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. Computer-readable media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access storage media (RAM), read-only storage media (ROM), erasable programmable read-only storage media (EPROM or flash memory), optical fibers, portable compact disk read-only storage media (CD-ROM), optical storage media, magnetic storage media, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program configured for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, antenna, optical fiber, RF, etc., or any suitable combination thereof.

[0090] It should be understood that although this application is described according to various embodiments, not every embodiment contains only one independent technical solution. This way of describing the specification is only for clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

[0091] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.

Claims

1. A control method for an electronic device, the electronic device having a battery and a charging port, the charging port being used to connect an external adapter to obtain electrical energy, a target circuit being provided between the battery and the charging port, the target circuit being provided with a switching component and a voltage regulator, the method comprising: If the charging port is connected to the adapter, the switch assembly is controlled to close, and the voltage difference between the charging port and the battery is determined; wherein, the voltage difference is used to control the voltage regulator to adjust the voltage of the battery based at least on the voltage difference, so that when the charging port is disconnected from the adapter connector, the voltage difference between the charging port and the adapter connector meets a target threshold. If the charging port is disconnected from the adapter, the switching component is controlled to disconnect after a target time period, so that the battery's electrical energy can be delivered to the charging port through the target circuit within the target time period, thereby ensuring that the voltage difference between the charging port and the adapter connector meets the target threshold.

2. The method according to claim 1, wherein, The switching assembly includes a first switch, and the electronic device controls the first switch to close or delay opening.

3. The method according to claim 2, wherein, The switching assembly includes a second switch that automatically turns on based on the disconnection of the adapter connector from the charging port.

4. The method according to claim 1, wherein, The control of the voltage regulator to adjust the battery voltage based at least on the voltage difference includes: The voltage regulator is controlled to adjust the battery voltage based on the differential pressure and the differential pressure threshold.

5. The method according to claim 4, wherein, The step of controlling the voltage regulator to adjust the battery voltage based on the voltage difference and the voltage difference threshold includes: If the pressure difference is within the pressure difference threshold, then the voltage of the battery is increased; If the pressure difference is greater than the pressure difference threshold, the battery voltage is maintained.

6. An electronic device having a battery and a charging port, the charging port being used to connect an external adapter to obtain electrical energy, a target circuit being provided between the battery and the charging port, the target circuit being provided with a switching assembly and a voltage regulator, the electronic device further comprising: A controller is configured to control the closing of a switching assembly when the adapter is connected to the charging port, and to determine the voltage difference between the charging port and the battery. The voltage difference is used to control the voltage regulator to adjust the battery voltage based at least on the voltage difference, so that when the charging port is disconnected from the adapter connector, the voltage difference between the charging port and the adapter connector meets a target threshold. Simultaneously, when the charging port is disconnected from the adapter, the controller controls the switching assembly to open after a target time period, so that the battery's electrical energy can be delivered to the charging port through the target circuit within the target time period, thereby ensuring that the voltage difference between the charging port and the adapter connector meets the target threshold.

7. The electronic device according to claim 6, wherein, The switching assembly includes a first switch, and the controller controls the first switch to close or delay opening.

8. The electronic device according to claim 7, wherein, The switching assembly includes a second switch that automatically turns on based on the disconnection of the adapter connector from the charging port.

Citation Information

Patent Citations

  • Prevention of output supply boosting upon removal of input adapter

    CN104782019A

  • Anti-arcing circuit

    CN105518959A