Multi-charging chip charging method and device based on terminal chip, terminal chip, terminal

By setting multiple driver modules and external interfaces in the terminal chip, the adaptive adaptation between the charging driver and the charging chip is realized, and a variety of charging chip control problems in the prior art are solved, and software compatibility is improved.

CN115224774BActive Publication Date: 2025-04-22XIAMEN UNISOC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210985959.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-16
Publication Date
2025-04-22
Estimated Expiration
2042-08-16

AI Technical Summary

Technical Problem

There is a lack of charging methods for controlling a variety of charging chips in the prior art, and it is difficult to achieve adaptive adaptation between the charging driver and the charging chip, resulting in low software compatibility.

Method used

By setting up multiple driver modules in the terminal chip, each driver module loads the corresponding charging driver, and determines the identification of the charging chip through an external interface, adaptive adaptation between the charging driver and the charging chip is achieved.

Benefits of technology

The software compatibility is improved, and the appropriate charging chips can be adaptively selected among multiple charging chips, filling the gap in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115224774B_ABST
    Figure CN115224774B_ABST
Patent Text Reader

Abstract

A terminal chip-based multi-charging chip charging method and device, a terminal chip, and a terminal, wherein the terminal chip comprises: an external interface, which is respectively coupled to interfaces of multiple charging chips; multiple driving modules, which are respectively coupled to the external interface, wherein each driving module is used to load a respective charging driver program; wherein the charging driver program corresponds to the charging chip one by one. The present invention can realize adaptive adaptation between the charging driver program and the charging chip, improve software compatibility, and fill the gap in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a multi-charging chip charging method and device based on a terminal chip, a terminal chip, and a terminal. Background Art

[0002] In existing communication devices, the charging function is becoming more and more indispensable, and the terminal can be charged through a charging chip.

[0003] However, in the prior art, in order to stabilize the supply chain and improve charging compatibility, more than one charging chip may be selected, but multiple charging chips may be used as alternatives. When the default charging chip cannot be supplied for some reason, or the cost of the alternative charging chip is significantly lower than the default charging chip, it is necessary to select a charging chip with a more stable supply and lower cost.

[0004] In the prior art, there is no charging method for controlling multiple charging chips. There is an urgent need for a terminal chip and a multi-charging chip charging method based on the terminal chip, which can realize the adaptive adaptation of multiple charging chips using the same charging driver software to improve software compatibility. Summary of the invention

[0005] The technical problem solved by the present invention is to provide a multi-charging chip charging method and device based on a terminal chip, a terminal chip, and a terminal, which can realize adaptive adaptation between a charging driver program and a charging chip, improve software compatibility, and fill the gap in the prior art.

[0006] In a first aspect, a terminal chip is provided, comprising: an external interface, respectively coupled to interfaces of multiple charging chips; multiple driver modules, respectively coupled to the external interface, wherein each driver module is used to load its own charging driver program; wherein the charging driver programs correspond one-to-one to the charging chips.

[0007] Optionally, the charging chip is coupled to the external interface via a vbus interface, and different charging chips have their own vbus interfaces.

[0008] In a second aspect, a multi-charging chip charging method based on a terminal chip is provided, comprising: determining chip identifiers of multiple charging chips through the external interface; comparing the chip identifiers with preset identifiers to determine the charging chip; using the driving module to load a charging driver program of the determined charging chip; registering the determined charging chip; and using the loaded charging driver program and the determined charging chip to charge the terminal.

[0009] Optionally, the external interface has a preset interface name; and registering the determined charging chip includes: registering the external interface using the preset interface name.

[0010] Optionally, registering the determined charging chip further includes: for the driving module, registering with a driving name different from the preset interface name, and different driving names are different between different driving modules.

[0011] Optionally, before using the loaded charging driver and the determined charging chip to charge the terminal, the method also includes: before the first charging, traversing each charging chip to find a registered charging chip; recording the registered charging chip as the determined charging chip.

[0012] Optionally, when recording the registered charging chip, the driver module corresponding to the charging chip is also recorded; when the terminal is charged using the loaded charging driver program and the determined charging chip, the charging chip is controlled by the driver module.

[0013] Optionally, the charging chip identifier is a supplier ID of each charging chip.

