Charging control module and method, electronic equipment and computer readable storage medium

Charging control is solved through independent protocol chips, charging chips and charging management modules, and the cost of existing charging control chips is achieved, and a lower cost and more flexible charging control solution is achieved.

CN119419973APending Publication Date: 2025-02-11ANYSMART TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing charging control chip has a high technical threshold and is difficult to produce, which leads to expensive chip costs and the implementation cost of charging control solutions is also high.

Method used

It adopts independent protocol chips, charging chips and charging management modules to control them through the integrated circuit bus to avoid integrating the charging control solution into the same chip.

Benefits of technology

It reduces the implementation cost of the charging control solution, reduces the chip cost, simplifies the charging control technology, and improves the flexibility and adaptability of charging control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119419973A_ABST
    Figure CN119419973A_ABST
Patent Text Reader

Abstract

The invention provides a charging control module and method, electronic equipment and a computer readable storage medium. The charging control module comprises a charging management module, a protocol chip and a charging chip, the charging management module is connected to the protocol chip and the charging chip through an integrated circuit bus, and the protocol chip is connected with the charging interface and used for determining target charging protocol information matched with external equipment connected with the charging interface; the charging management module is used for acquiring target charging protocol information through the integrated circuit bus connected with the protocol chip, determining target charging parameters of the charging chip according to the target charging protocol information and inputting the target charging parameters to the charging chip through the integrated circuit bus connected with the charging chip, and the charging chip is connected with the battery. And the charging module is used for performing battery-based charging processing according to the target charging parameter. According to the embodiment provided by the invention, the implementation cost of the charging control scheme can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of charging control technology, and in particular to a charging control module, method, electronic device and computer-readable storage medium. Background Art

[0002] In rechargeable devices, charging control is generally achieved through an integrated single chip, for example, the charging protocol function and the charging function are integrated in the same chip. However, the technical threshold of the chip produced in this way is often high, and the production is difficult, making the chip cost expensive, resulting in a high cost for implementing the charging control solution. Summary of the invention

[0003] The present application provides a charging control module, method, electronic device and computer-readable storage medium, aiming to reduce the implementation cost of a charging control solution.

[0004] On the one hand, the present application provides a charging control module, the charging control module comprising a charging management module, a protocol chip and a charging chip, the charging management module being connected to the protocol chip and the charging chip respectively through an integrated circuit bus,

[0005] The protocol chip is connected to the charging interface and is used to determine target charging protocol information adapted to the external device connected to the charging interface;

[0006] The charging management module is used to obtain the target charging protocol information through the integrated circuit bus connected to the protocol chip, and to determine the target charging parameters of the charging chip according to the target charging protocol information, and input the target charging parameters to the charging chip through the integrated circuit bus connected to the charging chip;

[0007] The charging chip is connected to the battery and is used to perform charging processing based on the battery according to the target charging parameters.

[0008] In a possible implementation of the present application, the charging control module further includes a charging metering chip, and the charging management module is further connected to the charging metering chip via an integrated circuit bus.

[0009] The charging metering chip is connected to the battery and is used to detect battery status information of the battery;

[0010] The charging management module is further used to obtain battery status information of the battery through an integrated circuit bus connected to the charging metering chip, so as to report the battery status information.

[0011] In a possible implementation of the present application, the charging management module is further used to:

[0012] Based on the battery status information, detecting whether a preset charging end condition is met;

[0013] If it is detected that the charging end condition is met, the charging chip is controlled to stop the charging process.

[0014] In a possible implementation of the present application, the protocol chip is further used to determine a target charging mode adapted to the external device;

[0015] The charging management module is further configured to obtain the target charging mode through an integrated circuit bus connected to the protocol chip, and input the target charging mode to the charging chip through an integrated circuit bus connected to the charging chip;

[0016] The charging chip is also used to perform charging processing from the external device to the battery according to the target charging parameters when the target charging mode is a forward charging mode, and to perform charging processing from the battery to the external device according to the target charging parameters when the target charging mode is a reverse charging mode.

[0017] In a possible implementation of the present application, the protocol chip is connected to the charging interface via a channel configuration pin, and the protocol chip is also used to determine a target charging mode adapted to the external device based on a voltage on the channel configuration pin.

