Power supply circuit of electronic equipment, interface switching method and device, equipment and medium

By combining the power supply control unit and the target control unit, the charging interface is monitored and switched. The power MOSFET of the target control unit is used to maintain the continuity of power supply, which solves the problem of power supply interface switching interruption of electronic devices and improves the user experience.

CN119030116APending Publication Date: 2024-11-26HEFEI LCFC INFORMATION TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410970361.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

There is a time difference during the switching of power supply interfaces in electronic devices, which can cause power interruptions, especially when the battery is damaged or unavailable, affecting the user experience.

Method used

By employing a combination of a power supply control unit and a target control unit, the old interface circuit is disconnected and the new interface circuit is driven by monitoring the power supply switching signal. The power MOSFET of the target control unit is used to maintain power supply continuity and avoid system interruption.

Benefits of technology

It achieves stable charging when switching power supply interfaces, improves user experience, and avoids power interruption issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030116A_ABST
    Figure CN119030116A_ABST
Patent Text Reader

Abstract

The invention provides a power supply circuit of electronic equipment, an interface switching method and device, equipment and a medium, and the power supply circuit comprises a charging interface which is used for connecting an external power supply and charging the electronic equipment, and a power supply control unit which is used for controlling the connection or disconnection of the charging interface. And the target control unit is used for charging the electronic equipment when the charging interface is switched. By adopting the power supply circuit, the target control unit can be used for charging the electronic equipment when the charging interface is switched, the problem of power supply interruption of a system of the electronic equipment is avoided, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer processing, and in particular to a power supply circuit, an interface switching method, a device, a device and a medium of an electronic device. Background Art

[0002] At present, electronic devices such as laptops and tablets are basically equipped with dual power supply interfaces. When the dual power supply interfaces are plugged into adapters at the same time, the power transmission control module of the electronic device can select one power supply interface to power the electronic device. When the power supply interface used for power supply is disconnected, the power transmission control module can switch to another power supply interface to continue to power the electronic device. However, due to the time difference between the power transmission control module switching from one power supply interface to another power supply interface, the electronic device has a power supply interruption problem. In order to solve this problem, batteries are usually used to continue to power the electronic device during the switching process. However, when the battery is damaged or does not exist, the system of the electronic device still has a power supply interruption problem, which affects the user experience.

[0003] Therefore, how to achieve the stability of electronic device charging and improve user experience has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present disclosure provides a power supply circuit, an interface switching method, a device, a device and a medium of an electronic device, so as to at least solve the above technical problems existing in the prior art.

[0005] According to a first aspect of the present disclosure, there is provided a power supply circuit of an electronic device, comprising:

[0006] Charging port, used to connect to an external power source and charge electronic devices;

[0007] A power supply control unit, used to control the conduction or interruption of the charging interface;

[0008] A target control unit is used to charge the electronic device when switching the charging interface.

[0009] According to a second aspect of the present disclosure, there is provided an interface switching method, the method comprising:

[0010] When a power supply switching signal is detected, cutting off a circuit of a first charging interface for charging based on the power supply switching signal;

[0011] driving a second power supply control unit so that the second power supply control unit controls a circuit connected to a second charging interface;

[0012] Switch the second charging port to charge the electronic device;

[0013] The target control unit of the electronic device is in an operating state, and the target control unit is used to charge the electronic device when the charging interface is switched.

[0014] In one possible implementation, the first charging interface and the second charging interface of the electronic device are both connected to an external power source, and the first charging interface is used to charge the electronic device. The method further includes:

[0015] If it is detected that the first charging interface is disconnected from the external power source, a disconnection signal is used as a power supply switching signal.

[0016] In one possible implementation, a first charging interface of the electronic device is connected to an external power source, and the first charging interface is used to charge the electronic device. The method further includes:

[0017] If it is detected that the second charging interface is connected to an external power source, it is determined that a power supply switching signal is detected.