[0014] Optionally, determining chip identifications of multiple charging chips through the external interface includes: reading a vendor device ID register of each charging chip through the external interface to determine the vendor ID of each charging chip.

[0015] Optionally, charging the terminal includes: charging through a vbus interface of a determined charging chip.

[0016] In a third aspect, a multi-charging chip charging device based on a terminal chip is provided, comprising: an identification determination module, used to determine the chip identification of multiple charging chips through the external interface; a comparison module, used to compare the chip identification with a preset identification to determine the charging chip; a loading module, used to use the driving module to load the charging driver program of the determined charging chip; a registration module, used to register the determined charging chip; and a charging module, used to use the loaded charging driver program and the determined charging chip to charge the terminal.

[0017] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the multi-charging chip charging method of the terminal chip are executed.

[0018] In a fifth aspect, a terminal is provided, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor executes the steps of the multi-charging chip charging method of the above-mentioned terminal chip when running the computer program.

[0019] In a sixth aspect, a terminal is provided, characterized in that it includes the above-mentioned terminal chip and multiple charging chips.

[0020] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:

[0021] In an embodiment of the present invention, by providing a plurality of driving modules respectively coupled to the external interface, and the charging driver loaded by each driving module corresponds one-to-one with the charging chip, a plurality of charging chips can be used as substitutes. When it is necessary to select an appropriate charging chip from a plurality of charging chips, after determining the charging chip, the driving module can be used to load the corresponding charging driver, thereby realizing adaptive adaptation between the charging driver and the charging chip, improving software compatibility, and filling the gap in the prior art.

[0022] Furthermore, the charging chip is coupled to the external interface via a vbus interface, and different charging chips have their own vbus interfaces, so that when constructing a device tree, a vbus node can be arranged under the charging chip node, thereby realizing the charging function based on the device tree.

[0023] Furthermore, in an embodiment of the present invention, the chip identifiers of multiple charging chips are determined through an external interface, and then the charging chip is determined, and the driving module is used to load the charging driver of the determined charging chip, and the determined charging chip is registered, and then the loaded charging driver and the determined charging chip can be used to charge the terminal. By adopting the above scheme, when multiple charging chips are used as replacements and it is necessary to select an appropriate charging chip from multiple charging chips, the charging chip can be determined through an external interface, the corresponding charging driver can be loaded using the driving module, and the determined charging chip can be registered, so as to realize adaptive adaptation between the charging driver and the charging chip, improve software compatibility, and fill the gap in the prior art.

[0024] Furthermore, the external interface has a preset interface name, for example, a conventional traditional interface name. For the external interface, the preset interface name is used for registration, and the existing interface name can be kept unchanged, thereby avoiding the impact caused by the change of the interface name when performing external information interaction. Furthermore, in the case where the charging chip is coupled to the external interface through the vbus interface, by retaining the original vbus interface naming, it is also possible to make it possible for each device using the vbus interface to not need to change the code, thereby improving the adaptability of the vbus interface.

[0025] Furthermore, the step of registering the determined charging chip may also include: for the driver module, registering with a driver name different from the preset interface name, and the driver names of different driver modules are different, so that when information is exchanged between the external interface and the driver module, errors caused by consistent driver names can be avoided, such as compilation errors.

[0026] Furthermore, before the first charging, each charging chip is traversed to find a registered charging chip; the registered charging chip is recorded as the determined charging chip, so that by recording the registered charging chip, there is no need to search for the charging chip in subsequent steps.

[0027] Furthermore, when recording the registered charging chip, the driver module corresponding to the charging chip is also recorded; when the terminal is charged using the loaded charging driver program and the determined charging chip, the charging chip is controlled by the driver module, and the driver module can be recorded without confirming the driver module in subsequent steps. Furthermore, in the case where the charging chip is coupled to the external interface via a vbus interface, the vbus interface can be determined based on the recorded driver module to improve the determination efficiency and accuracy.

[0028] Furthermore, by reading the vendor device ID register of each charging chip through the external interface to determine the vendor ID of each charging chip, the appropriate charging chip identification can be determined more accurately and simply.

[0029] Furthermore, in the case where the charging chip is coupled to the external interface via a vbus interface, charging can be performed via the determined vbus interface of the charging chip to achieve effective charging. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a structural schematic diagram of a terminal chip in the prior art;

