Charging mode switching method and device, equipment and storage medium
By receiving and processing trigger signals in the charging device and sending charging information to adjust the output of the power supply device, the problem of disconnection of adapter connection caused by excessive load of the processor system is solved, ensuring the robustness of the second charging path.
Patent Information
- Application Number
- CN202311350118.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
When the processor system is overloaded, the CPU fails to reply to the MCU charging information in time, resulting in the problem of disconnection of the SVOOC adapter.
After receiving the trigger signal sent by the controller in the charging device, the charging information is sent to adjust the output of the power supply device and ensure that the charging information has been replied before the processor closes the first charging path.
It solves the problem of disconnection of adapter connection caused by excessive load of the processor system, ensuring the robustness of charging using the second charging path.
Smart Images

Figure CN119853201A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging, and in particular to a method, device, equipment and storage medium for switching charging modes. Background Art
[0002] There is a key "Is charging allowed" frame in the SVOOC charging protocol. Since the charging efficiency of the SVOOC charging protocol is higher than that of ordinary charging protocols (such as the VOOC charging protocol), the SVOOC charging protocol can be called the SVOOC fast charging protocol. The adapter actively asks the microcontroller unit (MCU) of the mobile phone whether it agrees to use the SVOOC charging protocol for charging. The MCU replies whether the adapter agrees to use the SVOOC charging protocol for charging, which is affected by the central processing unit (CPU). When the CPU system of the mobile phone is heavily loaded, the CPU does not reply to the MCU "agree to use the SVOOC charging protocol for charging" in time, resulting in the SVOOC adapter not receiving the information agreeing to use the SVOOC charging protocol for charging for a long time, and the adapter output has been suspended, which eventually causes the adapter to have intermittent connection problems. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device and storage medium for switching charging modes, which are used to solve the problem of intermittent adapter connection caused by the processor not replying the controller charging information in time when the processor system is overloaded and the scheduling is not timely. To a certain extent, the robustness of charging using the second charging path is guaranteed, and the charging rate of the first charging path is lower than the charging rate of the second charging path.
[0004] A first aspect of the present application provides a method for switching a charging mode, the method being applied to a charging device, the charging device comprising a controller and a processor, the method comprising: receiving, by the processor, a trigger signal sent by the controller when a first charging path between the charging device and the power supply device is turned on; upon receiving the trigger signal, sending charging information to the controller by the processor, the charging information being used by the charging device to send to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through a second charging path, the charging rate of the first charging path being less than the charging rate of the second charging path; and closing the first charging path by the processor.
[0005] A second aspect of the present application provides a device for switching a charging mode, the device being applied to a charging device, the charging device comprising a controller and a processor, the device comprising:
[0006] a receiving module, configured to receive, through the processor, a trigger signal sent by the controller when the first charging path between the charging device and the power supply device is connected;
[0007] a sending module, configured to send charging information to the controller through the processor when receiving the trigger signal, wherein the charging information is sent by the charging device to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through a second charging path, wherein the charging rate of the first charging path is lower than the charging rate of the second charging path;
[0008] A processing module is used to close the first charging path through the processor.
[0009] A third aspect of the present application provides a charging device, which may include:
[0010] A memory storing executable program code;
[0011] a processor and a transceiver coupled to the memory, and a controller;
[0012] The processor, the transceiver, and the controller are used to execute the method described in the first aspect of the present application.
[0013] Another aspect of an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a processor, enables the processor to execute the method described in the first aspect of the present application.
[0014] Yet another aspect of an embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method described in the first aspect of the present application.
[0015] Another aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the present application.
[0016] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0017] In the embodiment of the present application, when the first charging path between the charging device and the power supply device is connected, the charging device receives the trigger signal sent by the controller through the processor; when the trigger signal is received, the charging device sends charging information to the controller through the processor, and the charging information is used by the charging device to send to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through the second charging path, and the charging rate of the first charging path is less than the charging rate of the second charging path; the first charging path is closed by the processor. Compared with the prior art, after receiving the trigger signal, the first charging path is closed first, and the intermittent problem caused by the processor being overloaded and unable to reply to the charging information, in the present application, the charging device sends the charging information to the controller through the processor according to the trigger signal, and then closes the first charging path through the processor, so that the problem of the adapter connection being intermittent due to the processor not replying to the controller charging information in time when the processor system is overloaded and the scheduling is not timely can be solved, and the robustness of charging using the second charging path is guaranteed to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.
[0019] Figure 1A A schematic diagram of a charging solution based on MCU in the prior art;
[0020] Figure 1B A schematic diagram of a charging path for charging using the SVOOC charging protocol;
[0021] Figure 2 A schematic diagram of an embodiment of a method for switching charging modes in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of another embodiment of the method for switching charging modes in an embodiment of the present application;
[0023] Figure 4 A schematic flow chart of a method for switching charging modes in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of an embodiment of a device for switching charging modes in an embodiment of the present application;
[0025] Figure 6 This is a schematic diagram of an embodiment of a charging device in an embodiment of the present application;
[0026] Figure 7 This is another schematic diagram of a charging device in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The embodiments of the present application provide a method, apparatus, device and storage medium for switching charging modes, which are used to solve the problem of intermittent adapter connection caused by the processor not replying the controller charging information in time when the processor system is overloaded and the scheduling is not timely. To a certain extent, the robustness of charging using the second charging path is guaranteed, and the charging rate of the first charging path is lower than the charging rate of the second charging path.
[0028] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.
[0029] The following is a brief description of some terms involved in this application, as follows:
[0030] 1. The I2C bus is a simple, bidirectional, two-wire synchronous serial bus that only requires two wires to transmit information between devices connected to the bus.
[0031] 2. CLK usually refers to the clock signal in the field of computers and electronics. The clock signal is a periodic signal used to synchronize and regulate the operation of various components in an electronic system. It determines the timing and rhythm within the system and ensures that each component operates in the correct order.
[0032] 3. BC1.1 defines more power sources for charging. There are three main types of power sources, and the Universal Serial Bus (USB) port classification is as follows:
[0033] 1) Standard Downstream Port (SDP)
[0034] This is a typical port commonly seen on desktop and laptop computers. This port has 15kΩ pull-down resistors on the D+ and D- data lines. The current limit is: 2.5mA when suspended, 100mA when connected, and 500mA when connected and configured for higher power. It is actually a normal USB mode. When the USB is in this mode, it can charge external devices (mobile phone charging, power bank) and also play the role of data connection (U disk, mobile phone upload / download).
[0035] 2) Charging Downstream Port (CDP)
[0036] This port supports both high-current charging and data transmission that is fully compatible with USB 2.0. The port has 15kΩ pull-down resistors required for D+ and D- communication, and also has internal circuitry that switches during the charger detection phase. The internal circuitry allows portable devices to distinguish CDP from other types of ports. It is actually a USB interface with fast charging function (1.5A). When the USB is in this mode, it can perform fast charging and also serve as a data connection.
[0037] 3) Dedicated Charging Port (DCP)
[0038] This port does not support any data transfer, but can provide more than 1.5A of current. The D+ and D- data lines of the port are shorted. This type of port supports higher charging capacity wall chargers and car chargers without enumeration. It is actually a simple charger. When the USB is in this mode, it can only charge but not connect to data.
[0039] 4. The BC1.2 protocol uses the D+D- pins, which do not affect each other's functions. As the most basic charging protocol, BC1.2 uses the USB2.0 data lines D+ (DP) and D- (DM) as protocol identification handshake lines.
[0040] 5. MOS is the abbreviation of MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET), which is a metal-oxide semiconductor field effect transistor, also known as gold-oxide-semiconductor field-effect transistor.
[0041] 6. Charge pump (CP), also known as switched capacitor voltage converter, is a DC-DC converter (Switched Capacitor Converter, SCC) that uses "flying" or "pumping" capacitors (not inductors or transformers) to store energy. The charge pump uses capacitors as energy storage elements and charges and discharges capacitors through MOS switches to achieve voltage conversion.
[0042] 7. VBUS (Voltage Bus) is a term in USB (Universal Serial Bus) and is used to represent the voltage bus in the USB interface. It is a circuit line defined in the USB standard that is used to provide power supply voltage and transmit power-related information. In a USB connection, VBUS carries the power supply signal and provides the required power for the connected device.
[0043] The charging mechanism of the private wired SVOOC charging protocol is low voltage and high current. The maximum power supported by the SVOOC charging protocol is 100 watts (W). The hardware solutions for implementing the SVOOC charging protocol include the Microcontroller Unit (MCU) solution and the VOOCPHY solution. Among them, the VOOCPHY solution has a VOOCPHY physical module to send and receive data with the adapter through the D+D- data channel, and assemble each received data bit into the form of an SVOOC communication frame, and the hardware interrupt notifies the mobile phone central processing unit (CPU) to read and write the VOOCPHY physical module through I2C, which is the VOOCPHY charging solution. The specific charging protocol (including parsing the communication frame + charging monitoring, etc.) is processed in the mobile phone CPU. Another way to achieve SVOOC charging through MCU is to run the bare metal charging protocol code on the MCU. For the mobile phone CPU, it is a complete black box. The mobile phone CPU interacts with the MCU only to obtain the current charging protocol status of the MCU (such as normal charging, charging overtemperature, full charging, etc.). Of course, whether the MCU is running or not is controlled by the CPU enable pin (enable). Figure 1A As shown, it is a schematic diagram of a charging solution based on MCU in the prior art.
[0044] MCU is the main control chip that uses the SVOOC charging protocol for charging. It integrates the hardware transceiver logic and software control logic of charging. It interacts with the adapter through the D+D- data channel. The adapter sends a frame of data to the MCU through the D+D- data channel. The MCU receives the data interrupt and then reads the data level on the D- data channel and assembles the data, then processes the data. After processing the data, it sends the data to be replied to the adapter. The MCU interacts with the access point (Access Point, AP) (the CPU of the mobile phone) through the general-purpose input / output (GPIO) of data (DATA) and clock signal (Clock, CLK), mainly reporting the charging status information to the CPU, and the CPU replies to the MCU with at least one of the charging current and charging power that the current mobile phone system wants to apply for (for example, in the game scenario, the mobile phone system needs to reduce the current, so the current value needs to be sent to the MCU. After receiving the value, the MCU will compare it with the current in the charging curve and select a relatively small value as the application current to reply to the adapter). The MCU charging solution has two limitations. The first limitation is that the CPU and MCU communicate with each other, with the MCU being the master and the CPU being the slave. That is, the CPU cannot actively send messages to the MCU. Only when the MCU wants to communicate with the CPU can the CPU passively reply to the MCU. The second limitation is that both the MCU and the CPU will access the battery fuel gauge. During the charging process, the MCU frequently accesses the battery fuel gauge to read the battery voltage / current / temperature to monitor the battery status. At this time, the CPU cannot access the battery fuel gauge. Only when the MCU periodically sends a trigger signal to the CPU can the CPU access the battery fuel gauge before replying to the trigger signal. In addition, due to the power management integrated circuit (Power Management Integrated Circuit, PMIC ( Figure 1A The charge pump (CP) in the battery is connected to the same master I2C adapter as the CPU, so the CPU I2C access to the PMIC is only possible when the MCU sends a trigger signal during SVOOC charging. Figure 1B Shown is a schematic diagram of a charging path using the SVOOC charging protocol.
[0045] The first charging path (also called the general charging path) goes through the PMIC path ( Figure 1BThe thickest black line in the middle), the PMIC is turned on to supply voltage and current to the CPU, providing a power source for the CPU and charging the battery; if the adapter communicates with the MCU module using the SVOOC charging protocol through the D+D- data channel to a certain stage, the MCU module will control the charging MOS to turn on and take the second charging path (also known as the fast charging MOS path). The voltage and current of the adapter pass through the charging MOS to charge the battery, and at the same time output the voltage and current to the CP circuit (the function of CP is to reduce the voltage. When charging directly, the voltage output by the adapter is too high to directly power the system, so the CP needs to reduce the voltage to power the CPU). After opening the charging MOS path, the general charging path needs to be suspended (suspend) and the PMIC is disconnected. There is a key "Is charging allowed" frame in the SVOOC charging protocol. The adapter actively asks the MCU whether it agrees to use the SVOOC charging protocol for charging. The MCU replies whether the adapter agrees to use the SVOOC charging protocol for charging, which is affected by the CPU. When the MCU receives the frame before the "Is Charging Allowed" frame sent by the adapter, it first sends a trigger signal to the CPU through the MCU's DATA and CLK signals. After receiving the trigger signal, the CPU executes the suspend PMIC operation to close the first charging path. This operation causes the adapter line to output no current. After the MCU sends the trigger signal to the CPU, it waits for the CPU's reply, which is at least one of the charging current and charging power that the CPU wants. If the CPU system is heavily loaded at this time and the CPU does not reply to the MCU in time, then during this "untimely" period of time, the adapter keeps asking the MCU whether it agrees to use the SVOOC charging protocol for charging, but the CPU does not reply to the MCU in time, resulting in the MCU's flag that allows charging using the SVOOC charging protocol to be false, and the adapter is always not allowed to use the SVOOC charging protocol for charging. At this time, the CPU suspends PMIC again, and the adapter works under the SVOOC charging protocol. When the SVOOC charging protocol is not allowed to be used for charging, the current on the line cannot be less than 300 mA, otherwise it will be intermittent. Therefore, it is necessary to solve the problem that when the CPU system is heavily loaded, the CPU does not reply to the MCU "agree to use the SVOOC charging protocol for charging" in time, resulting in the SVOOC adapter not receiving the "agree to use the SVOOC charging protocol for charging" information for a long time and the adapter output has been suspended, which eventually leads to intermittent problems.
[0046] The technical solution of this application is further described below by way of examples. Figure 2As shown, it is a schematic diagram of an embodiment of the method for switching the charging mode in the embodiment of the present application. The method is applied to a charging system composed of a charging device and a power supply device, wherein the charging device may include a controller and a processor. The controller may be a microcontroller unit (MCU), and the processor may be a central processing unit (CPU). The charging device in the embodiment of the present application is described by taking a mobile phone in a terminal device as an example, and the power supply device is described by taking an adapter as an example. The method may include:
[0047] 201. The charging device and the power supply device establish a SVOOC charging protocol channel.
[0048] Optionally, the charging device and the power supply device establish a SVOOC charging protocol channel, which may include: when the power supply device connected to the charging device is a dedicated charging port DCP power supply device, sending a first pulse sequence to the power supply device; the power supply device receives the first pulse sequence sent by the charging device; the power supply device sends a first communication frame to the charging device according to the first pulse sequence, and the frame header of the first communication frame is the first frame header; the charging device receives the first communication frame sent by the power supply device according to the first pulse sequence; when the charging device supports the SVOOC charging protocol, sending a second communication frame to the power supply device, and the frame header of the second communication frame is the third frame header; the power supply device receives the second communication frame sent by the charging device; when the power supply device supports the SVOOC charging protocol, the power supply device sends a third communication frame to the charging device, and the frame header of the third communication frame is the third frame header; the charging device receives the third communication frame sent by the power supply device; wherein the priority of the third frame header is higher than the priority of the second frame header, and the priority of the second frame header is higher than the priority of the first frame header. At this point, it can be considered that the SVOOC charging protocol channel has been initially established.
[0049] Exemplarily, when a mobile phone is plugged into an adapter, the output voltage of the adapter will generate a vbus plug-in interrupt in the PMIC of the mobile phone. At this time, the PMIC of the mobile phone interacts with the adapter through the D+D- data channel to perform BC1.2 protocol interaction to identify whether the adapter is of the DCP type. When the adapter is of the DCP type, the CPU operates the switch to switch the D+D- data channel from the PMIC to the MCU so that the adapter and the MCU can communicate for charging. At this time, the MCU operates the D+D- data channel to send a pulse sequence to the adapter. When the adapter receives the pulse sequence, if it is an adapter that supports the SVOOC charging protocol, it will send a corresponding charging communication frame to the mobile phone. If the mobile phone also supports the SVOOC charging protocol, it will return a corresponding charging communication frame to the adapter. At this time, the SVOOC charging protocol channel between the mobile phone and the adapter has been successfully established. Otherwise, it is not an adapter that supports the SVOOC charging protocol and uses other charging protocols.
[0050] At present, the SVOOC / VOOC protocol has three types of communication frame headers, namely A, B and C, where A is the SVOOC frame header, B is the VOOC2.0 frame header, and C is the VOOC1.0 frame header. The adapter and the mobile phone may be A, B or C respectively, and their recognition capabilities are A>B>C. Here, the first frame header is the C frame header, the second frame header is the B frame header, and the third frame header is the A frame header. As the adapter does not know what protocol the mobile phone supports at the beginning, even if it is an SVOOC adapter, it sends the lowest level C frame header, and the mobile phone can definitely recognize the C frame header. If the mobile phone supports the SVOOC protocol, it will reply the A frame header to the adapter. If the adapter also supports the SVOOC protocol, it can also recognize the A frame header. In the next frame, the adapter will replace the initial C frame header with the A frame header and send it to the mobile phone. After the mobile phone receives it, it knows that the adapter also supports the SVOOC protocol, and it can be considered that the SVOOC charging protocol channel is established; if the adapter cannot recognize the frame header sent by the mobile phone, it will continue to keep the C frame header, which is similar to this principle.
[0051] Optionally, the method may also include: the charging device encrypts the target data to obtain encrypted data; the charging device sends the encrypted data to the power supply device; the power supply device receives the encrypted data sent by the charging device; the power supply device decrypts the encrypted data to obtain decrypted data; the power supply device sends the decrypted data to the charging device, and the charging device receives the decrypted data sent by the power supply device; the charging device matches the decrypted data with the target data, and if the match is successful, the identity authentication is successful.
[0052] Optionally, the method may further include: the power supply device sends an identifier of the power supply device to the charging device, and the identifier of the power supply device is used for display by the charging device.
[0053] Optionally, the method may further include: the power supply device sends a charging curve request to the charging device; the charging device receives the charging curve request sent by the power supply device; the charging device sends a charging curve to the power supply device according to the charging curve request; and the power supply device receives the charging curve sent by the charging device.
[0054] For example, the adapter can also exchange identity authentication code, adapter ID code, charging curve, etc. with the MCU of the mobile phone. The identity authentication code is a random data encrypted by the MCU and sent to the adapter. The adapter decrypts the data and sends it back to the MCU. The MCU compares it with the local data. If the match is successful, the identity authentication is successful; the adapter ID code is the adapter sending its ID to the MCU, and the MCU forwards it to the CPU, which is used to display the charging animation; the charging curve is the MCU sending the charging curve to the adapter, and the adapter controls at least one of the output current and output power according to the charging curve.
[0055] 202. The charging device sends a trigger signal to the processor through the controller.
[0056] The charging device receives the trigger signal sent by the controller through the processor.
[0057] Optionally, after the charging device sends the charging curve to the power supply device through the controller, the charging device sends a trigger signal to the processor through the controller.
[0058] Optionally, the trigger signal is used to instruct the processor to access the fuel meter after receiving the trigger signal and before replying the charging current.
[0059] For example, after the adapter interacts with the MCU of the mobile phone through the charging curve, it will start a thread to interact with the CPU. That is, the MCU will send a trigger signal to the CPU, which can also be called a special charging state command code (for example, 0x58). After sending the special charging state command code through the thread, it will be blocked until the CPU responds. The reason why the MCU sends a special charging state command code (for example, 0x58) to the CPU at this time is because the adapter will ask the MCU whether the adapter's output voltage (vbus) meets the battery voltage requirement. After receiving the instruction, the MCU will read the fuel gauge through I2C to obtain the battery voltage, and then calculate whether the difference between vbus and the battery voltage is within the preset voltage range (for example, 100mv-200mv). If it is within the preset voltage range, the MCU will reply that the adapter output voltage meets the battery voltage requirement; because the MCU wants to access the fuel gauge, it needs to send a special charging state command code (for example, 0x58) to the CPU to inform the CPU that the subsequent time is specified (the time from the CPU receiving the special charging state command code to the time of replying to the MCU) to access the fuel gauge.
[0060] 203. When receiving the trigger signal, the charging device sends charging information to the controller through the processor, and the charging information is used by the charging device to send to the power supply device through the controller.
[0061] Optionally, the method may further include: after the charging device receives the charging information from the processor through the controller, setting the attribute of the charging mark that allows the use of the second charging path (here, the SVOOC charging protocol channel) to true.
[0062] For example, after the mobile phone receives the trigger signal sent by the MCU through the CPU, it will determine whether the trigger signal is a special charging state command code 0x58. If it is not a special charging state command code 0x58, other code processing will be performed. If it is a special charging state command code 0x58, the CPU will reply to the MCU with the charging information that it currently wants to apply for. Once the reply is received, the MCU will no longer wait, and then set the attribute of the mark that allows the use of the second charging path to true (fastchg_allow=true). That is, from this moment on, the MCU replies to the adapter with charging information, and the charging information is used to indicate that the second charging path is allowed to be used for charging.
[0063] 204. Close the first charging path by the processor.
[0064] Optionally, closing the first charging path by the processor may include: when the received trigger signal is the first trigger signal, closing the first charging path by the processor.
[0065] Exemplarily, if the CPU determines that it is the first time to receive a trigger signal, that is, a special charging state command code, the CPU operates the PMIC through the I2C to suspend the PMIC, that is, to close the first charging path (also called the general charging path).
[0066] 205. The power supply device sends a charging request to the charging device to allow use of the second charging path.
[0067] The charging device receives a charging request sent by the power supply device to allow the use of the second charging path.
[0068] Optionally, the charging device receiving a charging request from the power supply device for allowing the use of the second charging path may include: the charging device receiving, through the controller, a charging request from the power supply device for allowing the use of the second charging path.
[0069] Exemplarily, the mobile phone receives, through the MCU, a charging request sent by the adapter to allow use of the second charging path.
[0070] 206 . The charging device sends the charging information to the power supply device through the controller according to the charging request for allowing the use of the second charging path.
[0071] The power supply device receives the charging information sent by the charging device through the controller.
[0072] The charging information is used to instruct the power supply device to adjust the output charging information and charge the charging device through a second charging path, and the charging rate of the first charging path is lower than the charging rate of the second charging path.
[0073] Optionally, the charging information includes at least one of a charging current and a charging power to instruct the power supply device to adjust at least one of an output current and an output power accordingly. It should be noted that the charging current and the charging power here are the charging current and the charging power for charging using the second charging path.
[0074] Exemplarily, the mobile phone sends charging information to the adapter through the controller. After the adapter receives the charging information sent by the mobile phone, it considers that the mobile phone is "allowed to use the second charging path for charging."
[0075] 207. The power supply device adjusts the output voltage according to the charging information.
[0076] Exemplarily, the adapter can adjust the output voltage according to the charging information to use the second charging path for charging. It can be understood that the purpose of adjusting at least one of the output current and the output power is achieved by adjusting the output voltage.
[0077] 208. The power supply device sends a voltage detection request to the charging device.
[0078] The charging device receives a voltage detection request sent by the power supply device.
[0079] Optionally, the charging device receiving the voltage detection request sent by the power supply device may include: the charging device receiving the voltage detection request sent by the power supply device through a controller.
[0080] Exemplarily, after the adapter receives charging information and determines that the mobile phone is allowed to use the second charging path for charging, the adapter will ask the mobile phone's MCU whether the adapter's output voltage vbus meets the battery voltage requirement, that is, the adapter sends a voltage detection request to the mobile phone, and the mobile phone receives the voltage detection request sent by the adapter through the MCU.
[0081] 209. When it is detected according to the voltage detection request that the output voltage of the power supply device does not meet the battery voltage requirement, the charging device sends the first voltage feedback information to the power supply device.
[0082] The power supply device receives the first voltage feedback information sent by the charging device, where the first voltage feedback information is used to indicate that the output voltage of the power supply device does not meet a battery voltage requirement.
[0083] Optionally, detecting that the output voltage of the power supply device does not meet the battery voltage requirement includes: if a difference between the output voltage of the power supply device and the battery voltage is not within a preset voltage range, determining that the output voltage of the power supply device meets the battery voltage requirement.
[0084] For example, when the mobile phone receives a voltage detection request sent by the adapter through the MCU, the MCU can collect the battery voltage through I2C and compare it with the output voltage of the adapter; if the voltage difference between the output voltage of the adapter and the battery voltage is not within 100mv-200mv, it means that the output voltage of the adapter does not meet the battery voltage requirement; a first voltage feedback information is sent to the adapter to indicate that the output voltage of the adapter does not meet the battery voltage requirement, and the output voltage needs to be adjusted before the second charging path is turned on for charging.
[0085] 210. The power supply device adjusts the output voltage according to the first voltage feedback information to turn on the second charging path for charging.
[0086] For example, after receiving the first voltage feedback information, the adapter can know that the output voltage does not meet the battery voltage requirement of the mobile phone, adjust the output voltage of the adapter according to the first voltage feedback information, and then send a voltage detection request to the mobile phone to inquire whether the adjusted output voltage meets the battery voltage requirement, so as to open the second charging path for charging.
[0087] 211. When it is detected according to the voltage detection request that the output voltage of the power supply device meets the battery voltage requirement, the charging device sends the second voltage feedback information to the power supply device and turns on the second charging path.
[0088] The power supply device receives second voltage feedback information sent by the charging device; the second voltage feedback information is used to indicate that the output voltage of the power supply device meets the battery voltage requirement.
[0089] Optionally, detecting that the output voltage of the power supply device meets the battery voltage requirement includes: if a difference between the output voltage of the power supply device and the battery voltage is within a preset voltage range, determining that the output voltage of the power supply device meets the battery voltage requirement.
[0090] For example, when the mobile phone receives a voltage detection request sent by the adapter through the MCU, the MCU can collect the battery voltage through I2C and compare it with the output voltage of the adapter; if the voltage difference between the output voltage of the adapter and the battery voltage is within 100mv-200mv, it means that the output voltage of the adapter meets the battery voltage requirement; send the second voltage feedback information to the adapter, and turn on the second charging path. The second voltage feedback information is used to indicate that the output voltage of the adapter meets the battery voltage requirement, and the second charging path can be used for charging.
[0091] 212. The power supply device uses the second charging path to charge according to the second voltage feedback information.
[0092] Exemplarily, after receiving the second voltage feedback information, the adapter may know that the output voltage meets the battery voltage requirement of the mobile phone, and the second charging path may be used for charging.
[0093] It is understandable that at this time, only initially, the output voltage meets the battery voltage requirement of the mobile phone, but the output current and / or the output power may not yet meet the corresponding charging current and / or the charging power, and the output voltage needs to be adjusted so that the output current reaches the charging current and / or the output power reaches the charging power. Only then can the purpose of charging using the second charging path be achieved.
[0094] It should be noted that steps 201, 205-212 in the embodiment of the present application may be omitted or replaced.
[0095] In the embodiment of the present application, when the first charging path between the charging device and the power supply device is connected, the charging device receives the trigger signal sent by the controller through the processor; when the trigger signal is received, the charging device sends charging information to the controller through the processor, and the charging information is used for the charging device to send to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through the second charging path, and the charging rate of the first charging path is less than the charging rate of the second charging path; the first charging path is closed by the processor. Compared with the prior art, after receiving the trigger signal, the first charging path is closed first, and the intermittent problem caused by the processor being overloaded and unable to reply to the charging information, in the present application, the charging device sends the charging information to the controller through the processor according to the trigger signal, and then closes the first charging path through the processor, so that the problem of the adapter connection being intermittent due to the processor not replying to the controller charging information in time when the processor system is overloaded and the scheduling is not timely can be solved, and the robustness of charging using the second charging path is guaranteed to a certain extent. Optimizing the switching timing of the terminal device using the SVOOC protocol for charging not only avoids possible bus conflicts of I2C, but also ensures that SVOOC charging will not be interrupted even if the CPU system load is large and scheduling is not timely. Moreover, it can also ensure that the output voltage of the power supply device meets the battery voltage requirements of the charging device.
[0096] like Figure 3 As shown, it is a schematic diagram of another embodiment of the method for switching the charging mode in the embodiment of the present application. The method is applied to a charging system composed of a charging device and a power supply device, wherein the charging device may include a controller and a processor. The controller may be a microcontroller unit (MCU), and the processor may be a central processing unit (CPU). The charging device in the embodiment of the present application is described by taking a mobile phone in a terminal device as an example, and the power supply device is described by taking an adapter as an example. The method may include:
[0097] 301. The charging device and the power supply device establish a SVOOC charging protocol channel.
[0098] 302. The charging device sends a trigger signal to the processor through the controller.
[0099] 303. When receiving the trigger signal, the charging device sends charging information to the controller through the processor, and the charging information is used by the charging device to send to the power supply device through the controller.
[0100] 304. Close the first charging path by the processor.
[0101] 305. The power supply device sends a charging request to the charging device to allow the use of the second charging path.
[0102] 306. The charging device sends the charging information to the power supply device through the controller according to the charging request for allowing the use of the second charging path.
[0103] 307. The power supply device adjusts the output voltage according to the charging information.
[0104] It should be noted that steps 301-307 in the embodiment of the present application can refer to Figure 2 Steps 201-207 in the illustrated embodiment are not described in detail here.
[0105] 308. The power supply device sends a voltage detection request to the charging device.
[0106] The charging device receives a voltage detection request sent by the power supply device.
[0107] Optionally, the charging device receiving the voltage detection request sent by the power supply device may include: the charging device receiving the voltage detection request sent by the power supply device through a controller.
[0108] Exemplarily, after the adapter receives the charging information, because the charging information includes at least one of the charging current and the charging power, it can be determined that the mobile phone is allowed to use the second charging path for charging. The adapter will ask the MCU of the mobile phone whether the output voltage vbus of the adapter meets the battery voltage requirement, that is, the adapter sends a voltage detection request to the mobile phone, and the mobile phone receives the voltage detection request sent by the adapter through the MCU.
[0109] 309. When the voltage detection request is a first voltage detection request, the charging device sends first voltage feedback information to the power supply device, where the first voltage feedback information is used to indicate that the output voltage of the power supply device does not meet the battery voltage requirement.
[0110] When the voltage detection request is a first voltage detection request, the power supply device receives first voltage feedback information sent by the charging device.
[0111] For example, when the adapter first asks the MCU whether the adapter output voltage vbus meets the battery voltage requirement, the mobile phone will reply the first voltage feedback information to the adapter regardless of whether the adapter output voltage meets the battery voltage requirement detected by the MCU. This is because at least two frames of time are left for the CPU to operate I2C to suspend the PMIC charging path, that is, the first charging path. The two-frame time is about 250ms, which is enough time for the CPU to operate I2C to shut down the first charging path, to prevent the first charging path from being turned off when the adapter is fast charging the mobile phone, causing certain safety risks.
[0112] Optionally, the method may further include: when the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device does not meet the battery voltage requirement, sending the first voltage feedback information to the power supply device, and the power supply device receives the first voltage feedback information sent by the charging device;
[0113] When the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device meets the battery voltage requirement, the second voltage feedback information is sent to the power supply device, and the power supply device receives the second voltage feedback information sent by the charging device; the power supply device uses the second charging path to charge according to the second voltage feedback information; the second voltage feedback information is used to indicate that the output voltage of the power supply device meets the battery voltage requirement.
[0114] For example, when the adapter does not ask the MCU of the mobile phone for the first time whether the output voltage vbus of the adapter meets the battery voltage requirement, that is, when the adapter asks the MCU whether the vbus is ok, the MCU collects the battery voltage through I2C and compares it with the vbus of the adapter. If the difference between VBUS and the battery voltage is within 100mv-200mv, it means that vbus is ok, and the MCU sends a second voltage feedback information to the adapter, and turns on the charging MOS to establish a second charging path for charging. Subsequently, the MCU sends a special charging status command code to the CPU every 2s. If the difference between vbus and the battery voltage is not within 100mv-200mv, it means that vbus is not ok, and the MCU will send a first voltage feedback information to the adapter to adjust the output voltage and then turn on the second charging path for charging.
[0115] 310. The power supply device adjusts the output voltage according to the first voltage feedback information to turn on the second charging path for charging.
[0116] For example, after receiving the first voltage feedback information, the adapter can know that the output voltage does not meet the battery voltage requirement of the mobile phone, adjust the output voltage of the adapter according to the first voltage feedback information, and then send a voltage detection request to the mobile phone to inquire whether the adjusted output voltage meets the battery voltage requirement, so as to open the second charging path for charging.
[0117] In the embodiment of the present application, when the first charging path between the charging device and the power supply device is connected, the charging device receives the trigger signal sent by the controller through the processor; when the trigger signal is received, the charging device sends charging information to the controller through the processor, and the charging information is used for the charging device to send to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through the second charging path, and the charging rate of the first charging path is less than the charging rate of the second charging path; the first charging path is closed by the processor. Compared with the prior art, after receiving the trigger signal, the first charging path is closed first, and the intermittent problem caused by the processor being overloaded and unable to reply to the charging information, in the present application, the charging device sends the charging information to the controller through the processor according to the trigger signal, and then closes the first charging path through the processor, so that the problem of the adapter connection being intermittent due to the processor not replying to the controller charging information in time when the processor system is overloaded and the scheduling is not timely can be solved, and the robustness of charging using the second charging path is guaranteed to a certain extent. Moreover, when the voltage detection request is the first voltage detection request, the charging device sends the first voltage feedback information to the power supply device, and the first voltage feedback information is used to indicate that the output voltage of the power supply device does not meet the battery voltage requirement. To a certain extent, it prevents the power supply device from using the second charging path to charge the charging device while the first charging path is not turned off, causing certain safety risks. It can also ensure that the output voltage of the power supply device meets the battery voltage requirement of the charging device.
[0118] like Figure 4 The figure is a flow chart of the method for switching charging modes in an embodiment of the present application.
[0119] like Figure 5 FIG. 1 is a schematic diagram of an embodiment of a device for switching charging modes in an embodiment of the present application. The device is applied to a charging device, the charging device includes a controller and a processor, and the device may include:
[0120] The receiving module 501 is used to receive, through the processor, a trigger signal sent by the controller when the first charging path between the charging device and the power supply device is connected;
[0121] a sending module 502, configured to send charging information to the controller through the processor when the trigger signal is received, wherein the charging information is sent by the charging device to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through the second charging path, wherein the charging rate of the first charging path is lower than the charging rate of the second charging path;
[0122] The processing module 503 is configured to close the first charging path through the processor.
[0123] Optionally, the processing module 503 is specifically configured to close the first charging path through the processor when the received trigger signal is the first trigger signal.
[0124] Optionally, the receiving module 501 is further configured to receive, through the controller, a voltage detection request sent by the power supply device;
[0125] The sending module 502 is further used to send first voltage feedback information to the power supply device when the voltage detection request is the first voltage detection request, wherein the first voltage feedback information is used to indicate that the output voltage of the power supply device does not meet the battery voltage requirement.
[0126] Optionally, the sending module 502 is also used to send the first voltage feedback information to the power supply device when the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device does not meet the battery voltage requirement; and to send the second voltage feedback information to the power supply device and turn on the second charging path when the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device meets the battery voltage requirement. The second voltage feedback information is used to indicate that the output voltage of the power supply device meets the battery voltage requirement.
[0127] Optionally, detecting that the output voltage of the power supply device meets the battery voltage requirement includes: if a difference between the output voltage of the power supply device and the battery voltage is within a preset voltage range, determining that the output voltage of the power supply device meets the battery voltage requirement.
[0128] Optionally, the receiving module 501 is further configured to receive, through the controller, a charging request sent by the power supply device to allow use of the second charging path;
[0129] The sending module 502 is further configured to send the charging information to the power supply device through the controller according to the charging request for allowing the use of the second charging path.
[0130] Optionally, the charging information includes at least one of a charging current and a charging power, so as to instruct the power supply device to correspondingly adjust at least one of an output current and an output power.
[0131] like Figure 6 As shown, it is a schematic diagram of an embodiment of a charging device in an embodiment of the present application, which may include: Figure 5 The charging mode switching device is shown.
[0132] In the embodiment of the present application, the charging device is a terminal device, and the terminal device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0133] As an example but not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0134] like Figure 7 FIG. 1 is a schematic diagram of another embodiment of a charging device in an embodiment of the present application. The charging device is a terminal device and may include:
[0135] like Figure 7 FIG. 1 is a schematic diagram of another embodiment of a charging device in an embodiment of the present application. The charging device is a terminal device and may include:
[0136] Combine the following Figure 7 A detailed introduction to the various components of the mobile phone in the terminal device:
[0137] The RF circuit 710 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0138] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0139] The input unit 730 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0140] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Figure 7 In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0141] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0142] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
[0143] Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the Wi-Fi module 770. It provides users with wireless broadband Internet access. Figure 7 A Wi-Fi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0144] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.
[0145] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0146] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0147] In the embodiment of the present application, the RF circuit 710 is used to receive a trigger signal sent by the controller through the processor when the first charging path between the charging device and the power supply device is turned on; when the trigger signal is received, the processor sends charging information to the controller, and the charging information is used by the charging device to send to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through the second charging path, and the charging rate of the first charging path is less than the charging rate of the second charging path;
[0148] The processor 780 is configured to close the first charging path through the processor.
[0149] Optionally, the processor 780 is specifically configured to close the first charging path through the processor when the received trigger signal is the first trigger signal.
[0150] Optionally, the RF circuit 710 is also used to receive a voltage detection request sent by the power supply device through the controller; when the voltage detection request is the first voltage detection request, first voltage feedback information is sent to the power supply device, and the first voltage feedback information is used to indicate that the output voltage of the power supply device does not meet the battery voltage requirement.
[0151] Optionally, the RF circuit 710 is also used to send the first voltage feedback information to the power supply device when the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device does not meet the battery voltage requirement; send the second voltage feedback information to the power supply device and turn on the second charging path when the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device meets the battery voltage requirement. The second voltage feedback information is used to indicate that the output voltage of the power supply device meets the battery voltage requirement.
[0152] Optionally, detecting that the output voltage of the power supply device meets the battery voltage requirement includes: if a difference between the output voltage of the power supply device and the battery voltage is within a preset voltage range, determining that the output voltage of the power supply device meets the battery voltage requirement.
[0153] Optionally, the RF circuit 710 is further used to receive, through the controller, a charging request sent by the power supply device to allow the use of the second charging path; and send the charging information to the power supply device through the controller according to the charging request to allow the use of the second charging path.
[0154] Optionally, the charging information includes at least one of a charging current and a charging power, so as to instruct the power supply device to correspondingly adjust at least one of an output current and an output power.
[0155] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0156] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0157] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0161] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for switching a charging mode, characterized in that: The method is applied to a charging device, the charging device includes a controller and a processor, and the method includes: When the first charging path between the charging device and the power supply device is connected, receiving, by the processor, a trigger signal sent by the controller; In the case of receiving the trigger signal, the processor sends charging information to the controller, and the charging information is used by the charging device to send to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through the second charging path, and the charging rate of the first charging path is lower than the charging rate of the second charging path; The first charging path is closed by the processor.
2. The method according to claim 1, characterized in that The step of closing the first charging path by the processor includes: In a case where the received trigger signal is the first trigger signal, the first charging path is closed by the processor.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Receiving, by the controller, a voltage detection request sent by the power supply device; In a case where the voltage detection request is a first voltage detection request, first voltage feedback information is sent to the power supply device, where the first voltage feedback information is used to indicate that the output voltage of the power supply device does not meet the battery voltage requirement.
4. The method according to claim 3, characterized in that: The method further comprises: When the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device does not meet the battery voltage requirement, sending the first voltage feedback information to the power supply device; When the voltage detection request is not the first voltage detection request and it is detected that the output voltage of the power supply device meets the battery voltage requirement, the second voltage feedback information is sent to the power supply device and the second charging path is turned on. The second voltage feedback information is used to indicate that the output voltage of the power supply device meets the battery voltage requirement.
5. The method according to claim 3, characterized in that: The detecting that the output voltage of the power supply device meets the battery voltage requirement includes: If the difference between the output voltage of the power supply device and the battery voltage is within a preset voltage range, it is determined that the output voltage of the power supply device meets the battery voltage requirement.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: receiving, by the controller, a charging request sent by the power supply device to allow use of the second charging path; The controller sends the charging information to the power supply device according to the charging request for allowing the use of the second charging path.
7. The method according to claim 1 or 2, characterized in that: The charging information includes at least one of a charging current and a charging power, so as to instruct the power supply device to correspondingly adjust at least one of an output current and an output power.
8. A device for switching charging modes, characterized in that: The device is applied to a charging device, the charging device includes a controller and a processor, and the device includes: a receiving module, configured to receive, through the processor, a trigger signal sent by the controller when the first charging path between the charging device and the power supply device is connected; a sending module, configured to send charging information to the controller through the processor when receiving the trigger signal, wherein the charging information is sent by the charging device to the power supply device through the controller to instruct the power supply device to adjust the output charging information and charge the charging device through a second charging path, wherein the charging rate of the first charging path is lower than the charging rate of the second charging path; A processing module is used to close the first charging path through the processor.
9. A charging device, characterized in that: include: A memory storing executable program code; a processor and a transceiver coupled to the memory, and a controller; The processor, the transceiver, and the controller are used to correspondingly execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium comprising instructions, which, when executed on a processor, causes the processor to perform the method according to any one of claims 1 to 7.