CN113098091A - Interaction method and system for power supply device and adapter - Google Patents

Interaction method and system for power supply device and adapter Download PDF

Info

Publication number
CN113098091A
CN113098091A CN202110361386.9A CN202110361386A CN113098091A CN 113098091 A CN113098091 A CN 113098091A CN 202110361386 A CN202110361386 A CN 202110361386A CN 113098091 A CN113098091 A CN 113098091A
Authority
CN
China
Prior art keywords
data information
adapter
physical layer
protocol
information
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
CN202110361386.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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110361386.9A priority Critical patent/CN113098091A/en
Publication of CN113098091A publication Critical patent/CN113098091A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00045Authentication, i.e. circuits for checking compatibility between one component, e.g. a battery or a battery charger, and another component, e.g. a power source
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/02Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure relates to the technical field of charging, in particular to an interaction method and system of a power supply device and an adapter, wherein the method comprises the following steps: determining preset data information of multiple types of adapters, wherein the preset data information comprises target data information and error data information corresponding to the target data information; receiving reference data information sent by the adapter, and sending transmission data information according to the reference data information so that the adapter sends the reference data information again according to the transmission data information and the preset data information; verifying the adapter for multiple times according to the reference data information and the preset data information, and determining the target type of the adapter; and when the received reference data information is the same as the target data information corresponding to the adapter of the target type, establishing a direct charging communication link between the adapter and the power supply device. Technical solution of the embodiments of the present disclosure. It is possible to prevent erroneous judgment of the type of the adapter due to a glitch signal of a fixed position.

Description