[0031] Figure 2 is a schematic diagram of the structure of a terminal chip in an embodiment of the present invention;

[0032] Figure 3 It is a schematic diagram of the structure of a device tree based on a vbus interface in an embodiment of the present invention;

[0033] Figure 4 is a flow chart of a multi-charging chip charging method according to an embodiment of the present invention;

[0034] Figure 5 is a flow chart of another multi-charging chip charging method according to an embodiment of the present invention;

[0035] Figure 6 It is a structural schematic diagram of a multi-charging chip charging device in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In existing communication devices, the terminal can be charged through a charging chip.

[0037] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of a terminal chip in the prior art.

[0038] Specifically, the terminal chip 10 may include an external interface 101 , and the charging chip 11 may include an interface 111 . The external interface 101 may be coupled to the interface 111 .

[0039] Among them, the terminal chip 10 can be built-in or externally connected to the terminal, wherein the terminal can refer to various forms of user equipment, access terminals, user units, user stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, user terminals, terminal equipment, wireless communication equipment, user agents or user devices.

[0040] Specifically, the terminal chip 10 can exchange data with the charging interface 11 via the external interface 101 and the interface 111 , and use the charging driver program and the charging chip 11 to charge the terminal.

[0041] However, in the prior art, there are problems such as unstable supply chain and charging compatibility, and there is an increasing tendency to use a variety of charging chips as alternatives. When the default charging chip cannot be supplied for some reason, or the cost of the alternative charging chip is significantly lower than that of the default charging chip, it is necessary to select a charging chip with a more stable supply and lower cost.

[0042] After research, the inventor of the present invention found that in the prior art, if a single external interface is still used to couple with the interfaces of multiple charging chips respectively, it is difficult to distinguish each charging chip; if an external interface is added and multiple external interfaces are coupled with the interfaces of multiple charging chips in a one-to-one correspondence, it may be necessary to modify the communication protocol of the external interface, resulting in increased complexity.

[0043] In an embodiment of the present invention, by providing a plurality of driving modules respectively coupled to the external interface, and the charging driver loaded by each driving module corresponds one-to-one with the charging chip, a plurality of charging chips can be used as substitutes. When it is necessary to select an appropriate charging chip from a plurality of charging chips, after determining the charging chip, the driving module can be used to load the corresponding charging driver, thereby realizing adaptive adaptation between the charging driver and the charging chip, improving software compatibility, and filling the gap in the prior art.

[0044] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0045] Reference Figure 2 , Figure 2 It is a schematic diagram of the structure of a terminal chip in an embodiment of the present invention.

[0046] Specifically, multiple charging chips can be used, such as Figure 2 The first charging chip 21 , the second charging chip 22 to the Nth charging chip 23 are shown, wherein N is a positive integer, and N≥2.

[0047] The terminal chip 20 may include an external interface 201, the first charging chip 21 may include an interface 211, the second charging chip 22 may include an interface 221, and the Nth charging chip 23 may include an interface 231. The external interface 201 may be coupled to the interface 211, and interfaces 221 to 231 respectively.

[0048] The terminal chip 20 may be built-in or externally connected to the terminal, and the first charging chip 21, the second charging chip 22 to the Nth charging chip 23 may also be built-in or externally connected to the terminal. The terminal may refer to various forms of user equipment, access terminals, user units, user stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, user terminals, terminal equipment, wireless communication equipment, user agents or user devices.

[0049] The charging chip can be a device for realizing control and power conversion during the charging process, used to charge the battery of the terminal, and convert the power input by the charger and output it to the battery. It should be pointed out that the charging chip can have a variety of specifications, and the alternative charging chips usually need to meet the conditions of similar or close specifications, their external pins match each other (pin to pin), and the internal control and status register functions are close, so as to realize the use of alternative charging chips instead of default charging chips at the hardware level of the terminal.

[0050] The terminal chip 20 may further include a plurality of driving modules, such as the first driving module 2021 , the second driving module 2022 to the Nth driving module 2023 as shown in the figure.

[0051] Among them, multiple driving modules are respectively coupled to the external interface 201, wherein each driving module is used to load its own charging driver program, such as the first driving module 2021 shown in the figure is used to load the first charging driver program 2031, the second driving module 2022 is used to load the second charging driver program 2032, and the Nth driving module 2023 is used to load the Nth charging driver program 2033.