[0018] In a possible implementation of the present application, the charging control module further includes a data line switching chip, and the data line switching chip is respectively connected to the charging interface, the protocol chip and the charging management module through different data lines.

[0019] The data line switching chip is used to establish a first communication connection between the charging interface and the protocol chip by using the data line between the data line switching chip and the charging interface and the protocol chip when detecting that the external device is inserted into the charging interface, so that the protocol chip can determine the target charging protocol information based on the first communication connection;

[0020] The data line switching chip is also used to establish a second communication connection between the charging interface and the charging management module by using the data line between the data line switching chip and the charging interface and the charging management module after determining the target charging protocol information, so as to facilitate data transmission between the external device and the charging management module based on the second communication connection.

[0021] In a possible implementation of the present application, the charging control module also includes a universal serial bus chip, and the charging management module is also connected to the charging interface through the universal serial bus chip to facilitate data transmission between the external device and the charging management module based on the universal serial bus chip or the second communication connection.

[0022] On the other hand, the present application also provides a charging control method, which is applied to a charging management module in a charging control module, wherein the charging management module is connected to a protocol chip and a charging chip respectively through an integrated circuit bus, and the charging control method includes:

[0023] Acquiring target charging protocol information determined by the protocol chip through an integrated circuit bus connected to the protocol chip;

[0024] Determining a target charging parameter of the charging chip according to the target charging protocol information;

[0025] The target charging parameter is input into the charging chip through an integrated circuit bus connected to the charging chip, so that the charging chip performs charging processing according to the target charging parameter.

[0026] On the other hand, the present application also provides an electronic device, the electronic device comprising:

[0027] one or more processors;

[0028] Memory; and

[0029] One or more applications, wherein one or more of the applications are stored in the memory and configured to be executed by the processor to implement any of the above methods.

[0030] On the other hand, the present application also provides a computer-readable storage medium on which a software program is stored, and the software program is loaded by a processor to execute the steps in any of the above methods.

[0031] On the other hand, an embodiment of the present application provides a computer program product, including a computer program or instructions, where the computer program or instructions are executed by a processor to implement any of the above methods.

[0032] The charging control module, method, electronic device and computer-readable storage medium provided in the embodiment of the present application, the charging control module includes a charging management module, a protocol chip and a charging chip, the charging management module is respectively connected to the protocol chip and the charging chip through an integrated circuit bus, the protocol chip is connected to the charging interface, and is used to determine the target charging protocol information adapted to the external device connected to the charging interface, the charging management module is used to obtain the target charging protocol information through the integrated circuit bus connected to the protocol chip, determine the target charging parameters of the charging chip according to the target charging protocol information, input the target charging parameters to the charging chip through the integrated circuit bus connected to the charging chip, and the charging chip is connected to the battery, and is used to perform battery-based charging processing according to the target charging parameters. The embodiment of the present application adopts an independent protocol chip, a charging chip and a charging management module, and the charging management module controls the protocol chip and the charging chip based on the integrated circuit bus to realize charging control, avoiding integrating the charging control scheme into the same chip, making charging control more convenient and with a lower technical threshold, thereby reducing the chip cost and the implementation cost of the charging control scheme. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 It is a schematic diagram of the functional architecture of the charging control module provided in the embodiment of the present application;

[0035] Figure 2 is another schematic diagram of the functional architecture of the charging control module provided in an embodiment of the present application;

[0036] Figure 3 is a schematic diagram of the hardware structure of the charging control module provided in the embodiment of the present application;

[0037] Figure 4 It is a schematic diagram of an embodiment of a charging control method provided in an embodiment of the present application;

[0038] Figure 5 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0040] In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically limited. In the present application, the term "in some embodiments" is used to mean "used as an example, illustration or description". Any embodiment described as "in some embodiments" in the present application is not necessarily interpreted as being more preferred or more advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, well-known principles and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

[0041] The embodiments of the present application provide a charging control module, method, electronic device and computer-readable storage medium, which are described in detail below.