Interaction method and system for power supply device and adapter
Technical Field
The disclosure relates to the technical field of charging, in particular to an interaction method and system of a power supply device and an adapter.
Background
With the continuous development of the charging technology in the mobile phone industry, the detection level of the communication signal in the charging process is higher and higher.
In the prior art, a burr signal may appear at some fixed positions in a communication signal, and when the communication signal is identified, the burr signal is processed as the communication signal, so that data acquisition is abnormal, and the communication is disconnected due to the fact that quick charging is abnormal.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The purpose of the present disclosure is to provide an interaction method of a power supply device and an adapter, and an interaction system of the power supply device and the adapter.
According to a first aspect of the present disclosure, there is provided a method for interaction between a power supply device and an adapter, including:
determining predetermined data information of multiple types of adapters, wherein the predetermined data information comprises target data information and error data information corresponding to the target data information;
receiving reference data information sent by the adapter, and sending transmission data information according to the reference data information, so that the adapter sends the reference data information again according to the transmission data information and the preset data information;
verifying the adapter for multiple times according to the reference data information and the preset data information to determine the target type of the adapter;
and when the received reference data information is the same as the target data information corresponding to the adapter of the target type, establishing a direct charging communication link between the adapter and the power supply device.
According to a second aspect of the present disclosure, there is provided an interactive system of a power supply device and an adapter, comprising:
the power supply device comprises a protocol physical layer which can execute the interaction method of the power supply device and the adapter
The interaction method of the power supply device and the adapter provided by one embodiment of the disclosure determines the preset data information of multiple types of adapters, wherein the preset data information comprises target data information and error data information corresponding to the target data information; receiving reference data information sent by the adapter, and sending transmission data information according to the reference data information so that the adapter sends the reference data information again according to the transmission data information and the preset data information; verifying the adapter for multiple times according to the reference data information and the preset data information, and determining the target type of the adapter; and when the received reference data information is the same as the target data information corresponding to the adapter of the target type, establishing a direct charging communication link between the adapter and the power supply device. Compared with the prior art, the method and the device have the advantages that the error data information corresponding to the target data information is determined, the obtained reference data information, the target data information and the error data information are compared, the target type of the adapter is obtained through multiple times of verification, misjudgment of the type of the adapter caused by the burr signal at the fixed position can be prevented, meanwhile, after the verification is completed, the direct charging communication link between the adapter and the power supply device can be established when the target data information is received, the direct charging communication link can be established after the burr signal disappears, and the normal operation of the communication link is guaranteed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 is a schematic diagram showing a power supply apparatus in the related art;
FIG. 2 is a flow chart schematically illustrating a method of interfacing a power supply device with an adapter in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a schematic diagram of a glitch signal in an exemplary embodiment of the disclosure;
FIG. 4 is a flow chart schematically illustrating detailed steps of a method for interaction of a power supply device with an adapter in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of a power supply apparatus in an exemplary embodiment of the disclosure;
FIG. 6 schematically illustrates a schematic diagram of a power supply apparatus after thinning a processor in an exemplary embodiment of the present disclosure;
FIG. 7 is a schematic view showing an overall refinement of a power supply apparatus in an exemplary embodiment of the present disclosure;
fig. 8 schematically illustrates a data flow diagram for transmitting the attribute information to the adapter according to a preset protocol in an exemplary embodiment of the present disclosure;
FIG. 9 schematically illustrates a schematic diagram of a power supply apparatus after refining an adapter in an exemplary embodiment of the present disclosure;
fig. 10 schematically shows a specific structural diagram of the adapter in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 illustrates an example of an interaction method and system of a power supply device and an adapter, to which the present disclosure may be applied, in the related art, as a charging technology in the mobile phone industry is continuously developed, a large number of fast charging technologies, such as PD, QC, and VOOC/super VOOC, emerge, referring to fig. 1, a power supply device in the related art detects a state of a battery 160 and communicates with a core processor 200 through an independent MCU130 and a data acquisition module 150, that is, detects attribute information of the battery 160, communicates with the adapter 110 according to the state of the battery 160, adjusts an output voltage and an output current of the adapter 110, controls a charge pump 121 to start a switching transistor, so that the transistor is turned on, to charge the battery 160, and is simultaneously completed in the independent MCU130 and the core processor 200 in a device to be charged when detecting the attribute information of the battery 160. Meanwhile, a charging controller 120 is configured, the charging controller is connected to the core processor 200 through a PMIC (Power Management Integrated Circuit) 170, the adapter 110 is connected to the core processor 200 through a universal asynchronous receiver/transmitter transmission line, a USB switch is used to control the switching of the lines, and a charging type determining module 124 is disposed in the charging controller 120 to determine whether the signal flow of the output signal of the adapter 110 needs to be started.
The power supply device in the related art adopts an independent MCU processor, so that the cost is high, the maintenance of independent firmware is needed, the cost is high, and the occupied area is large. The underlying hardware control logic of the original MCU processor is then integrated into the protocol physical layer. The capacity of detecting communication signals is stronger in a fast charging scheme based on a protocol physical layer, limit narrow-band burr signals can be detected, the burr signals can exist in the first few frames of signals of a certain old and irregular adapter when fast charging is started, the protocol physical layer recognizes the burr signals into normal fast charging signals, then data are collected, and finally fast charging communication is abnormal and disconnected, so that the burr signals need to be specially processed based on the protocol physical layer.
Based on this, the present application first proposes an interaction method, as shown in fig. 2, the method includes the following steps:
step S210, determining predetermined data information of multiple types of adapters, wherein the predetermined data information comprises target data information and error data information corresponding to the target data information;
step S220, receiving the reference data information sent by the adapter, and sending transmission data information according to the reference data information, so that the adapter sends the reference data information again according to the transmission data information and the preset data information;
step S230, verifying the adapter for multiple times according to the reference data information and the preset data information, and determining the target type of the adapter;
step S240, when the received reference data information is the same as the target data information corresponding to the adapter of the target type, establishing a direct charging communication link between the adapter and the power supply apparatus.
Compared with the prior art, the method and the device have the advantages that the error data information corresponding to the target data information is determined, the obtained reference data information, the target data information and the error data information are compared, the target type of the analyzer is obtained through multiple verification, the misjudgment of the type of the adapter caused by the burr signal at the fixed position can be prevented, meanwhile, after the verification is completed, the direct charging communication link between the adapter and the power supply device is established when the target data information is received, the establishment of the direct charging communication link after the burr signal disappears can be guaranteed, and the normal operation of the communication link is guaranteed.
The above steps will be described in detail below.
In step S210, predetermined data information of multiple types of adapters is determined, where the predetermined data information includes target data information and error data information corresponding to the target data information.
In an example embodiment of the present disclosure, target data information corresponding to a plurality of adapter types and error data information of the target data information under some predetermined errors may be first set, for example,
referring to fig. 3, a frame of communication between a protocol physical layer and an adapter is 18CLK (clock signal), the adapter sends 8-bit data to the protocol physical layer, the protocol physical layer processes 10 bits of data to reply to the adapter, and both the received and sent data of the protocol physical layer include a header, assuming that a command code sent by the adapter is a request fast fill code 0XA8, if there is a glitch signal 310 at this time, and the glitch signal 310 is sufficiently close to a first true bit signal, the protocol physical layer receives the glitch signal 310 to prepare for data sampling on a data pin, and then the coming true bit signal at this time finally results in that both the acquired bit signals are 0, and then 0XA 8b 10101000 sent by the adapter becomes a signal 0b 00010100-0X 14. Wherein 0XA8 can be used as the target data information, and 0X14 can be used as the error data information corresponding to the target data information.
The originally sent frame header is 101, which now becomes an erroneous 000 frame header, resulting in a fast charging failure, and then the processing time originally reserved for the digital signal processor is 5ms (8 th bit and 9 th bit time interval, CLK is completely controlled by the adapter), and now because a glitch signal is added, the processing time reserved for the digital signal processor is only 510us of the time interval between two bits. Special processing is therefore performed for glitch signals.
In the present exemplary embodiment, 0XA8 may be used as the target data information and 0X14 may be used as the error data information.
In step S220, the reference data information sent by the adapter is received, and the transmission data information is sent according to the reference data information, so that the adapter sends the reference data information again according to the transmission data information and the predetermined data information.
In an example embodiment of the present disclosure, the protocol physical layer may receive reference data information sent by the adapter, and restart the protocol physical layer to clear data in the protocol physical layer if the reference data information does not satisfy a preset condition. The preset time may be 25ms, 50ms, 10ms, or the like, or may be customized according to a user requirement, which is not specifically limited in this exemplary embodiment. The preset condition may be that the number of bytes of the received data is less than or equal to a preset number, where the preset number may be 18, 8, 10, or the like, and may also be customized according to user requirements, which is not specifically limited in this exemplary embodiment.
For example, referring to fig. 4, when the preset time is 25ms and the preset condition is that less than 18 clks (clock signals) are received, step S401 may be executed first to trigger the protocol physical layer interrupt, then step S402 may be executed to read the interrupt status register of the protocol physical layer, specifically, the interrupt status register is read in the interrupt processing function to determine which interrupt is triggered, the adaptor glitch is likely to cause the clk (clock signals) received by the protocol physical layer to be less than 18 clks, and then step S403 may be executed to determine whether the data is less than 18clk, for example, when the glitch interval is longer than 25ms, the protocol physical layer triggers, that is, only one glitch signal is received in 25 ms. When reference data information <18 clk (clock signal) interrupts is triggered, step S404, step S405, step S406, and step S407 may be performed; specifically, the data in the register received by the protocol physical layer may be discarded, and the specific method is to start the protocol physical layer first, then close the protocol physical layer, and finally start the protocol physical layer, so that the data in the register received by the protocol physical layer can be cleared, and the data in the next frame can be correctly received.
In an example embodiment of the present disclosure, the reference data information sent by the adapter is received, whether the reference data information is the same as the target data information or the error data information is determined, and if the reference data information is the same as the target data information or the error data information, the adapter type corresponding to the target data information is determined to be the reference type of the adapter.
Specifically, when the received reference data information is the same as the error data information, the generated transmission data information is shifted to the right by one bit, so that the adapter can send the reference data information to the protocol physical layer again. If the reference data information is the same as the target data information, the adapter may send the reference data information again according to the transmission data information.
In step S230, verifying the adapter for multiple times according to the reference data information and the predetermined data information, and determining a target type of the adapter;
in step S240, when the received reference data information is the same as the target data information corresponding to the adapter of the target type, a direct charging communication link between the adapter and the power supply apparatus is established.
In the present exemplary embodiment, when the received reference data information is the same as the error data information and the target data information a plurality of times, the adapter type corresponding to the target data information is set as the target type of the adapter.
In the present exemplary embodiment, if the data received by the protocol physical layer for the first time is 0X14, where 0X14 is error data information, and the corresponding target data information is 0XA8, the adapter reference type corresponding to 0XA8 is a VOOC2.0 adapter; at this time, the frame header of the transmission data information that the protocol physical layer can reply to the adapter may be a frame header corresponding to the VOOC2.0 adapter; then shifting the transmission data information by one bit to the right, so that the adapter sends the reference data information again to verify the type of the adapter; if the reference data information received for the second time is still 0X14, it can be determined that the target type of the adapter is the VOOC2.0 adapter or the adapter type can be verified again using the reference data information for the third time. The number of times of verification may be two, three, or more, and is not particularly limited in the present exemplary embodiment.
After determining the target type of the adapter, the reference data information is accepted again until the received reference data information is the same as the target data information, and a direct charging communication link between the power supply device and the adapter is established.
For example, referring to fig. 4, step S408 is first performed to read the receiving register of the phy, specifically, to read the data inside the receiving register of the phy, and then step S409, step S410 and step S411 are performed; specifically, it may be determined whether the data in the adapter is 0X14, and it should be noted that the normal data sent by the adapter before the fastchg _ allow is true cannot be 0X14, and the receipt of 0X14 indicates that the data in the adapter is affected by a glitch. Therefore, if the frame is not 0X14, the frame is handed to a normal data processing flow for processing, that is, the frame header of the frame data is considered not to be aligned, and the protocol physical layer needs to be reset again; in the case of 0X14, the fast _ allow is true, and a normal data processing flow is also required to process the frame data, that is, the frame header of the frame data is considered not to be aligned, and the protocol physical layer needs to be reset again.
When the received data is 0X14 and the fast _ allow is false, that is, the data of the glitch is received in the first few frames of data, it needs to be processed by a function of special processing 0X 14. The VOOC2.0 adapter can work in two modes, one is a real fast charging mode, the other is a powerbank mobile power mode, the reference type VOOC2.0 adapter of the adapter can be considered after receiving 0X14, and then step S412 can be executed to shift the data to be replied of the protocol physical layer by one bit to the right; and step S413, judging whether the quick charging mode is in; specifically, because the glitch affects the data that has received one bit more, in order to make the adapter receive the real frame header, the data to be recovered needs to be moved to the right by one bit, which has the essential effect that when the adapter sends the data of the last bit of 8 bits, the protocol physical layer starts to return the data (the protocol physical layer and the adapter operate the data signal of clk simultaneously), so the highest bit of 10 bits to be recovered has no effect.
When operating in the true fast charge mode, step S417 is executed, in which bit4 sets the setting of allowing fast charge, specifically, bit4 is set to 1 directly to indicate that fast charge is allowed (bit 3 is set to 1 under normal conditions to indicate that fast charge is allowed), so that the next data is referred to the command code of vbus _ OK, that is, whether the adapter output voltage is normal is detected, rather than 0XA8 code which may cause glitch. When operating in power bank mode, it must wait to a certain 0XA8,
because the last three bits of the 10 bits returned to the adapter are 101 in the power _ bank mode, and the effect of the glitch is now that the data to be returned moves to the right by one bit, which is equivalent to that the last bit is not returned to the adapter, and the last three bits received by the adapter cannot be 101, it is necessary to set bit4 to 0 to indicate that the fast charging is not allowed, and under the condition that the fast charging is not allowed, the adapter will always send 0XA8 to the protocol physical layer, and the protocol physical layer establishes a direct charging communication link after receiving a data code of 0XA8 without the glitch. In application, the actual test result is equal to 3 times at most, a direct charging communication link can be established, namely, no burr signal exists in the fourth reference data information center after the burr signal is received for three times, the entering of the scheme can be delayed by 200ms, but the problem that the fast charging cannot be entered due to misjudgment caused by burrs can be solved.
In an example embodiment of the present disclosure, after performing multiple verifications, step S418 may be further performed, it is determined that the adapter is VOOC2.0 and the code is VOOC2.0, then step S419 is performed, it is determined whether to allow fast charging, if so, step S420 is performed, fastchg-dummy is set to true and is notified to the core processor through the GLINK, and if not, step S421 is performed, and fastchg-dummy is set to false and is notified to the core processor through the GLINK.
When the mobile terminal operates in the non-fast charge mode, step S414 may be executed, Bit4 sets that fast charge is not allowed, step S415 determines that the adapter is VOOC2.0 and the code is VOOC2.0, and step S416 is executed to configure fastchg _ allow as false, that is, the configuration information is that fast charge is not allowed.
In summary, according to the technical solution of the present example, the error data information corresponding to the target data information is determined, the obtained reference data information is compared with the target data information and the error data information, and multiple times of verification are performed to obtain the target type of the adapter, so that misjudgment of the adapter type due to the glitch signal at the fixed position can be prevented.
In this exemplary embodiment, the duration of each clock signal may also be detected, and when the duration is greater than or equal to the preset time, the clock signal is determined to be normal data information, and if the duration is less than the preset time, the clock signal is determined to be a glitch signal, and the glitch signal is filtered, that is, the clock signal whose duration is less than or equal to the preset time is not responded.
Secondly, the present disclosure further provides a new interactive system of a power supply device and an adapter, where the power supply device includes a protocol physical layer, the protocol physical layer can execute the above interactive method of the power supply device and the adapter, and the specific steps of the interaction between the power supply device and the adapter have been described in detail above, and therefore, are not described herein again.
In the present exemplary embodiment, as shown with reference to fig. 5, the power supply apparatus may be provided to a device to be charged, which is connected to the external adapter 110; the power supply device may include a digital signal processor 140, a charge controller 120, a protocol physical layer 122 integrated with the charge controller 120, and a protection module 180. Wherein the digital signal processor 140 receives attribute information of the battery 160; the charge controller 120 is connected to the digital signal processor 140, the adapter 110, and the battery 160; the protocol physical layer 122 is integrated in the charge controller 120, connected to the dsp 140 and the adapter 110, and configured to transmit the attribute information to the adapter 110 according to a preset protocol so that the adapter 110 can adjust the output signal according to the attribute information, and feed back a transmission completion signal of the attribute information to the dsp 140 so that the dsp 140 controls the charge controller 120 to generate a close control signal according to the transmission completion signal; protection module 180 is coupled to adapter 110, battery 160, and protocol phy 122 for transmitting an output signal to battery 160 in response to a close control signal.
In an example embodiment of the present disclosure, referring to fig. 6, the dsp 140 is integrated into a device to be charged, which may be a portable electronic device such as a laptop computer, a mobile phone, and a Personal Digital Assistant (PDA). The digital signal processor 140 may include an analog-to-digital conversion module 142 and a protocol processing module 141, wherein the analog-to-digital conversion module 142 is configured to perform analog-to-digital conversion on the received attribute information, and the protocol processing module 141 is configured to receive a communication signal of the protocol physical layer 122 and transmit the attribute information to the adapter 110 according to a preset protocol.
In an exemplary embodiment of the disclosure, the power tube providing apparatus may further include a core processor 200, connected to the digital signal processor 140, for controlling display contents of the device to be charged according to information sent by the digital signal processor 140, for example, when the digital signal processor 140 is adapted to the adapter 110 and establishes communication, starting direct charging, the digital signal processor 140 sends a direct charging starting signal to the core processor 200, and the core processor 200 controls the plug charging device to display a direct charging identifier according to the direct charging starting signal. The core processor 200 may be connected to the dsp 140 via a GLINK bus.
In an example embodiment of the present disclosure, the power supply device may further include a data acquisition module 150, where the data acquisition module 150 is integrated with the device to be charged, and is configured to acquire the attribute information of the battery 160 and transmit the attribute information to the digital signal processor 140. The attribute information may include information such as voltage, current, and temperature of the battery 160, the data acquisition module 150 may include a fuel gauge, and may further include a detection device such as a temperature sensor, a voltage meter, and an ammeter, which are not specifically limited in this exemplary embodiment, along with a change in the amount of the attribute information that needs to be detected, a detection device corresponding to information in the attribute information may be set in the data acquisition module 150, for example, when the remaining power of the battery 160 needs to be detected, one coulometer may be added to detect the remaining power.
In the present exemplary embodiment, the data acquisition module 150 may be connected to the digital signal processor 140 through an I2C bus, so as to transmit the attribute information to the digital signal processor 140.
In the real-time manner of this example, the data acquisition module 150 may acquire the attribute information of the battery 160 once every other preset time, where the preset time may be 5 milliseconds, 10 milliseconds, and the like, and may also be customized according to a user requirement, and is not specifically limited in this example embodiment.
In this exemplary embodiment, after receiving the attribute information acquired by the data acquisition module 150, the digital signal processor 140 performs analog-to-digital conversion on the attribute information by using the analog-to-digital conversion module 142, and the digital signal processor 140 may store the attribute information for a preset number of times, where the preset number may be 5 times, that is, when the attribute information is acquired for the sixth time, the attribute information acquired for the first time is released, and the preset number may also be 10 times, 15 times, and the like, and may also be customized according to a user requirement, which is not specifically limited in this exemplary embodiment.
In an example embodiment of the present disclosure, the protocol physical layer 122 is connected to the digital signal processor 140 and the adapter 110, and configured to transmit an attribute signal to the adapter 110 according to a preset protocol, so that the adapter 110 can adjust an output signal according to the attribute information, and simultaneously feed back a transmission completion signal of the attribute information to the digital signal processor 140, so that the digital signal processor 140 controls the charge controller 120 to generate a close control signal according to the transmission completion signal, where the protocol physical layer 122 may be implemented by a digital circuit state machine.
In the present exemplary embodiment, the battery 160 is a secondary battery 160, which can be recharged using the charging voltage provided by the adapter 110, and the battery 160 can also be formed by at least one battery 160 cell having a specific electronic voltage and capable of outputting a voltage. The battery 160 supplies data information about the battery 160, which may be included in the above-described attribute information, and the data information may include a full charge bit of the battery 160, a full charge capacity of the battery 160, and the like.
In the present exemplary embodiment, as shown in fig. 6, the protocol phy 122 may be connected to the digital signal processor 140 through a data transmission line 420 and an interrupt line 410; the protocol physical layer 122 may be connected to the adapter 110 via a universal serial bus. The data transmission line 420 may be an I2C bus, an SPI (Serial Peripheral Interface) bus, or an SPMI bus, which is not limited in this exemplary embodiment.
Specifically, referring to fig. 8, step S810 may be executed first, the digital signal processor 140 sends a handshake signal, when the protocol physical layer 122 receives the handshake signal sent by the digital signal processor 140, that is, it indicates that the charging interface is connected to the device to be charged, at this time, step S820 may be executed, the protocol physical layer 122 may jump to an IDLE state (IDLE state) to prepare DATA transmission, and at the same time, the handshake signal is sent to the adapter 110, the adapter 110 receives the handshake signal and then issues a protocol sending instruction, after the protocol physical layer 122 receives the protocol sending instruction, step S830 may be executed, the protocol physical layer 122 jumps to a DATA receiving state (RECV _ DATA state), and then the adapter 110 sends protocol content, where the protocol content may be DATA that needs to be received, that is, the DATA that needs to be received includes one or more of the above attribute information, the protocol content may also include a bit number of data to be received, for example, 8-bit data, 9-bit data, etc., and the protocol phy 122 includes a received data counting function in the received attribute information.
After the protocol physical layer 122 receives the protocol content, step S850 may be executed, in which the protocol physical layer 122 jumps to a WAIT for DATA transmission state (WAIT _ TX _ DATA state) and transmits a DATA acquisition instruction to the digital signal processor 140; after receiving the data acquisition instruction, the dsp 140 sends the attribute information to the protocol phy 122 according to the data acquisition instruction, where the attribute information includes all attribute information required in the protocol content, such as the current of the battery 160, the temperature of the battery 160, and the like. After the protocol physical layer 122 receives the attribute information, step S860 may be performed, in which the protocol physical layer 122 jumps to a DATA transmission state (SEND _ DATA state), then transmits the attribute information to the adaptor 110, and then jumps to an IDLE state (IDLE state).
In the present exemplary embodiment, when the protocol phy 122 does not receive the attribute information sent by the dsp 140, or the received attribute information is incomplete, that is, the data reception is wrong, step S840 may be executed to jump the protocol phy 122 to the off state (DISABLE state), where when the received attribute information is incomplete, for example, the data required to be obtained in the protocol content may include the voltage, the current, and the temperature of the battery 160, but the received attribute information includes only the voltage and the current of the battery 160, and there is no temperature information, and it is determined that the received attribute information is incomplete. For another example, the data that needs to be received in the protocol content is 8-bit data, but the attribute information received by the protocol physical layer 122 is not enough for 8-bit data, such as 6-bit data, 7-bit data, etc., step S840 may be executed to jump the protocol physical layer 122 to the off state (DISABLE state).
In the present exemplary embodiment, when the protocol physical layer 122 transmits the attribute information to the adapter 110, it is detected whether a transmission completion signal, that is, an electrical signal is the same level signal for a certain time, for example, a low level signal for 50 milliseconds, a high level signal for 40 milliseconds, or the like, has occurred when the attribute information is transmitted. The certain time may be 50 milliseconds, 40 milliseconds, 60 milliseconds, or the like, or may be customized according to user requirements, and the same level signal may be a high level signal or a low level signal, which is not specifically limited in this exemplary embodiment.
When the occurrence of the transmission completion signal is detected, indicating that the data transmission is normal and the data transmission is completed, step S820 may be executed to jump the protocol phy 122 to an IDLE state (IDLE state) and wait for the next round of data reception. If the transmission completion signal is not received after the data transmission is completed, that is, the protocol physical layer 122 is still transmitting data after the data with the corresponding bit number is transmitted, and it is determined that the transmission attribute information is abnormal, step S840 may be executed to jump the protocol physical layer 122 to a shutdown state (DISABLE state).
In the present exemplary embodiment, the protocol phy 122 may receive a shutdown signal sent by the dsp 140, and directly jump the protocol phy 122 to a shutdown state (DISABLE state). When the protocol phy 122 is in the off state (IDLE state), the protocol phy 122 may jump to the IDLE state (IDLE state) in response to an enable signal sent by the digital signal processor 140.
In the present exemplary embodiment, if there is no abnormality in the transmission process of the attribute information, that is, the adapter 110 receives complete attribute information, the protocol physical layer 122 sends an attribute information transmission completion signal to the digital signal processor 140, and the digital signal processor 140 controls the charge controller 120 to generate a close control signal, and if the protocol physical layer 122 is in a close state (DISABLE state), the protocol physical layer 122 generates a transmission failure signal of the attribute information, and the digital signal processor 140 generates a close control signal according to the transmission failure signal, and stops charging to prevent the battery 160 from being damaged by an excessively high output voltage of the adapter 110.
In the present exemplary embodiment, referring to fig. 7, the charging controller 120 is also integrated inside the device to be charged, the device to be charged is connected to the adapter 110 through a USB interface, and includes a first USB switch 190 at the USB interface, wherein the first USB switch 190 is a shunt switch element, and the line is divided into two paths, one of the two paths is directly connected to the digital signal processor 140 through a Universal Asynchronous Receiver/Transmitter (USB Asynchronous Receiver/Transmitter) 430, for transmitting serial data, for example, downloading a file to the device to be charged, or uploading a file from the device to be charged.
In the present exemplary embodiment, the second path of the first USB switch 190 is connected to the second USB switch 123 disposed inside the charging controller 120, the second USB switch 123 may also be a shunt switch, and is respectively connected to the protocol physical layer 122 and the charging type determining module 124, and when the charging type determining module 124 determines that the USB interface is connected to the adapter 110, the second USB switch 123 is connected to the protocol physical layer 122, so as to complete the communication between the adapter 110 and the dsp 140.
In the present exemplary embodiment, the charging controller 120 may be configured to convert the output signal of the adapter 110 into a preset input signal and transmit the battery 160 when the adapter 110 is not adapted to the dsp 140, that is, when the dsp 140 cannot transmit the attribute information to the adapter 110 through the protocol physical layer 122, where the preset input signal may be an electrical signal of 5V and 2A, and the preset input signal may also be set according to the difference between the adapter 110 and the battery 160, for example, the preset input signal is set to 5V and 1.5A, which is not specifically limited in the present exemplary embodiment.
The charging controller 120 can ensure that the digital signal processor 140 can not transmit the attribute information to the adapter 110, and can also continue to charge the battery 160, and ensure the charging safety.
In this exemplary embodiment, referring to fig. 7, the charge controller 120 may further include a driving signal generating module, configured to receive an instruction of the digital signal processor 140 and generate a close control signal or a close control signal, where the driving signal generating module may be the charge pump 121, and configured to control the charge pump 121 to generate the close and control signal when the digital signal processor 140 receives a transmission completion signal of the attribute information; the protection module 180 is turned on, and thus the output signal can be transmitted to the battery 160 through the protection module 180. Or when the digital signal processor 140 receives the attribute information transmission failure signal, the digital signal processor 140 controls the charge pump 121 to generate an off control signal, so that the protection module 180 cannot pass current to protect the battery 160.
In the present exemplary embodiment, referring to fig. 7, the protection module 180 may include at least one switching transistor, for example, two, three, etc., which are not specifically limited in the present exemplary embodiment, wherein the switching transistors each have a control terminal, a first terminal, and a second terminal. Specifically, the control terminal of the switching transistor may be a gate, the first terminal may be a source, and the second terminal may be a drain; or the control terminal of the switching transistor may be a gate, the first terminal may be a drain, and the second terminal may be a source. In addition, the switching transistor may be an enhancement transistor or a depletion transistor, which is not particularly limited in the present exemplary embodiment.
In the present exemplary embodiment, the switch transistors are connected to the driving signal generating module, when the number of the switch transistors is two, the control terminals of the two switch transistors are both connected to the driving signal generating module, the first terminal of the first switch transistor is connected to the adapter 110, the second terminal of the first switch transistor is connected to the first terminal of the second switch transistor, and the second terminal of the second switch transistor is connected to the battery 160. The switching element may control the switching element to turn on in response to a closing control signal and turn off the switching element upon receiving a turn-off control signal.
In the present exemplary embodiment, as shown with reference to fig. 9, the adapter 110 is supplied with commercial AC (alternating current) power, converts the commercial AC power into DC (direct current) power of a predetermined voltage level, and supplies the DC power to the battery 160 described above.
An adapter 110 according to one embodiment of the present disclosure may include an AC/DC converter 111 and an adapter controller 112.
The AC/DC converter 111 converts the input AC power into DC power and outputs the DC power. The AC/DC converter 111 may selectively convert the input AC power into a DC power Va of a specific level corresponding to a plurality of voltage levels according to a signal provided by the controller 112 and output the DC power. The DC power output from the AC/DC converter 111 is output to the battery 160.
The controller 112 determines the output signals, i.e., the output voltage and the output current, of the AC/DC converter 111 from the electronic voltage obtained from the protocol physical layer 122 and the attribute information.
Referring to fig. 10, the adaptor 110 includes: a controller 112 and an AC/DC converter 111. Wherein, the controller 112 is used for receiving the attribute information of the battery 160 to determine the output signal controller 112. For example, it can be implemented by a separate microcontrol Unit (MCU).
The AC/DC converter 111 is connected to the controller 112, and is configured to adjust an output voltage of the adapter 110 according to control of the controller 112.
In addition, as shown in fig. 10, the adapter 110 may further include a rectifying circuit R1 and a voltage conversion module S1. Among them, the rectifier circuit R1 is used to convert an alternating-current voltage received from an AC into a direct-current voltage, such as a pulsating direct-current voltage.
In addition, in order to obtain a stable dc voltage (e.g., a constant dc voltage), the adapter 110 may further include: the filter circuit F1 is connected to the output end of the rectifier circuit R1, and is configured to filter the dc voltage output by the rectifier circuit R1.
The present disclosure is not limited to the specific circuit configuration of the rectifier circuit R1, and the rectifier circuit R1 may be, for example, a commonly used rectifier bridge or another circuit that can realize the above-described function of converting an ac voltage into a dc voltage.
In summary, in the exemplary embodiment, an independent MCU is not required to complete data processing, and only a protocol phy 122 is integrated on the side of the low charging point controller 112 to complete communication, and the data processing process is executed by the dsp 140 in the device to be charged, so that the complexity of the power supply apparatus is simplified, the cost is reduced, and the occupied area of the power supply apparatus is reduced.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 to be limited only by the terms of the appended claims.