[0018] In one possible implementation, when a power supply switching signal is detected, cutting off a circuit of a first charging interface for charging based on the power supply switching signal includes:

[0019] Determining whether the power of the second charging interface is greater than the power of the first charging interface;

[0020] If yes, turn off the first power supply control unit, the first power supply control unit is used to control the conduction or interruption of the first charging interface;

[0021] If not, the connection between the first charging interface and the external power source is cut off.

[0022] In one possible implementation manner, the driving the second power supply control unit includes:

[0023] The second drive is turned on so that the second drive controls the circuit of the second power supply control unit to be turned on.

[0024] According to a third aspect of the present disclosure, there is provided an interface switching device, the device comprising:

[0025] A first processing module, configured to cut off a circuit of a first charging interface for charging based on a power supply switching signal when a power supply switching signal is detected;

[0026] A second processing module, used to drive a second power supply control unit so that the second power supply control unit controls a circuit connected to a second charging interface;

[0027] The switching module is used to switch the second charging interface to charge the electronic device; the target control unit of the electronic device is in a working state, and the target control unit is used to charge the electronic device when the charging interface is switched.

[0028] In one possible implementation, the first charging interface and the second charging interface of the electronic device are both connected to an external power supply, the first charging interface is used to charge the electronic device, and the first processing module is further used to use the disconnection signal as a power supply switching signal if it is detected that the first charging interface is disconnected from the external power supply.

[0029] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:

[0030] at least one processor; and

[0031] a memory communicatively connected to the at least one processor; wherein,

[0032] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.

[0033] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method described in the present disclosure.

[0034] In the power supply circuit of the electronic device disclosed in the present invention, the charging interface is used to connect to an external power source and charge the electronic device, the power supply control unit is used to control the conduction or interruption of the charging interface, and the target control unit is used to charge the electronic device when the charging interface is switched. That is, the target control unit can be used to charge the electronic device when the charging interface is switched, avoiding the problem of power supply interruption of the electronic device system and improving the user experience.

[0035] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:

[0037] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0038] Figure 1 A schematic diagram of the structure of a power supply circuit of an electronic device provided by an embodiment of the present disclosure is shown;

[0039] Figure 2 A partial circuit diagram of a power supply circuit provided by an embodiment of the present disclosure is shown;

[0040] Figure 3 A schematic diagram showing the change of the charging voltage of the power supply circuit provided by the embodiment of the present disclosure over time;

[0041] Figure 4 A schematic diagram of an implementation flow of the interface switching method provided by an embodiment of the present disclosure is shown;

[0042] Figure 5 A schematic diagram of the structure of an interface switching device provided by an embodiment of the present disclosure is shown;

[0043] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0044] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0045] Since there is a time difference when the power transmission control module switches from one power supply interface to another power supply interface, the electronic device may experience a power supply interruption problem. In order to solve the problem of power supply interruption when switching the power supply interface, the present disclosure provides a power supply circuit, an interface switching method, a device, a device and a medium for an electronic device. The interface switching method provided by the present disclosure can be applied to electronic devices such as mobile phones, computers and tablet computers.

[0046] The technical solution of the embodiment of the present disclosure will be described below in conjunction with the drawings in the embodiment of the present disclosure.

[0047] Figure 1 A schematic diagram of a power supply circuit of an electronic device provided by an embodiment of the present disclosure is shown. Figure 1 As shown, the power supply circuit includes:

[0048] A charging interface 101, used to connect to an external power source and charge the electronic device;

[0049] A power supply control unit 102, used to control the on or off of the charging interface;

[0050] The target control unit 103 is used to charge the electronic device when switching the charging interface.

