Power supply device, power supply method and power supply system
By integrating protocol modules and processors in the power supply device, directly receiving and processing battery attribute information is solved, and the high cost and large area problems caused by independent MCU processors in the prior art are solved, and the simplification and cost reduction of the power supply device are achieved.
Patent Information
- Application Number
- CN202011303468.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-19
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2040-11-19
AI Technical Summary
The existing power supply device requires independent MCU processors, resulting in high costs and large area occupancy.
A power supply device is designed to receive battery attribute information through the processor and transmit the attribute information to the adapter through a protocol module integrated in the charging controller. The adapter adjusts the output signal according to the attribute information. The processor controls the charging controller to generate a closed control signal based on the transmission completion signal, and the protection module transmits the output signal to the battery.
Eliminate the need for a standalone MCU processor, simplifying the complexity of the power supply device, reducing costs and reducing footprint.
Smart Images

Figure CN114520524B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a power supply device, a power supply method and a power supply system. Background Art
[0002] As portable electronic devices such as laptops and mobile phones are widely used, portable electronic devices use batteries as power systems, and how to charge the batteries conveniently and quickly becomes more important.
[0003] The power supply device in the prior art requires an independent MCU (Microcontroller Unit) processor, which is costly and occupies a large area.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present application is to provide a power supply providing device and a power supply providing method, thereby at least to a certain extent overcoming the problem that the power supply providing device in the prior art requires an independent MCU processor, which is costly, expensive, and occupies a large area.
[0006] According to a first aspect of the present disclosure, a power supply device is provided. The power supply device is based on a device to be charged, and the device to be charged is connected to an external adapter. The power supply device includes:
[0007] A processor receives attribute information of the battery;
[0008] A charging controller connected to the processor, the adapter and the battery;
[0009] a protocol module, integrated in the charging controller and connected to the processor and the adapter, configured to transmit the attribute information to the adapter according to a preset protocol so that the adapter can adjust the output signal according to the attribute information, and to feed back a transmission completion signal of the attribute information to the processor so that the processor controls the charging controller to generate a closing control signal according to the transmission completion signal;
[0010] According to a second aspect of the present application, there is provided a power supply method, comprising:
[0011] receiving, via a processor, attribute information of the battery;
[0012] The attribute information is transmitted to the adapter according to a preset protocol by being integrated in the protocol module so that the adapter can adjust the output signal according to the attribute information, and a transmission completion signal of the attribute information is fed back to the processor so that the processor controls the charging controller to generate a closing control signal according to the transmission completion signal;
[0013] The protection module transmits the output signal to the battery in response to the closing control signal.
[0014] According to a third aspect of the present application, a power supply system is provided, comprising a device to be charged and an adapter connected to each other, wherein the device to be charged comprises a processor, a charging controller and a protection module;
[0015] in,
[0016] The processor receives attribute information of the battery;
[0017] The charging controller is connected to the processor, the adapter and the battery;
[0018] The protocol module is integrated in the charging controller and connected to the processor and the adapter, and is used to transmit the attribute information to the adapter according to a preset protocol so that the adapter can adjust the output signal according to the attribute information, and feed back a transmission completion signal of the attribute information to the processor, so that the processor controls the charging controller to generate a closing control signal according to the transmission completion signal;
[0019] The protection module is connected to the adapter, the battery and the charging controller, and is used to respond to the closing control signal and transmit the output signal to the battery.
[0020] An embodiment of the present application provides a power supply device, a power supply method, and a power supply system, wherein a processor receives the attribute information of the battery and transmits the attribute information to the adapter through a protocol module integrated in the charging controller, and the adapter adjusts the output signal of the adapter according to the attribute information, and feeds back a transmission completion signal of the attribute information to the processor, so that the processor controls the charging controller to generate a closed control signal according to the transmission completion signal, and a protection module is connected to the adapter, the battery, and the charging controller, and is used to respond to the closed control signal and transmit the output signal to the battery. Compared with the prior art, there is no need to use an independent MCU to complete data processing, and only a protocol module needs to be integrated on the charging point controller side to complete the communication. The data processing process is executed by the processor in the device to be charged, which simplifies the complexity of the power supply device, reduces the cost, and reduces the occupied area of the power supply device.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0023] Figure 1 A schematic diagram showing a power supply device in the related art;
[0024] Figure 2 A schematic diagram of a power supply device in an exemplary embodiment of the present application is schematically shown;
[0025] Figure 3 A schematic diagram of a power supply device after refinement of a processor in an exemplary embodiment of the present application is schematically shown;
[0026] Figure 4 A schematic diagram of an overall refinement of a power supply device in an exemplary embodiment of the present application;
[0027] Figure 5 A data flow diagram schematically illustrates the transmission of the attribute information to the adapter according to a preset protocol in an exemplary embodiment of the present application;
[0028] Figure 6 A schematic diagram of a power supply device after refining the adapter in an exemplary embodiment of the present application is schematically shown;
[0029] Figure 7 The specific structural diagram of the adapter in the exemplary embodiment of the present application is schematically shown;
[0030] Figure 8 A flow chart of a power supply method in an exemplary embodiment of the present application is schematically shown;
[0031] Fig. 9 A flowchart schematically illustrates the transmission of the attribute information to the adapter according to a preset protocol in an exemplary embodiment of the present application;
[0032] Fig.10 The flowchart of the protection module of the present application responding to the shutdown control signal is schematically shown. DETAILED DESCRIPTION
[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the 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.
[0034] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0035] In the related art, refer to Figure 1 As shown, the power supply device in the related art detects the state of the battery 160 through the independent MCU 130 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 switch transistor, so that the transistor is turned on, and charges the battery 160. When detecting the attribute information of the battery 160, it is completed simultaneously by the independent MCU 130 and the processor 140 in the device to be charged. At the same time, a charging controller 120 is configured, and the charging controller is connected to the processor 140 through a PMIC (Power Management Integrated Circuit) 170. The adapter 110 is connected to the processor through a universal asynchronous receiving and transmitting transmission line, and a USB switch is used to control the switching of the line. A charging type judgment module 124 is set in the charging controller 120 to determine whether it is necessary to start the signal flow direction of the output signal of the adapter 110.
[0036] The power supply device in the related art uses an independent MCU processor 140, which is costly and requires separate firmware maintenance, which is costly and occupies a large area.
[0037] Based on the above shortcomings, the present application first provides a power supply device, which can solve one or more of the above problems to a certain extent. Figure 2As shown, the power supply device is based on the device to be charged, and the device to be charged is connected to the external adapter 110; the power supply device may include a processor 140, a charging controller 120, a protocol module 122 integrated in the charging controller 120, and a protection module 180. The processor 140 receives the attribute information of the battery 160; the charging controller 120 is connected to the processor 140, the adapter 110 and the battery 160; the protocol module 122 is integrated in the charging controller 120, and is connected to the processor 140 and the adapter 110, and is used to transmit the attribute information to the adapter 110 according to the preset protocol so that the adapter 110 can adjust the output signal according to the attribute information, and feedback the transmission completion signal of the attribute information to the processor 140, so that the processor 140 controls the charging controller 120 to generate a closing control signal according to the transmission completion signal; the protection module 180 is connected to the adapter 110, the battery 160 and the protocol module 122, and is used to respond to the closing control signal and transmit the output signal to the battery 160.
[0038] Compared with the prior art, there is no need to use an independent MCU to complete data processing. It is only necessary to integrate a protocol module 122 on the charging point controller 112 side to complete the communication. The data processing process is executed by the processor 140 in the device to be charged, which simplifies the complexity of the power supply device, reduces the cost, and reduces the occupied area of the power supply device.
[0039] In one exemplary embodiment of the application, reference is made to Figure 3 As shown, the processor 140 is integrated in the device to be charged, and the device to be charged may be a portable electronic device such as a laptop, 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, wherein the analog-to-digital conversion module 142 is used to perform analog-to-digital conversion on the received attribute information, and the protocol processing module 141 is used to receive the communication signal of the protocol module 122 and transmit the attribute information to the adapter 110 according to a preset protocol.
[0040] In an exemplary embodiment of the present disclosure, the power supply device may further include a data acquisition module, and the data acquisition module 150 is integrated in the device to be charged, and is used to collect attribute information of the battery 160 and transmit it to the processor 140. The attribute information may include information such as the voltage, current, and temperature of the battery 160, and the data acquisition module 150 may include a power meter, and may also include detection devices such as a temperature sensor, a voltmeter, and an ammeter, which are not specifically limited in this exemplary embodiment. As the amount of attribute information to be detected changes, a detection device corresponding to the information in the attribute information may be set in the data acquisition module 150. For example, when it is necessary to detect the remaining power of the battery 160, a coulomb meter may be added for detection.
[0041] In this example implementation, the data acquisition module 150 may be connected to the processor 140 via an I2C bus, so as to transmit the attribute information to the processor 140 .
[0042] In the real-time mode of this example, the data acquisition module 150 can collect the property information of the battery 160 once every preset time. The preset time can be 5 milliseconds, 10 milliseconds, etc., and can also be customized according to user needs, which is not specifically limited in this example implementation.
[0043] In this example implementation, after the processor 140 receives the attribute information collected by the data acquisition module 150, it uses the above-mentioned analog-to-digital conversion module 142 to perform analog-to-digital conversion on the attribute information, and the processor 140 can save the attribute information for a preset number of times, which can 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 can also be 10 times, 15 times, etc., and can also be customized according to user needs, which is not specifically limited in this example implementation.
[0044] In an example implementation of the present application, the protocol module 122 is connected to the processor 140 and the adapter 110, and is used to transmit the attribute signal 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 at the same time feed back a transmission completion signal of the attribute information to the processor 140, so that the processor 140 controls the charging controller 120 to generate a closing control signal according to the transmission completion signal, wherein the protocol module 122 can be implemented by a digital circuit state machine.
[0045] In this example embodiment, the battery 160 is a storage battery 160, which can be recharged using the charging voltage provided by the adapter 110. The battery 160 can also be formed of at least one battery 160 unit having a specific electronic voltage and can output a voltage. The battery 160 supplies data information about the battery 160, which can be included in the above-mentioned attribute information. The data information may include the full charge bit of the battery 160, the full charge capacity of the battery 160, etc.
[0046] In this example implementation, refer to Figure 4 As shown, the protocol module 122 can be connected to the processor 140 through a data transmission line 420 and an interrupt line 410; the protocol module 122 can be connected to the adapter 110 through a universal serial bus. The data transmission line 420 can be an I2C bus, an SPI bus (Serial Peripheral Interface) or an SPMI bus, which is not specifically limited in this example implementation.
[0047] Specifically, refer to Figure 5 As shown, step S510 can be executed first, and the processor 140 sends a handshake signal. When the protocol module 122 receives the handshake signal sent by the processor 140, it means that the charging interface has been connected to the device to be charged. At this time, step S520 can be executed, and the protocol module 122 can be adjusted to an idle state (IDLE state) to prepare for data transmission. 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 module 122 receives the protocol sending instruction, step S530 can be executed, and the protocol module 122 jumps to a data receiving state (RECV_DATA state), and then the adapter 110 sends the protocol content, wherein the protocol content may be data to be received, that is, the data to be received includes one or more of the above-mentioned attribute information, and the protocol content may also include the number of bits of data to be received, for example, receiving 8-bit data, 9-bit data, etc. At this time, the protocol module includes a received data counting function when receiving attribute information.
[0048] After the protocol module 122 receives the protocol content, step S550 may be executed, the protocol module 122 jumps to the waiting data transmission state (WAIT_TX_DATA state), and sends a data acquisition instruction to the processor 140; after receiving the data acquisition instruction, the processor 140 sends the attribute information to the protocol module 122 according to the data acquisition instruction, and the attribute information at this time includes all the attribute information required in the protocol content, such as the battery 160 current, the battery 160 temperature, etc. After the protocol module 122 receives the attribute information, step S360 may be executed, the protocol module 122 jumps to the data transmission state (SEND_DATA state), and then sends the attribute information to the adapter 110, and then jumps to the idle state (IDLE state).
[0049] In this example implementation, 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 data reception error occurs, step S540 can be executed to switch the protocol module 122 to a closed state (DISABLE state), wherein when the received attribute information is incomplete, for example, the data to be obtained in the protocol content includes the voltage, current and temperature of the battery 160, but the received attribute information only includes the voltage and current of the battery 160, and there is no temperature information, and at this time, 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 above-mentioned attribute information received by the protocol module 122 is less than 8-bit data, such as 6-bit data, 7-bit data, etc., then step S540 can be executed to switch the protocol module 122 to a closed state (DISABLE state).
[0050] In this example implementation, when the protocol module 122 sends the attribute information to the adapter 110, when the attribute information is sent, it is detected whether a sending completion signal appears, that is, the electrical signal is a signal of the same level within a certain period of time, for example, a low level signal within 50 milliseconds, a high level signal within 40 milliseconds, etc. The certain period of time can be 50 milliseconds, 40 milliseconds, 60 milliseconds, etc., and can also be customized according to user needs. The same level signal can be a high level signal or a low level signal, which is not specifically limited in this example implementation.
[0051] When the sending completion signal is detected, it means that the data is sent normally and the data is sent. Then, step S560 can be executed to switch the protocol module 122 to the idle state (IDLE state) to wait for the next round of data reception. If the sending completion signal is not received after the data is sent, that is, after sending the corresponding number of bits of data, the protocol module 122 is still sending data, and it is determined that the sending attribute information is abnormal, then step S540 can be executed to switch the protocol module 122 to the closed state (DISABLE state).
[0052] In this example implementation, the protocol module 122 may receive a shutdown signal sent by the processor 140, and directly switch the protocol module 122 to a shutdown state (DISABLE state). When the protocol module 122 is in the shutdown state (DISABLE state), the protocol module 122 may switch to an idle state (IDLE state) in response to an enable signal sent by the processor 140.
[0053] In this example implementation, if there is no abnormality in the transmission process of the above-mentioned attribute information, that is, the adapter 110 has received 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 charging controller 120 to generate a closing control signal. If the above-mentioned 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 to stop charging to prevent the adapter 110 from outputting excessively high voltage and causing damage to the battery 160.
[0054] In this example implementation, refer to Figure 4As shown, the charging controller 120 is also integrated in the above-mentioned device to be charged. The device to be charged is connected to the above-mentioned adapter 110 through a USB interface, and a first USB switch 190 is included at the USB interface position, wherein the first USB switch 190 is a branch switch element, which divides the line into two paths, one of which is directly connected to the processor 140 through a universal asynchronous receiver / transmitter transmission line 430 (Universal Asynchronous Receiver / Transmitter) for serial port data transmission, for example, downloading files to the device to be charged, or uploading files from the device to be charged.
[0055] In this example implementation, the second path of the first USB switch 190 is connected to the second USB switch 123 provided inside the charging controller 120. The second USB switch 123 may also be a branch switch, which is respectively connected to the protocol module 122 and the charging type determination module 124. When the charging type determination 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 to complete the communication between the adapter 110 and the processor 140.
[0056] In this example implementation, the charging controller 120 can be used to convert the output signal of the adapter 110 into a preset input signal and transmit it to the battery 160 when the adapter 110 and the processor 140 are not compatible, that is, when the processor 140 cannot transmit the attribute information to the adapter 110 through the protocol module 122, wherein the preset input signal can be an electrical signal of 5V, 2A, and can 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, 1.5A, which is not specifically limited in this example implementation.
[0057] The charging controller 120 can ensure that when the processor 140 is unable to transmit the attribute information to the adapter 110, the battery 160 can continue to be charged, and the safety of charging is guaranteed.
[0058] In this example implementation, refer to Figure 4As shown, the charging controller 120 may further include a driving signal generating module for receiving instructions from the processor 140 and generating a closing control signal or a closing control signal, wherein the driving signal generating module may be a charge pump 121, which is used to control the charge pump 121 to generate a closing and control signal when the processor 140 receives a transmission completion signal of the attribute information, so that the protection module 180 is turned on, and the output signal can be transmitted to the battery 160 through the protection module 180. Or when the processor 140 receives a transmission failure signal of the attribute information, the processor 140 controls the charge pump 121 to generate a closing control signal, so that the protection module 180 cannot pass the current, and the battery 160 is protected.
[0059] In this example implementation, refer to Figure 4 As shown, the protection module 180 may include at least one switching transistor, for example, two, three, etc., which are not specifically limited in this exemplary embodiment, wherein the switching transistors all 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 specifically limited in this exemplary embodiment.
[0060] In this example implementation, the switch transistor is connected to the drive signal generation module. When there are two switch transistors, the control terminals of the two switch transistors are both connected to the drive signal generation module. The first terminal of the first switch transistor is connected to the adapter 110, and the second terminal is connected to the first terminal of the second switch transistor. The second terminal of the second switch transistor is connected to the battery 160. The switch element can respond to the closing control signal to control the switch element to be turned on, and when receiving the closing control signal, the switch element is turned off.
[0061] In this example implementation, refer to Figure 6 As shown, 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.
[0062] The adapter 110 according to an embodiment of the present application may include an AC / DC converter 111 and an adapter controller 112 .
[0063] The AC / DC converter 111 converts the input AC power into DC power and outputs the DC power. The AC / DC converter 111 can 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.
[0064] The controller 112 determines the output signal of the AC / DC converter 111 , ie, the output voltage and the output current, according to the electronic voltage and the attribute information obtained from the protocol module 122 .
[0065] refer to Figure 7 The adapter 110 includes: a controller 112 and an AC / DC converter 111. The controller 112 is used to receive the property information of the battery 160 to determine the output signal of the controller 112. For example, it can be implemented by an independent micro control unit (Micro Control Unit, MCU).
[0066] The AC / DC converter 111 is connected to the controller 112 and is used to adjust the output voltage of the adapter 110 according to the control of the controller 112 .
[0067] In addition, if Figure 7 As shown, the adapter 110 may further include a rectifier circuit R1 and a voltage conversion module S1. The rectifier circuit R1 is used to convert an AC voltage received from an AC into a DC voltage, such as a pulsating DC voltage.
[0068] In addition, in order to obtain a stable DC voltage (such as a constant DC voltage), the adapter 110 may further include: a filter circuit F1 connected to the output end of the rectifier circuit R1, and used to filter the DC voltage output by the rectifier circuit R1.
[0069] It should be noted that the present application does not limit the specific circuit structure of the rectifier circuit R1. The rectifier circuit R1 may be, for example, a commonly used rectifier bridge, or may be other circuits that can realize the above-mentioned function of converting AC voltage into DC voltage.
[0070] To sum up, in this exemplary embodiment, there is no need to use an independent MCU to complete data processing. It is only necessary to integrate a protocol module 122 on the side of the low-charging point controller 112 to complete the communication. The data processing process is executed by the processor 140 in the device to be charged, which simplifies the complexity of the power supply device, reduces the cost, and reduces the occupied area of the power supply device.
[0071] Furthermore, the present application also provides a power supply method, referring to Figure 8As shown, the power supply method includes the following steps:
[0072] Step S810, receiving battery attribute information through a processor;
[0073] Step S820, transmitting the attribute information to the adapter according to a preset protocol through the protocol module so that the adapter can adjust the output signal according to the attribute information, and feeding back a transmission completion signal of the attribute information to the processor, so that the processor controls the charging controller to generate a closing control signal according to the transmission completion signal;
[0074] Step S830: The protection module responds to the closing control signal and transmits the output signal to the battery.
[0075] The specific details of each step in the above method have been described in detail in the implementation method of the device part. The undisclosed details can be found in the implementation method of the device part, so they will not be repeated here.
[0076] In an exemplary embodiment of the present application, referring to Fig. 9 As shown, transmitting the attribute information to the adapter according to the preset protocol may include steps S910 to S950, which are specifically as follows:
[0077] Step S910, receiving a handshake signal sent by the processor, and adjusting the protocol module to an idle state;
[0078] Step S920, receiving a protocol sending instruction sent by the adapter, and adjusting the protocol module to a data receiving state;
[0079] Step S930: upon receiving the protocol content sent by the adapter, the protocol module is adjusted to a state of waiting for data to be sent, and a data acquisition instruction is sent to the processor.
[0080] Step S940, receiving the attribute information sent by the processor according to the data acquisition instruction, and adjusting the protocol module to a data sending state;
[0081] Step S950: Send the attribute information to the adapter, and adjust the protocol module to an idle state.
[0082] Specifically, the processor 140 sends a handshake signal. When the protocol module 122 receives the handshake signal sent by the processor 140, it indicates that the charging interface has been connected to the device to be charged. At this time, the protocol module 122 can be adjusted to an idle state (IDLE state) to prepare for data transmission. 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 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 the protocol content, wherein the protocol content may be data to be received, that is, the data to be received includes one or more of the above-mentioned attribute information. The protocol content may also include the number of bits of data to be received, for example, receiving 8-bit data, 9-bit data, etc. At this time, the protocol module 122 includes a received data counting function when receiving attribute information.
[0083] After the protocol module 122 receives the protocol content, the protocol module 122 jumps to the waiting data transmission state (WAIT_TX_DATA state) and sends a data acquisition instruction to the processor 140; after receiving the data acquisition instruction, the processor 140 sends the attribute information to the protocol module 122 according to the data acquisition instruction. The attribute information at this time includes all the attribute information required in the protocol content, such as the battery 160 current, the battery 160 temperature, etc. After the protocol module 122 receives the attribute information, the protocol module 122 jumps to the data transmission state (SEND_DATA state), then sends the attribute information to the adapter 110, and then jumps to the idle state (IDLE state).
[0084] In this example implementation, refer to Fig.10As shown, the method further includes steps S1010 to S1020, which are as follows: 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 charging controller 120 to generate a shutdown control signal according to the transmission completion signal. Specifically, the following situations may be included: 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 an error occurs in data reception, the protocol module 122 is switched to a closed state (DISABLE state). When the received attribute information is incomplete, for example, the data required to be obtained in the protocol content include the voltage, current and temperature of the battery 160, but the received attribute information only includes the voltage and current of the battery 160, without temperature information. At this time, 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 less than 8-bit data, such as 6-bit data, 7-bit data, etc., and the protocol module 122 jumps to the closed state (DISABLE state).
[0085] In this example implementation, when the protocol module 122 sends the attribute information to the adapter 110, when the attribute information is sent, it is detected whether a sending completion signal appears, that is, the electrical signal is a signal of the same level within a certain period of time, for example, a low level signal within 50 milliseconds, a high level signal within 40 milliseconds, etc. The certain period of time can be 50 milliseconds, 40 milliseconds, 60 milliseconds, etc., and can also be customized according to user needs. The same level signal can be a high level signal or a low level signal, which is not specifically limited in this example implementation.
[0086] When the sending completion signal is detected, it indicates that the data is sent normally and the data is sent. The protocol module 122 is switched to the idle state (IDLE state) to wait for the next round of data reception. If the sending completion signal is not received after the data is sent, that is, after sending the corresponding number of bits of data, the protocol module 122 is still sending data, it is determined that the sending attribute information is abnormal, and the protocol module 122 is switched to the closed state (DISABLE state).
[0087] In this example implementation, the protocol module 122 may receive a shutdown signal sent by the processor 140, and directly switch the protocol module 122 to a shutdown state (DISABLE state). When the protocol module 122 is in the shutdown state (DISABLE state), the protocol module 122 may switch to an idle state (IDLE state) in response to an enable signal sent by the processor 140.
[0088] In this example implementation, the protocol module 122 sends a property 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 above-mentioned protocol module 122 is in a closed state (DISABLE state), the protocol module 122 generates a property information transmission failure signal, and the processor 140 generates a shutdown control signal according to the transmission failure signal to stop charging to prevent the adapter 110 from outputting excessively high voltage and causing damage to the battery 160.
[0089] The protection module 180 may respond to the shutdown control signal to stop the protection module 180 and cause a circuit breaker, so that the output signal of the adapter 110 cannot be transmitted to the battery 160 , thereby ensuring the safety of the battery 160 .
[0090] The present disclosure also provides a power supply system, the power supply device is based on a device to be charged, and the device to be charged is connected to an external adapter 110; the power supply device may include a processor 140, a charging controller 120, a protocol module 122 integrated in the charging controller 120, and a protection module 180. The processor 140 receives the attribute information of the battery 160; the charging controller 120 is connected to the processor 140, the adapter 110, and the battery 160; the protocol module 122 is integrated in the charging controller 120, and is connected to the processor 140 and the adapter 110, and is used 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 feedback the transmission completion signal of the attribute information to the processor 140, so that the processor 140 controls the charging controller 120 to generate a closing control signal according to the transmission completion signal; the protection module 180 is connected to the adapter 110, the battery 160, and the protocol module 122, and is used to respond to the closing control signal and transmit the output signal to the battery 160.
[0091] The specific details of the processor 140, adapter 110, charging controller 120, protocol module 122 and protection module 180 in the above system have been described in detail in the implementation of the device part. The undisclosed details can be found in the implementation of the device part, so they will not be repeated here.
[0092] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions claimed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not claimed in the present application. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0093] It should be understood that the present invention does not limit its application to the detailed structure and arrangement of the components proposed in this specification. The present invention can have other embodiments and can be implemented and executed in a variety of ways. The aforementioned variations and modifications fall within the scope of the present invention. It should be understood that the present invention applied and defined in this specification extends to all alternative combinations of two or more individual features mentioned or evident in the text and / or the drawings. All these different combinations constitute multiple alternative aspects of the present invention. The embodiments described in this specification illustrate the best mode known for implementing the present invention and will enable those skilled in the art to utilize the present invention.
Claims
1. A power supply device, the power supply device is based on a device to be charged, and the device to be charged is connected to an external adapter; The power supply device comprises: A processor receives attribute information of the battery; A charging controller connected to the processor, the adapter and the battery; a protocol module, integrated in the charging controller and connected to the processor and the adapter, configured to transmit the attribute information to the adapter according to a preset protocol so that the adapter can adjust the output signal according to the attribute information, and to feed back a transmission completion signal of the attribute information to the processor so that the processor controls the charging controller to generate a closing control signal according to the transmission completion signal; The protection module is connected to the adapter, the battery and the charging controller, and is used for transmitting the output signal to the battery in response to the closing control signal.
2. The device according to claim 1, characterized in that When the adapter is not compatible with the processor, the output signal of the adapter is adjusted to a preset input signal through the charging controller and transmitted to the battery.
3. The device according to claim 1, characterized in that The power supply device also includes: The data acquisition module is connected to the processor and is used to acquire the attribute information and transmit it to the processor.
4. The device according to claim 1, characterized in that The processor comprises: An analog-to-digital conversion module, used for performing analog-to-digital conversion on the attribute information; The protocol processing module is used to receive the communication signal of the protocol module and transmit the attribute information to the adapter according to the preset protocol.
5. The device according to claim 1, characterized in that The attribute information includes a handshake signal, and the protocol module is further used for: receiving a handshake signal sent by the processor, and adjusting the protocol module to an idle state; receiving a protocol sending instruction sent by the adapter, and adjusting the protocol module to a data receiving state; When receiving the protocol content sent by the adapter, adjusting the protocol module to a state of waiting for data transmission, and sending a data acquisition instruction to the processor; receiving attribute information sent by the processor according to the data acquisition instruction, and adjusting the protocol module to a data sending state; The attribute information is sent to the adapter, and the protocol module is adjusted to an idle state.
6. The device according to claim 1, characterized in that When the adapter fails to receive the attribute information, the protocol module feeds back a transmission failure signal of the attribute information to the processor, so that the processor controls the charging controller to generate a shutdown control signal according to the transmission completion signal; The protection module is shut down in response to the shut down control signal.
7. The device according to claim 6, characterized in that The charging controller also includes: A charge pump, for generating a closing control signal and a closing control signal; The protection module includes at least one switching transistor, which is used to transmit the output signal to the battery in response to the closing control signal, or to shut down in response to the shut-down control signal.
8. The device according to claim 1, characterized in that The protocol physics consists of a digital circuit state machine.
9. The device according to claim 1, characterized in that The attribute information includes a handshake signal, a voltage, a current, and a temperature of the battery.
10. A power supply method, characterized in that: include: receiving, via a processor, attribute information of the battery; The attribute information is transmitted to the adapter according to a preset protocol by being integrated in the protocol module so that the adapter can adjust the output signal according to the attribute information, and a transmission completion signal of the attribute information is fed back to the processor so that the processor controls the charging controller to generate a closing control signal according to the transmission completion signal; The protection module transmits the output signal to the battery in response to the closing control signal.
11. The method according to claim 10, characterized in that The method further comprises: The attribute information is collected by a data collection module and transmitted to the processor.
12. The method according to claim 10, characterized in that The transmitting the attribute information to the adapter according to the preset protocol includes: receiving a handshake signal sent by the processor, and adjusting the protocol module to an idle state; receiving a protocol sending instruction sent by the adapter, and adjusting the protocol module to a data receiving state; When receiving the protocol content sent by the adapter, adjusting the protocol module to a state of waiting for data transmission, and sending a data acquisition instruction to the processor; receiving attribute information sent by the processor according to the data acquisition instruction, and adjusting the protocol module to a data sending state; The attribute information is sent to the adapter, and the protocol module is adjusted to an idle state.
13. The method according to claim 10, characterized in that The method further comprises: If the adapter does not receive the attribute information, a transmission failure signal of the attribute information is fed back to the processor, so that the processor controls the charging controller to generate a shutdown control signal according to the transmission completion signal; The protection module is shut down in response to the shut down control signal.
14. The method according to claim 10, characterized in that In response to the closing control signal, the output signal is converted into an input signal matching the battery and transmitted to the battery, comprising: In response to the closing control signal being turned on, the output voltage in the output signal is converted into an input signal including an input voltage matching the battery and transmitted to the battery.
15. A power supply system, characterized in that: It includes a device to be charged and an adapter connected to each other, wherein the device to be charged includes a processor, a charging controller and a protection module; in, The processor receives attribute information of the battery; The charging controller is connected to the processor, the adapter and the battery; a protocol module, integrated in the charging controller and connected to the processor and the adapter, configured to transmit the attribute information to the adapter according to a preset protocol so that the adapter can adjust the output signal according to the attribute information, and to feed back a transmission completion signal of the attribute information to the processor so that the processor controls the charging controller to generate a closing control signal according to the transmission completion signal; The protection module is connected to the adapter, the battery and the charging controller, and is used to transmit the output signal to the battery in response to the closing control signal.
16. The system according to claim 15, characterized in that When the adapter is not compatible with the processor, the output signal of the adapter is adjusted to a preset input signal through the charging controller and transmitted to the battery.
17. The system according to claim 15, characterized in that The power supply system further comprises: The data acquisition module is connected to the processor and is used to acquire the attribute information and transmit it to the processor.
18. The system according to claim 15, characterized in that The processor comprises: An analog-to-digital conversion module, used for performing analog-to-digital conversion on the attribute information; The protocol processing module is used to receive the communication signal of the protocol module and transmit the attribute information to the adapter according to the preset protocol.
19. The system according to claim 15, characterized in that The attribute information includes a handshake signal, and the protocol module is further used for: receiving a handshake signal sent by the processor, and adjusting the protocol module to an idle state; receiving a protocol sending instruction sent by the adapter, and adjusting the protocol module to a data receiving state; When receiving the protocol content sent by the adapter, adjusting the protocol module to a state of waiting for data transmission, and sending a data acquisition instruction to the processor; receiving attribute information sent by the processor according to the data acquisition instruction, and adjusting the protocol module to a data sending state; The attribute information is sent to the adapter, and the protocol module is adjusted to an idle state.
20. The system according to claim 15, characterized in that When the adapter fails to receive the attribute information, the protocol module feeds back a transmission failure signal of the attribute information to the processor, so that the processor controls the charging controller to generate a shutdown control signal according to the transmission completion signal; The protection module is shut down in response to the shut down control signal.
Citation Information
Patent Citations
Electronic device and charging control method
CN111201689A