Claims (15)

1. A method for interaction between a power supply device and an adapter is characterized by comprising the following steps:
determining predetermined data information of multiple types of adapters, wherein the predetermined data information comprises target data information and error data information corresponding to the target data information;
receiving reference data information sent by the adapter, and sending transmission data information according to the reference data information, so that the adapter sends the reference data information again according to the transmission data information and the preset data information;
verifying the adapter for multiple times according to the reference data information and the preset data information to determine the target type of the adapter;
and when the received reference data information is the same as the target data information corresponding to the adapter of the target type, establishing a direct charging communication link between the adapter and the power supply device.
2. The method of claim 1, wherein sending transmission data information according to the reference data information comprises:
when the reference data information is the same as the target data information or the error data information, determining an adapter type corresponding to the target data information as a reference type of the adapter;
and determining a frame header for transmitting data information according to the reference type, and sending the data information to the adapter.
3. The method of claim 2, further comprising:
and when the reference data information is not the same as the target data information or the error data information, disconnecting the direct charging communication link between the adapter and the power supply device.
4. The method of claim 1, wherein the adapter resends the reference data information according to the transmission data information and the predetermined data information, comprising:
if the reference data information is the same as the error data information, shifting the transmission data information by one bit to the right so that the adapter sends the reference data information again;
and if the reference data information is the same as the target data information, the adapter sends the reference data information again according to the transmission data information.
5. The method of claim 1, wherein the power supply device comprises a digital signal processor, a charge controller, a protocol physical layer, and a protection module; the method further comprises the following steps:
receiving, by a digital signal processor, attribute information of a battery;
transmitting the attribute information to an adapter according to a preset protocol through a protocol physical layer integrated in a charging controller so that the adapter can adjust an output signal according to the attribute information, and feeding back a transmission completion signal of the attribute information to a digital signal processor so that the digital signal processor controls the charging controller to generate a closing control signal according to the transmission completion signal;
transmitting, by a protection module, the output signal to the battery in response to the close control signal.
6. The method of claim 5, further comprising:
and restarting the protocol physical layer if the reference data information received in the preset time does not meet the preset condition so as to clear the data in the protocol physical layer.
7. The method of claim 5, wherein transmitting the attribute information to the adapter according to a predetermined protocol comprises:
receiving a handshake signal sent by the digital signal processor, and adjusting the protocol physical layer to be in an idle state;
receiving a protocol sending instruction sent by an adapter, and adjusting the protocol physical layer to a data receiving state;
when protocol content sent by the adapter is received, the protocol physical layer is adjusted to a state of waiting for data sending, and the digital signal processor sends a data acquisition instruction;
receiving attribute information sent by the digital signal processor according to the data acquisition instruction, and adjusting the protocol physical layer to a data sending state;
and sending the attribute information to the adapter, and adjusting the protocol physical layer to be in an idle state.
8. A power supply device and adapter interaction system comprises a power supply device and an adapter, wherein the power supply device comprises a protocol physical layer which can execute the power supply device and adapter interaction method according to any one of claims 1-7.
9. The system of claim 8, wherein the power supply further comprises a digital signal processor, a charge controller, and a protection module; wherein the content of the first and second substances,
the digital signal processor is used for receiving attribute information of the battery;
the charging controller is connected to the processor, the adapter and the battery;
the protocol physical layer is connected with the digital signal processor and the adapter and is also used for transmitting the attribute information to the adapter according to a preset protocol so that the adapter can adjust an output signal according to the attribute information; feeding back a transmission completion signal of the attribute information to a processor by the protocol physical layer so that the digital signal processor controls the charging controller to generate a closing control signal according to the transmission completion signal;
and the protection module is connected with the adapter, the battery and the protocol physical layer and used for responding to the closing control signal and transmitting the output signal to the battery.
10. The system of claim 9, wherein the charge controller further comprises:
a charge pump for generating a close control signal and a close control signal;
the protection module includes at least one switching transistor for transmitting the output signal to the battery in response to the close control signal or for turning off in response to the turn-off control signal.
11. The system of claim 9, wherein the output signal of the adapter is adjusted by the charge controller to a preset input signal for transmission to the battery when the adapter is not compatible with the digital signal processor.
12. The system of claim 9, wherein the power supply further comprises:
and the data acquisition module is connected with the digital signal processor and used for acquiring the attribute information and transmitting the attribute information to the digital signal processor.
13. The system of claim 9, wherein the digital signal processor further comprises:
the analog-to-digital conversion module is used for performing analog-to-digital conversion on the attribute information;
and the protocol processing module is used for receiving the communication signal of the protocol physical layer and transmitting the attribute information to the adapter according to the preset protocol.
14. The system of claim 9, wherein the protocol physical layer comprises a digital circuit state machine.
15. The system of claim 9, wherein the attribute information comprises a handshaking signal, a voltage, a current, and a temperature of the battery.
CN202110361386.9A 2021-04-02 2021-04-02 Interaction method and system for power supply device and adapter Pending CN113098091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110361386.9A CN113098091A (en) 2021-04-02 2021-04-02 Interaction method and system for power supply device and adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110361386.9A CN113098091A (en) 2021-04-02 2021-04-02 Interaction method and system for power supply device and adapter