[0042] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of the functional architecture of the charging control module provided in the embodiment of the present application. The charging control module includes a charging management module, a protocol chip and a charging chip. The charging management module is connected to the charging chip through an integrated circuit bus (Inter-Integrated Circuit, IIC, also known as I 2 C) are connected to the protocol chip and the charging chip respectively. The charging management module can be, for example, an RG520N-EU communication module, the protocol chip can be, for example, an SC2021A chip, and the charging chip can be, for example, an SC89890H chip.

[0043] The integrated circuit bus is a bidirectional two-wire synchronous serial bus that realizes effective control between integrated circuits (ICs). It only needs two wires, namely the serial data line (SDA) and the serial clock line (SCL), to transmit information between devices connected to the bus. Therefore, in the embodiment of the present application, the charging management module can be used as a host, and the protocol chip and the charging chip can be used as slaves respectively. The charging management module uses the integrated circuit bus to control the protocol chip and the charging chip. For example, the charging management module can use the integrated circuit bus to read data from the protocol chip and use the integrated circuit bus to write data to the charging chip, thereby realizing charging management.

[0044] The protocol chip is connected to the charging interface, which may be, for example, a type-C interface, or other types of interfaces, which are not limited here. The charging interface is used to connect an external device, which may be a forward charging device or a reverse charging device. A forward charging device, such as a charger, can provide power to the charging interface for forward charging. A reverse charging device, such as a mobile phone, can provide power to the mobile phone for reverse charging. The protocol chip is used to determine the target charging protocol information adapted to the external device connected to the charging interface, wherein the charging protocol may specifically be a fast charging protocol such as USB PD (USB Power Delivery, Universal Serial Bus Power Delivery), or other common charging protocols, which are not limited here. The target charging protocol information includes information such as the current size, voltage size, and protocol specifications that are compatible with the external device. The target charging protocol information can be determined through the charging protocol negotiation process between the protocol chip and the external device. Taking the external device as a charger as an example, the charger can send the charging protocols it supports to the protocol chip through the charging interface. The protocol chip analyzes the received charging protocols and selects a charging protocol from them, and feeds back the selected charging protocol to the charger, so that the charger provides power to the charging interface according to the current size, voltage size, and other information corresponding to the selected charging protocol. The current size, voltage size, protocol specifications, and other information corresponding to the charging protocol selected by the protocol chip are the target charging protocol information that is compatible with the charger, an external device. The protocol chip can store the target charging protocol information in its own preset first register for reading by the charging management module.

[0045] Therefore, the charging management module can be used to obtain the target charging protocol information stored in the protocol chip through the integrated circuit bus connected to the protocol chip. For example, the target charging protocol information can be read from the preset first register of the protocol chip. The charging management module can also be used to determine the target charging parameters of the charging chip according to the target charging protocol information. The target charging parameters include information such as the current size and voltage size adapted to the external device. The target charging parameters can be used to know how much current (for example, 2A, 4.5A, etc.) and voltage (for example, 5V, 9V, 12V, etc.) are needed for charging. The charging management module can also be used to input the target charging parameters into the charging chip through the integrated circuit bus connected to the charging chip. For example, the charging management module can write the target charging parameters into the preset second register of the charging chip to configure the charging chip.

[0046] The charging chip is connected to the battery, and the battery is a battery that needs to be charged or discharged. For example, when the external device is a forward charging device, the battery is a battery that needs to be charged, and when the external device is a reverse charging device, the battery is a battery that needs to be discharged. The charging chip can read the configured target charging parameters from its own preset second register, and then perform charging processing based on the battery according to the target charging parameters. Among them, when the external device is a forward charging device, the battery can be charged based on the power provided by the external device, for example Figure 3 As shown in the figure, when the protocol chip determines the target charging protocol information and controls the MOS (metal oxide semiconductor field effect transistor) to turn on, the power provided by the external device can be transmitted to the charging chip through VBUS (voltage bus), MOS, and VBUS / OTG (on-the-go) line in sequence, and the charging chip charges the battery under the action of V-SYS (system voltage). When the external device is a reverse charging device, the external device can be charged based on the power provided by the battery, for example Figure 3 As shown, when the protocol chip determines the target charging protocol information and controls the MOS to be turned on, the charging chip can transmit the power provided by the battery to the external device through the VBUS / OTG line, MOS, and VBUS in sequence under the action of V-SYS to charge the external device.