[0051] Figure 2 FIG. 4 shows a partial circuit diagram of a power supply circuit provided by an embodiment of the present disclosure, such as Figure 2 As shown, the power supply circuit may include two power supply control units and one target control unit, each power supply control unit is used to control the conduction and interruption of different charging interfaces, for example, Figure 2 The power supply control unit A can be used to control the charging interface Port A, and the power supply control unit B can be used to control the charging interface Port B. The circuit of the power supply control unit A may include electronic components such as power MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor, a MOSFET device used for power amplification and switch control applications), resistors, capacitors, etc. Among them, PC111 is the capacitor of the power supply control unit A, and the 1 and 2 marked at both ends of the capacitor represent the positive and negative poles of the capacitor respectively, and 1U_26V_K_X6R_0402 is the specification of the capacitor PC111; PO101 is the interface circuit of the charging interface Port A, AONR32314_DFN8 is the specification of PO101, and PO101 may include interface line 1-interface line 8; 51GATE1 is the transistor element of the power supply control unit A, PR142 is the inductor of the power supply control unit A, and the 1 and 2 marked at both ends of the inductor represent the direction or polarity of the inductor, 1 / 16W 0 5% 0402 is the specification of the inductor PR142; PR107 is the inductor connected to PO101, 100_0402_5% is the specification of PR107, PC113 is the capacitor connected to PO101, and 0.1U_60V_K_X6R_0402 is the specification of PC113. The power supply control unit B may also include electronic components such as power MOSFET, resistors and capacitors. Among them, PC129 is the capacitor of the power supply control unit B, 1U_26V_K_X6R_0402 is the specification of the capacitor PC129; PO102 is the interface circuit of the charging interface Port B, AONR32314_DFN8 is the specification of PO102, and PO102 may include interface line 1-interface line 8; 51GATE2 is the transistor element of the power supply control unit B, PR144 is the inductor of the power supply control unit B, 1 / 16W 05%0402 is the specification of the inductor PR144; PR109 is the inductor connected to PO102, 100_0402_6% is the specification of PR109, PC102 is the capacitor connected to PO102, and 0.1U_60V_K_X6R_0402 is the specification of PC102.

[0052] Figure 2The target control unit is the total power supply control unit of each charging interface. The target control unit may include electronic components such as power MOSFET, resistors and capacitors. Among them, PO103 is an interface circuit for connecting charging interface Port A and charging interface Port B, AONR32314_DFN8 is the specification of PO103, and PO103 may include interface line 1-interface line 8; 51GATE_TBT is a transistor element of the target control unit, PR143 is an inductor, and 1 / 16W 0 5% 0402 is the specification of inductor PR143; PR106 is an inductor connected to PO103, 100_0402_5% is the specification of PR106, PC104 is a capacitor connected to PO103, 0.1U_60V_K_X6R_0402 is the specification of PC104, PC106 is also a capacitor connected to PO103, and 0.1U_60V_K_X6R_0402 is the specification of PC106. Figure 2 The target control unit is grounded, and "B+" represents the positive power supply in the circuit. Figure 2 Among them, TBTA_GATE_VBUS_R represents the circuit composed of various components of the power supply control unit A, TBTA_GATE represents the circuit composed of various components of the power supply control unit B, and TBTA_GATE_VSYS_R represents the circuit composed of various components of the target control unit.

