Power supply device, power supply method and power supply system
Through the digital signal processor and protocol physical layer processing battery attribute information in the power supply device, the high cost and large area problems caused by independent MCU processors are solved, and the effect of simplifying the design of the power supply device and ensuring charging safety is achieved. .
Patent Information
- Application Number
- CN202110390626.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-12
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2041-04-12
AI Technical Summary
Existing power supply devices require independent MCU processors, resulting in high costs and large footprints.
The digital signal processor is used to receive the battery attribute information and transmit the attribute information to the adapter through the protocol physical layer integrated in the charging controller. The adapter adjusts the output signal according to the attribute information, and transmits the output signal to the battery through the protection module to respond to the control signal. The shutdown, event generation and monitoring module generates monitoring events to adjust the output signal or control the charging process.
No independent MCU processor is required, which simplifies the complexity of the power supply device, reduces cost, reduces footprint, and adjusts the adapter output signal through event information to ensure safety of charging.
Smart Images

Figure CN113113948B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure 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 disclosure 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 power supply device includes:
[0007] A digital signal processor receives the property information of the battery;
[0008] A charging controller connected to the processor, the adapter and the battery;
[0009] A protocol physical layer, connected to the digital signal processor and the adapter, for transmitting the attribute information to the adapter according to a preset protocol so that the adapter can determine an output signal according to the attribute information; and the protocol physical layer feeds back a transmission completion signal of the attribute information to the processor, so that the digital signal processor controls the charging controller to generate a closing control signal according to the transmission completion signal;
[0010] A protection module, connected to the adapter, the battery and the protocol physical layer, for transmitting the output signal to the battery in response to the closing control signal, or shutting down in response to the shut-down control signal;
[0011] An event generation module, integrated in the digital signal processor, for generating a preset monitoring event in a predetermined order upon receiving a transmission completion signal;
[0012] an event monitoring module, integrated in the digital signal processor, for receiving the monitoring event and generating an adjustment signal according to parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal; or
[0013] The event monitoring module controls the charging controller to generate a shutdown control signal according to the parameter information of the monitoring event.
[0014] According to a second aspect of the present disclosure, there is provided a power supply method, comprising:
[0015] receiving attribute information of the battery via a digital signal processor;
[0016] The attribute information is transmitted to the adapter according to a preset protocol through a protocol physical layer integrated in the charging controller so that the adapter can adjust the output signal according to the attribute information, and the protocol physical layer feeds 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;
[0017] The protection module responds to the closing control signal to transmit the output signal to the battery; or the protection module responds to the closing control signal to shut down;
[0018] When receiving the transmission completion signal, the event generation module integrated in the digital signal processor generates a preset monitoring event in a predetermined order;
[0019] Receiving the monitoring event through an event monitoring module integrated in the digital signal processor, and generating an adjustment signal according to parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal; or
[0020] The charging controller is controlled to generate a shutdown control signal according to the parameter information of the monitoring event.
[0021] According to a third aspect of the present disclosure, 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 any one of the power supply devices described above.
[0022] An embodiment of the present disclosure provides a power supply device, a power supply method, and a power supply system, wherein a digital signal processor receives the attribute information of a battery and transmits the attribute information to an adapter through a protocol physical layer integrated in a charging controller, 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 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, and a protection module is connected to the adapter, the battery, and the charging controller, and is used to respond to the closing control signal, transmit the output signal to the battery, or respond to the shutdown control signal to shut down. When receiving the transmission completion signal, an event generation module integrated in the digital signal processor generates a pre-set monitoring event in a predetermined order; receives the monitoring event through an event monitoring module integrated in the digital signal processor, and generates an adjustment signal according to the parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal; or controls the charging controller to generate a shutdown control signal according to the parameter information of the monitoring event. Compared with the existing technology, on the one hand, there is no need to use an independent MCU to complete data processing. It is only necessary to integrate a protocol physical layer on the charging point controller side to complete the communication. The data processing process is executed by the digital signal 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. On the other hand, adjusting the output signal of the adapter or turning off direct charging according to the event information to be set can ensure the safety of charging the charging device and the charging process.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] 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:
[0025] Figure 1 A schematic diagram showing a power supply device in the related art;
[0026] Figure 2 A schematic diagram of a power supply device in an exemplary embodiment of the present disclosure is schematically shown;
[0027] Figure 3 A schematic diagram of a power supply device after refinement of a digital signal processor in an exemplary embodiment of the present disclosure is schematically shown;
[0028] Figure 4 A schematic diagram schematically shows an overall detailed schematic diagram of a power supply device in an exemplary embodiment of the present disclosure;
[0029] 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 disclosure;
[0030] Figure 6 Schematically shows a flow chart of enabling fast charging software monitoring in an exemplary embodiment of the present disclosure;
[0031] Figure 7 A flowchart of software monitoring in an exemplary embodiment of the present disclosure is schematically shown;
[0032] Figure 8 A schematic diagram of a power supply device after refining the adapter in an exemplary embodiment of the present disclosure is schematically shown;
[0033] Fig. 9 The specific structural diagram of the adapter in the exemplary embodiment of the present disclosure is schematically shown;
[0034] Fig.10 A flow chart of a power supply method in an exemplary embodiment of the present disclosure is schematically shown;
[0035] Fig.11 The flowchart of transmitting the attribute information to the adapter according to a preset protocol in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0036] 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.
[0037] 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.
[0038] In related technologies, with the continuous development of charging technology in the mobile phone industry, a large number of fast charging technologies such as PD, QC, VOOC / SUPERVOOC have emerged. 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 core processor 200, 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 core processor 200 in the device to be charged. At the same time, a charging controller 120 is configured, and 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 and transmitter 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.
[0039] The power supply device in the related art uses an independent MCU processor, which is costly and requires separate firmware maintenance, which is costly and occupies a large area.
[0040] Based on the above shortcomings, the present disclosure 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 digital signal processor 140, a charging controller 120, a protocol physical layer 122 integrated in the charging controller 120, and a protection module 180. The event generation module 143 and the event monitoring module 144 are integrated in the digital signal processor. The digital signal processor 140 receives the attribute information of the battery 160; the charging 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 charging controller 120, and is connected to the digital signal 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 digital signal processor 140, so that the digital signal 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 charging controller 120. It is connected to the adapter 110, the battery 160 and the protocol physical layer 122, and is used to respond to the closing control signal to transmit the output signal to the battery 160, or to shut down in response to the shut-down control signal; the event generation module 143 is integrated in the digital signal processor 140, and is used to generate a preset monitoring event in a predetermined order when receiving the transmission completion signal; the event monitoring module 144 is integrated in the digital signal processor 140, and is used to receive the monitoring event, and generate an adjustment signal according to the parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal; or the event monitoring module controls the charging controller to generate a shut-down control signal according to the parameter information of the monitoring event.
[0041] Compared with the existing technology, on the one hand, there is no need to use an independent MCU to complete data processing. It is only necessary to integrate a protocol physical layer on the charging point controller side to complete the communication. The data processing process is executed by the digital signal 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. On the other hand, adjusting the output signal of the adapter or turning off direct charging according to the event information to be set can ensure the safety of charging the charging device and the charging process.
[0042] In an exemplary embodiment of the present disclosure, referring to Figure 3 As shown, the digital signal 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 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 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 physical layer 122 and transmit the attribute information to the adapter 110 according to a preset protocol.
[0043] In an exemplary embodiment of the present disclosure, the power supply device may further include a core processor 200 connected to the digital signal processor 140, and used to control the display content of the device to be charged according to the 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, the direct charging starts, and the digital signal processor 140 sends a start direct charging signal to the core processor 200, and the core processor 200 controls the plug charging device to display a direct charging logo according to the start direct charging signal. The core processor 200 may be connected to the digital signal processor 140 via a GLINK bus.
[0044] In an exemplary embodiment of the present disclosure, the power supply device may further include a data acquisition module 150, which is integrated in the device to be charged and is used to collect attribute information of the battery 160 and transmit it to the digital signal processor 140. The attribute information may include information such as the voltage, current, and temperature of the battery 160. 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. This is 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.
[0045] In this example implementation, the data acquisition module 150 may be connected to the digital signal processor 140 via an I2C bus, so as to transmit the attribute information to the digital signal processor 140 .
[0046] 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.
[0047] In this example implementation, after the digital signal 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 digital signal 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.
[0048] In an example implementation of the present disclosure, the protocol physical layer 122 is connected to the digital signal 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 digital signal processor 140, so that the digital signal processor 140 controls the charging controller 120 to generate a closing control signal according to the transmission completion signal, wherein the protocol physical layer 122 can be implemented by a digital circuit state machine.
[0049] 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.
[0050] In this example implementation, refer to Figure 4 As shown, the protocol physical layer 122 can be connected to the digital signal processor 140 through a data transmission line 420 and an interrupt line 410; the protocol physical layer 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.
[0051] In this example implementation, a handshake signal is received from the digital signal processor 140, and the protocol physical layer 122 is adjusted to an idle state; a protocol sending instruction is received from the adapter, and the protocol physical layer 122 is adjusted to a data receiving state; when the protocol content sent by the adapter is received, the protocol physical layer 122 is adjusted to a waiting data sending state, and a data acquisition instruction is sent to the digital signal processor 140; attribute information is received from the digital signal processor 140 according to the data acquisition instruction, and the protocol physical layer 122 is adjusted to a data sending state; the attribute information is sent to the adapter, and the protocol physical layer 122 is adjusted to an idle state.
[0052] Specifically, refer to Figure 5As shown, step S510 can be executed first, and 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, 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 physical layer 122 can be jumped to the 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 physical layer 122 receives the protocol sending instruction, step S530 can be executed, and the protocol physical layer 122 jumps to the data receiving state (RECV_DATA state), and then the adapter 110 sends the protocol content, wherein the protocol content can be the data to be received, that is, the data to be received includes one or more of the above-mentioned attribute information. The protocol content can also be the number of bits of data to be received, for example, receiving 8-bit data, 9-bit data, etc. At this time, the protocol physical layer includes a received data counting function when receiving attribute information.
[0053] After the protocol physical layer 122 receives the protocol content, step S550 can be executed, the protocol physical layer 122 jumps to the waiting data transmission state (WAIT_TX_DATA state), and sends a data acquisition instruction to the digital signal processor 140; after receiving the data acquisition instruction, the digital signal processor 140 sends the attribute information to the protocol physical layer 122 according to the data acquisition instruction. At this time, the attribute information includes all the attribute information required in the protocol content, such as the battery 160 current, the battery 160 temperature, etc. After the protocol physical layer 122 receives the attribute information, step S560 can be executed, the protocol physical layer 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).
[0054] In this example implementation, when the protocol physical layer 122 does not receive the attribute information sent by the digital signal processor 140, or the received attribute information is incomplete, that is, when the data reception is erroneous, step S540 can be executed to switch the protocol physical layer 122 to a closed state (DISABLE state), wherein when the received attribute information is incomplete, for example, the data required 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, then it is determined that the received attribute information is incomplete. For another example, the data required to be received in the protocol content is 8-bit data, but the above-mentioned attribute information received by the protocol physical layer 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 physical layer 122 to a closed state (DISABLE state).
[0055] In this example implementation, when the protocol physical layer 122 sends 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.
[0056] When the sending completion signal is detected, it means that the data is sent normally and the data is sent. Then, step S520 can be executed to switch the protocol physical layer 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 physical layer 122 is still sending data, it is determined that the sending attribute information is abnormal, then step S540 can be executed to switch the protocol physical layer 122 to the closed state (DISABLE state).
[0057] In this example implementation, the protocol physical layer 122 can receive a shutdown signal sent by the digital signal processor 140, and directly jump the protocol physical layer 122 to a shutdown state (DISABLE state). When the protocol physical layer 122 is in the shutdown state (DISABLE state), the protocol physical layer 122 can jump to an idle state (IDLE state) in response to an enable signal sent by the digital signal processor 140.
[0058] 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 physical layer 122 sends an attribute information transmission completion signal to the digital signal processor 140, and the digital signal processor 140 controls the charging controller 120 to generate a closing control signal. If the above-mentioned protocol physical layer 122 is in a closed 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 shutdown control signal according to the transmission failure signal to stop charging to prevent the adapter 110 from outputting too high a voltage and causing damage to the battery 160.
[0059] In an exemplary implementation of the present disclosure, an event generation module is integrated with the above-mentioned digital signal processor, and is used to generate a predetermined monitoring event in a predetermined order when a data transmission completion signal is received.
[0060] In this example implementation, multiple monitoring events can be first predetermined, where the above-mentioned monitoring events can include monitoring the interaction events between the digital signal processor and the core processor, reaming battery voltage events, monitoring battery temperature events, monitoring charging time events, monitoring communication data events, etc., and can also be customized according to user needs, which is not specifically limited in this example implementation.
[0061] In this example implementation, the time length of each monitoring event may be determined and arranged in a predetermined order to form an event stream, so that the event monitoring module monitors the events according to the event stream.
[0062] Specifically. Figure 6 As shown, step S610 can be performed first to insert the fast charging adapter, that is, to connect the power supply device and the adapter. After the power supply device and the adapter are connected, steps S620 and S630 can be performed. The adapter is successfully verified and the fast charging start adapter type code is sent through GLINK. Specifically, the BC1.2 protocol (Battery Charging v1.2) Identify the adapter type, such as DCP, then enable the protocol physical layer, and then use D+D- to communicate with the adapter to perform adapter verification. After the verification is successful, the fast charging start and adapter type code (adapter identification) will be sent to the core processor through the GLINK bus; because an external charging controller is used, and the logic control of the external charging controller is placed on the digital signal processor end, before asking the output voltage and battery voltage of the adapter, it is necessary to turn off the charging first to avoid floating pressure of the battery voltage. Therefore, steps S640 and S650 can be executed. The adapter asks the code before the pressure difference and sends the SUSPEND code to the core processor through GLINK. Specifically, a code before asking the pressure difference sends SUSPEND (suspend signal) to the digital signal processor through the GLINK bus to let it turn off charging; steps S660, S670 and S680 can also be executed. Specifically, when the adapter output signal is adjusted, the event generation module generates an event and sends it to the event monitoring module to start event monitoring, and notify the core processor through the GLINK bus that fast charging has started.
[0063] In this example implementation, the event monitoring module is integrated into the digital signal processor for receiving the monitoring event and generating an adjustment signal according to parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal.
[0064] Specifically, a processing function may be set for each of the above monitoring events. When a monitoring event is received, the processing function corresponding to the monitoring event is called to generate adjustment information according to the parameter information of the monitoring event.
[0065] In this exemplary embodiment, the power supply device further includes a power consumption adjustment module, and the user detects the connection status between the power supply device and the adapter, and adjusts the power consumption mode of the digital signal processor according to the connection status.
[0066] Specifically, refer to Figure 7 As shown, when the system of the digital signal processor is initialized, steps S710 and S720 will be executed first. Specifically, a detection thread is created, and the timers of each monitoring event of the cyclic monitoring will be initialized in the thread. At the same time, steps S730, S740, S741, and S742 can be executed. Specifically, a power consumption adjustment module is initialized and initialized for the fast charging object. When the fast charging communication hardware interrupt is triggered, it takes time to wake up the system, and the processing time left for the fast charging interrupt is only 5ms. When the adapter BC1.2 protocol identifies the type of adapter as DCP when the adapter is inserted, that is, the connection state between the power supply device and the adapter is connected, HPM (high power consumption mode, the system wake-up time is very fast) is turned on. When the adapter is unplugged, that is, the connection state between the power supply device and the adapter is disconnected, the power consumption mode of the power supply device is adjusted to LPM (low power consumption mode), so as to improve the battery life of the device to be charged where the above-mentioned power supply device is located.
[0067] In this example implementation, step S750, step S760 and step S761 can also be executed. Specifically, the event monitoring module waits for the arrival of the monitoring event in real time, and starts each monitoring timer. When the monitoring event is triggered, the processing function corresponding to the monitoring event is called to generate an adjustment signal; or a shutdown control signal is generated. Specifically, the software monitors the start event, and the execution function corresponding to the event will start the software monitoring timer that monitors the interaction events between the digital signal processor and the core processor, the battery voltage event, the battery temperature event, the battery current event, the U port and BTB temperature events, and the charging time. The order of the above-mentioned monitoring events can be customized according to user needs, and is not specifically limited in this example implementation. In this example implementation, the above-mentioned monitoring events can also include monitoring the shell temperature of the device to be charged, monitoring the ambient temperature, etc., and the monitoring events are not specifically limited in this example implementation. Then execute steps S770, step S780, step S790 and step S791. Specifically as follows:
[0068] Monitoring events may include interaction events between the digital signal processor and the core processor. This event monitors the interaction between the digital signal processor and the core processor. Its main function is to receive the value of the smart scene charging current sent by the core processor through GLINK, that is, the requested current value of the core processor, and compare the value with the maximum allowed charging current value current_max and the battery temperature determined temperature charging current value current_batt_temp, and select the smallest value as an adjustment signal to be sent to the adapter to adjust the target charging current output by the adapter.
[0069] The monitoring event includes monitoring the battery voltage event, which includes setting the step charging current with the step voltage. When the battery voltage reaches a certain step, the maximum charging current allowed by the step is set. Monitoring the battery voltage event can also include judging whether it is full according to the battery voltage. If it is full, the digital signal processor needs to process the FAST_NOTIFY_FULL fast charging attribute. Specifically, the fast charging monitoring is stopped when the fast charging is full, and then the protocol physical layer is restarted. The MOS tube for direct charging is turned off, and an unplug interrupt will be generated. In order to avoid the fast charging logo displayed on the display screen from flashing due to line disconnection, it is necessary to set the timer VOOC_DISCON_EVENT_TIME of the first predetermined time of the cycle. The work of the timer will clear fastchg_start and set fastchg_to_normal (normal fast charging state) or fastchg_to_warm (temperature influence condition) to true, so that the core processor continues to display the fast charging indication. Among them, the first predetermined time can be 350ms, and it can also be customized according to user needs. It is not specifically limited in this example implementation.
[0070] When the user unplugs the adapter, the interrupt will set fastchg_to_normal (normal fast charging state), fastchg_to_warm (temperature impact status) and fstchg_to_dummy (mismatched adapter state) to false (error). To prevent the user from unplugging the adapter within 350ms, the second scheduled timer will be turned on in VOOC_DISCON_EVENT_TIME to detect whether the adapter output voltage is higher than 2V. If it is lower than 2v, it is determined that the user has indeed unplugged the adapter. This time, fastchg_to_normal, fastchg_to_warm and fastchg_to_dummy need to be set to false, that is, the fast charging mode is turned off, and the core processor has been notified to stop displaying the fast charging mode. The second scheduled time can be 2 seconds, or it can be customized according to user needs, which is not specifically limited in this example implementation.
[0071] The monitoring events include monitoring battery current events, which include handling abnormal current conditions, such as when the battery is not powered (the battery current is positive). At this time, the fast charge attribute FAST_NOTIFY_ABSENT needs to be handled. Specifically, for example, the battery current is too large; at this time, the fast charge attribute FAST_NOTIFY_BAD_CONNECTED needs to be handled; finally, the fast charge current is not within the set allowable error, and at this time, the copycat adapter attribute FAST_NOTIFY_ADAPTER_COPYCAT needs to be handled; second, whether the battery is full is determined based on the battery current. When the battery current is small to a certain extent, the battery is considered to be full. To handle the fast charge attributes FAST_NOTIFY_ABSENT, FAST_NOTIFY_BAD_CONNECTED, and FAST_NOTIFY_ADAPTER_COPYCAT, first report the cause of the fast charge failure to the core processor and restart the physical layer of the above protocol. Clear the fast charging status, set fastchg_to_normal, fastchg_to_warm, fastchg_to_dummy and fastchg_start to false; reset the protocol physical layer and stop the 200ms software communication watchdog, and finally stop the event monitoring module from working.
[0072] The monitoring events include monitoring battery temperature events, including dynamically adjusting the target charging current according to the battery temperature, setting different target charging currents for different temperature segments, and adjusting the charging current according to the trend of the battery temperature rising or falling; when the normal temperature range drops to the 5-12 range, it is only necessary to set the maximum current_max attribute to the maximum charging current allowed in the 5-12 range, without the need to disconnect first and then re-enter the 5-12 range logic like the AP. It is also possible to determine whether the battery temperature is overheated. If it is overheated, you need to be familiar with the signal processor to handle the fast charge attribute FAST_NOTIFY_BATT_TEMP_OVER. Specifically, when the fast charge is full, stop the fast charge monitoring, restart the protocol physical layer, and turn off the direct charge MOS tube, which will generate an unplug interrupt. In order to avoid the fast charge logo displayed on the display screen flashing due to line disconnection, it is necessary to set the timer VOOC_DISCON_EVENT_TIME of the first scheduled time of the cycle. The work of this timer will clear fastchg_start and set fastchg_to_normal (normal fast charge state) or fastchg_to_warm (temperature influence condition) to true, so that the core processor continues to display the fast charge indication. Among them, the first scheduled time can be 350ms, and it can also be customized according to user needs, which is not specifically limited in this example implementation.
[0073] When the user unplugs the adapter, the interrupt will set fastchg_to_normal (normal fast charging state), fastchg_to_warm (temperature impact status) and fstchg_to_dummy (mismatched adapter state) to false (error). To prevent the user from unplugging the adapter within 350ms, the second scheduled timer will be turned on in VOOC_DISCON_EVENT_TIME to detect whether the adapter output voltage is higher than 2V. If it is lower than 2v, it is determined that the user has indeed unplugged the adapter. This time, fastchg_to_normal, fastchg_to_warm and fastchg_to_dummy need to be set to false, that is, the fast charging mode is turned off, and the core processor has been notified to stop displaying the fast charging mode. The second scheduled time can be 2 seconds, or it can be customized according to user needs, which is not specifically limited in this example implementation.
[0074] The monitoring events include monitoring USB port and BTB temperature events: monitoring USB port temperature and fast charging BTB column temperature, when the temperature exceeds the set software threshold, the signal processor needs to be familiar with the fast charging attribute FAST_NOTIFY_BTB_TEMP_OVER, the fast charging is full, the fast charging monitoring is stopped, and then the protocol physical layer is restarted, and the direct charging MOS tube is turned off, and an unplug interrupt will be generated. In order to avoid the fast charging logo displayed on the display screen flashing due to line disconnection, it is necessary to set a timer VOOC_DISCON_EVENT_TIME for the first predetermined time of the cycle. The work of the timer will clear fastchg_start, and set fastchg_to_normal (normal fast charging state) or fastchg_to_warm (temperature influence status) to true, that is, the core processor continues to display the fast charging indication. Among them, the first predetermined time can be 350ms, and it can also be customized according to user needs, which is not specifically limited in this example implementation.
[0075] When the user unplugs the adapter, the interrupt will set fastchg_to_normal (normal fast charging state), fastchg_to_warm (temperature impact status) and fstchg_to_dummy (mismatched adapter state) to false (error). To prevent the user from unplugging the adapter within 350ms, the second scheduled timer will be turned on in VOOC_DISCON_EVENT_TIME to detect whether the adapter output voltage is higher than 2V. If it is lower than 2v, it is determined that the user has indeed unplugged the adapter. This time, fastchg_to_normal, fastchg_to_warm and fastchg_to_dummy need to be set to false, that is, the fast charging mode is turned off, and the core processor has been notified to stop displaying the fast charging mode. The second scheduled time can be 2 seconds, or it can be customized according to user needs, which is not specifically limited in this example implementation.
[0076] The monitoring events include monitoring charging time events, which are related to monitoring charging time safety, and the time is also segmented. When the battery voltage exceeds a certain threshold within a certain period of time, the maximum fast charging current is adjusted; secondly, the longest charging time allowed for this fast charging is set, and if this time is exceeded, the fast charging attribute FAST_NOTIFY_FULL is set. When the fast charging is full, the fast charging monitoring is stopped, and then the protocol physical layer is restarted, and the direct charging MOS tube is turned off, which will generate an unplug interrupt. In order to avoid the fast charging logo displayed on the display screen from flashing due to line disconnection, it is necessary to set a timer VOOC_DISCON_EVENT_TIME with a period of 350ms. The work of this timer will clear fastchg_start and set fastchg_to_normal (normal fast charging state) or fastchg_to_warm (temperature impact condition) to true, so that the core processor continues to display the fast charging indication.
[0077] When the user unplugs the adapter, the interrupt will set fastchg_to_normal (normal fast charging state), fastchg_to_warm (temperature impact status) and fstchg_to_dummy (mismatched adapter state) to false (error). To prevent the user from unplugging the adapter within 350ms, a new 2s timer will be started in VOOC_DISCON_EVENT_TIME to detect whether the adapter output voltage is higher than 2V. If it is lower than 2v, it is determined that the user has indeed unplugged the adapter. This time, fastchg_to_normal, fastchg_to_warm and fastchg_to_dummy need to be set to false, that is, the fast charging mode is turned off, and the core processor has been notified to stop displaying the fast charging mode.
[0078] The monitoring events include monitoring fast charging communication error events, which are used to monitor fast charging frame header communication errors. When the data frame header received by the protocol physical layer does not comply with the fast charging protocol, the digital signal processor is required to process the fast charging attribute FAST_NOTIFY_ERR_COMMU. Specifically, the frame header error is processed, the fast charging monitoring is stopped, and the watchdog of the 200ms software communication is stopped. Whether it is necessary to set the fast charging to be restored is divided into two cases. The first case is that the svooc adapter is connected and the mos pipe frame header is not turned on, or the connected adapter is compatible with vooc and does not work in power_bank mode. This frame header error resets the protocol physical layer and does not generate an unplug interrupt. Therefore, it is necessary to open VOOC_FASTCHG_CHECK_TIME and take 5 seconds to re-judge whether to perform fast charging. In other cases, once the protocol physical layer is reset, a disconnection will occur (that is, the adapter output signal becomes 0), and then the fast charging is restarted.
[0079] In this example implementation, the specific steps of step S780 are as follows: in the interrupt handler of each timer (processing event function), it is determined whether each state is normal and counted. In order to save the global static storage area and not use global variables, in the processing function, when fastchg_notify_status = FAST_NOTIFY_PRESENT, all temporary variables in the function will be reinitialized. Secondly, a fastchg_monitor_stop can be set to record whether to stop fast charging software monitoring. When processing a certain event, it is determined that fast charging should be stopped, but the other monitoring events triggered at the same time have not been processed. Therefore, fastchg_monitor_stop is needed to terminate the processing of subsequent events. Then, when the above fastchg_monitor_stop = true, the fast charging software monitoring is stopped.
[0080] In this example implementation, refer to Figure 4 As 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 digital signal 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.
[0081] 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 physical layer 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 physical layer 122 to complete the communication between the adapter 110 and the digital signal processor 140.
[0082] 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 is not compatible with the digital signal processor 140, that is, when the digital signal processor 140 cannot transmit the attribute information to the adapter 110 through the protocol physical layer 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.
[0083] The charging controller 120 can ensure that when the digital signal 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.
[0084] 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 digital signal 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 digital signal 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 digital signal processor 140 receives a transmission failure signal of the attribute information, the digital signal 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.
[0085] 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.
[0086] 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.
[0087] In this example implementation, refer to Figure 8 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.
[0088] The adapter 110 according to one embodiment of the present disclosure may include an AC / DC converter 111 and an adapter controller 112 .
[0089] 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 specific level of DC power Va corresponding to a plurality of voltage levels according to a signal provided by the adapter controller 112, and output the DC power. The DC power output from the AC / DC converter 111 is output to the battery 160.
[0090] The adapter 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 physical layer 122 .
[0091] refer to Fig. 9 The adapter 110 includes an adapter controller 112 and an AC / DC converter 111. The adapter controller 112 is used to receive the property information of the battery 160 to determine the output signal. For example, it can be implemented by an independent microcontroller unit (MCU).
[0092] The AC / DC converter 111 is connected to the adapter controller 112 and is used to adjust the output voltage of the adapter 110 according to the control of the adapter controller 112 .
[0093] In addition, if Fig. 9 As shown, the adapter 9 may further include a rectifier circuit R1 and a voltage conversion module S1. The rectifier circuit R1 is used to convert the AC voltage received from the AC into a DC voltage, such as a pulsating DC voltage.
[0094] 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.
[0095] It should be noted that the present disclosure 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.
[0096] In summary, in the present exemplary embodiment, there is no need to use an independent MCU to complete data processing. It is only necessary to integrate a protocol physical layer 122 on the adapter controller 112 side to complete communication. The data processing process is executed by the digital signal 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.
[0097] Furthermore, the present disclosure also provides a power supply method, referring to Fig.10 As shown, the power supply method includes the following steps:
[0098] Step S1010, receiving battery attribute information through a digital signal processor;
[0099] Step S1020, transmitting the attribute information to the adapter according to a preset protocol through a protocol physical layer integrated in the charging controller so that the adapter can adjust the output signal according to the attribute information, and the protocol physical layer feeds back a transmission completion signal of the attribute information to the 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;
[0100] Step S1030, transmitting the output signal to the battery in response to the closing control signal through the protection module; or shutting down in response to the shutting control signal through the protection module;
[0101] Step S1040, generating a preset monitoring event in a predetermined order by an event generation module integrated in the digital signal processor when receiving a transmission completion signal;
[0102] Step S1050, receiving the monitoring event through the event monitoring module integrated in the digital signal processor, and generating an adjustment signal according to the parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal; or controlling the charging controller to generate a shutdown control signal according to the parameter information of the monitoring event.
[0103] 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.
[0104] In an exemplary embodiment of the present disclosure, referring to Fig.11 As shown, transmitting the attribute information to the adapter according to the preset protocol may include steps S1110 to S1150, which are specifically as follows:
[0105] Step S1110, receiving a handshake signal sent by a digital signal processor, and adjusting the protocol physical layer to an idle state;
[0106] Step S1120, receiving a protocol sending instruction sent by the adapter, and adjusting the protocol physical layer to a data receiving state;
[0107] Step S1130, when receiving the protocol content sent by the adapter, adjusting the protocol physical layer to a state of waiting for data transmission, and sending a data acquisition instruction to the digital signal processor;
[0108] Step S1140, receiving the 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;
[0109] Step S1150: sending the attribute information to the adapter, and adjusting the protocol physical layer to an idle state.
[0110] Specifically, 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, it indicates that the charging interface has been connected to the device to be charged. At this time, the protocol physical layer 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 send instruction. After the protocol physical layer 122 receives the protocol send instruction, the protocol physical layer 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 physical layer 122 includes a received data counting function when receiving attribute information.
[0111] After the protocol physical layer 122 receives the protocol content, the protocol physical layer 122 jumps to the waiting data transmission state (WAIT_TX_DATA state) and sends a data acquisition instruction to the digital signal processor 140; after receiving the data acquisition instruction, the digital signal processor 140 sends the attribute information to the protocol physical layer 122 according to the data acquisition instruction. At this time, the attribute information includes all the attribute information required in the protocol content, such as the battery 160 current, the battery 160 temperature, etc. After the protocol physical layer 122 receives the attribute information, the protocol physical layer 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).
[0112] In this example implementation, if the adapter 110 does not receive the attribute information, a transmission failure signal of the attribute information is fed back to the digital signal processor 140, so that the digital signal processor 140 controls the charging controller 120 to generate a shutdown control signal according to the transmission completion signal. Specifically, the following multiple situations may be included: when the protocol physical layer 122 does not receive the attribute information sent by the digital signal processor 140, or the received attribute information is incomplete, that is, when the data reception is wrong, the protocol physical layer 122 is switched 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 attribute information received by the protocol physical layer 122 is less than 8-bit data, such as 6-bit data, 7-bit data, etc., and the protocol physical layer 122 is switched to a closed state (DISABLE state).
[0113] In this example implementation, when the protocol physical layer 122 sends 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.
[0114] When the sending completion signal is detected, it indicates that the data is sent normally and the data is sent. The protocol physical layer 122 is switched to the idle state (IDLE state) to wait for the next round of data to be received. 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 physical layer 122 is still sending data, it is determined that the sending attribute information is abnormal, and the protocol physical layer 122 is switched to the closed state (DISABLE state).
[0115] In this example implementation, the protocol physical layer 122 can receive a shutdown signal sent by the digital signal processor 140, and directly jump the protocol physical layer 122 to a shutdown state (DISABLE state). When the protocol physical layer 122 is in the shutdown state (DISABLE state), the protocol physical layer 122 can jump to an idle state (IDLE state) in response to an enable signal sent by the digital signal processor 140.
[0116] In this example implementation, the protocol physical layer 122 sends a property information transmission completion signal to the digital signal processor 140, and the digital signal processor 140 controls the charging controller 120 to generate a closing control signal. If the above-mentioned protocol physical layer 122 is in a closed state (DISABLE state), the protocol physical layer 122 generates a property information transmission failure signal, and the digital signal 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.
[0117] 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 .
[0118] The present disclosure also provides a power supply system, in which 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 specific details of the digital signal processor 140, adapter 110, charging controller 120, protocol physical layer 122, event generation module 143, event monitoring module 144 and protection module 180 in the above system 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, and will not be repeated here.
[0119] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0120] It should be understood that the present invention is not limited in 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 disclosed 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, characterized in that: include: A digital signal processor receives the property information of the battery; A charging controller connected to the processor, the adapter and the battery; A protocol physical layer, connected to the digital signal processor and the adapter, for transmitting the attribute information to the adapter according to a preset protocol so that the adapter can determine an output signal according to the attribute information; The protocol physical layer feeds back a transmission completion signal of the attribute information to the 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; A protection module, connected to the adapter, the battery and the protocol physical layer, for transmitting the output signal to the battery in response to the closing control signal, or shutting down in response to the shut-down control signal; An event generation module, integrated in the digital signal processor, for generating a preset monitoring event in a predetermined order upon receiving a transmission completion signal; an event monitoring module, integrated in the digital signal processor, for receiving the monitoring event and generating an adjustment signal according to parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal; or The event monitoring module controls the charging controller to generate a shutdown control signal according to the parameter information of the monitoring event.
2. The device according to claim 1, characterized in that The step of generating an adjustment signal according to the parameter information of the monitoring event so that the adapter can adjust the output signal according to the adjustment signal comprises: Determining the duration of each of the monitoring events; Determining attribute information corresponding to the monitoring event according to the predetermined order and time length; The processing function corresponding to the monitoring event is called, and an adjustment signal is generated according to the parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal.
3. The device according to claim 1, characterized in that The power supply device also includes: The power consumption adjustment module is used to detect the connection status between the power supply device and the adapter, and adjust the power consumption mode of the digital signal processor according to the connection status.
4. The device according to claim 1, characterized in that The output signal includes a target charging current; the event includes an interaction event between the digital signal processor and the core processor; The step of generating an adjustment signal according to the parameter information of the monitoring event so that the adapter can adjust the output signal according to the adjustment signal comprises: receiving a requested current value sent by the core processor; Determine a preset maximum charging current value and a temperature charging current value determined according to the battery temperature; A current regulation signal is generated according to the maximum charging current value, the maximum charging current value and the temperature charging current value, so that the adapter can adjust the target charging current according to the current regulation signal.
5. The device according to claim 1, characterized in that The output signal includes a target charging current; the event includes a temperature monitoring event; and the generating an adjustment signal according to parameter information of the monitoring event so that the adapter can adjust the output signal according to the adjustment signal includes: The temperature state of the battery is detected in real time, and a current regulation signal is determined according to the temperature state, so that the adapter can adjust the target charging current according to the current regulation signal.
6. The device according to claim 1, characterized in that The monitoring event includes monitoring a communication data event, and parameter information of the monitoring event generates a shutdown control signal; When it is detected that the communication data does not meet the preset condition, the charging controller is controlled to generate a shutdown control signal.
7. The device according to claim 1, characterized in that The transmitting the attribute information to the adapter according to a preset protocol includes: receiving a handshake signal sent by the digital signal processor, and adjusting the protocol physical layer to an idle state; receiving a protocol sending instruction sent by the adapter, and adjusting the protocol physical layer to a data receiving state; When receiving the protocol content sent by the adapter, adjusting the protocol physical layer to a state of waiting for data transmission, and sending a data acquisition instruction to the digital signal processor; 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; The attribute information is sent to the adapter, and the protocol physical layer is adjusted to an idle state.
8. The device according to claim 1, 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.
9. The device according to claim 1, characterized in that When the adapter is not compatible with the digital signal processor, the output signal of the adapter is adjusted to a preset input signal through the charging controller and transmitted to the battery.
10. The device according to claim 1, characterized in that The power supply device also includes: The data acquisition module is connected to the digital signal processor and is used for acquiring the attribute information and transmitting it to the digital signal processor.
11. The device according to claim 1, characterized in that The digital signal processor further 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 physical layer of the protocol and transmit the attribute information to the adapter according to the preset protocol.
12. The device according to claim 1, characterized in that The protocol physical layer includes a digital circuit state machine.
13. 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.
14. A power supply method, characterized in that: include: receiving attribute information of the battery via a digital signal processor; The attribute information is transmitted to the adapter according to a preset protocol through a protocol physical layer integrated in the charging controller so that the adapter can adjust the output signal according to the attribute information, and the protocol physical layer feeds 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 the output signal to the battery in response to the closing control signal via a protection module; Or shut down by responding to the shutdown control signal through the protection module; When receiving the transmission completion signal, the event generation module integrated in the digital signal processor generates a preset monitoring event in a predetermined order; Receiving the monitoring event through an event monitoring module integrated in the digital signal processor, and generating an adjustment signal according to parameter information of the monitoring event, so that the adapter can adjust the output signal according to the adjustment signal; or The charging controller is controlled to generate a shutdown control signal according to the parameter information of the monitoring event.
15. A power supply system, characterized in that: It comprises a device to be charged and an adapter connected to each other, wherein the device to be charged comprises the power supply device according to any one of claims 1 to 13.