[0047] It can be seen that the charging control module provided in the embodiment of the present application adopts an independent protocol chip, a charging chip, and a charging management module. The charging management module controls the protocol chip and the charging chip based on the integrated circuit bus to achieve charging control, avoiding the integration of the charging control scheme in the same chip, making charging control more convenient and with a lower technical threshold, thereby reducing the chip cost and the implementation cost of the charging control scheme. In addition, the charging control module supports both forward charging and reverse charging to meet the charging needs of a variety of different scenarios.

[0048] In some embodiments of the present application, reference Figure 2 The charging control module may also include a charging metering chip, and the charging metering chip may be, for example, a CW2017BAAD chip. The charging metering chip is connected to the battery and is used to detect the battery status information of the battery in real time, such as the current battery power and the current battery temperature. The charging management module is also connected to the charging metering chip through an integrated circuit bus. For example, the charging management module may read the battery status information from the charging metering chip through the integrated circuit bus. In this way, the charging management module may report the battery status information to the upper-layer application to output the battery status information. For example, the battery status information may be displayed on a display screen associated with the upper-layer application so that the user can understand the current status of the battery in a timely manner.

[0049] In a further embodiment, the charging management module can also be used to control the end of the charging process. Specifically, the charging management module can also be used to: based on the battery status information, detect whether the preset charging end condition is met. When the external device is a forward charging device, the charging end condition may include, for example, that the current battery power is 100% (the charging end condition may also include detecting that the external device is unplugged from the charging interface, etc.), and when the external device is a reverse charging device, the charging end condition may include, for example, that the current discharge voltage of the battery is less than the preset discharge voltage (the charging end condition may also include detecting that the external device is unplugged from the charging interface, etc.); if it is detected that the charging end condition is met, control the charging chip to stop the charging process. For example, the charging management module may write the preset stop charging parameter into the preset second register of the charging chip, so that the charging chip ends the battery-based charging process according to the stop charging parameter, thereby completing the control of the entire charging cycle. The stop charging parameter may include a current value, a voltage value, etc. with a value of zero, for ending the charging process.