[0053] Figure 2 In the figure, the charging interface Port A and the charging interface Port B can be Type C interfaces. If the charging interface Port A and the charging interface Port B are both inserted into the Adapter, that is, the charging interface Port A and the charging interface Port B are both connected to the external power supply, the electronic device can adopt the PD control strategy to control the charging power of the charging interface Port A and the charging interface Port B, control the charging interface with greater charging power to be turned on, and use the interface to charge the electronic device. If the charging power of the two charging interfaces is the same, the charging interface that is first connected to the external power supply can be controlled to charge the electronic device. For example, if the charging power of the charging interface Port A is greater, the charging interface Port A can be turned on by the power supply control unit A. Specifically, the PD control strategy can be used to send a driving instruction to drive the power supply control unit A and the target control unit. The electronic device can open the following based on the driving instruction: Figure 2The PQ101 circuit of the power supply control unit A and the PQ103 circuit of the target control unit shown enable the PQ101 circuit of the power supply control unit A and the target control unit to control the charging interface Port A to power the electronic device. If the charging interface Port A is unplugged from the Adapter, that is, the power supply circuit of the charging interface Port A is cut off, then the PD control strategy can be used to switch to the charging interface Port B to charge the electronic device. In the switching process, since the target control unit is always in a driven state, that is, the power MOSFET of the target control unit is always in a working state, the unidirectional conductivity of the body diode in the MOS tube can be used to use the power MOSFET of the target control unit to power the electronic device during the switching process, so that the charging of the electronic device is not interrupted. Figure 3 A schematic diagram showing the change of the charging voltage of the power supply circuit provided by the embodiment of the present disclosure over time is shown. Figure 3 The horizontal axis represents time, and the vertical axis represents voltage. Figure 3 As shown, the broken line 301 represents the driving voltage of the power supply control unit B, the curve 302 represents the driving voltage of the power supply control unit A, and the straight line 303 represents the driving voltage of the target control unit. Figure 3 As shown, the driving voltage of the target control unit is always maintained at 20V. Before 0.04s, the electronic device is charged through the charging interface Port B controlled by the power supply control unit B. At 0.04s, the charging interface Port B is disconnected. Before switching to the charging interface Port A for charging, the target control unit power MOSFET powers the electronic device. At about 2.04s, the circuit of the charging interface Port A is controlled to be turned on by the power supply control unit A. At this time, the electronic device is charged by the charging interface Port A controlled by the power supply control unit A.

[0054] In the power supply circuit of the electronic device disclosed in the present invention, the charging interface is used to connect an external power source and charge the electronic device, the power supply control unit is used to control the conduction or interruption of the charging interface, and the target control unit is used to charge the electronic device when the charging interface is switched. That is, the target control unit can be used to charge the electronic device when the charging interface is switched, thereby avoiding the problem of power supply interruption of the electronic device system and improving the user experience.

[0055] Figure 4 A schematic diagram of an implementation flow of the interface switching method provided by an embodiment of the present disclosure is shown. Figure 4 As shown, the method includes:

[0056] S401, when a power supply switching signal is detected, cutting off a circuit of a first charging interface used for charging based on the power supply switching signal.

[0057] In the present disclosure, the first charging interface and the second charging interface of the electronic device can both be connected to an external power supply. The first charging interface is used to charge the electronic device. If it is detected that the first charging interface is disconnected from the external power supply, the disconnection signal is used as a power supply switching signal.

[0058] Alternatively, the first charging interface of the electronic device is connected to an external power supply, and the first charging interface is used to charge the electronic device, while the second charging interface is not connected to the external power supply. If it is detected that the second charging interface is connected to the external power supply, it can be determined that the power supply switching signal is detected.

[0059] Specifically, a switch or a sensor for sensing the state of the charging interface may be provided at the charging interface of the electronic device. For example, a first switch may be provided at the first charging interface of the electronic device, and a second switch may be provided at the second charging interface of the electronic device. If the first charging interface is connected to an external power source, the first switch is triggered to close, and if the first charging interface is disconnected from the external power source, the first switch is triggered to disconnect. The electronic device may determine whether the first charging interface is disconnected from the external power source according to the state of the first switch. In the case where both the first charging interface and the second charging interface of the electronic device are connected to an external power source and the first charging interface is charging the electronic device, the signal of the first charging interface being disconnected from the external power source may be used as a power supply switching signal. In the case where the first charging interface of the electronic device is connected to an external power source, the second charging interface is not connected to an external power source, and the first charging interface is charging the electronic device, the signal of the second charging interface being connected to an external power source may be used as a power supply switching signal.

[0060] In the present disclosure, it is also possible to determine whether a power supply switching signal is detected by monitoring the voltage change of the charging interface input. For example, if the electronic device detects that the system voltage increases, it can be determined that the charging interface is connected to an external power source.

