Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein, but rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary 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 a repetitive description thereof 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 software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In the related art, referring to fig. 1, the related art power supply apparatus detects the state of the battery 160 through the independent MCU130 and the data acquisition module 150 and communicates with the processor 140, that is, detects the attribute information of the battery 160, communicates with the adapter 110 according to the state of the battery 160, adjusts the output voltage and output current of the adapter 110, controls the charge pump 121 to start the switching transistor so that the transistor is turned on, and charges the battery 160, which is simultaneously performed by the independent MCU130 and the processor 140 in the device to be charged when detecting the attribute information of the battery 160. Meanwhile, a charge controller 120 is configured, the charge controller is connected with a processor 140 through a PMIC (Power MANAGEMENT INTEGRATED Circuit) 170, the adapter 110 is connected with the processor through a universal asynchronous receiving and transmitting transmission line, a USB switch is used to control switching of the line, and a charge type judging module 124 is arranged in the charge controller 120 to determine whether a signal flow direction of an output signal of the adapter 110 needs to be started.
The power supply device in the related art adopts the independent MCU processor 140, which has high cost, needs separate firmware maintenance, and has high cost and large occupied area.
In view of the above-mentioned drawbacks, the present application first provides a power supply apparatus capable of solving one or more of the above-mentioned problems to some extent, referring to fig. 2, the power supply apparatus is based on a device to be charged, which is connected to an external adapter 110, and the power supply apparatus may include a processor 140, a charge controller 120, a protocol module 122 integrated with the charge controller 120, and a protection module 180. The processor 140 receives attribute information of the battery 160, the charge controller 120 is connected to the processor 140, the adapter 110 and the battery 160, the protocol module 122 is integrated with the charge controller 120 and connected to the processor 140 and the adapter 110, and is used for transmitting the attribute information 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 feed back a transmission completion signal of the attribute information to the processor 140, so that the processor 140 controls the charge controller 120 to generate a closing control signal according to the transmission completion signal, and the protection module 180 is connected to the adapter 110, the battery 160 and the protocol module 122, and is used for responding to the closing control signal and transmitting the output signal to the battery 160.
Compared with the prior art, the data processing is completed without adopting an independent MCU, and only the communication is completed by integrating the protocol module 122 on one side of the charging point controller 112, and the data processing process is executed by the processor 140 in the equipment to be charged, so that the complexity of the power supply device is simplified, the cost is reduced, and the occupied area of the power supply device is reduced.
In an example embodiment of the application, referring to fig. 3, the processor 140 is integrated into a device to be charged, which may be a portable electronic device such as a notebook computer, a mobile phone, a Personal Digital Assistant (PDA), etc. The processor 140 may include an analog-to-digital conversion module 142 and a protocol processing module 141, where 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 module 122 and transmit the attribute information to the adapter 110 according to a preset protocol.
In an example embodiment of the present disclosure, the power supply apparatus may further include a data acquisition module, and the data acquisition module 150 is integrated with the device to be charged, and is configured to acquire attribute information of the battery 160 and transmit the attribute information to the processor 140. The attribute information may include information such as voltage, current, temperature, etc. of the battery 160, the data acquisition module 150 may include an electricity meter, and may further include detection devices such as a temperature sensor, a voltmeter, an ammeter, etc., which are not specifically limited in this example embodiment, and as the number of attribute information to be detected changes, a detection device corresponding to the information in the attribute information may be provided in the data acquisition module 150, for example, when the remaining electric quantity of the battery 160 needs to be detected, a coulombmeter may be added to detect.
In the present exemplary embodiment, the data acquisition module 150 may be connected to the processor 140 through an I2C bus for transmitting the attribute information to the processor 140.
In this example real-time manner, the data acquisition module 150 may acquire the attribute information of the primary battery 160 at every preset time, where the preset time may be 5 ms, 10 ms, etc., or may be customized according to the user requirement, which is not specifically limited in this example embodiment.
In this exemplary embodiment, the processor 140 receives the attribute information collected by the data collection module 150 and performs analog-to-digital conversion on the attribute information by using the analog-to-digital conversion module 142, and the 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 collected for the sixth time, the attribute information collected for the first time is released, the preset number may also be 10 times, 15 times, etc., or may be customized according to the user requirement, which is not specifically limited in this exemplary embodiment.
In an exemplary embodiment of the present application, the protocol module 122 is connected to the processor 140 and the adapter 110, and is 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 processor 140, so that the processor 140 controls the charge controller 120 to generate a closed control signal according to the transmission completion signal, where the protocol module 122 may be implemented by a digital circuit state machine.
In the present exemplary embodiment, the battery 160 is a storage battery 160, which may be recharged using the charging voltage provided by the adapter 110, and the battery 160 may be further formed of at least one battery 160 unit 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, referring to fig. 4, the protocol module 122 may be connected to the processor 140 through a data transmission line 420 and an interrupt line 410, and the protocol module 122 may be connected to the adapter 110 through a universal serial bus. Wherein the data transmission line 420 may be an I2C bus, SPI bus (SERIAL PERIPHERAL INTERFACE ), or SPMI bus, not specifically limited in this example embodiment
Specifically, referring to fig. 5, step S510 may be performed first, where the processor 140 sends a handshake signal, when the protocol module 122 receives the handshake signal sent by the processor 140, that is, indicates that the charging interface is already connected to the device to be charged, at this time, step S520 may be performed, where the protocol module 122 may be adjusted to be in an IDLE state (IDLE state) to prepare for DATA transmission, and at the same time, send the handshake signal to the adapter 110, where the adapter 110 receives the handshake signal, and then sends a protocol sending instruction, after the protocol module 122 receives the protocol sending instruction, step S530 may be performed, where the protocol module 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, where the DATA that needs to be received includes one or more of the attribute information, and may also be a number of bits that needs to be received, for example, receiving 8 bits of DATA, 9 bits of DATA, and at this time, the protocol module receives the attribute information that includes a received DATA counting function.
After the protocol module 122 receives the protocol contents, step S550 may be performed, the protocol module 122 jumps to a WAIT DATA transmission state (wait_tx_data state) and transmits a DATA acquisition instruction to the processor 140, and the processor 140 transmits attribute information to the protocol module 122 according to the DATA acquisition instruction after receiving the DATA acquisition instruction, where the attribute information includes all attribute information required in the protocol contents, such as a battery 160 current, a battery 160 temperature, etc. After the protocol module 122 receives the attribute information, step S360 may be performed, and the protocol module 122 jumps to a DATA transmission state (send_data state), then transmits the attribute information to the adapter 110, and then jumps to an IDLE state (IDLE state).
In this exemplary embodiment, when the protocol module 122 does not receive the attribute information sent by the processor 140, or when the received attribute information is incomplete, that is, when the data is received in error, step S540 may be performed, and the protocol module 122 is skipped to the off state (DISABLE state), where, when the received attribute information is incomplete, the data to be acquired in the protocol content may include, for example, 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 no temperature information, and it is determined that the received attribute information is incomplete. For another example, the data to be received in the protocol content is 8-bit data, but the attribute information received by the protocol module 122 is not 8-bit data, for example, 6-bit data, 7-bit data, etc., then step S540 may be executed to jump the protocol module 122 to the off state (DISABLE state).
In the present exemplary embodiment, when the protocol module 122 transmits attribute information to the adapter 110, it is detected whether or not a transmission completion signal, i.e., an electric 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, occurs when the attribute information is transmitted. The certain time may be 50 ms, 40 ms, 60 ms, etc., or may be customized according to the user requirement, 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 transmission completion signal is detected to be present, indicating that the data transmission is normal and the data transmission is completed, step S560 may be performed to skip the protocol module 122 to an IDLE state (IDLE state) and wait for the reception of the next round of data. If the transmission completion signal is not received after the data transmission is completed, that is, if the protocol module 122 is still transmitting data after transmitting the data of the corresponding bit number, and it is determined that the transmission attribute information is abnormal, step S540 may be executed to jump the protocol module 122 to the off state (DISABLE state).
In this example embodiment, the protocol module 122 may receive the shutdown signal sent by the processor 140, and directly jump the protocol module 122 to the shutdown state (DISABLE state). When the protocol module 122 is in the off state (DISABLE state), the protocol module 122 may be jumped to the IDLE state (IDLE state) in response to the enable signal sent by the processor 140.
In this exemplary embodiment, if there is no abnormality in the transmission process of the attribute information, that is, the adapter 110 receives the complete attribute information, the protocol module 122 sends an attribute information transmission completion signal to the processor 140, and the processor 140 controls the charge controller 120 to generate a closing control signal, and if the protocol module 122 is in a closed state (DISABLE state), the protocol module 122 generates a transmission failure signal of the attribute information, and the processor 140 generates a shutdown control signal according to the transmission failure signal, and stops charging to prevent the battery 160 from being damaged due to the excessive output voltage of the adapter 110.
In this exemplary embodiment, referring to fig. 4, the charging controller 120 is also integrated inside the device to be charged, where the device to be charged is connected to the adapter 110 through a USB interface, and includes a first USB switch 190 at a USB interface position, where the first USB switch 190 is a branching switch element, and divides a circuit into two paths, and one path is directly connected to the processor 140 through a universal asynchronous receiving/transmitting line 430 (Universal Asynchronous Receiver/Transmitter) for transmitting serial data, for example, downloading a file to the device to be charged, or uploading the 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, and the second USB switch 123 may be a shunt switch, which is connected to the protocol module 122 and the charging type determining module 124, respectively, 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 module 122, so as to complete the communication between the adapter 110 and the processor 140.
In this example embodiment, the charge controller 120 may be configured to convert an output signal of the adapter 110 into a preset input signal and transmit the battery 160 when the adapter 110 is not matched with the processor 140, that is, when the processor 140 cannot transmit the attribute information to the adapter 110 through the protocol module 122, where the preset input signal may be an electrical signal of 5V or 2A, or may be set according to a difference between the adapter 110 and the battery 160, for example, the preset input signal is set to 5V or 1.5A, which is not specifically limited in this example embodiment.
The charging controller 120 can ensure that the battery 160 can be continuously charged when the processor 140 cannot transmit the attribute information to the adapter 110, and ensure the charging safety.
In this exemplary embodiment, referring to fig. 4, the charging controller 120 may further include a driving signal enabling module configured to receive an instruction of the processor 140 and generate a closing control signal or an opening control signal, where the driving signal generating module may be a charge pump 121, and is configured to control the charge pump 121 to generate the closing and control signals when the processor 140 receives a transmission completion signal of the attribute information, so that the protection module 180 is turned on, and further, the output signal may be transmitted to the battery 160 through the protection module 180. Or for controlling the charge pump 121 to generate the off control signal so that the protection module 180 cannot pass the current to protect the battery 160 when the processor 140 receives the attribute information transmission failure signal.
In the present exemplary embodiment, referring to fig. 4, the protection module 180 may include at least one switching transistor, for example, two, three, etc., which is not particularly 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 type transistor or a depletion type transistor, which is not particularly limited in the present exemplary embodiment.
In the present exemplary embodiment, when the number of switching transistors is two, the control terminals of the two switching transistors are both connected to the driving signal generating module, the first terminal of the first switching transistor is connected to the adapter 110, the second terminal is connected to the first terminal of the second switching transistor, and the second terminal of the second switching transistor is connected to the battery 160. The switching element may be responsive to a close control signal to control the switching element to turn on and turn off when a turn-off control signal is received.
In the present exemplary embodiment, referring to fig. 6, 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.
The adapter 110 according to one embodiment of the present application 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 output signals, i.e., output voltage and output current, of the AC/DC converter 111 according to the electronic voltage and attribute information obtained from the protocol module 122.
Referring to fig. 7, the adapter 110 includes a controller 112 and an AC/DC converter 111. Wherein the controller 112 is configured to receive the attribute information of the battery 160 and determine the output signal controller 112. For example, by means of a separate micro control unit (Micro Control Unit, MCU).
The AC/DC converter 111 is connected to the controller 112 for adjusting the output voltage of the adapter 110 according to the control of the controller 112.
In addition, as shown in fig. 7, the adapter 110 may further include a rectifying circuit R1 and a voltage conversion module S1. The rectifier circuit R1 is configured to convert an AC voltage received from AC into a dc voltage, such as a pulsating dc voltage.
In addition, in order to obtain a stable dc voltage (e.g., a constant dc voltage), the adapter 110 may further include a filter circuit F1 connected to the output terminal of the rectifying circuit R1 for filtering the dc voltage output by the rectifying circuit R1.
The present application is not limited to the specific circuit configuration of the rectifier circuit R1, and the rectifier circuit R1 may be, for example, a rectifier bridge that is generally used, or may be another circuit that can realize the function of converting an ac voltage into a dc voltage.
In summary, in the present exemplary embodiment, the data processing is performed by the processor 140 in the device to be charged without using an independent MCU, and only by integrating a protocol module 122 on the side of the less-charging-point controller 112 to complete the communication, thereby simplifying the complexity of the power supply device, reducing the cost and reducing the occupied area of the power supply device.
Further, the present application also provides a power supply method, referring to fig. 8, the power supply method includes the following steps:
step S810, receiving attribute information of a battery through a processor;
Step S820, transmitting the attribute information to an adapter through a protocol module according to a preset protocol 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 processor so that the processor controls a charging controller to generate a closed control signal according to the transmission completion signal;
in step S830, the protection module responds to the closing control signal to transmit the output signal to the battery.
The specific details of each step in the above method are already described in the device part embodiment, and the details not disclosed can be referred to the embodiment of the device part, so that they will not be described in detail.
In an exemplary embodiment of the present application, referring to fig. 9, transmitting the attribute information to the adaptor according to a preset protocol may include steps S910 to S950, which are specifically as follows:
step S910, receiving a handshake signal sent by a processor, and adjusting a protocol module to an idle state;
Step S920, receiving a protocol sending instruction sent by the adapter, and adjusting the protocol module to be in a data receiving state;
Step S930, when receiving the protocol content sent by the adapter, adjusting the protocol module to a waiting data sending state and sending a data acquisition instruction like the processor
Step S940, receiving attribute information sent by the processor according to the data acquisition instruction, and adjusting the protocol module to be in a data sending state;
Step S950, sending the attribute information to the adapter, and adjusting the protocol module to an idle state.
Specifically, the processor 140 sends a handshake signal, when the protocol module 122 receives the handshake signal sent by the processor 140, that is, indicates that the charging interface is connected to the device to be charged, at this time, the protocol module 122 may be adjusted to be in an IDLE state (IDLE state) to prepare for DATA transmission, and meanwhile, the handshake signal is sent to the adapter 110, the adapter 110 receives the handshake signal, and then sends a protocol sending instruction, after the protocol module 122 receives the protocol sending instruction, the protocol module 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 to be received, that is, the DATA to be received includes one or more of the attribute information, and the number of bits to be received in the protocol content may also be, for example, receive 8 bits of DATA, 9 bits of DATA, and at this time, the protocol module 122 is capable of counting DATA to be received.
After the protocol module 122 receives the protocol contents, the protocol module 122 jumps to a WAIT DATA transmission state (wait_tx_data state) and transmits a DATA acquisition instruction to the processor 140, and the processor 140 transmits attribute information to the protocol module 122 according to the DATA acquisition instruction after receiving the DATA acquisition instruction, wherein the attribute information includes all attribute information required in the protocol contents, such as a battery 160 current, a battery 160 temperature, and the like. After the protocol module 122 receives the attribute information, the protocol module 122 jumps to a DATA transmission state (send_data state), then transmits the attribute information to the adapter 110, and then jumps to an IDLE state (IDLE state).
In this example embodiment, as shown in fig. 10, the above method further includes steps S1010 to S1020, specifically, if the adapter 110 does not receive the attribute information, a transmission failure signal of the attribute information is fed back to the processor 140, so that the processor 140 controls the charge controller 120 to generate the turn-off control signal according to the transmission completion signal, specifically, may include various cases that, when the protocol module 122 does not receive the attribute information sent by the processor 140, or the received attribute information is incomplete, that is, when the received attribute information is not complete, i.e., when the data is received in error, the protocol module 122 is jumped to a closed state (DISABLE state), where, for example, when the received attribute information is not complete, the data to be acquired in the protocol content includes 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 no temperature information, at this time, it is determined that the received attribute information is not complete. For another example, the data to be received in the protocol content is 8-bit data, but the attribute information received by the protocol module 122 is not 8-bit data, for example, 6-bit data, 7-bit data, etc., and the protocol module 122 is jumped to the off state (DISABLE state).
In the present exemplary embodiment, when the protocol module 122 transmits attribute information to the adapter 110, it is detected whether or not a transmission completion signal, i.e., an electric 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, occurs when the attribute information is transmitted. The certain time may be 50 ms, 40 ms, 60 ms, etc., or may be customized according to the user requirement, 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.
Upon detecting that the transmission completion signal occurs, indicating that the data transmission is normal and the data transmission is completed, the protocol module 122 is transitioned to an IDLE state (IDLE state) and waits for the reception of the next round of data. If the transmission completion signal is not received after the data transmission is completed, that is, if the protocol module 122 is still transmitting data after transmitting the data of the corresponding bit number, it is determined that the transmission attribute information is abnormal at this time, and the protocol module 122 is jumped to the off state (DISABLE state).
In this example embodiment, the protocol module 122 may receive the shutdown signal sent by the processor 140, and directly jump the protocol module 122 to the shutdown state (DISABLE state). When the protocol module 122 is in the off state (DISABLE state), the protocol module 122 may be jumped to the IDLE state (IDLE state) in response to the enable signal sent by the processor 140.
In this exemplary embodiment, the protocol module 122 sends an attribute information transmission completion signal to the processor 140, and the processor 140 controls the charging controller 120 to generate a closing control signal, if the protocol module 122 is in a closed state (DISABLE state), the protocol module 122 generates a transmission failure signal of the attribute information, and the processor 140 generates the closing control signal according to the transmission failure signal, so as to stop charging to prevent the battery 160 from being damaged due to the excessively high output voltage of the adapter 110.
The protection module 180 may respond to the shutdown control signal, so that the protection module 180 stops working and opens circuit, so that the output signal of the adapter 110 cannot be transmitted to the battery 160, to ensure the safety of the battery 160.
The present disclosure also provides a power supply system, in which the power supply device is connected to the external adapter 110 based on a device to be charged, and the power supply device may include a processor 140, a charge controller 120, a protocol module 122 integrated with the charge controller 120, and a protection module 180. The processor 140 receives attribute information of the battery 160, the charge controller 120 is connected to the processor 140, the adapter 110 and the battery 160, the protocol module 122 is integrated with the charge controller 120 and connected to the processor 140 and the adapter 110, and is used for transmitting the attribute information 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 feed back a transmission completion signal of the attribute information to the processor 140, so that the processor 140 controls the charge controller 120 to generate a closing control signal according to the transmission completion signal, and the protection module 180 is connected to the adapter 110, the battery 160 and the protocol module 122, and is used for responding to the closing control signal and transmitting the output signal to the battery 160.
Specific details of the processor 140, the adapter 110, the charge controller 120, the protocol module 122, and the protection module 180 in the above system are described in detail in the embodiment of the device portion, and details not disclosed may refer to the embodiment of the device portion, so that they will not be described in detail.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It should be understood that the invention is not limited in its application to the details of construction and the arrangement of components set forth in the specification. The invention is capable of other embodiments and of being practiced and carried out in various ways. The foregoing variations and modifications are intended to fall within the scope of the present invention. It should be understood that the invention as applied and defined in this specification extends to all alternative combinations of two or more of the individual features mentioned or evident from the text and/or drawings. All of these different combinations constitute various alternative aspects of the present invention. The embodiments described in this specification illustrate the best mode known for carrying out the invention and will enable those skilled in the art to make and use the invention.