[0050] In some embodiments of the present application, the protocol chip can also be used to determine a target charging mode adapted to an external device, such as a forward charging mode, a reverse charging mode, etc. Specifically, the protocol chip is connected to the charging interface through a channel configuration pin (Channel Configuration, CC) (for example, Figure 3In the example, the protocol chip is connected to the charging interface through the CC1 and CC2 pins. The protocol chip is also used to determine the target charging mode adapted to the external device according to the voltage on the channel configuration pin. Taking the charging interface as the type-C interface as an example, based on the specification of the type-C interface, when the type-C interface is connected to a forward charging device such as a charger, the voltage on its channel configuration pin (at least one of the CC1 and CC2 pins) will be pulled up to VBUS, and the target charging mode at this time is the forward charging mode. When the type-C interface is connected to a reverse charging device such as a mobile phone, the voltage on its channel configuration pin (at least one of the CC1 and CC2 pins) will be pulled down to GND (Ground), and the target charging mode at this time is the reverse charging mode.

[0051] In addition, the protocol chip can also detect the positive and negative insertion of the external device relative to the charging interface through the CC1 and CC2 pins (positive insertion upward, negative insertion facing upward). For example, in the forward charging mode, it can be determined whether the external device is inserted forward or reversely relative to the charging interface based on whether the channel configuration pin whose voltage is pulled up to VBUS is the CC1 pin or the CC2 pin. For another example, in the reverse charging mode, it can be determined whether the external device is inserted forward or reversely relative to the charging interface based on whether the channel configuration pin whose voltage is pulled down to GND is the CC1 pin or the CC2 pin.

[0052] In a further embodiment, the charging management module is also used to obtain the target charging mode through the integrated circuit bus connected to the protocol chip, for example, reading the target charging mode from the preset third register of the protocol chip, and then inputting the target charging mode into the charging chip through the integrated circuit bus connected to the charging chip (for example, writing the target charging mode into the preset fourth register of the charging chip). Accordingly, the charging chip is also used to read the target charging mode from the preset fourth register, and when the target charging mode is the forward charging mode, perform charging processing from the external device to the battery according to the target charging parameters (i.e., forward charging processing), and when the target charging mode is the reverse charging mode, perform charging processing from the battery to the external device according to the target charging parameters (i.e., reverse charging processing), thereby ensuring the accurate implementation of the forward charging function and the reverse charging function.

[0053] In some embodiments of the present application, the charging control module can also realize the data communication function while realizing the charging function, for example Figure 3 In the embodiment, the charging interface can be connected to an external device through the VBUS pin to realize the charging function, and the charging interface can also be connected to an external device through the Data pin to realize the data communication function with the external device. Figure 3The charging control module also includes a data line (data minus / dataplus, DM / DP, also known as D- / D+) switching chip, and the data line switching chip can be, for example, an SGM7227 chip. The data line switching chip is connected to the charging interface, the protocol chip, and the charging management module through different data lines. For example, Figure 3 In the data line switching chip, the data line switching chip can connect to the charging management module through DM / DP, connect to the charging interface through DM1 / DP1, and connect to the protocol chip through DM2 / DP2.

[0054] The data line switching chip is used to establish a first communication connection between the charging interface and the protocol chip by using the data line DM1 / DP1 between the data line switching chip and the charging interface and the data line DM2 / DP2 between the data line switching chip and the protocol chip when detecting that an external device is plugged into the charging interface. The protocol chip determines the target charging protocol information based on the first communication connection. For example, the protocol chip can perform data communication with an external device plugged into the charging interface based on the first communication connection, complete the charging protocol negotiation process between the protocol chip and the external device, and determine the target charging protocol information.

[0055] The data line switching chip is also used to establish a second communication connection between the charging interface and the charging management module by using the data line DM1 / DP1 between the data line switching chip and the charging interface and the data line DM / DP between the data line switching chip and the charging management module after determining the target charging protocol information. Data is transmitted between the external device and the charging management module based on the second communication connection. For example, when the external device is a reverse charging device such as a mobile phone, the mobile phone can communicate data with the charging management module based on the second communication connection, thereby transmitting user data in the mobile phone to the electronic device where the charging management module is located, or transmitting user data in the electronic device where the charging management module is located to the mobile phone.

[0056] In addition, Figure 3 The charging management module can also be connected to the data line switching chip via the first selection signal line (SEL1). The charging management module is also used to send a selection signal including a preset first identifier to the data line switching chip using the first selection signal line when detecting that an external device is inserted into the charging interface, so that the data line switching chip establishes a first communication connection between the charging interface and the protocol chip. and after acquiring the target charging protocol information, using the first selection signal line to send a selection signal including a preset second identifier to the data line switching chip, so that the data line switching chip establishes a second communication connection between the charging interface and the charging management module

[0057] It can be seen that the charging control module provided in the embodiment of the present application divides the data line DM1 / DP1 between the data line switching chip and the charging interface into two. When charging protocol negotiation is required, the charging interface is switched to the protocol chip using the data line switching chip. After the target charging protocol information is determined, the charging interface is switched to the charging management module using the data line switching chip, so as not to affect data communication while charging. This design of splitting into two realizes resource sharing of the data line DM1 / DP1 between the data line switching chip and the charging interface, thereby further reducing the cost of the charging control module.

[0058] In a further embodiment, referring to Figure 3 , the charging control module also includes a Universal Serial Bus (USB) chip, and the Universal Serial Bus chip can be, for example, an AW35710 chip. The charging management module is also connected to the charging interface through the Universal Serial Bus chip, so that data transmission between the external device and the charging management module is performed based on the Universal Serial Bus chip or the second communication connection. It should be noted that since the data line DM1 / DP1 between the data line switching chip and the charging interface belongs to the data line in USB2.0, the communication based on the USB2.0 specification can be realized through the second communication connection, but the communication based on the USB3.0, 3.1 and other specifications cannot be realized. Therefore, the embodiment of the present application also sets a Universal Serial Bus chip to realize the communication based on the USB3.0, 3.1 and other specifications. Taking USB3.0 as an example, the Universal Serial Bus chip can be connected to the charging interface through the two pairs of differential signal lines SS-TX / RX1 and SS-TX / RX2, so as to carry out the USB3.0 specification communication based on the two pairs of differential signal lines SS-TX / RX1 and SS-TX / RX2, thereby realizing higher-speed data communication.

[0059] In addition, Figure 3 In the embodiment, the charging management module can also be connected to the universal serial bus chip through the second selection signal line (SEL2). The charging management module is also used to send a selection signal including a preset third identifier to the universal serial bus chip using the second selection signal line when communication based on USB3.0, 3.1 and other specifications is required, so as to use the two pairs of differential signal lines SS-TX / RX1 and SS-TX / RX2 between the universal serial bus chip and the charging interface to achieve communication based on USB3.0, 3.1 and other specifications. When communication based on USB3.0, 3.1 and other specifications is not required, the selection signal including the preset third identifier is not sent to the universal serial bus chip.

[0060] In order to better implement the charging control module in the embodiment of the present application, based on the charging control module, a charging control method is also provided in the embodiment of the present application. The charging control method is applied to the charging management module in the charging control module. The charging management module is connected to the protocol chip and the charging chip respectively through the integrated circuit bus. Figure 4 As shown, the charging control method includes:

[0061] 401. Obtain target charging protocol information determined by the protocol chip through an integrated circuit bus connected to the protocol chip;

[0062] 402. Determine a target charging parameter of the charging chip according to the target charging protocol information;

[0063] 403. Input the target charging parameters into the charging chip through the integrated circuit bus connected to the charging chip, so that the charging chip performs charging processing according to the target charging parameters.

[0064] The charging control method provided in the embodiment of the present application adopts an independent protocol chip, a charging chip, and a charging management module. The charging management module controls the protocol chip and the charging chip based on an integrated circuit bus to achieve charging control, thereby avoiding integrating the charging control scheme into the same chip, thereby reducing the chip cost and the implementation cost of the charging control scheme.

[0065] In addition to the charging control module and charging control method described above, the embodiment of the present application also provides an electronic device that integrates any charging control module provided in the embodiment of the present application. The electronic device may be, for example, a MIFI (Mobile WIFI) device. The MIFI device is a portable broadband wireless device that integrates dialing, routing and access functions. Of course, the electronic device may also be other devices with a charging interface, which is not limited here. The electronic device includes:

[0066] one or more processors;

[0067] Memory; and

[0068] One or more applications, wherein the one or more applications are stored in the memory and configured to execute the steps in any embodiment of the charging control method by the processor.

[0069] The present application also provides an electronic device that integrates any charging control module provided in the present application. Figure 5 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0070] The electronic device may include components such as a processor 501 with one or more processing cores, a storage unit 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0071] The processor 501 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the storage unit 502 and calling data stored in the storage unit 502, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 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 501.