[0061] The interface switching method provided by the embodiment of the present disclosure is applied to an electronic device, which includes a charging interface, at least two power supply control units and a target control unit, wherein the charging interface is used to connect an external power supply and charge the electronic device, the power supply control unit is used to control the conduction or interruption of the charging interface, different power supply control units are used to control the conduction or interruption of different charging interfaces, and the target control unit is used to charge the electronic device when switching the charging interface.

[0062] In a possible implementation, if a first charging interface of an electronic device is connected to an external power supply, and the first charging interface is used to charge the electronic device, when a power supply switching signal is detected, cutting off a circuit of the first charging interface used for charging based on the power supply switching signal may include steps A1-A3:

[0063] Step A1, determining whether the power of the second charging interface is greater than the power of the first charging interface.

[0064] Specifically, the charging power of the second charging interface and the charging power of the first interface can be obtained according to the interface parameters of the electronic device, and the charging power of the second charging interface and the charging power of the first interface can be compared to determine whether the power of the second charging interface is greater than the power of the first charging interface.

[0065] Step A2: if yes, turn off the first power supply control unit, where the first power supply control unit is used to control the conduction or interruption of the first charging interface.

[0066] If the power of the second charging interface is greater than that of the first charging interface, the charging interface can be switched from the first charging interface to the second charging interface, and the electronic device can be quickly charged using the high-power charging interface. Specifically, the driving device of the first power supply control unit can be turned off, thereby disconnecting the circuit of the first charging interface.

[0067] Step A3: if not, cut off the connection between the first charging interface and the external power source.

[0068] If the power of the second charging interface is not greater than the power of the first charging interface, you can also choose to cut off the connection between the first charging interface and the external power supply, so as to switch the charging interface from the first charging interface to the second charging interface.

[0069] S402, driving a second power supply control unit to enable the second power supply control unit to control a circuit connected to a second charging interface.

[0070] Specifically, the PD control strategy can be used to control the electronic device to turn on the second drive, the second drive is used to drive the second power supply control unit, and the second power supply control unit is used to control the conduction or interruption of the second charging interface. By turning on the second drive, the second drive can control the circuit of the second power supply control unit to turn on the circuit of the second charging interface, so that the second charging interface can charge the electronic device.

[0071] S403, switching the second charging interface to charge the electronic device, the target control unit of the electronic device is in a working state, and the target control unit is used to charge the electronic device when the charging interface is switched.

[0072] In the process of switching the charging interface from the first charging interface to the second charging interface, in order to keep the power supply of the electronic device uninterrupted, the power MOSFET of the target control unit that is always in the driven state can be used to power the electronic device until the charging interface is switched from the first charging interface to the second charging interface.

[0073] By adopting the interface switching method provided in the embodiment of the present disclosure, the target control unit can be used to charge the electronic device when the charging interface is switched, thereby avoiding the power supply interruption problem of the electronic device system and improving the user experience.

[0074] Based on the same inventive concept, according to the interface switching method provided by the above embodiment of the present disclosure, correspondingly, another embodiment of the present disclosure further provides an interface switching device, whose structural schematic diagram is shown in FIG. Figure 5 As shown, specifically including:

[0075] A first processing module 501 is configured to cut off a circuit of a first charging interface for charging based on a power supply switching signal when a power supply switching signal is detected;

[0076] A second processing module 502 is used to drive a second power supply control unit so that the second power supply control unit controls a circuit connected to a second charging interface;

[0077] The switching module 503 is used to switch the second charging interface to charge the electronic device; the target control unit of the electronic device is in a working state, and the target control unit is used to charge the electronic device when the charging interface is switched.

[0078] By using the interface switching device provided in the embodiment of the present disclosure, the target control unit can be used to charge the electronic device when the charging interface is switched, thereby avoiding the problem of power supply interruption of the electronic device system and improving the user experience.