[0052] The charging driver corresponds one-to-one to the charging chip. For example, the first charging chip 21 and the first charging driver 2031 can be used to charge the terminal, the second charging chip 22 and the second charging driver 2032 can be used to charge the terminal, and the Nth charging chip 23 and the Nth charging driver 2033 can be used to charge the terminal.

[0053] It should be pointed out that although the figure uses three charging chips as an example for illustration, it does not mean that there is a special limitation on the number of charging chips.

[0054] In an embodiment of the present invention, by setting up multiple driving modules respectively coupled to the external interface 201, and the charging driver loaded by each driving module corresponds one-to-one to the charging chip, multiple charging chips can be used as substitutes. When it is necessary to select an appropriate charging chip from multiple charging chips, after determining the charging chip, the driving module can be used to load the corresponding charging driver program, thereby realizing adaptive adaptation between the charging driver program and the charging chip, improving software compatibility, and filling the gap in the prior art.

[0055] Furthermore, the charging chip can be coupled to the external interface via a vbus interface, and different charging chips can have their own vbus interfaces. The power line (vbus) is used to indicate the voltage output by the charger to the charging chip.

[0056] Combined with reference Figure 2 and Figure 3 , Figure 3 It is a structural diagram of a device tree (DeviceTree Source, DTS) based on a vbus interface in an embodiment of the present invention.

[0057] Specifically, DTS can contain multiple upper-level nodes, such as Figure 3 Node 1, node 2 to node N are shown, wherein node 1 corresponds to the first charging chip, node 2 corresponds to the second charging chip, and node N corresponds to the Nth charging chip.

[0058] In the embodiment of the present invention, a vbus node can be set at the next level of the charging chip node. Specifically, each upper layer node can have its own lower layer node, node 1 has a Vbus node 11, node 2 has a Vbus node 21, and node N has a Vbus node 31.

[0059] It should be noted that in the embodiment of the present invention, there is no limitation on the levels of nodes 1 to N in the DTS, for example, they may be root nodes or intermediate nodes.

[0060] Continue to refer to Figure 2 The first charging chip 21, the second charging chip 22 to the Nth charging chip 23 can be coupled to the external interface 201 through the vbus interface. The first charging chip 21 can have a vbus interface 211, the second charging chip 22 can have a vbus interface 221, and the Nth charging chip 23 can have a vbus interface 231.

[0061] In an embodiment of the present invention, the charging chip is coupled to the external interface via a vbus interface, and different charging chips have their own vbus interfaces, so that when constructing a device tree, a vbus node can be arranged under the charging chip node, thereby realizing the charging function based on the device tree.

[0062] Reference Figure 4 , Figure 4 4 is a flow chart of a multi-charging chip charging method in an embodiment of the present invention. The multi-charging chip charging method may include steps S41 to S45.

[0063] Step S41, determining chip identifiers of multiple charging chips through the external interface.

[0064] Among them, the chip identifiers of the multiple charging chips can be used to uniquely identify the charging chip.

[0065] Specifically, the charging chip can be mounted under the I2C bus and use the I2C communication interface. When communicating with the charging chip through I2C, if there is a feedback response from the charging chip, it can be determined that the charging chip can be read and written, and the chip identification of the charging chip can be determined at this time. It should be pointed out that in the opposite case, if there is a charging chip that does not feedback a response, it can be determined that the charging chip cannot be read and written, for example, if there is a situation where the charging chip is not actually mounted, then the subsequent steps can be discontinued.

[0066] Furthermore, the charging chip identifier may be a supplier ID of each charging chip.

[0067] It should be noted that the charging chip logo may also be other appropriate logos, for example, it may also be the brand information of the charging chip.

[0068] In the embodiment of the present invention, by setting the charging chip identifier to the supplier ID of each charging chip, the appropriate charging chip identifier can be accurately and simply determined.

[0069] Furthermore, the step of determining chip identifications of multiple charging chips through the external interface may include: reading a vendor device ID register of each charging chip through the external interface to determine the vendor ID of each charging chip.

[0070] In the embodiment of the present invention, the vendor device ID register of each charging chip is read through the external interface to determine the vendor ID of each charging chip, so that the appropriate charging chip identification can be determined more accurately and simply.

[0071] Step S42, comparing the chip identifier with a preset identifier to determine the charging chip.