[0072] The storage unit 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 502. The storage unit 502 may mainly include a program storage area and a data storage area, wherein the program storage area may 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 may store data created according to the use of the electronic device, etc. In addition, the storage unit 502 may include a high-speed random access memory, and may 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. Accordingly, the storage unit 502 may also include a memory controller to provide the processor 501 with access to the storage unit 502.

[0073] The electronic device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0074] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0075] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically, in the embodiment of the present application, the processor 501 in the electronic device will load the executable file corresponding to the process of one or more application programs into the storage unit 502 according to the following instructions, and the processor 501 will run the application program stored in the storage unit 502, thereby realizing various functions, such as:

[0076] The target charging protocol information determined by the protocol chip is obtained through the integrated circuit bus connected to the protocol chip; the target charging parameters of the charging chip are determined according to the target charging protocol information; the target charging parameters are input into the charging chip through the integrated circuit bus connected to the charging chip, so that the charging chip performs charging processing according to the target charging parameters.

[0077] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. The storage medium stores multiple instructions, which can be loaded by a processor to execute the steps of any charging control method provided in the embodiment of the present application. For example, the instruction can execute the following steps:

[0078] The target charging protocol information determined by the protocol chip is obtained through the integrated circuit bus connected to the protocol chip; the target charging parameters of the charging chip are determined according to the target charging protocol information; the target charging parameters are input into the charging chip through the integrated circuit bus connected to the charging chip, so that the charging chip performs charging processing according to the target charging parameters.