[0079] In one embodiment, the first charging interface and the second charging interface of the electronic device are both connected to an external power supply, the first charging interface is used to charge the electronic device, and the first processing module 501 is also used to use the disconnection signal as a power switching signal if it is detected that the first charging interface is disconnected from the external power supply.

[0080] In one embodiment, the first charging interface of the electronic device is connected to an external power source, and the first charging interface is used to charge the electronic device. The first processing module 501 is further used to determine that a power supply switching signal is detected if it is detected that the second charging interface is connected to the external power source.

[0081] In one embodiment, the first processing module 501 is specifically used to determine whether the power of the second charging interface is greater than the power of the first charging interface; if so, turn off the first power supply control unit, which is used to control the conduction or interruption of the first charging interface; if not, cut off the connection between the first charging interface and the external power supply.

[0082] In one possible implementation, the second processing module 502 is specifically configured to start the second drive, so that the second drive controls the circuit of the second power supply control unit to be turned on.

[0083] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0084] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0085] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0086] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0087] The computing unit 601 may be a variety of general and / or special processing development components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the interface switching method. For example, in some embodiments, the interface switching method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the interface switching method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the interface switching method in any other appropriate manner (e.g., by means of firmware).

[0088] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0089] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0090] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0092] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0093] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0094] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0095] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

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

Claims

1. A power supply circuit for an electronic device, comprising: Charging port, used to connect to an external power source and charge electronic devices; A power supply control unit, used to control the conduction or interruption of the charging interface; A target control unit is used to charge the electronic device when switching the charging interface.

2. An interface switching method, characterized in that: The method comprises: When a power supply switching signal is detected, cutting off a circuit of a first charging interface for charging based on the power supply switching signal; driving a second power supply control unit so that the second power supply control unit controls a circuit connected to a second charging interface; Switch the second charging port to charge the electronic device; The target control unit of the electronic device is in an operating state, and the target control unit is used to charge the electronic device when the charging interface is switched.

3. The method according to claim 2, characterized in that The first charging interface and the second charging interface of the electronic device are both connected to an external power source, and the first charging interface is used to charge the electronic device. The method further includes: If it is detected that the first charging interface is disconnected from the external power source, a disconnection signal is used as a power supply switching signal.

4. The method according to claim 2, characterized in that: The first charging interface of the electronic device is connected to an external power source, and the first charging interface is used to charge the electronic device. The method further includes: If it is detected that the second charging interface is connected to an external power source, it is determined that a power supply switching signal is detected.

5. The method according to claim 4, characterized in that When a power supply switching signal is detected, cutting off a circuit of a first charging interface for charging based on the power supply switching signal comprises: Determining whether the power of the second charging interface is greater than the power of the first charging interface; If yes, turn off the first power supply control unit, the first power supply control unit is used to control the conduction or interruption of the first charging interface; If not, the connection between the first charging interface and the external power source is cut off.

6. The method according to claim 2, characterized in that The driving second power supply control unit comprises: The second drive is turned on so that the second drive controls the circuit of the second power supply control unit to be turned on.

7. An interface switching device, characterized in that: The device comprises: A first processing module, configured to cut off a circuit of a first charging interface for charging based on a power supply switching signal when a power supply switching signal is detected; A second processing module, used to drive a second power supply control unit so that the second power supply control unit controls a circuit connected to a second charging interface; The switching module is used to switch the second charging interface to charge the electronic device; the target control unit of the electronic device is in a working state, and the target control unit is used to charge the electronic device when the charging interface is switched.

8. The device according to claim 7, characterized in that The first charging interface and the second charging interface of the electronic device are both connected to an external power supply, the first charging interface is used to charge the electronic device, and the first processing module is also used to use the disconnection signal as a power supply switching signal if it is detected that the first charging interface is disconnected from the external power supply.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 2 to 6.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 2-6.

Citation Information

Cited By

  • Serial port function switching device and method, equipment and medium

    CN120909970A