Publications (1)

Publication Number Publication Date
CN113098091A true CN113098091A (en) 2021-07-09

Family

ID=76673649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110361386.9A Pending CN113098091A (en) 2021-04-02 2021-04-02 Interaction method and system for power supply device and adapter

Country Status (1)

Country Link
CN (1) CN113098091A (en)

Similar Documents

Publication Publication Date Title
JP5717005B2 (en) Method and terminal for selecting an internal circuit according to the status of a USB interface
JP5388484B2 (en) Apparatus and method for detecting power supply
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
US9484759B2 (en) Method for detecting a type of charger coupled to an input-output circuit and input-output circuit therefor
CN103618356B (en) The charging system of a kind of mobile terminal and charging method thereof
US20200169101A1 (en) Mobile Terminal, Peripheral Device, and Charging Method Thereof
US11641124B2 (en) Electronic device and charging method thereof
US9110650B2 (en) Electronic device having USB interface and method for starting USB communication with such device
US20170005495A1 (en) Method and apparatus for charging electronic device with usb connection
US5713028A (en) Micro-processor unit having universal asynchronous receiver/transmitter
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
WO2023134458A1 (en) Electronic device
US20150349561A1 (en) Charging an electrical device via a data interface
CN113098091A (en) Interaction method and system for power supply device and adapter
CN114256897A (en) Power supply device, power supply method, and power supply system
CN114520524A (en) Power supply device, power supply method, and power supply system
CN112948186A (en) Detection device and detection method of interface signal
CN112825401B (en) Charging line, charger, charging control method and charging device
CN113036859A (en) Power supply device, power supply method, and power supply system
CN113036862A (en) Power supply device, power supply method, and power supply system
CN113162131A (en) Reverse charging system, reverse charging method and terminal equipment
CN114520523A (en) Power supply device, power supply method, and power supply system
US20230087819A1 (en) Physical layer chip and electronic device
US20230083174A1 (en) Port controller and electronic device
CN218849054U (en) Display device and debugging system thereof

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