[0079] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, so that the electronic device executes to implement any of the above charging control methods.

[0080] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0081] The above is a detailed introduction to a charging control module, method, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A charging control module, characterized in that: The charging control module includes a charging management module, a protocol chip and a charging chip. The charging management module is connected to the protocol chip and the charging chip respectively through an integrated circuit bus. The protocol chip is connected to the charging interface and is used to determine target charging protocol information adapted to the external device connected to the charging interface; The charging management module is used to obtain the target charging protocol information through the integrated circuit bus connected to the protocol chip, and to determine the target charging parameters of the charging chip according to the target charging protocol information, and input the target charging parameters to the charging chip through the integrated circuit bus connected to the charging chip; The charging chip is connected to the battery and is used to perform charging processing based on the battery according to the target charging parameters.

2. The charging control module according to claim 1, characterized in that: The charging control module also includes a charging metering chip, and the charging management module is also connected to the charging metering chip via an integrated circuit bus. The charging metering chip is connected to the battery and is used to detect battery status information of the battery; The charging management module is further used to obtain battery status information of the battery through an integrated circuit bus connected to the charging metering chip, so as to report the battery status information.

3. The charging control module according to claim 2, characterized in that: The charging management module is also used for: Based on the battery status information, detecting whether a preset charging end condition is met; If it is detected that the charging end condition is met, the charging chip is controlled to stop the charging process.

4. The charging control module according to claim 1, characterized in that: The protocol chip is also used to determine a target charging mode adapted to the external device; The charging management module is further configured to obtain the target charging mode through an integrated circuit bus connected to the protocol chip, and input the target charging mode to the charging chip through an integrated circuit bus connected to the charging chip; The charging chip is also used to perform charging processing from the external device to the battery according to the target charging parameters when the target charging mode is a forward charging mode, and to perform charging processing from the battery to the external device according to the target charging parameters when the target charging mode is a reverse charging mode.

5. The charging control module according to claim 4, characterized in that: The protocol chip is connected to the charging interface via a channel configuration pin, and the protocol chip is also used to determine a target charging mode adapted to the external device according to a voltage on the channel configuration pin.

6. The charging control module according to claim 1, characterized in that: The charging control module further includes a data line switching chip, which is respectively connected to the charging interface, the protocol chip and the charging management module through different data lines. The data line switching chip is used to establish a first communication connection between the charging interface and the protocol chip by using the data line between the data line switching chip and the charging interface and the protocol chip when detecting that the external device is inserted into the charging interface, so that the protocol chip can determine the target charging protocol information based on the first communication connection; The data line switching chip is also used to establish a second communication connection between the charging interface and the charging management module by using the data line between the data line switching chip and the charging interface and the charging management module after determining the target charging protocol information, so as to facilitate data transmission between the external device and the charging management module based on the second communication connection.

7. The charging control module according to claim 6, characterized in that: The charging control module also includes a universal serial bus chip, and the charging management module is also connected to the charging interface through the universal serial bus chip to facilitate data transmission between the external device and the charging management module based on the universal serial bus chip or the second communication connection.

8. A charging control method, characterized in that: The charging control method is applied to a charging management module in a charging control module, wherein the charging management module is connected to a protocol chip and a charging chip respectively through an integrated circuit bus. The charging control method includes: Acquiring target charging protocol information determined by the protocol chip through an integrated circuit bus connected to the protocol chip; Determining a target charging parameter of the charging chip according to the target charging protocol information; The target charging parameter is input into the charging chip through an integrated circuit bus connected to the charging chip, so that the charging chip performs charging processing according to the target charging parameter.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the charging control method of claim 8.

10. A computer-readable storage medium, characterized in that: A software program is stored thereon, and the software program is loaded by a processor to execute the steps in the charging control method according to claim 8.