CN115112955A - Detection method and device for charging path GND impedance, adapter and charging equipment - Google Patents

Detection method and device for charging path GND impedance, adapter and charging equipment Download PDF

Info

Publication number
CN115112955A
CN115112955A CN202110290796.9A CN202110290796A CN115112955A CN 115112955 A CN115112955 A CN 115112955A CN 202110290796 A CN202110290796 A CN 202110290796A CN 115112955 A CN115112955 A CN 115112955A
Authority
CN
China
Prior art keywords
charging
value
voltage value
communication voltage
charging current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110290796.9A
Other languages
Chinese (zh)
Inventor
龙哲华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110290796.9A priority Critical patent/CN115112955A/en
Publication of CN115112955A publication Critical patent/CN115112955A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • G01R27/08Measuring resistance by measuring both voltage and current
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application relates to a detection method and device of charging path GND impedance, an adapter and charging equipment. The method comprises the following steps: acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first moment and the second moment are any two moments in the charging process; calculating a current difference value between the first charging current value and the second charging current value and a voltage difference value between the first communication voltage value and the second communication voltage value; the ratio of the voltage difference and the current difference is determined as the GND impedance of the charge path. By adopting the method, any handshake communication between the adapter and the mobile terminal is not needed, the adapter can calculate the GND impedance unilaterally, the detection process of the GND impedance can be simplified, the detection efficiency can be improved, and the method has the advantages of simplicity and high efficiency.

Description

