CN112398202A - Configuration method and device of chip power supply power, electronic equipment and storage medium - Google Patents
- ️Tue Feb 23 2021
Disclosure of Invention
The invention provides a configuration method and device of chip power supply power, electronic equipment and a storage medium, and aims to achieve the effects of simple structure and supporting multiple adapters.
In a first aspect, an embodiment of the present invention provides a method for configuring chip power supplies, including:
establishing connection with an external power supply through a USB interface;
detecting pin configuration of the chip and determining configuration voltage according to the pin configuration;
matching a proper communication protocol according to the configuration voltage and controlling the external power supply to establish connection with the chip;
and controlling the external power supply to output a first voltage to the chip according to the communication protocol.
Optionally, the detecting the pin configuration of the chip and determining the configuration voltage according to the pin configuration includes:
and sequentially testing the pin configuration of the chip according to a preset rule, and determining the maximum output voltage supported by the external power supply as the configuration voltage.
Optionally, the preset rule includes: and sequentially determining the maximum output voltage of the external power supply.
Optionally, the matching a suitable communication protocol according to the configuration voltage and controlling the external power supply to establish a connection with the chip includes:
sequentially detecting whether the external power supply supports or not through the detection sequence of the USB PD protocol, the QC protocol and the AFC protocol;
and preferentially selecting a protocol supported in the USB PD protocol, the QC protocol and the AFC protocol to control the external power supply to be connected with the chip.
Optionally, the detecting whether the external power supply supports the USB PD protocol includes:
controlling the external power supply to output a second voltage and detecting whether a first pin of the chip is pulled up;
if the first pin of the chip is pulled up, detecting whether a power supply capacity data packet is received;
if the power supply capacity data packet is received, sending a request data packet according to the configuration voltage;
and if an agreement control packet returned by the request data packet is received, and then a PS _ RDY control packet is received, the external power supply and the chip USB PD protocol are communicated.
Optionally, the detecting whether the external power supply supports the QC protocol includes:
controlling a D + pin of the USB to output a third voltage;
detecting a first time when the voltage of the D-pin of the USB interface is greater than a fourth voltage and a second time when the voltage of the D-pin of the USB interface is lower than the fourth voltage;
and if the first time and the second time are both within a preset range, the communication between the external power supply and the chip QC protocol is finished.
Optionally, the detecting whether the external power supply supports the AFC protocol includes:
controlling the chip to send high pulse information to the external power supply;
and if the same high pulse information is detected to be fed back for multiple times, the communication between the external power supply and the chip AFC protocol is finished.
In a second aspect, an embodiment of the present invention further provides a device for configuring power of a chip power supply, where the device includes:
the connection module is used for establishing connection with an external power supply through a USB interface;
the detection module is used for detecting the pin configuration of the chip and determining the configuration voltage according to the pin configuration;
the handshake module is used for matching a proper communication protocol according to the configuration voltage and controlling the external power supply to be connected with the chip;
and the charging module is used for controlling the external power supply to output a first voltage to the chip according to the communication protocol.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of configuration of chip power supply power as described in any above.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, the computer program including program instructions, when executed by a processor, implement the configuration method of the chip power supply power as described in any one of the above.
The embodiment of the invention discloses a configuration method and a configuration device of chip power supply power, electronic equipment and a storage medium, wherein the method comprises the following steps: establishing connection with an external power supply through a USB interface; detecting pin configuration of the chip and determining configuration voltage according to the pin configuration; matching a proper communication protocol according to the configuration voltage and controlling the external power supply to establish connection with the chip; and controlling the external power supply to output a first voltage to the chip according to the communication protocol. According to the configuration method of the chip power supply power provided by the embodiment of the invention, the fast charging protocol and the output power supported by the external power supply are automatically detected by configuring the plurality of external pins of the chip under different conditions, so that the problem that the adapter is limited due to interface limitation and different powers in the prior art is solved, and the effects of simple structure and support of various adapters are realized.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first voltage may be referred to as a second voltage, and similarly, the second voltage may be referred to as the first voltage, without departing from the scope of the present application. The first voltage and the second voltage are both voltages, but they are not the same voltage. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart illustrating a method for configuring a chip power supply according to an embodiment of the present invention, where the method for configuring a chip power supply according to the embodiment is applicable to a case where an external power supply is connected to a communication chip for power supply, and the method may be executed by a charging device, and specifically, the method for configuring a chip power supply according to the embodiment includes the following steps:
and step 100, establishing connection with an external power supply through a USB interface.
In this embodiment, the communication chip is connected to an external power source through a USB interface, specifically, the USB interface is a Type-C interface, and after the chip is powered on, the communication chip is connected to the external power source through the Type-C interface, and in an alternative embodiment, the communication chip may also be connected to a power adapter. Referring to fig. 2, fig. 2 is a schematic structural diagram of a chip in the present embodiment. In this embodiment, NC means pin floating, pull down means pull down 10K resistor to ground, maximum voltage means priority request maximum voltage, if the adapter does not support this voltage, then request next maximum voltage until request to supported voltage. The Vcon0, Vcon1, and Vcon2 correspond to
pins2, 3, and 4 of the LDR6321, respectively, and are used to configure different output voltages. 3 external pins of the chip are connected with any 1 resistor connected with the 10K resistance, other pins are suspended, or 3 pins are suspended, so that 4 states exist for configuring power supply strategies and requesting different powers according to different chips. For example, the pin configuration can be used for requesting 5V, 9V, 12V, 15V and 20V common voltages, and the current requests the maximum value of an external chip
110, detecting the pin configuration of the chip and determining the configuration voltage according to the pin configuration.
In the embodiment, adapters with different output voltage values are corresponded by different combination forms of Vcon0, Vcon1 and
Vcon2. For example, the pin of Vcon2 is connected to a pull-down resistor of 10K, and the pins of Vcon1 and Vcon0 are floating, so that the configuration output voltage is 20V at most. If the inserted adapter supports voltages of 5V, 9V, 12V, 15V and 20V, 20V will be output. If the inserted adapter supports 5V, 9V, 12V, 15V will be output. If the inserted adapter supports 5V, 9V and 12V voltages, 12V is output. If the inserted adapter supports 5V, 9V voltage, 9V will be output. Maximum voltage for other configurations and so on.
And step 120, matching a proper communication protocol according to the configuration voltage and controlling the external power supply to be connected with the chip.
In this embodiment, the communication protocol includes a USB PD protocol, a QC protocol, an AFC protocol, and the like, wherein the application of the USB PD fast charge and the QC fast charge is the most widely, and gradually becomes the standard configuration of the external chip. The USB PD protocol specifies that external chips can be set to support voltages of 5V, 9V, 15V and 20V, and in practice, a voltage of 12V is also typical. The maximum power can reach 100W. The maximum current is typically 3A, and a 5A on-load current is possible when encountering a cable supporting a cell label. The QC protocol is a short term (Qualcomm Quick Charge) protocol, a Quick Charge protocol introduced by the general companies, and generally has various charging forms such as 5V, 9V, 15V, 20V, pulse Charge, and the like. The AFC protocol is a fast charging protocol introduced by Samsung corporation and is adjusted on the basis of the QC protocol. In this embodiment, specifically, detecting the pin configuration of the chip and determining the configuration voltage according to the pin configuration includes: and sequentially testing the pin configuration of the chip according to a preset rule, and determining the maximum output voltage supported by the external power supply as the configuration voltage. The preset rules include: and sequentially determining the maximum output voltage of the external power supply. Specifically, the chip automatically requests the maximum power supported by the adapter and automatically matches the fast charging protocol according to the principle that the power is from high to low, and illustratively, when the unsupported power is encountered, the chip automatically requests the power of the next stage. For example, the external chip only supports 5V, 9V, 12V, if the pin configuration request 15V is not supported, the closest 15V is automatically selected, and 12V is selected.
And step 130, controlling the external power supply to output a first voltage to the chip according to the communication protocol.
In this embodiment, after the communication protocol is determined, the adapter is controlled to output the first voltage according to the matched output voltage, for example, if the inserted adapter supports voltages of 5V, 9V, 12V, 15V and 20V, 20V is output. If the inserted adapter supports 5V, 9V, 12V, 15V will be output. If the inserted adapter supports 5V, 9V and 12V voltages, 12V is output. If the inserted adapter supports 5V, 9V voltage, 9V will be output. Maximum voltage for other configurations and so on.
The embodiment discloses a configuration method of chip power supply power, which comprises the following steps: establishing connection with an external power supply through a USB interface; detecting pin configuration of the chip and determining configuration voltage according to the pin configuration; matching a proper communication protocol according to the configuration voltage and controlling the external power supply to establish connection with the chip; and controlling the external power supply to output a first voltage to the chip according to the communication protocol. According to the configuration method of the chip power supply power provided by the embodiment of the invention, the fast charging protocol and the output power supported by the external power supply are automatically detected by configuring the plurality of external pins of the chip under different conditions, so that the problem that the adapter is limited due to interface limitation and different powers in the prior art is solved, and the effects of simple structure and support of various adapters are realized.
Example two
Fig. 3 is a schematic flow chart of a configuration method of chip power supply power according to a second embodiment of the present invention, and this embodiment is an expanded description on the basis of the first embodiment, and specifically includes the following steps:
and step 200, establishing connection with an external power supply through a USB interface.
210, detecting a pin configuration of the chip and determining a configuration voltage according to the pin configuration.
And step 220, sequentially detecting whether the external power supply supports or not through the detection sequence of the USB PD protocol, the QC protocol and the AFC protocol.
And step 230, preferentially selecting a protocol supported in the USB PD protocol, the QC protocol and the AFC protocol to control the external power supply to be connected with the chip.
In this embodiment, the external power supply is sequentially detected according to the sequence of the USB PD protocol, the QC protocol, and the AFC protocol, the priority of the fast charging protocol is USB PD > QC > AFC, whether the fast charging protocol is met is determined, the chip detects that the voltage is present at the CC1 pin or the CC2 pin through the USB Type-C interface pin, and when the voltage is within the threshold range, it is determined that the external power supply is inserted. Similarly, the external power supply detects that the voltage at pin CC1 or CC2 is pulled low, and when the voltage is within the threshold range, it is determined that there is a chip connected, and a voltage of 5V is output.
Specifically, referring to fig. 4, in this embodiment, the detecting whether the external power supply supports the USB PD protocol includes:
and 231, controlling the external power supply to output a second voltage and detecting whether the first pin of the chip is pulled up.
232, detecting whether a power capability data packet is received if the first pin of the chip is pulled up.
233, if the resource packet is received, sending a request data packet according to the configuration voltage.
And step 234, if an agreement control packet returned by the request data packet is received, and then a PS _ RDY control packet is received, the external power supply is successfully connected with the chip USB PD protocol.
In this embodiment, after detecting that an external chip is inserted, the chip starts timing, if the Source _ capabilities information is received within a specified time of 310ms to 620ms (this time may be correspondingly extended or shortened according to actual applications), the power information of the external chip is extracted, and then, in combination with the voltage and current corresponding to the configuration Request of the resistor, it is necessary to send a Request packet within a time range of 24 to 30ms (if the external chip does not receive the Request packet, the Source _ capabilities packet is sent every 100ms to 200ms, and the sending is stopped after 50 times), wait for 15ms, if the external chip receives the Accept the power Request, continue to wait for 450ms to 550ms, the external chip outputs the requested power, and sends PS _ RDY information, which indicates that the power Request of the chip has been satisfied. If the Reject information is received, a reset message needs to be sent and 5V is requested. After the Request packet is sent, if there is no reply of Accept or Reject, or there is the reply but no PS _ RDY information is received, the reset information is sent, and 5V is requested. And controlling the D + pin and the D-pin to be in a suspended state.
Referring to fig. 5, in the present embodiment, the detecting whether the external power source supports the QC protocol includes:
and 235, controlling the D + pin of the USB to output a third voltage.
236, detecting a first time when the voltage of the D-pin of the USB interface is greater than the fourth voltage and a second time when the voltage of the D-pin of the USB interface is lower than the fourth voltage.
And 237, if the first time and the second time are both within a preset range, completing the communication between the external power supply and the chip QC protocol.
In this embodiment, after detecting that an external power is plugged in, the chip starts timing, if no Source _ capabilities information is received within a specified time of 310ms-620ms (which may be correspondingly extended or shortened according to an actual application), the D + is controlled to output a voltage of 0.6V, the voltage of D-is detected to perform handshaking, and if the voltage of D-is detected to be greater than 0.2V, lasts for 1S-1.5S, and then is less than 0.2V, and lasts for more than 1ms, it is determined that the handshaking is successful. The chip is configured with the voltages of D + and D-, and the external chip has the output corresponding to the voltages. D + outputs 3.3V, D-outputs 0.6V, and the external chip outputs 9V. D + and D-both output 0.6V, and the external chip will output 12V. D + and D-both output 3.3V, and the external chip will output 20V. The voltage of VBUS is detected to be matched with the requested voltage, indicating that the QC request is successful.
Referring to fig. 6, in the present embodiment, the detecting whether the external power source supports the QC protocol includes:
and step 238, controlling the chip to send high pulse information to the external power supply.
And 239, finishing communication between the external power supply and the chip AFC protocol if the same high pulse information is detected to be fed back for multiple times.
In this embodiment, the handshake process is the same as QC, and in the QC mode, if the detected actual output after voltage configuration does not match the requested value, the output is left at 5V, which indicates that the external chip does not support QC, and the AFC protocol detection is performed. Sending a high pulse of 2.56ms, namely PING information, if receiving the same PING reply of an external chip, the chip sends the requested voltage and current, if the external chip supports the PING reply, the chip replies the requested voltage and current, and the external chip provides the requested power after repeating the process for 3 times; if the voltage and the current requested by the chip are not supported, the supported power information is enumerated in the replied information, the chip reads the power information, the power supported by the chip is requested according to the self requirement, at the moment, the external chip replies the voltage and the current requested by the chip, and the external chip provides the requested power after repeating the process for 3 times. If the AFC communication process does not respond, the AFC protocol is not supported, and the external chip stays at the 5V output.
And step 240, controlling the external power supply to output a first voltage to the chip according to the communication protocol.
The embodiment discloses a configuration method of chip power supply power, which comprises the following steps: establishing connection with an external power supply through a USB interface; detecting pin configuration of the chip and determining configuration voltage according to the pin configuration; sequentially detecting whether the external power supply supports or not through the detection sequence of the USB PD protocol, the QC protocol and the AFC protocol; preferentially selecting a protocol supported in the USB PD protocol, the QC protocol and the AFC protocol to control the external power supply to be connected with the chip; and controlling the external power supply to output a first voltage to the chip according to the communication protocol. According to the configuration method of the chip power supply power provided by the embodiment of the invention, the fast charging protocol and the output power supported by the external power supply are automatically detected by configuring the plurality of external pins of the chip under different conditions, so that the problem that the adapter is limited due to interface limitation and different powers in the prior art is solved, and the effects of simple structure and support of various adapters are realized.
EXAMPLE III
The configuration device of the chip power supply power provided by the embodiment of the invention can implement the configuration method of the chip power supply power provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Fig. 7 is a schematic structural diagram of an
apparatus300 for configuring chip power supplies according to an embodiment of the present invention. Referring to fig. 7, a
configuration apparatus300 for chip power supply power provided in the embodiment of the present invention may specifically include:
a
connection module310, configured to establish a connection with an external power source through a USB interface;
a
detection module320, configured to detect a pin configuration of the chip and determine a configuration voltage according to the pin configuration;
the
handshake module330 is configured to match a suitable communication protocol according to the configuration voltage and control the external power supply to establish connection with the chip;
the
charging module340 is configured to control the external power supply to output a first voltage to the chip according to the communication protocol.
Further, the detecting the pin configuration of the chip and determining the configuration voltage according to the pin configuration includes:
and sequentially testing the pin configuration of the chip according to a preset rule, and determining the maximum output voltage supported by the external power supply as the configuration voltage.
Further, the preset rule includes: and sequentially determining the maximum output voltage of the external power supply.
Further, the matching a suitable communication protocol according to the configuration voltage and controlling the external power supply to establish a connection with the chip includes:
sequentially detecting whether the external power supply supports or not through the detection sequence of the USB PD protocol, the QC protocol and the AFC protocol;
and preferentially selecting a protocol supported in the USB PD protocol, the QC protocol and the AFC protocol to control the external power supply to be connected with the chip.
Further, detecting whether the external power source supports the USB PD protocol includes:
controlling the external power supply to output a second voltage and detecting whether a first pin of the chip is pulled up;
if the first pin of the chip is pulled up, detecting whether a power supply capacity data packet is received;
if the resource packet is received, sending a request data packet according to the configuration voltage;
and if an agreement control packet returned by the request data packet is received, and then a PS _ RDY control packet is received, the external power supply is successfully connected with the chip USB PD protocol.
Further, detecting whether the external power supply supports the QC protocol may include:
controlling a D + pin of the USB to output a third voltage;
detecting a first time when the voltage of the D-pin of the USB interface is greater than a fourth voltage and a second time when the voltage of the D-pin of the USB interface is lower than the fourth voltage;
and if the first time and the second time are both within a preset range, the communication between the external power supply and the chip QC protocol is finished.
Further, detecting whether the external power supply supports the AFC protocol comprises:
controlling the chip to send high pulse information to the external power supply;
and if the same high pulse information is detected to be fed back for multiple times, the communication between the external power supply and the chip AFC protocol is finished.
The embodiment discloses a configuration device of chip power supply power, which comprises: the connection module is used for establishing connection with an external power supply through a USB interface; the detection module is used for detecting the pin configuration of the chip and determining the configuration voltage according to the pin configuration; the handshake module is used for matching a proper communication protocol according to the configuration voltage and controlling the external power supply to be connected with the chip; and the charging module is used for controlling the external power supply to output a first voltage to the chip according to the communication protocol. According to the configuration method of the chip power supply power provided by the embodiment of the invention, the fast charging protocol and the output power supported by the external power supply are automatically detected by configuring the plurality of external pins of the chip under different conditions, so that the problem that the adapter is limited due to interface limitation and different powers in the prior art is solved, and the effects of simple structure and support of various adapters are realized.
Example four
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 8, the electronic device includes a
memory410 and a
processor420, the number of the
processors420 in the device may be one or more, and one
processor420 is taken as an example in fig. 8; the
memory410 and the
processor420 in the server may be connected by a bus or other means, and fig. 7 illustrates the connection by the bus as an example.
The
memory410 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the configuration method of the chip power supply in the embodiment of the present invention (for example, the
interface connection module310, the
detection module320, the
handshake module330, and the
charging module340 in the
configuration apparatus300 of the chip power supply), and the
processor420 executes various functional applications and data processing of the server/terminal/server by running the software programs, instructions, and modules stored in the
memory410, that is, implementing the configuration method of the chip power supply described above.
Wherein the
processor420 is configured to run the computer program stored in the
memory410, and implement the following steps:
establishing connection with an external power supply through a USB interface;
detecting pin configuration of the chip and determining configuration voltage according to the pin configuration;
matching a proper communication protocol according to the configuration voltage and controlling the external power supply to establish connection with the chip;
and controlling the external power supply to output a first voltage to the chip according to the communication protocol.
In one embodiment, the computer program of the electronic device provided in the embodiment of the present invention is not limited to the above method operations, and may also perform related operations in the method for configuring chip power supply power provided in any embodiment of the present invention.
The
memory410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the
memory410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the
memory410 may further include memory located remotely from the
processor420, which may be connected to a server/terminal/server through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment discloses an electronic device for configuring chip power supply power, which is used for executing the following method: establishing connection with an external power supply through a USB interface; detecting pin configuration of the chip and determining configuration voltage according to the pin configuration; matching a proper communication protocol according to the configuration voltage and controlling the external power supply to establish connection with the chip; and controlling the external power supply to output a first voltage to the chip according to the communication protocol. According to the configuration method of the chip power supply power provided by the embodiment of the invention, the fast charging protocol and the output power supported by the external power supply are automatically detected by configuring the plurality of external pins of the chip under different conditions, so that the problem that the adapter is limited due to interface limitation and different powers in the prior art is solved, and the effects of simple structure and support of various adapters are realized.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for configuring power of a chip power supply, where the method includes:
establishing connection with an external power supply through a USB interface;
detecting pin configuration of the chip and determining configuration voltage according to the pin configuration;
matching a proper communication protocol according to the configuration voltage and controlling the external power supply to establish connection with the chip;
and controlling the external power supply to output a first voltage to the chip according to the communication protocol.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in a method for configuring chip power supply power provided by any embodiment of the present invention.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiment discloses a configuration storage medium of chip power supply power, which is used for executing the following method: establishing connection with an external power supply through a USB interface; detecting pin configuration of the chip and determining configuration voltage according to the pin configuration; matching a proper communication protocol according to the configuration voltage and controlling the external power supply to establish connection with the chip; and controlling the external power supply to output a first voltage to the chip according to the communication protocol. According to the configuration method of the chip power supply power provided by the embodiment of the invention, the fast charging protocol and the output power supported by the external power supply are automatically detected by configuring the plurality of external pins of the chip under different conditions, so that the problem that the adapter is limited due to interface limitation and different powers in the prior art is solved, and the effects of simple structure and support of various adapters are realized.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.