[0072] In a specific implementation, the determined chip identifier can be compared with the preset identifier. If they are consistent, it is determined that the charging chip is not only actually mounted, but also pre-set as a charging chip to be used. It should be noted that in the opposite case, if the chip identifier does not match the preset identifier (for example, the supplier ID does not match), it can be determined that the charging chip is not pre-set as a charging chip to be used, for example, it can be a non-charging chip with the same device address, it can also be a chip of other devices, it can also be a replaced original charging chip, etc., and the subsequent steps can be discontinued at this time.

[0073] Step S43: using the driving module to load the charging driving program of the determined charging chip.

[0074] Specifically, since each driving module is used to load its own charging driving program, and the charging driving program corresponds to the charging chip one-to-one, the driving module corresponding to the charging chip can be determined, and the charging driving program is loaded using the driving module.

[0075] Step S44, registering the determined charging chip.

[0076] Specifically, the registration may be performed at a preset location, for example, the registration may be completed at an energy supply (power supply) driver framework, so that the charging strategy management may be performed based on the driver module and other appropriate modules.

[0077] More specifically, in charging strategy management, the charging status can be monitored and the real-time power can be updated, and the registered charging driver can be found in the power supply framework to control the charging chip.

[0078] Furthermore, the external interface may have a preset interface name; and the step of registering the determined charging chip may include: registering the external interface using the preset interface name.

[0079] In an embodiment of the present invention, the external interface has a preset interface name, such as a conventional traditional interface name. For the external interface, the preset interface name is used for registration, and the existing interface name can be kept unchanged, thereby avoiding the impact caused by the change of the interface name when performing external information interaction. Furthermore, in the case where the charging chip is coupled to the external interface through the vbus interface, by retaining the original vbus interface naming, it is also possible to make it possible for each device using the vbus interface to not need to change the code, thereby improving the adaptability of the vbus interface.

[0080] Furthermore, the step of registering the determined charging chip may also include: for the driving module, registering with a driving name different from the preset interface name, and different driving names are different between different driving modules.

[0081] In an embodiment of the present invention, the driver module is registered using a driver name different from the preset interface name, and different driver modules have different driver names, thereby avoiding errors caused by consistent driver names when information is exchanged between the external interface and the driver module, such as compilation errors.

[0082] It should be particularly pointed out that in the embodiment of the present invention, the execution order of step S43 and step S44 is not limited.

[0083] Step S45, using the loaded charging driver and the determined charging chip to charge the terminal.

[0084] Furthermore, the step of charging the terminal may include: charging through a determined vbus interface of a charging chip.

[0085] In the embodiment of the present invention, in the case where the charging chip is coupled to the external interface via a vbus interface, charging can be performed via the determined vbus interface of the charging chip to achieve effective charging.

[0086] It is understandable that, in a specific implementation, the method can be implemented in the form of a software program, and the software program runs in a processor integrated inside a chip or a chip module.

[0087] In an embodiment of the present invention, the chip identifiers of multiple charging chips are determined through an external interface, and then the charging chip is determined. The driving module is used to load the charging driver of the determined charging chip, and the determined charging chip is registered. Then, the loaded charging driver and the determined charging chip can be used to charge the terminal. By adopting the above scheme, when multiple charging chips are used as replacements and it is necessary to select an appropriate charging chip from multiple charging chips, the charging chip can be determined through an external interface, the corresponding charging driver can be loaded using the driving module, and the determined charging chip can be registered, so as to realize adaptive adaptation between the charging driver and the charging chip, improve software compatibility, and fill the gap in the prior art.

[0088] Furthermore, before the step of charging the terminal using the loaded charging driver and the determined charging chip, the method may also include: before the first charging, traversing each charging chip to find a registered charging chip; recording the registered charging chip as the determined charging chip.

[0089] In an embodiment of the present invention, before the first charging, each charging chip is traversed to find a registered charging chip; the registered charging chip is recorded as the determined charging chip, so that by recording the registered charging chip, there is no need to search for the charging chip in subsequent steps.

[0090] Furthermore, when recording the registered charging chip, the driving module corresponding to the charging chip can also be recorded; when the terminal is charged using the loaded charging driver program and the determined charging chip, the charging chip can be controlled by the driving module.