Detection method and device for charging path GND impedance, adapter and charging equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for detecting a charging path GND impedance, an adapter, and a charging device.
Background
With the continuous development of mobile terminals, more and more functions are integrated on the mobile terminals, and support is provided for most scenes of daily life, so that users depend on the mobile terminals more and more, and the service time of the terminals is greatly prolonged. However, the battery capacity of the mobile terminal is relatively limited, and for all terminal models on the market, a user basically needs to charge once to three times a day to meet the normal use requirement of a day.
In order to improve low-battery anxiety of users, under the condition that the battery capacity is not large, most of the newly-marketed models support high-power charging, and the charging power is developed from the initial common charging 5W power to the current flagship aircraft 50W/65W/100W/120W and the like. The charging current value is inevitably increased due to the increase of the charging power, and a large GND voltage difference is formed between the adapter and the charged mobile terminal in a large-current charging scene due to the impedance of the charging loop, so that the adapter is easy to misjudge the communication logic level sent by the mobile terminal.
The GND voltage difference changes with the change of the charging current value and also changes with the change of the charging path GND impedance. Therefore, in order to obtain the GND voltage difference, it is necessary to detect the GND impedance of the charging path. However, the prior art has the problem that the detection process is complicated when detecting the GND impedance.
Disclosure of Invention
Based on this, it is necessary to provide a simple and efficient method, apparatus, adapter and charging device for detecting the impedance of the charging path GND, aiming at the problem that the detection process is complicated in the prior art.
In order to achieve the above object, in a first aspect, an embodiment of the present application provides a method for detecting a charging path GND impedance, where the method includes: acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first moment and the second moment are any two moments in the charging process; calculating a current difference value between the first charging current value and the second charging current value and a voltage difference value between the first communication voltage value and the second communication voltage value; the ratio of the voltage difference and the current difference is determined as the GND impedance of the charge path.
In one embodiment, the first communication voltage is a voltage of the communication configuration signal pin at a first time, and the second communication voltage is a voltage of the channel configuration signal pin at a second time.
In one embodiment, the method further comprises: and when the trigger level arrives, respectively acquiring the charging current value and the communication voltage value at the current moment, and storing.
In a second aspect, an embodiment of the present application provides an adapter, which includes a power output circuit and a data processing circuit, where the power output circuit is connected to the data processing circuit and is used to connect to a device to be charged. And the power supply output circuit is used for outputting charging electric energy to the equipment to be charged. The data processing circuit is used for acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment, respectively calculating a current difference value between the first charging current value and the second charging current value, and a voltage difference value between the first communication voltage value and the second communication voltage value, and determining the ratio of the voltage difference value to the current difference value as the GND impedance of the charging path; the first time and the second time are any two times in the charging process.
In one embodiment, the adapter further comprises an acquisition circuit, and the acquisition circuit is connected between the power output circuit and the data processing circuit and between the power output circuit and the device to be charged. And the acquisition circuit is used for acquiring the charging current value and the communication voltage value at each moment in the charging process and acquiring acquired data. And the data processing circuit is used for respectively selecting a first charging current value, a first communication voltage value, a second charging current value and a second communication voltage value from the acquired data.
In one embodiment, the acquisition circuit comprises a voltage acquisition module and a current acquisition module. The voltage acquisition module comprises a first analog-to-digital converter, a second analog-to-digital converter, a first shift register and a second shift register, and the current acquisition module comprises a current detection ring, a third analog-to-digital converter and a third shift register. The input end of the first analog-to-digital converter is connected with a first channel configuration signal pin of the power output circuit, and the output end of the first analog-to-digital converter is connected with the input end of the first shift register; the output end of the first shift register is connected with the input end of the data processing circuit. The input end of the second analog-to-digital converter is connected with a second channel configuration signal pin of the power output circuit, and the output end of the second analog-to-digital converter is connected with the input end of the second shift register; the output end of the second shift register is connected with the input end of the data processing circuit. The current detection ring is connected between a VBUS pin of the power output circuit and the equipment to be charged and is connected with the input end of the third analog-to-digital converter; the output end of the third analog-to-digital converter is connected with the input end of the third shift register, and the output end of the third shift register is connected with the input end of the data processing circuit.
In one embodiment, the data processing circuit is connected to the first channel configuration signal pin, the second channel configuration signal pin and the VBUS pin of the power output circuit respectively. And the data processing circuit is also used for acquiring and storing the charging current value and the communication voltage value at each moment in the charging process.
In a third aspect, an embodiment of the present application provides a charging device, including the adapter in any of the above embodiments.
In a fourth aspect, an embodiment of the present application provides a detection apparatus for detecting a charging path GND impedance, including a parameter obtaining module, a difference obtaining module, and an impedance determining module. The parameter acquisition module is used for acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first moment and the second moment are any two moments in the charging process. And the difference value acquisition module is used for calculating a current difference value between the first charging current value and the second charging current value and a voltage difference value between the first communication voltage value and the second communication voltage value. And the impedance determining module is used for determining the ratio of the voltage difference value and the current difference value as the GND impedance of the charging path.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps: acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first moment and the second moment are any two moments in the charging process; calculating a current difference value between the first charging current value and the second charging current value and a voltage difference value between the first communication voltage value and the second communication voltage value; the ratio of the voltage difference and the current difference is determined as the GND impedance of the charge path.
According to the detection method, the detection device, the adapter and the charging equipment for the charging path GND impedance, the GND impedance of the charging path can be obtained through the ratio of the voltage difference value to the current difference value by acquiring the communication voltage value and the charging current value at any two moments in the charging process, and calculating the voltage difference value between the first communication voltage value and the second communication voltage value and the current difference value between the first charging current value and the second charging current value. Therefore, any handshake communication between the adapter and the mobile terminal is not needed, the adapter can calculate the GND impedance unilaterally, the detection process of the GND impedance can be simplified, the detection efficiency is improved, and the advantages of conciseness and high efficiency are achieved. Meanwhile, the GND impedance is calculated through the communication voltage value and the charging current value at any two moments in the charging process, the communication voltage value and the charging current value in different charging stages or different voltage intervals do not need to be appointed as calculation data, the detection process is further simplified, and the detection efficiency is improved.
Drawings
Fig. 1 is an application environment diagram of a detection method of a charging path GND impedance in one embodiment;
FIG. 2 is a schematic diagram of charging of the application environment of FIG. 1;
FIG. 3 is a schematic diagram of the principle of GND voltage difference generated by GND impedance;
FIG. 4 is a signal waveform diagram of the charging current of the device to be charged and the CC signal of the device to be charged according to an embodiment;
FIG. 5 is a signal waveform diagram of adapter charging current and adapter CC signals in one embodiment;
FIG. 6 is a first flowchart of a method for detecting impedance of the charging path GND according to an embodiment;
FIG. 7 is a second flowchart of a method for detecting the impedance of the charging path GND according to an embodiment;
FIG. 8 is a first schematic block diagram of an adapter in one embodiment;
FIG. 9 is a schematic diagram of a charging path formed by an adapter and a device to be charged according to an embodiment;
FIG. 10 is a second schematic block diagram of an adapter in one embodiment;
fig. 11 is a block diagram showing a structure of a detection device for detecting the impedance of the charging path GND in one embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments is understood to mean "electrical connection", "communication connection", or the like, if there is a transfer of electrical signals or data between the connected objects. Also, as used in this specification, the term "and/or" includes any and all combinations of the associated listed items.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
With the popularization of TYPE-C architecture proposed by the USB (Universal Serial Bus) alliance, charging compatibility between mobile terminals of various manufacturers and different TYPEs of mobile devices is standardized. However, after the charging path structure is normalized, the GND voltage difference still exists, which does not disappear with the specification of the charging path. The GND voltage difference is a difference between the adapter ground level (i.e., the level of the ground plane) and the ground level of the device to be charged, and varies with changes in the GND impedance and the charging current value. The device to be charged can be any type of device requiring charging, such as various electronic devices. For convenience of explanation, the following explanation will be made taking a mobile terminal as an example of a device to be charged.
When the mobile terminal communicates with the adapter, the transmitting side determines the voltage value of the communication signal according to the voltage value of its own ground level, and the receiving side processes the communication signal based on the voltage value of its own ground level when recognizing the communication signal. When the GND voltage difference is too large, the receiver may be misjudged.
For example, the mobile terminal ground level is 0V, the adapter ground level is 5V, and when the mobile terminal needs to transmit logic 1, a high level signal (e.g., 5V voltage signal) may be superimposed on the mobile terminal ground level 0V to generate a communication signal corresponding to logic 1, and the communication signal is transmitted to the adapter. When the adapter receives the communication signal, the adapter recognizes the communication signal by taking the self ground level 5V as a judgment standard. When a 5V communication signal is received, since the voltage difference between the communication signal and the adapter's own ground level is too small, the adapter easily recognizes the communication signal as a logic 0 instead of a logic 1, resulting in occurrence of erroneous determination.
Therefore, in a large-current charging scene, the GND voltage difference which increases with the increase of the charging current brings real influence on the charging communication signal level and the USB communication signal level. In order to overcome the foregoing problem, it is necessary to detect the GND impedance to determine the current GND voltage difference from the GND impedance and the current charging current value, so that the adaptor identifies the communication signal based on the current GND voltage difference, thereby reducing the influence of the large current charging on the communication logic level.
However, as for the background art, there is a problem in the prior art that the detection process is complicated when detecting the GND impedance. The inventor researches and finds that the problem is caused because the prior art needs the adapter to perform detection after handshaking communication with the mobile terminal, and the GND impedance cannot be unilaterally calculated through the adapter, so that the problems of low detection efficiency and complex detection process are caused. In addition, in the prior art, when calculating the GND impedance, the charging data of the mobile terminal in different charging stages (or different charging voltage intervals) needs to be collected first, and calculation is performed according to the charging data, and calculation cannot be performed according to the charging data in the same charging stage (or the same charging voltage interval), which further causes the problems of low detection efficiency and complex detection process.
In order to solve the technical problems in the prior art, the application provides a simple and efficient detection method, device, adapter and charging device for the GND impedance of the charging path, the adapter does not need to perform any handshaking communication with the mobile terminal, and the adapter can calculate the GND impedance unilaterally based on the communication voltage and the charging current at any two moments. Furthermore, after the GND impedance is obtained, since the adapter controls the output of the charging current, the adapter can know the voltage difference between the GND level of the mobile terminal and the GND level of the adapter (namely, the GND voltage difference) on one side, so that the adapter can prevent the logic misjudgment of the communication signal, for example, avoid identifying the logic 0 sent by the mobile terminal as logic 1, and further reduce the influence of large-current charging on the communication logic level.
The method for detecting the impedance of the charging path GND can be applied to the application environment shown in FIG. 1. Wherein, the adapter 110 is connected to the device to be charged 130 through the charging wire 120 to charge the battery of the device to be charged 130. The device to be charged 130 may be a device having a Type-C interface, and may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devicesWearing equipment, etc. Referring to fig. 2, fig. 2 is a schematic charging diagram of the application environment shown in fig. 1, in which a VBUS pin and a GND pin on the adapter 110 are connected to corresponding pins on the device to be charged 130, so that the adapter 110 and the device to be charged 130 form a charging loop, and the charging current Ichg can be transmitted in the charging loop. FIG. 3 is a schematic diagram of the principle of GND voltage difference generated by GND impedance, wherein R is shown in FIG. 3 GND Is the equivalent impedance, R, of the charging wire 120 1 Is a pull-up resistor, R, disposed within the adapter 110 2 Is a pull-down resistor disposed within the device 130 to be charged. Due to the impedance of the charging wire 120, a voltage drop is generated across the charging wire 120, resulting in that the ground level of the device to be charged 130 is not equal to the ground level of the adapter 110.
With the charging circuit of fig. 1-3, the signal waveforms of the device-to-be-charged charging current 210 and the device-to-be-charged CC (Configuration Channel) signal 220 can be as shown in fig. 4, and the signal waveforms of the adapter charging current 310 and the adapter CC signal 320 can be as shown in fig. 5. As can be seen from fig. 5, the adaptor CC signal 320 and the adaptor charging current 310 have the same trend, and the adaptor CC signal 320 is obtained by superimposing the GND voltage difference caused by the charging current on the device to be charged CC signal 220. Therefore, the current difference value of the CC signal voltage difference and the charging current can be obtained by utilizing the characteristics, and the GND impedance is calculated through the current difference value of the CC signal voltage difference and the charging current, so that the GND impedance is calculated in a synchronous mode.
In one embodiment, as shown in fig. 6, a method for detecting the impedance of the charging path GND is provided, which is described by taking the method as an example of being applied to the adapter in fig. 1, and the method includes the following steps:
step S410, acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first time and the second time are any two times in the charging process.
The first time and the second time are any two times in the charging process, and can be different times in the same charging stage or two times in different charging stages; the timing at which the two charging voltages belonging to the same voltage interval correspond to each other, or the timing at which the two charging voltages belonging to different voltage intervals correspond to each other. In one embodiment, two moments when the first communication voltage value is not equal to the second communication voltage value and/or the first charging current value is not equal to the second charging current value may be selected as the first moment and the second moment.
The communication voltage value refers to a voltage value of a communication signal, wherein the communication signal may be a signal for transferring information, such as a PD (Power Delivery) communication signal, transmitted between the adapter and the device to be charged during charging. In one embodiment, the communication voltage value may be obtained by collecting a voltage value of a specific pin, for example, a voltage value of a channel configuration signal pin. It should be noted that, at different times, the communication voltage value may be a voltage value of different pins.
Specifically, at a certain time during the charging process, a corresponding charging current value and a corresponding communication voltage value are provided. The adapter acquires a charging current value (i.e., a first charging current value) at a first time, a communication voltage value (i.e., a first communication voltage value) at the first time, a charging current value (i.e., a second charging current value) at a second time, and a communication voltage value (i.e., a second communication voltage value) at the second time, respectively. Further, the adapter can be used for collecting charging data at any two moments so as to respectively obtain a first charging current value, a first communication voltage value, a second charging current value and a second communication voltage value. The adapter can also periodically collect the charging data, and the collected data at any two moments are selected from the charging data to obtain a first charging current value, a first communication voltage value, a second charging current value and a second communication voltage value.
In step S420, a current difference between the first charging current value and the second charging current value and a voltage difference between the first communication voltage value and the second communication voltage value are calculated.
In particular, can be according to Δ I chg =I chgT1 -I chgT2 Difference of incoming current, where Δ I chg Is the difference in current, I chgT1 Is a first charging current value, I chgT2 The second charging current value. And may be as Δ V ═ V T1 -V T2 Calculating a voltage difference value, wherein delta V is the voltage difference value, V T1 Is a first communication voltage value, V T2 Is the second communication voltage value. It should be noted that the current difference can also be in accordance with Δ I chg =I chgT2 -I chgT1 The voltage difference can also be determined as Δ V ═ V T2 -V T1 To be determined.
In step S430, the ratio of the voltage difference and the current difference is determined as the GND impedance of the charge path.
In particular, can be according to R GND =ΔV/ΔI chg Calculating the GND impedance of the charging path, wherein R GND For GND impedance of the charging path, Δ V is the voltage difference, Δ I chg Is the current difference. Therefore, the adapter can calculate the GND impedance from the adapter to the equipment to be charged during charging unilaterally, and real-time detection of the GND impedance is realized, so that the adapter monitors the charging energy consumption and prevents the communication signal level from being abnormal.
According to the detection method of the charging path GND impedance, the GND impedance of the charging path can be obtained through the ratio of the voltage difference value to the current difference value by acquiring the communication voltage value and the charging current value at any two moments in the charging process, and calculating the voltage difference value between the first communication voltage value and the second communication voltage value and the current difference value between the first charging current value and the second charging current value. Therefore, any handshaking communication between the adapter and the mobile terminal is not needed, the adapter can calculate the GND impedance unilaterally, the detection process of the GND impedance can be simplified, the detection efficiency can be improved, and the device has the advantages of simplicity and high efficiency. Meanwhile, the GND impedance is calculated through the communication voltage value and the charging current value at any two moments in the charging process, the communication voltage value and the charging current value in different charging stages or different voltage intervals do not need to be appointed as calculation data, the detection process is further simplified, and the detection efficiency is improved.
In one embodiment, the first communication voltage value is a voltage value of the channel configuration signal pin at a first time, and the second communication voltage value is a voltage value of the channel configuration signal pin at a second time.
Specifically, in the Type-C interface, the communication signal may be transmitted through the channel configuration signal pin, and thus the voltage value of the channel configuration signal pin may be confirmed as the communication voltage value. Further, two channel configuration signal pins, namely a CC1 pin and a CC2 pin, can be arranged in the Type-C interface. The CC1 pin and the CC2 pin are designed as Type-C fool-proof, and charging can be achieved no matter whether the pins are inserted positively or reversely. Thus, in the Type-C standard protocol, one CC signal is used for the positive and negative insertion to correspond to the signal on pin CC1 or the signal on pin CC 2. Specifically, whether a signal on a pin CC1 or a pin CC2 is used as a CC signal can be determined according to the current insertion mode, and according to the difference of the insertion modes, a CC signal can be collected from a pin CC1 or a pin CC2, and a communication voltage value is determined according to the CC signal.
In this embodiment, the voltage value of the channel configuration signal pin at the first time is determined as the first communication voltage value, and the voltage value of the channel configuration signal pin at the second time is determined as the second communication voltage value, so that the communication voltage value can be quickly obtained, and the detection efficiency is improved.
In one embodiment, as shown in fig. 7, the method further comprises the steps of:
and step S440, when the trigger level arrives, respectively acquiring the charging current value and the communication voltage value at the current moment, and storing the charging current value and the communication voltage value.
Specifically, the adapter may periodically collect the charging current value and the communication voltage value at each time, and store the collected data. When the GND impedance of the charging path needs to be calculated, the charging current value and the communication voltage value at two different times can be used for calculation. Therefore, the GND impedance can be detected in real time, and the detection accuracy is improved.
It should be understood that although the various steps in the flowcharts of fig. 6-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Also, at least some of the steps in fig. 6-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 8, an adapter is provided, which includes a power output circuit 510 and a data processing circuit 520, wherein the power output circuit 510 is connected to the data processing circuit 520 and is used for connecting a device to be charged. The power output circuit 510 is used for outputting charging power to the device to be charged. The data processing circuit 520 is configured to obtain a first charging current value and a first communication voltage value at a first time, and a second charging current value and a second communication voltage value at a second time, respectively calculate a current difference between the first charging current value and the second charging current value, and a voltage difference between the first communication voltage value and the second communication voltage value, and determine a ratio of the voltage difference to the current difference as a GND impedance of the charging path; the first time and the second time are any two times in the charging process.
Specifically, the power output circuit 510 is a circuit for outputting charging power to the device to be charged, and the specific circuit structure thereof may be determined according to the type of the device to be charged, the charging power, and the parameter requirement of the adapter. In one embodiment, the power output circuit 510 may include an adapter MCU (micro controller Unit). The data processing circuit 520 may be a circuit with a data processing function, and is used for implementing the steps of the method according to any of the above embodiments, and the specific circuit structure thereof may be determined according to the parameter requirements of the adapter, the calculation frequency of the GND impedance, and/or the data acquisition frequency, which are not limited in this application.
In the adapter, the power output circuit 510 outputs charging power to the device to be charged; the data processing circuit 520 obtains a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment, respectively calculates a current difference value between the first charging current value and the second charging current value, and a voltage difference value between the first communication voltage value and the second communication voltage value, and determines a ratio of the voltage difference value and the current difference value as the GND impedance of the charging path; the first time and the second time are any two times in the charging process. Therefore, any handshaking communication between the adapter and the mobile terminal is not needed, the adapter can calculate the GND impedance unilaterally, the detection process of the GND impedance can be simplified, the detection efficiency can be improved, and the device has the advantages of simplicity and high efficiency. Meanwhile, the GND impedance is calculated through the communication voltage value and the charging current value at any two moments in the charging process, the communication voltage value and the charging current value in different charging stages or different voltage intervals do not need to be appointed as calculation data, the detection process is further simplified, and the detection efficiency is improved.
In one embodiment, the adapter further comprises an acquisition circuit 530; the acquisition circuit 530 is connected between the power output circuit 510 and the data processing circuit 520, and is also connected between the power output circuit 510 and the device to be charged. The collecting circuit 530 is configured to collect a charging current value and a communication voltage value at each time in a charging process, and obtain collected data. The data processing circuit 520 is configured to select a first charging current value, a first communication voltage value, a second charging current value, and a second communication voltage value from the collected data.
The acquisition circuit 530 may be a circuit with an analog-to-digital conversion function, and a specific circuit structure thereof may be determined according to factors such as a sampling frequency and an adapter design requirement, which is not particularly limited in this application.
Specifically, the collection circuit 530 is connected between the power output circuit 510 and the device to be charged, and is connected to the data processing circuit 520, so that the collection circuit 530 can collect the charging current value and the communication voltage value at each moment of the charging process, and transmit the collected data to the data processing circuit 520, so that the data processing circuit 520 can call, store and further process the collected data. The data processing circuit 520 calls the collected data at two different times from the received collected data, and calculates the GND impedance of the charge path according to the called data. In one example, a schematic diagram of a charging path between the adapter provided with the acquisition circuit 530 and the device to be charged may be as shown in fig. 9.
In this embodiment, the acquisition circuit 530 is used to acquire the charging current value and the communication voltage value at each moment in the charging process, and the data processing circuit 520 is used to select the first charging current value, the first communication voltage value, the second charging current value and the second communication voltage value from the acquired data respectively, so as to calculate the GND impedance of the charging path according to the selected data, thereby reducing the implementation requirements on the data processing circuit 520 and further reducing the cost of the adapter under the condition that the adapter can unilaterally calculate the GND impedance.
In one embodiment, as shown in fig. 10, the acquisition circuit 530 includes a voltage acquisition module and a current acquisition module; the voltage acquisition module comprises a first analog-to-digital converter U1, a second analog-to-digital converter U3, a first shift register U2 and a second shift register U4; the current acquisition module comprises a current detection ring U5, a third analog-to-digital converter U6 and a third shift register U7;
the input end of the first analog-to-digital converter U1 is connected with a first channel configuration signal pin of the power output circuit 510, and the output end is connected with the input end of the first shift register U2; the output end of the first shift register U2 is connected with the input end of the data processing circuit 520;
the input end of the second analog-to-digital converter U3 is connected with a second channel configuration signal pin of the power output circuit 510, and the output end is connected with the input end of the second shift register U4; the output end of the second shift register U4 is connected with the input end of the data processing circuit 520;
the current detection ring U5 is connected between the VBUS pin of the power output circuit 510 and the device to be charged, and is connected with the input end of the third analog-to-digital converter U6; the output terminal of the third adc U6 is connected to the input terminal of the third shift register U7, and the output terminal of the third shift register U7 is connected to the input terminal of the data processing circuit 520.
Specifically, referring to fig. 10, the input terminal of the first analog-to-digital converter U1 is connected to the first channel configuration signal pin (i.e., the CC1 pin) of the power output circuit 510, so that the voltage at the CC1 pin can be collected by converting the voltage at the CC1 pin into a digital signal. The collected data sequentially passes through the output end of the first analog-to-digital converter U1 and the input end of the first shift register U2 and is transmitted to the first shift register U2, so that the first shift register U2 stores the collected data. Similarly, the data acquisition and storage processes of the second adc U3 and the second shift register U4, the third adc U6 and the third shift register U7 can refer to the working processes of the first adc U1 and the first shift register U2, which are not described herein again.
In this embodiment, the voltage acquisition module and the current acquisition module are implemented by the analog-to-digital converter and the shift register, and by using the characteristic that the data storage manner of the shift register is associated with the data input sequence, the corresponding relationship between the charging current value and the communication voltage value can be quickly determined, that is, the charging current value and the communication voltage value at the same time are quickly determined, so as to further improve the detection efficiency.
In one embodiment, the data processing circuit 520 is connected to the first channel configuration signal pin, the second channel configuration signal pin, and the VBUS pin of the power output circuit 510, respectively. The data processing circuit 520 is further configured to collect and store a charging current value and a communication voltage value at each time of the charging process.
Specifically, the data processing circuit 520 may further have an analog-to-digital conversion function, and the charging current value may be acquired by connecting the data processing circuit 520 to the VBUS pin of the power output circuit 510. The data processing circuit 520 is connected to the CC1 pin and the CC2 pin of the power output circuit 510, respectively, so that the voltage of the CC1 pin and the voltage of the CC2 pin can be collected. The data processing circuit 520 may determine the communication voltage value at the current time from the voltage at the pin CC1 and the voltage at the pin CC2 according to the insertion manner during the charging process (i.e., forward insertion or reverse insertion), for example, if the insertion manner at the current time is forward insertion, the voltage at the pin CC1 is determined as the communication voltage value; if the insertion mode at the present moment is reverse insertion, the voltage of the pin CC2 is confirmed as the communication voltage value. Therefore, the corresponding communication voltage value can be acquired at each acquisition moment, and subsequent calculation is facilitated.
In this embodiment, the data processing circuit 520 collects and stores the charging current value and the communication voltage value at each time in the charging process, so that the size of the adapter can be reduced.
In one embodiment, there is provided a charging device comprising the adapter of any of the above embodiments. In one embodiment, the charging device may be a terminal charging plug or a mobile charger with a Type-C interface.
In one embodiment, as shown in fig. 11, there is provided a detection apparatus 700 for detecting impedance of a charging path GND, including: a parameter acquisition module 710, a difference acquisition module 720, and an impedance determination module 730, wherein:
a parameter obtaining module 710, configured to obtain a first charging current value and a first communication voltage value at a first time, and a second charging current value and a second communication voltage value at a second time; the first time and the second time are any two times in the charging process.
The difference obtaining module 720 is configured to calculate a current difference between the first charging current value and the second charging current value, and a voltage difference between the first communication voltage value and the second communication voltage value.
And an impedance determining module 730 for determining a ratio of the voltage difference and the current difference as the GND impedance of the charge path.
In one embodiment, the parameter obtaining module 710 is configured to determine a voltage value of the channel configuration signal pin at a first time as a first communication voltage value, and determine a voltage value of the channel configuration signal pin at a second time as a second communication voltage value.
In one embodiment, the detection device 700 for the impedance of the charging path GND further comprises an acquisition module. The acquisition module is used for respectively acquiring and storing the charging current value and the communication voltage value at the current moment when the trigger level arrives.
The specific definition of the detection device for the charging path GND impedance may refer to the definition of the detection method for the charging path GND impedance in the foregoing, and is not described in detail here. The modules in the detection device for the impedance of the charging path GND may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first moment and the second moment are any two moments in the charging process;
calculating a current difference value between the first charging current value and the second charging current value and a voltage difference value between the first communication voltage value and the second communication voltage value;
the ratio of the voltage difference and the current difference is determined as the GND impedance of the charge path.
In one embodiment, the computer program when executed by the processor further performs the steps of: and confirming the voltage value of the channel configuration signal pin at the first moment as a first communication voltage value, and confirming the voltage value of the channel configuration signal pin at the second moment as a second communication voltage value.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the trigger level arrives, the charging current value and the communication voltage value at the current moment are respectively collected and stored.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for detecting impedance of a charging path (GND), the method comprising:
acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first moment and the second moment are any two moments in the charging process;
calculating a current difference value of the first charging current value and the second charging current value, and a voltage difference value of the first communication voltage value and the second communication voltage value;
determining a ratio of the voltage difference and the current difference as a GND impedance of the charge path.
2. The method for detecting the impedance of the charging path GND according to claim 1, wherein the first communication voltage value is a voltage value of a channel configuration signal pin at the first time, and the second communication voltage value is a voltage value of the channel configuration signal pin at the second time.
3. The method of detecting a charging path GND impedance according to claim 1 or 2, characterized in that the method further comprises:
and when the trigger level arrives, respectively acquiring the charging current value and the communication voltage value at the current moment, and storing.
4. An adapter comprising a power output circuit and a data processing circuit; the power output circuit is connected with the data processing circuit and is used for connecting equipment to be charged;
the power supply output circuit is used for outputting charging electric energy to the equipment to be charged;
the data processing circuit is used for acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment, respectively calculating a current difference value between the first charging current value and the second charging current value, and a voltage difference value between the first communication voltage value and the second communication voltage value, and determining a ratio of the voltage difference value to the current difference value as GND impedance of the charging path; the first time and the second time are any two times in the charging process.
5. The adapter of claim 4, further comprising an acquisition circuit; the acquisition circuit is connected between the power output circuit and the data processing circuit and also connected between the power output circuit and the equipment to be charged;
the acquisition circuit is used for acquiring the charging current value and the communication voltage value at each moment in the charging process and acquiring acquired data;
the data processing circuit is used for respectively selecting the first charging current value, the first communication voltage value, the second charging current value and the second communication voltage value from the collected data.
6. The adapter of claim 5 wherein the acquisition circuit comprises a voltage acquisition module and a current acquisition module; the voltage acquisition module comprises a first analog-to-digital converter, a second analog-to-digital converter, a first shift register and a second shift register; the current acquisition module comprises a current detection ring, a third analog-to-digital converter and a third shift register;
the input end of the first analog-to-digital converter is connected with a first channel configuration signal pin of the power output circuit, and the output end of the first analog-to-digital converter is connected with the input end of the first shift register; the output end of the first shift register is connected with the input end of the data processing circuit;
the input end of the second analog-to-digital converter is connected with a second channel configuration signal pin of the power output circuit, and the output end of the second analog-to-digital converter is connected with the input end of the second shift register; the output end of the second shift register is connected with the input end of the data processing circuit;
the current detection ring is connected between a VBUS pin of the power output circuit and the equipment to be charged and is connected with the input end of the third analog-to-digital converter; the output end of the third analog-to-digital converter is connected with the input end of the third shift register, and the output end of the third shift register is connected with the input end of the data processing circuit.
7. The adapter of claim 4, wherein the data processing circuit is connected to the first channel configuration signal pin, the second channel configuration signal pin, and the VBUS pin of the power output circuit, respectively;
the data processing circuit is also used for acquiring and storing the charging current value and the communication voltage value at each moment in the charging process.
8. A charging device, characterized in that it comprises an adapter according to any one of claims 4 to 7.
9. A detection device for detecting impedance of a charging path (GND), comprising:
the parameter acquisition module is used for acquiring a first charging current value and a first communication voltage value at a first moment, and a second charging current value and a second communication voltage value at a second moment; the first moment and the second moment are any two moments in the charging process;
a difference value obtaining module, configured to calculate a current difference value between the first charging current value and the second charging current value, and a voltage difference value between the first communication voltage value and the second communication voltage value;
and the impedance determining module is used for determining the ratio of the voltage difference value and the current difference value as the GND impedance of the charging path.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 3.
CN202110290796.9A 2021-03-18 2021-03-18 Detection method and device for charging path GND impedance, adapter and charging equipment Pending CN115112955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110290796.9A CN115112955A (en) 2021-03-18 2021-03-18 Detection method and device for charging path GND impedance, adapter and charging equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110290796.9A CN115112955A (en) 2021-03-18 2021-03-18 Detection method and device for charging path GND impedance, adapter and charging equipment

