Charging control circuit, terminal, charging method, charging controller and storage medium
The charging control circuit facilitates simultaneous data transmission and charging by using a single terminal for charging protocol identification, addressing the issue of channel occupancy in existing technologies.
Patent Information
- Application Number
- CN202310640446.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
Existing charging technologies require two terminals for identification communication, which can occupy the data transmission channel, preventing simultaneous data transmission during charging.
A charging control circuit with a controller and signal generator that uses a single terminal for half-duplex communication, allowing identification of multiple charging protocols without interfering with data transmission.
Enables simultaneous data transmission and charging by establishing a single-line communication channel for charging protocol authentication, supporting multiple charging protocols without occupying the data transmission channel.
Smart Images

Figure CN119070414A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic products, and in particular to a charging control circuit, a terminal, a charging method, a charging control device and a storage medium. Background Art
[0002] With the continuous development of mobile terminals, the functions of mobile terminals are becoming more and more powerful. Users generally use mobile terminals for office and entertainment, which has become an inseparable part of life. Therefore, the battery life of mobile terminals is becoming more and more the focus of users.
[0003] Since the improvement cycle of terminal power storage capacity is long, increasing charging power is an important consideration for solving the endurance of mobile terminals. With the popularization of high-power chargers, wired charging communications are becoming more and more widespread. Therefore, how to use charging protocols and equipment with lower costs, more reliable and efficient communications is the current technology to be broken through. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a charging control circuit, a terminal, a charging method, a charging control device and a storage medium which can realize the recognition of multiple charging protocols through a single line.
[0005] According to a first aspect of an embodiment of the present disclosure, a charging control circuit is provided, comprising a port, a signal generator, a controller and a charging module: the port has a plurality of terminals; the signal generator is connected to the terminals of the port; the controller signal is connected to the signal generator, the controller is connected to the preset terminal, the controller obtains at least one set of handshake signals input through the preset terminal, each of the handshake signals represents a charging protocol, and the controller generates a corresponding identification signal in response to the handshake signal, the identification signal is feedback corresponding to the charging protocol adapted by the power receiving device, and the controller controls the signal generator to output the identification signal through the preset terminal.
[0006] Furthermore, the preset terminal includes two terminals, and the controller closes the connection between the other terminal and the signal generator according to a signal indicating successful connection of one of the terminals.
[0007] Furthermore, the controller includes a memory, a processor, a communication interface and a logic circuit; the memory stores identification signal data corresponding to at least one charging protocol, the processor is connected to the memory, the communication interface and the logic circuit, and the communication interface is used to receive and output signals.
[0008] Furthermore, the port includes a first terminal and a second terminal, the first terminal is connected to a first pull-down resistor, and the second terminal is connected to a second pull-down resistor.
[0009] Further, the first terminal is a CC1 terminal, and the second terminal is a CC2 terminal.
[0010] Furthermore, the controller closes the connection between the other terminal and the corresponding pull-down resistor and the signal generator according to the level signal of one of the terminals.
[0011] Furthermore, the signal generator is connected to the first terminal via a first switch tube, the signal generator is connected to the second terminal via a third switch tube, and control ends of the first switch tube and the third switch tube are connected to a controller.
[0012] Furthermore, the first pull-down resistor is connected to the first terminal via a second switch tube, the second pull-down resistor is connected to the second terminal via a fourth switch tube, and control ends of the second switch tube and the fourth switch tube are connected to a controller.
[0013] Furthermore, the identification signal output by the signal generator to the preset terminal includes:
[0014] The signal generator is continuously connected to the preset terminal;
[0015] The signal generator connects the preset terminal for a preset number of times at a preset time interval; or
[0016] The signal generator outputs a data packet conforming to a preset communication protocol to the preset terminal.
[0017] Furthermore, the signal generator is a serial communication asynchronous signal generator.
[0018] Another aspect of the present disclosure may also be considered to provide a terminal device, which includes the charging control circuit described above.
[0019] In another aspect of the present disclosure, it can also be considered that a charging method is proposed, comprising the steps of:
[0020] After detecting successful access, obtaining at least one set of handshake signals, each of which represents a charging protocol;
[0021] Determine the charging protocol adapted by the power receiving device according to the acquired handshake signal;
[0022] An identification signal is output to the preset terminal, where the identification signal is a preset feedback signal corresponding to the charging protocol adapted by the power receiving device.
[0023] Further, regarding access device detection, the steps include:
[0024] After obtaining the level signal of the preset terminal, it is determined to be in the connected state and waits for a preset time;
[0025] Acquire the input level signal through the preset terminal and record it;
[0026] If the handshake signal of the preset terminal is not obtained after waiting for the preset time, the process returns to the step of obtaining the level signal of the preset terminal.
[0027] Furthermore, the step of obtaining at least one set of preset handshake signals comprises the steps of:
[0028] Compare the recorded level signal input from the preset terminal with the stored handshake signal threshold;
[0029] The charging protocol corresponding to the received handshake signal is determined according to the comparison result.
[0030] Further, determining the charging protocol adapted by the powered device according to the acquired handshake signal includes:
[0031] Assigning a value to the charging protocol corresponding to the received handshake signal according to the stored charging protocol priority data;
[0032] The charging protocol adapted to the power receiving device is determined based on the assigned value.
[0033] Further, determining the charging protocol adapted by the powered device according to the acquired handshake signal includes:
[0034] Assigning a value to the charging protocol corresponding to the received handshake signal according to the stored charging protocol priority data;
[0035] If the assignment process does not find an adapted charging protocol, it will wait until the preset response time ends, indicating that there is no adapted charging protocol.
[0036] Further, regarding access device detection, the steps include:
[0037] Detecting level signals of two preset terminals;
[0038] A preset level signal of a preset terminal is detected;
[0039] Determine the preset level signal as a successful connection signal of the access device;
[0040] According to the access device connection success signal, enter the step of outputting at least one set of handshake signals to the preset terminal.
[0041] Furthermore, the preset terminal includes two terminals, and according to a preset level signal of one of the terminals, the connection with the other terminal is closed.
[0042] Another aspect of the present disclosure may also be considered to provide a terminal having the control circuit embodiment as described above.
[0043] Another aspect of the present disclosure may also be considered to provide a charging controller, comprising:
[0044] processor;
[0045] a memory for storing processor-executable instructions;
[0046] Wherein, the processor is configured to:
[0047] Perform the charging method as described above.
[0048] Another aspect of the present disclosure may also be considered to provide a non-transitory computer-readable storage medium, which, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the charging method as described above.
[0049] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: In order to solve the problem that the existing charger uses two terminals for identification communication of the charging protocol during charging access, which will occupy the data transmission channel and cause data transmission to be unable to be performed during charging. The controller is used as the communication control center, and the controller and the signal generator are both connected to the preset terminals, which can be used as the receiving end and the sending end of the level signal of the authentication communication respectively. With this configuration, a half-duplex single-line communication channel can be established with a single terminal, so that the authentication communication of the charging protocol can be realized with one terminal. In this way, the charging protocol applicable to the access device can be adapted to perform adaptive power supply charging.
[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0052] Figure 1 The figure is a schematic structural diagram of a charging control circuit according to an exemplary embodiment.
[0053] Figure 2 The figure is a schematic diagram showing the structure of a controller of a charging control circuit according to an exemplary embodiment.
[0054] Figure 3 The figure is a schematic structural diagram of a charging control circuit according to an exemplary embodiment.
[0055] Figure 4The figure is a flow chart of a charging method according to an exemplary embodiment.
[0056] Figure 5 The figure is a schematic diagram showing an execution process of a charging method according to an exemplary embodiment.
[0057] 1. Port; 11. Terminal;
[0058] 2. Signal generator;
[0059] 3. Controller; 32. Memory; 31. Processor; 33. Communication interface; 34. Logic circuit;
[0060] RP1, first pull-down resistor; PR2, second pull-down resistor; Q1, first switch tube; Q2, second switch tube; Q3, third switch tube; Q4, fourth switch tube; DETAILED DESCRIPTION
[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0062] As the performance of smart terminals continues to improve, the power consumption of smart terminals continues to increase, the battery capacity continues to increase, and the demand for fast charging of smart terminals continues to increase. In recent years, various terminal manufacturers have developed their own fast charging protocols. At present, the fast charging protocols developed by various terminal manufacturers are generally based on D+ / D- (Data+ / Data-) channel communication.
[0063] Since the USB (Universal Serial Bus, USB) data transmission process is also implemented based on the D+ / D- (Data+ / Data-) channel communication protocol, it is difficult to achieve fast charging and USB2.0 data transmission at the same time when D+ / D- (Data+ / Data-) is used for charging communication. Therefore, this will occupy the data transmission channel, resulting in the inability to perform data transmission during charging.
[0064] The present disclosure proposes a new charging communication architecture, which can use a signal generator and a controller to achieve single-line communication, so that charging protocol authentication communication can be achieved using a single terminal. The following embodiments mainly introduce the relevant circuits and control schemes configured on the power receiving device side as an example.
[0065] Figure 1It is a structural diagram of a charging control circuit according to an exemplary embodiment. According to the first aspect of the embodiment of the present disclosure, a charging control circuit is provided, which mainly includes a port 1, a signal generator 2 and a controller 3. Port 1 may be a connection port of a common electronic device, and it should be understood that port 1 generally has multiple terminals 11. Signal generator 2, as a communication signal generator, can be connected to a preset terminal 11 of port 1, and it can be understood that the preset terminal 1 here can be any terminal that is generally not involved in data communication. The controller 3 signal is connected to the signal generator 2 to control the signal generator 2 to send a preset signal, and the controller 3 is also connected to the preset terminal 11 to receive the signal of the access device through the preset terminal 11.
[0066] It can be understood by those skilled in the art that, according to the introduction of the above embodiments, in order to adapt to the embodiments of the above power receiving end device, the charging end device side needs to be configured with a communication identification method that can be interconnected, that is, it can also establish a signal connection with the above preset terminal 11, and can also perform signal interaction and signal identification capabilities based on this signal connection. Therefore, the specific hardware configuration scheme of the charging end device side is not specifically limited, and it only needs to have a communication identification method that can be interconnected with the device embodiment of this embodiment.
[0067] In the disclosed embodiment, the controller 3 can output an identification signal (which is feedback of one of the multiple groups of handshake signals of the connected power supply device) to the preset terminal 11 through the signal generator 2, and the controller 3 obtains the handshake signal input by the connected device through the preset terminal 11, so as to perform identification communication of the charging protocol of the connected device, and finally the connected charging device can perform the corresponding charging operation according to the communication identification structure. In this way, the controller 3 can be used as the communication control center, and the controller 3 and the signal generator 2 are both connected to the preset terminal 11, which can be used as the receiving end and the sending end of the level signal of the authentication communication respectively. With this configuration, a half-duplex single-line communication channel can be established with a single terminal, so that the authentication communication of the charging protocol can be realized with one terminal. In this way, the charging protocol identification communication with the charging device can be carried out to perform adaptive power supply charging.
[0068] Half-duplex communication: allows data to be transmitted in both directions, but only allows data to be transmitted in one direction at a time. It is actually a simplex communication with switching direction.
[0069] In the embodiment of the present disclosure, the signal generator 2 is selected as UARTphy, that is, the port physical layer of the universal asynchronous receiver / transmitter, which is a port physical layer of an asynchronous receiver / transmitter. In a specific embodiment, the signal generator 2 can be selected to output a specified identification signal to the preset terminal 11. Of course, in one embodiment, the asynchronous receiver / transmitter can be used to store multiple groups of identification signals, and one of the identification signals can be output to the preset terminal according to the instruction of the controller 3, wherein the TX (send data pin) of the UART chip can be selected to be connected to the preset terminal 11, and the RX of the UART chip can be connected to the controller 3 (receive data pin) to receive the control instruction. In this embodiment, the VCC high level signal (above 3.3V) is connected to the VCC pin of the UART chip, so that the level of the signal output by the signal generator 2 can be pulled up, so that a high level signal can be output to the power supply device, so as to avoid the signal output by the signal generator 2 being unable to be correctly read by the receiving end due to the low level (pulled down to below 3.3V). The identification signal in this embodiment may be a communication signal compiled according to a serial communication protocol, such as a multi-segment signal compiled according to the RS-232 standard.
[0070] Serial communication refers to the use of a transmission line to transmit data one bit at a time. Of course, two signal lines can also be used to form full-duplex communication, such as RS232. Asynchronous communication uses one character as the transmission unit. The time interval between two characters in communication is not fixed, but the time interval between two adjacent bits in the same character is fixed. Each character of serial communication is generally 10 bits (1 start bit, 7 data bits, 1 check bit, and 1 end bit). It only needs the power supply device to record the identification signal of the specified charging protocol.
[0071] In another embodiment of the present disclosure, the signal generator 2 is selected as UARTphy, that is, the port physical layer of the Universal Asynchronous Receiver / Transmitter. In a specific embodiment, the signal generator 2 can be selected to output a specified level signal to the terminal. Similarly, the TX (transmit data pin) of the UART chip is connected to the preset terminal 11, and the RX of the UART chip can be connected to the controller 3 (receive data pin). In this embodiment, the VCC high level signal (above 3.3V) is connected to the VCC pin of the UART chip, so that the level of the signal output by the signal generator 2 can be pulled up, so that a high level signal can be output to the power supply device, and the signal output by the signal generator 2 can be prevented from being correctly read by the receiving end due to the low level (pulled down to below 3.3V). A switch tube can be configured between the connection between the signal generator 2 and the preset terminal 11 (which will be expanded in the following embodiment). By turning on and off the switch tube at a preset time interval, an identification signal can also be formed, and it is only necessary for the access device to record it as an identification signal of the specified charging protocol. According to this embodiment, it is not necessary to construct a serial communication protocol layer in all controllers involved in identification communication, which is a solution with faster and simpler deployment and occupies less total storage space.
[0072] It is obvious to those skilled in the art that the signal generator 2 can also be integrated into the controller 3, that is, the controller 3 can select a controller chip that integrates a level signal generation (UART) module. One embodiment only requires the integration of a controller chip of a universal asynchronous receiver-transmitter (UART), and the signal generator 2 integrated in the controller 3 also has a corresponding external port to facilitate connection to the preset terminal 11, so that a serial communication signal can be output through the preset terminal 11, or a set of level signals can be output through the preset terminal 11. Another embodiment is a controller chip that integrates a universal asynchronous receiver-transmitter physical layer (equivalent to the output of a fixed level signal), where the universal asynchronous receiver-transmitter physical layer is only used as a generator of a specified level signal, and a switch tube is configured between the external interface of the signal generator 2 and the preset terminal 11. The switch tube is turned on and off at a preset time interval, and an identification signal can also be formed. It only needs that the access device can record it as an identification signal for a specified charging protocol.
[0073] Of course, it is understandable that the above signal generator 2 can also be implemented simultaneously to facilitate wider compatibility. By implementing the above multiple embodiments simultaneously, multiple forms of identification signals can be selected to be output to the access device, and a greater number of protocols can be represented.
[0074] It is obvious to those skilled in the art that the examples of charging protocols mentioned above include: USB PD, QC fast charging protocol, PD privatization protocol, etc. The USB PD fast charging protocol (USB Power Delivery Specification) is a fast charging standard launched by the USB-Implementers Forum (USB-IF for short) standardization organization and is widely used. The QC fast charging protocol (QC Quick Charge) is a fast charging protocol launched by Qualcomm. On the other hand, each terminal manufacturer also has its own PD privatization protocol, such as OPPO's VOOC flash charging, Huawei's SCP / FCP flash charging, VIVO's FlashCharge flash charging, and Xiaomi's ChargeTurbo flash charging.
[0075] Figure 2 It is a structural diagram of a controller of a charging device according to an exemplary embodiment. Further, in the embodiment of the present disclosure, the controller 3 can be a microcontroller unit MCU. The microcontroller unit (MCU), also known as a single chip microcomputer (Single Chip Microcomputer) or a single chip microcomputer, is to appropriately reduce the frequency and specifications of the central processing unit (CPU), and integrate the memory (memory), counter (Timer), USB, A / D conversion, UART, PLC, DMA and other peripheral interfaces, and even LCD drive circuits on a single chip to form a chip-level computer, and perform different combination controls for different application scenarios. In the specific embodiment of the present disclosure, the controller 3 can be considered to mainly include a memory 32, a processor 31, a communication interface 33 and a logic circuit 34. The memory stores at least one charging protocol data, the communication interface is used to receive signals and output signals, and the logic circuit is connected to the charging module 4 to control the charging module.
[0076] The communication interface mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above electronic device and other devices.
[0077] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0078] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0079] On the other hand, it can also be considered that the controller 3 has three program layers in its internal architecture: a communication physical layer, a communication protocol layer, and an authentication module. It can send and receive communication signals through the communication physical layer, and the communication protocol layer can identify the received signals, and the authentication module can determine the charging protocol adapted to the access device based on the identified signals. In this way, the controller 3 can become a communication control hub. The controller 3 and the signal generator 2 are both connected to the preset terminal 11. The controller 3 and the signal generator 2 can serve as the receiving end and the sending end of the authentication communication respectively. The controller 3 controls the signal generator 2 to send the identification signal, and the controller 3 also The correctness of the identification signal sent by the signal generator 2 can be monitored in a closed loop, and timing can be performed accordingly. After the controller 3 obtains the identification signal fed back by the access device in a preset time period, the communication protocol layer can identify the received level signal so as to compare it with the multiple handshake signals stored in the memory, thereby identifying the received level signal and storing the identified handshake signal. The authentication module can determine the charging protocol adapted to the current device based on the identified handshake signal. With this configuration, a half-duplex single-line communication channel can be established with a single terminal, so that the authentication communication of the charging protocol can be realized with one terminal. In this way, the charging protocol applicable to the local device can be adapted for adaptive power supply and charging.
[0080] Figure 3 The figure is a schematic structural diagram of a charging control circuit according to an exemplary embodiment. Figure 3A specific circuit configuration diagram of the present disclosure is illustrated, wherein the charging control circuit of this embodiment mainly includes port 1 (the preset terminal 11 belongs to port 1), signal generator 2 and controller 3. Port 1 can be a common electronic device connection port. For example, in this embodiment, port 1 is a USB Type-C port, and port 1 generally has multiple terminals 11. Signal generator 2 can be connected to the preset terminal 11 of port 1 as a communication signal generator, and controller 3 is connected to signal generator 2 by signal, so as to control signal generator 2 to send a preset signal. At the same time, controller 3 is also connected to preset terminal 11, so as to receive the handshake signal sent by the connected power supply device through preset terminal 11. Controller 3 obtains the handshake signal actively input by the connected power supply device through preset terminal 11, and controller 3 can output an identification signal for characterizing the charging protocol to preset terminal 11 through signal generator 2, so as to perform identification communication of the charging protocol of the local power receiving device, and finally the charging module of the charging device performs the corresponding charging operation according to the control signal of the controller.
[0081] It can be understood that the preset terminal 11 of port 1 includes two terminals, a first terminal and a second terminal, the first terminal is connected to a first pull-down resistor RP1, the second terminal is connected to a second pull-down resistor PR2, and only one of the first terminal and the second terminal is connected to the signal generator 2 at the same time. It can be seen that port 1 can be a commonly used USB port, and the Universal Serial Bus (USB) is a serial bus standard and also a technical specification of an input and output interface. Currently, there are three physical specifications of USB interfaces: USB Type-A, USB Type-B and USB Type-C. The following embodiments of the present disclosure mainly take USB Type-C as an example, wherein the USB Type-C interface has 24 pins.
[0082] Furthermore, the first terminal is a CC1 terminal, and the second terminal is a CC2 terminal. In addition, CC (Configuration Channel) is a newly added channel in USB Type-C, which has the functions of detecting forward and reverse insertion, detecting the voltage and current that can be provided by USB connection identification, establishing and managing the connection between data and VBUS between USB devices, etc. The following embodiments of the present disclosure mainly take CC (Configuration Channel) channel as an example.
[0083] Further, the signal generator 2 is connected to the first terminal CC1 through the first switch tube Q1, the signal generator 2 is connected to the second terminal CC2 through the third switch tube Q3, and the control ends of the first switch tube Q1 and the third switch tube Q3 are connected to the controller 3. The first pull-down resistor RP1 is connected to the first terminal CC1 through the second switch tube Q2, the second pull-down resistor RP2 is connected to the second terminal CC2 through the fourth switch tube Q4, and the control ends b of the second switch tube Q2 and the fourth switch tube Q4 are also connected to the controller. In this embodiment, the first switch tube Q1 to the fourth switch tube Q4 can all be selected as MOS tubes, or other switch tubes that can be directly controlled by the controller.
[0084] In the control circuit of this embodiment, the first terminal CC1 and the second terminal CC2 are both connected by the first pull-down resistor RP1 and the second pull-down resistor RP2 by default. According to common technical knowledge in this field, the pull-down resistor generally refers to: a resistor is connected to a specified circuit node, and one end of the resistor is connected to the specified circuit node, and the other end is grounded, so as to keep the CC terminal of the local device (power receiving end) at a low potential, which is convenient for access detection. By detecting the level signal of the CC channel to confirm whether an external device is connected, the first switch tube Q1 to the fourth switch tube Q4 switches are independently controlled by the controller 3, and only one channel of the first terminal CC1 and the second terminal CC2 works at the same time. When one channel works, the other channel is suspended. For example, after the first terminal CC1 detects an external connection, the third switch tube Q3 and the fourth switch tube Q4 on the second terminal CC2 channel are both closed. At this time, only the first switch tube Q1 and the second switch tube Q2 on the CC1 channel work.
[0085] On the other hand, in order to obtain the input signal, the controller 3 also has a signal channel connected to the first terminal CC1 and the second terminal CC2, so as to directly obtain the level signal input by the first terminal CC1 or the second terminal CC2. According to the above introduction, the input level signal mainly includes: a continuous level signal on the first terminal CC1 or the second terminal CC2 when the access device is connected, which can be regarded as an access signal; and a handshake signal actively input by the connected power supply device after the access is successful, so as to complete the protocol authentication based on this.
[0086] The present disclosure also provides an embodiment of a charging method, which mainly includes:
[0087] Step S101, after detecting that an access device is connected, obtaining at least one set of preset handshake signals, each of which represents a charging protocol;
[0088] In the present embodiment, this step can be regarded as a normal initial step. In this step, when no external device is connected, both terminals, the first terminal CC1 and the second terminal CC2, can be defined as Open to indicate an open signal. When the first terminal CC1 or the second terminal CC2 has a level signal, it generally represents that an access device is connected through port 1. At this time, according to the Type-C standard, only one of the first terminal CC1 and the second terminal CC2 obtains the Ra or Rd signal of the CC channel, so as to determine the physical access direction of the access socket, thereby performing data and electrical connections with the adapted terminals.
[0089] It can be understood that this step is mainly performed when it is clear which of the first terminal CC1 and the second terminal CC2 has established a single-line connection. Based on this, the controller 3 can control the establishment of a connection between this terminal and the controller 3. Thus, the handshake signal sent by the connected power supply device can be obtained. According to the previous introduction, one embodiment of the handshake signal is to form a preset handshake signal by using an interval high-level signal that can be input by the power supply device. Another embodiment is to use the serial data generated by the signal generator to form a preset handshake signal, or another embodiment is that the above two handshake signals coexist and are optional.
[0090] Step S102, determining the charging protocol adapted by the power receiving device according to the acquired handshake signal;
[0091] In this embodiment, this step mainly refers to the controller on the power receiving side, when it has received multiple groups of handshake signals sent by the power supply end device, first saving one or more groups of handshake signals, and assigning values to the charging protocols corresponding to the received handshake signals according to the stored charging protocol priority data; and determining the charging protocol adapted to the power receiving end device according to the assigned values. If the assignment process does not find an adapted charging protocol, it waits until the preset response time ends, indicating that there is no adapted charging protocol.
[0092] Step S103, outputting an identification signal to the preset terminal, where the identification signal is feedback corresponding to the charging protocol adapted to the power receiving device;
[0093] According to the description of the previous embodiments, one embodiment of the identification signal is to form a preset identification signal by outputting a continuous high-level signal or an intermittent high-level signal from a local power receiving device. Another embodiment is to form a preset identification signal using serial data generated by a signal generator. Another embodiment is to form a preset identification signal using the previous two or more identification signals.
[0094] Figure 5 FIG. 1 is a schematic diagram of an execution process of a charging method according to an exemplary embodiment. The execution process of a specific embodiment is exemplarily described as follows:
[0095] Assuming that the charger supports private protocol U1 and protocol U2, when the first terminal CC1 or the second terminal CC2 detects a connection, the CC level is determined externally. At this time, the level of the first terminal CC1 or the second terminal CC2 is V1. At this time, the electronic device detects that there is an insertion, and then the device waits for the external device to send a handshake signal within Tde time. After Tde, if the device does not receive a handshake signal, it returns to the default state. If the device detects a handshake signal within Tde, it is judged according to the protocol priority of the control module in the device. If the protocol U1 has a high priority, the signal generator 2 (UARTphy) is connected within Tre time to pull up the CC level (corresponding to the identification signal of protocol U1). If the protocol U2 has a high priority, within Tre time, an identification signal corresponding to protocol U2 is sent, and protocol U2 is connected, and finally the protocol establishment is completed;
[0096] For example, the commonly used half-duplex high-power charging protocol is the USBPD fast charging protocol proposed by USBIF. The charger has a built-in PDphy, and the CC channel is only used for PD communication and cannot recognize other protocols. If the electronic device is required to recognize multiple protocols through the CC channel, the current technology cannot achieve it. The disclosed embodiment can achieve the response establishment of different protocols on the CC channel through the improvement of the physical layer. After the controller detects the connection of the external device, it detects the handshake waveform on the CC channel within the Tde time. There are U1 handshake signals and then PD handshake signals. After Tde, the electronic device determines the priority of U1 and PD protocols. If the U1 protocol has a high priority, the signal generator 2 (UARTphy) in the device is connected, and CC is pulled high to inform the external device that the U1 protocol has been established. If the PD protocol has a high priority, the signal generator 2 (UARTphy) is not connected, and PD communication continues to be performed, and finally the protocol establishment is completed.
[0097] In another embodiment provided by the present invention, a non-temporary computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned device control methods are implemented.
[0098] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any device control method in the above embodiments.
[0099] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0100] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0101] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0102] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.
[0103] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0104] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0105] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following scope of rights.
[0106] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A charging control circuit, It is characterized in that include: A port having a plurality of terminals; A signal generator connected to a preset terminal of the port; A controller, signal connected to the signal generator, the controller is connected to the preset terminal, the controller obtains at least one set of handshake signals input through the preset terminal, each of the handshake signals represents a charging protocol, and the controller determines a corresponding identification signal in response to the handshake signal, the identification signal is feedback corresponding to the charging protocol adapted by the power receiving device, and the controller controls the signal generator to output the identification signal through the preset terminal.
2. The charging control circuit according to claim 1, It is characterized in that The preset terminal includes two terminals, and the controller closes the connection between the other terminal and the signal generator according to a signal indicating successful connection of one of the terminals.
3. The charging control circuit according to claim 1, It is characterized in that The reference voltage pin of the signal generator is connected to a high level voltage, thereby pulling up the identification signal voltage output by the signal generator.
4. The charging control circuit according to claim 1, It is characterized in that The port includes a first terminal and a second terminal, the first terminal is connected to a first pull-down resistor, and the second terminal is connected to a second pull-down resistor.
5. The charging control circuit according to claim 4, It is characterized in that The first terminal is a CC1 terminal, and the second terminal is a CC2 terminal.
6. The charging control circuit according to claim 5, It is characterized in that The controller closes the connection between the other terminal and the corresponding pull-down resistor and the signal generator according to the level signal of one of the terminals.
7. The charging control circuit according to claim 5, It is characterized in that The signal generator is connected to the first terminal via a first switch tube, the signal generator is connected to the second terminal via a third switch tube, and control ends of the first switch tube and the third switch tube are connected to a controller.
8. The charging control circuit according to claim 7, It is characterized in that The first pull-down resistor is connected to the first terminal via a second switch tube, the second pull-down resistor is connected to the second terminal via a fourth switch tube, and control ends of the second switch tube and the fourth switch tube are connected to a controller.
9. The charging control circuit according to claim 8, It is characterized in that The identification signal output by the signal generator to the preset terminal includes: The signal generator continuously connects the high level signal output by the preset terminal; The signal generator connects the preset terminal to emit an interval high level signal for a preset number of times at a preset time interval; or The signal generator outputs a data packet conforming to a preset communication protocol to the preset terminal.
10. The charging control circuit according to any one of claims 1 to 9, It is characterized in that The controller includes a memory, a processor, a communication interface and a logic circuit; the memory stores identification signal data corresponding to at least one charging protocol, the processor is connected to the memory, the communication interface and the logic circuit, and the communication interface is used to receive and output signals.
11. The charging control circuit according to any one of claims 1 to 9, It is characterized in that The signal generator is a serial communication asynchronous signal generator.
12. A terminal, It is characterized in that The charging control circuit comprises the charging control circuit as claimed in any one of claims 1 to 11.
13. A charging method, It is characterized in that Includes steps: After detecting that the access device is connected, obtaining at least one set of handshake signals, each of the handshake signals represents a charging protocol; Determine the charging protocol adapted by the power receiving device according to the acquired handshake signal; An identification signal is output to a preset terminal, wherein the identification signal is feedback corresponding to a charging protocol adapted to the power receiving device.
14. The charging method according to claim 13, It is characterized in that Regarding access device detection, the steps include: After obtaining the level signal of the preset terminal, it is determined to be in the connected state and waits for a preset time; Acquire the input level signal through the preset terminal and record it; If the handshake signal of the preset terminal is not obtained after waiting for the preset time, the process returns to the step of obtaining the level signal of the preset terminal.
15. The charging method according to claim 13, It is characterized in that The obtaining of at least one set of handshake signals comprises the steps of: Compare the recorded level signal input from the preset terminal with the stored handshake signal threshold; The charging protocol corresponding to the received handshake signal is determined according to the comparison result.
16. The charging method according to claim 13, It is characterized in that The step of determining the charging protocol adapted by the powered device according to the acquired handshake signal includes: Assigning a value to the charging protocol corresponding to the received handshake signal according to the stored charging protocol priority data; The charging protocol adapted to the power receiving device is determined based on the assigned value.
17. The charging method according to claim 13, It is characterized in that The step of determining the charging protocol adapted by the powered device according to the acquired handshake signal includes: Assigning a value to the charging protocol corresponding to the received handshake signal according to the stored charging protocol priority data; If the assignment process does not find an adapted charging protocol, the process waits until the preset response time is over, indicating that there is no adapted charging protocol.
18. The charging method according to any one of claims 13 to 17, It is characterized in that Regarding access device detection, the steps include: Detecting level signals of two preset terminals; A preset level signal of a preset terminal is detected; Determine the preset level signal as a successful connection signal of the access device; According to the access device connection success signal, enter the step of outputting at least one set of handshake signals to the preset terminal.
19. The charging method according to claim 18, It is characterized in that The preset terminal includes two terminals, and according to a preset level signal of one of the terminals, the connection with the other terminal is closed.
20. A charging controller, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the charging method according to any one of claims 13 to 19.
21. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the charging method according to any one of claims 13 to 19.