[0091] In an embodiment of the present invention, when recording the registered charging chip, the driver module corresponding to the charging chip is also recorded; when the terminal is charged using the loaded charging driver program and the determined charging chip, the charging chip is controlled by the driver module, and the driver module can be recorded without confirming the driver module in subsequent steps. Furthermore, in the case where the charging chip is coupled to the external interface through the vbus interface, the vbus interface can be determined based on the recorded driver module to improve the determination efficiency and accuracy.

[0092] Reference Figure 5 , Figure 51 is a flow chart of another multi-charging chip charging method according to an embodiment of the present invention. The another multi-charging chip charging method may include steps S501 to S510, and each step is described below.

[0093] In step S501, the supplier ID of each charging chip is read.

[0094] Specifically, you can try to execute the driver module of each charging chip and read the supplier ID of each charging chip through the external interface.

[0095] In step S502, it is determined whether the reading is successful. If the determination result is yes, the process continues to execute step S502, otherwise, the process continues to execute step S509.

[0096] In step S503, is it determined whether the supplier ID is consistent with the preset identifier? If the determination result is yes, then continue to execute steps S504 and S505, otherwise continue to execute step S509.

[0097] In step S504, the charging driver program of the determined charging chip is loaded.

[0098] In step S505, the determined charging chip is registered.

[0099] Specifically, the registration may be completed in a power supply driver framework.

[0100] In step S506, each charging chip is traversed to find a registered charging chip and a driving module corresponding to the charging chip.

[0101] As mentioned above and Figure 3 As described above, in an embodiment of the present application, a device tree structure is disclosed in which a vbus node is set at the next level of the charging chip node. In step S506, when searching for a registered charging chip, a charging chip that conforms to the above device tree structure can be preferentially selected.

[0102] In step S507, it is determined whether the registered charging chip and its driving module are found. If the determination result is yes, the process proceeds to step S508, otherwise, the process proceeds to step S510.

[0103] In step S508, the terminal is charged using the loaded charging driver program and the determined charging chip.

[0104] In step S509, the charging driver is no longer loaded.

[0105] In step S510 , the charging driving program is no longer executed.

[0106] As mentioned above, in the existing charging strategy management, the charging status can also be monitored and the real-time power can be updated. It can be understood that in step S510, the code related to charging status monitoring and power update may no longer be loaded.

[0107] For more information about the working principle, working method and beneficial effects of steps S501 to S510, please refer to the previous text and Figure 4 The relevant description will not be repeated here.

[0108] Reference Figure 6 , Figure 6 : is a schematic diagram of the structure of a multi-charging chip charging device in an embodiment of the present invention. The multi-charging chip charging device may include a functional module for executing the multi-charging chip charging method. For example, it includes:

[0109] The identification determination module 61 is used to determine the chip identifications of multiple charging chips through the external interface.

[0110] The comparison module 62 is used to compare the chip identifier with a preset identifier to determine the charging chip.

[0111] The loading module 63 is used to load the charging driver program of the determined charging chip using the driving module.

[0112] The registration module 64 is used to register the determined charging chip.

[0113] The charging module 65 is used to charge the terminal using the loaded charging driver program and the determined charging chip.

[0114] In a specific implementation, the above-mentioned device may correspond to a chip with a data processing function in a user device; or correspond to a chip module including a chip with a data processing function in a user device, or correspond to a user device.

[0115] For more information about the working principle, working method, beneficial effects, etc. of the multi-charging chip charging device in the embodiment of the present application, please refer to the above description of the multi-charging chip charging method, which will not be repeated here.

[0116] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor, the multi-charging chip charging method of the terminal chip is executed. The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. The computer-readable storage medium may also include a non-volatile memory or a non-transitory memory, etc.

[0117] Specifically, in the embodiment of the present invention, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0118] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0119] An embodiment of the present invention further provides a terminal, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor runs the computer program, the steps of the multi-charging chip charging method of the terminal chip are executed.

[0120] The terminal in the embodiment of the present invention may include the terminal chip and multiple charging chips described above, and the terminal includes but is not limited to mobile phones, computers, tablet computers, servers, cloud platforms and other terminal devices.

[0121] Specifically, the terminal in the embodiments of the present application may refer to various forms of user equipment (UE), access terminal, user unit, user station, mobile station, mobile station (MS), remote station, remote terminal, mobile device, user terminal, terminal equipment, wireless communication equipment, user agent or user device. The terminal equipment may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved Public Land Mobile Network (PLMN), etc., and the embodiments of the present application are not limited to this.

[0122] Regarding the various modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, or hardware modules / units, or they can be partially software modules / units and partially hardware modules / units. For example, for various devices and products applied to or integrated in a chip, the various modules / units included therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / units can be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in a chip module, the various modules / units included therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units can be implemented in the form of hardware such as circuits. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.

[0123] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.

[0124] The "plurality" appearing in the embodiments of the present application refers to two or more.

[0125] The first, second, etc. descriptions appearing in the embodiments of the present application are only used for illustration and distinction of the description objects. There is no order, nor do they indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.

[0126] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.

Claims

1. A method for charging multiple charging chips of a terminal chip, characterized in that: The terminal chip includes an external interface, which is respectively coupled to interfaces of multiple charging chips; multiple driving modules are respectively coupled to the external interface, wherein each driving module is used to load a respective charging driver program; wherein the charging driver program corresponds to the charging chip one by one; the method includes: Determining chip identifiers of multiple charging chips through the external interface; Comparing the chip identification with a preset identification to determine the charging chip; The driving module is used to load a charging driver program of a determined charging chip; Registering the determined charging chip; Using the loaded charging driver and the determined charging chip to charge the terminal; Before the first charging, traverse each charging chip to find a registered charging chip; record the registered charging chip as the determined charging chip; when recording the registered charging chip, record the driver module corresponding to the charging chip; when charging the terminal using the loaded charging driver program and the determined charging chip, control the charging chip through the driver module corresponding to the determined charging chip; the charging chip is coupled to the external interface through a vbus interface, and the vbus interface corresponding to the determined charging chip is determined based on the driver module corresponding to the determined charging chip.

2. The method according to claim 1, characterized in that The external interface has a preset interface name; Registering the determined charging chip includes: For the external interface, the preset interface name is used for registration.

3. The method according to claim 2, characterized in that Registering the determined charging chip further includes: The driver module is registered with a driver name different from the preset interface name, and different driver names are different between different driver modules.

4. The method according to claim 1, characterized in that: The charging chip identifier is the supplier ID of each charging chip.

5. The method according to claim 4, characterized in that Determining chip identifiers of multiple charging chips through the external interface includes: The supplier device ID register of each charging chip is read through the external interface to determine the supplier ID of each charging chip.

6. The method according to claim 1, characterized in that The charging of the terminal comprises: Charging is performed through the vbus interface of the determined charging chip.

7. A multi-charging chip charging device for a terminal chip, characterized in that: The terminal chip includes an external interface, which is respectively coupled to the interfaces of multiple charging chips; multiple driving modules are respectively coupled to the external interface, wherein each driving module is used to load a respective charging driver program; wherein the charging driver program corresponds to the charging chip one by one; the device includes: An identification determination module, used to determine chip identifications of multiple charging chips through the external interface; A comparison module, used to compare the chip identifier with a preset identifier to determine the charging chip; A loading module, used to load a charging driver program of a determined charging chip using the driving module; A registration module, used to register the determined charging chip; A charging module, used to charge a terminal using a loaded charging driver program and a determined charging chip; and, before the first charging, traverse each charging chip to find a registered charging chip; record the registered charging chip as the determined charging chip; when recording the registered charging chip, record the driver module corresponding to the charging chip; when charging the terminal using the loaded charging driver program and the determined charging chip, control the charging chip through the driver module corresponding to the determined charging chip; the charging chip is coupled to the external interface through a vbus interface, and the vbus interface corresponding to the determined charging chip is determined based on the driver module corresponding to the determined charging chip.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the multi-charging chip charging method of a terminal chip according to any one of claims 1 to 6 are executed.

9. A terminal comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor runs the computer program, the steps of the multi-charging chip charging method of the terminal chip according to any one of claims 1 to 6 are executed.

Citation Information

Patent Citations

  • Method and system for automatically identifying HDMI (High Definition Multimedia Interface) chip of set top box

    CN103618948A

  • Method and system for realizing compatibility of several kinds of rapid charging protocols, and terminal

    CN106130124A

  • Semiconductor memory device

    KR1020090114958A