Publications (1)

Publication Number Publication Date
CN115112955A true CN115112955A (en) 2022-09-27

Family

ID=83323829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110290796.9A Pending CN115112955A (en) 2021-03-18 2021-03-18 Detection method and device for charging path GND impedance, adapter and charging equipment

Country Status (1)

Country Link
CN (1) CN115112955A (en)

Similar Documents

Publication Publication Date Title
US9483093B2 (en) Electronic device and method for controlling a setting of a maximum consumption current
JP5388484B2 (en) Apparatus and method for detecting power supply
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
CN101398459B (en) Method and device for identifying charger type
JP6359459B2 (en) Mobile terminal and charging device and method thereof
EP3086433A1 (en) Charging method, alternating current adaptor, charging management device and terminal
US9866055B2 (en) Automatic scheme to detect multi-standard charger types
US9018896B2 (en) Method and system for determining whether a portable device is charging
EP2480043A1 (en) Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
CN108988431B (en) Multi-protocol charging device and multi-protocol charging method
US20120166173A1 (en) Method and system for determining an arbitrary charging protocol in usb charging ports
CN104577231B (en) A kind of method that realizing quick charge, adapter, terminal and system
JP2013140562A (en) Method for selecting internal circuit according to usb interface status and terminal
CA2830435A1 (en) Mobile terminal and interface method thereof
CN101267120B (en) Method for identifying power device and its circuit
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
WO2020244604A1 (en) Circuit detection method and apparatus, device, and storage medium
CN112165143A (en) Wireless earphone charging method, device, equipment and storage medium
EP4123867A1 (en) Smart battery device, and electronic device thereof
CN201260086Y (en) Mobile terminal and charging detection device thereof
CN102033204A (en) Battery power detection circuit, method and electronic system
CN114256897A (en) Power supply device, power supply method, and power supply system
CN100358211C (en) Charging set for handset
CN115112955A (en) Detection method and device for charging path GND impedance, adapter and charging equipment
CN214626428U (en) Charging device capable of displaying electric quantity percentage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination