Energy storage power supply and hardware communication circuit thereof

By introducing a digital potentiometer and pull-up resistor between the main control chip and the USB control chip, the resistance value is dynamically adjusted. Combined with filters and differential communication signal processing, the problem of communication on the main control board being susceptible to interference is solved, and communication reliability and power supply quality are improved.

CN120896810BActive Publication Date: 2026-11-27SHENZHEN HELLO TECH ENERGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511008138.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2026-11-27
Estimated Expiration
2045-07-21

AI Technical Summary

Technical Problem

On the main control board of existing portable outdoor power supplies, the IIC communication between the main control chip and the USB control circuit is easily affected by strong magnetic fields, resulting in a high communication error rate and poor communication quality.

Method used

A digital potentiometer and pull-up resistor are introduced between the main control chip and the USB control chip. The resistance value of the digital potentiometer is dynamically adjusted by the main control chip to adapt to the communication rate under different load conditions. Combined with filters and differential communication signal processing, the communication reliability is improved.

Benefits of technology

In environments with strong electromagnetic interference, the communication quality and power supply reliability between the main control chip and the USB control chip are enhanced, the communication error rate is reduced, and the power supply quality of the energy storage power supply is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120896810B_ABST
    Figure CN120896810B_ABST
Patent Text Reader

Abstract

The application discloses a kind of energy storage power supply and its hardware communication circuit.The hardware communication circuit includes: main control chip, pull-up resistor, digital potentiometer and USB control circuit.USB control chip is provided in USB control circuit;Digital potentiometer is connected on the communication bus between main control chip and USB control chip;Pull-up resistor is connected on the communication bus between main control chip and digital potentiometer;Main control chip is used to generate communication control signal to USB control chip;Main control chip is also used to send digital signal to digital potentiometer, and the resistance of digital potentiometer is adjusted, to dynamically adjust the resistance of pull-up resistor, and adapt the communication rate of communication control signal under different load conditions.In the hardware communication circuit of the application, the resistance of digital potentiometer is adjusted by main control chip to dynamically adjust the resistance of pull-up resistor, adapt the communication rate of communication control signal under different load conditions, and enhance the communication quality of communication bus under different load conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of energy storage technology, and in particular to an energy storage power supply and its hardware communication circuit. Background Technology

[0002] Currently, most portable power supplies use Inter-Integrated Circuit (IIC) communication for communication between the main control chip (MCU) on the main control board and the USB control circuit. IIC communication offers simple communication circuit resources, straightforward software timing, and fast transmission speed. Due to its simplicity, support for multiple load devices, and low hardware cost, IIC communication has become the mainstream choice for short-distance, low-speed communication in embedded systems, especially suitable for scenarios with limited pin resources.

[0003] However, various types of strong magnetic field interference circuits exist on and around the main control board, posing a significant source of communication signal interference. This interference can severely disrupt IIC communication on the main control board, increasing the error rate and even halting communication. Therefore, improving the anti-interference capability and communication quality of IIC communication between the main control chip and the USB control circuit on the main control board is an urgent problem to be solved. Summary of the Invention

[0004] In view of this, this application aims to at least partially solve one of the problems in the related art. Therefore, the purpose of this application is to provide an energy storage power supply and its hardware communication circuit.

[0005] This application provides a hardware communication circuit for an energy storage power supply. The hardware communication circuit includes: a main control chip, a pull-up resistor, a digital potentiometer, and a USB control circuit. The USB control circuit contains a USB control chip; the digital potentiometer is connected to the communication bus between the main control chip and the USB control chip; the pull-up resistor is connected to the communication bus between the main control chip and the digital potentiometer; the main control chip is used to send communication control signals to the USB control chip; the main control chip is also used to send digital signals to the digital potentiometer to adjust the resistance value of the digital potentiometer, thereby dynamically adjusting the resistance value of the pull-up resistor to adapt to the communication rate of the communication control signals under different load conditions.

[0006] This application also provides an energy storage power supply. The energy storage power supply includes the hardware communication circuit described in the above embodiments.

[0007] Thus, the hardware communication circuit of the energy storage power supply in this application adds a digital potentiometer and a pull-up resistor. The main control chip sends a digital signal to the digital potentiometer to adjust its resistance value, thereby dynamically adjusting the resistance value of the pull-up resistor to adapt to the communication rate of the communication control signal under different load conditions. This can enhance the communication quality of the communication bus under different load conditions, improve the communication reliability of the communication bus between the main control chip and the USB control chip in a strong electromagnetic interference environment, and improve the power supply quality of the energy storage power supply.

[0008] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0009] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0010] Figure 1 This is a schematic diagram of the hardware communication circuit of the energy storage power supply according to certain embodiments of this application.

[0011] Figure 2 This is a schematic diagram of the hardware communication circuit of the energy storage power supply in some embodiments of this application during operation. Detailed Implementation

[0012] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0013] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0014] In the description of this application, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation" and "connection" should be interpreted broadly, referring to fixed connections, detachable connections, or integral connections; mechanical connections, electrical connections, or connections that allow communication between components; direct connections or indirect connections through an intermediate medium; and connections within two components or interactions between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0015] The following disclosure provides many different implementations or examples for carrying out different structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various implementations and / or arrangements discussed.

[0016] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0017] Please see Figure 1 This application provides a hardware communication circuit 100 for an energy storage power supply. The hardware communication circuit 100 includes a main control chip 10, a pull-up resistor 20, a digital potentiometer 30, and a USB control circuit 40. The USB control circuit 40 contains a USB control chip 41. The digital potentiometer 30 is connected to the communication bus between the main control chip 10 and the USB control chip 41. The pull-up resistor 20 is connected to the communication bus between the main control chip 10 and the digital potentiometer 30. The main control chip 10 sends communication control signals to the USB control chip 41. The main control chip 10 is also used to send digital signals to the digital potentiometer 30 to adjust the resistance value of the digital potentiometer 30, thereby dynamically adjusting the resistance value of the pull-up resistor 20 to adapt to the communication rate of the communication control signals under different load conditions.

[0018] Specifically, the communication bus between the main control chip 10 and the USB control chip 41 can be an integrated circuit bus (IIC).

[0019] The main control chip 10 outputs communication control signals to the USB control chip 41, which in turn converts the communication control signals into differential communication signals and outputs them to the USB control circuit 40. The communication control signals may include configuration instructions and status read instructions. That is, the main control chip 10 sends configuration instructions or status read instructions to the USB control chip 41 via the IIC bus (including the SDA data line and the SCL clock line), such as instructions to send charging protocol information and read voltage or current settings.

[0020] The USB control circuit 41 executes the control commands corresponding to the communication control signals sent by the main control chip 10, and returns the operation results to the main control chip 10 through the communication bus.

[0021] Pull-up resistor 20 may include, for example Figure 1 Resistors R1 and R2 are shown. The digital potentiometer 30 is an electronic component that controls the resistance value via digital signals.

[0022] The main control chip 10 is also used to send digital signals to the digital potentiometer 30 to adjust the resistance value of the digital potentiometer 30, so as to dynamically adjust the resistance value of the pull-up resistor 20 and adapt the communication rate of the communication control signal under different load conditions. That is to say, the resistance value of the pull-up resistor 20 in the communication bus of this application can be dynamically adjusted by the main control chip 10 adjusting the resistance value in the digital potentiometer 30. Then, the communication rate of the communication control signal can be controlled by dynamically adjusting the resistance value of the pull-up resistor 20, so that the communication rate of the communication control signal under different load conditions also changes accordingly, thereby enhancing the communication quality of the communication bus, improving the communication reliability of the communication bus between the main control chip 10 and the USB control chip 41 in a strong electromagnetic interference environment, and improving the power supply quality of the energy storage power supply.

[0023] Understandably, the value of the pull-up resistor 20 in the communication bus of this application can be dynamically adjusted according to the number of load devices (load capacitors) connected to the USB control circuit 40. When the number of load devices increases, the capacitance of the communication bus increases, which may cause the communication control signal edge to slow down, for example, the rise or fall time of the communication control signal may be too long. Reducing the pull-up resistor can speed up the signal edge speed, indirectly supporting higher communication rates or improving response latency, thus enhancing the communication quality of the communication bus when the number of load devices is large. Conversely, when the number of load devices decreases, increasing the value of the pull-up resistor can slow down the signal edge speed, indirectly supporting lower communication rates of the communication bus, reducing the power consumption of the energy storage power supply, and similarly ensuring the communication quality of the communication bus when the number of load devices is small.

[0024] In other words, the core purpose of the hardware communication circuit 100 in this application, which dynamically adjusts the pull-up resistor 20 through the main control chip 10, is to achieve dynamic optimization between communication signal integrity, power consumption, and compatibility, while enhancing the adaptive capability and reliability of the communication system.

[0025] Thus, the hardware communication circuit 100 of the energy storage power supply of this application adds a digital potentiometer 30 and a pull-up resistor 20. The main control chip 10 sends a digital signal to the digital potentiometer 30 to adjust the resistance value of the digital potentiometer 30, so as to dynamically adjust the resistance value of the pull-up resistor 20, adapt to the communication rate of the communication control signal under different load conditions, enhance the communication quality of the communication bus under different load conditions, improve the communication reliability of the communication bus between the main control chip 10 and the USB control chip 41 in a strong electromagnetic interference environment, and improve the power supply quality of the energy storage power supply.

[0026] In some embodiments, a voltage divider resistor 50 is provided between the main control chip 10 and the digital potentiometer 30. The first end of the voltage divider resistor 50 is connected to both the digital potentiometer 30 and the main control chip 10, and the second end of the voltage divider resistor 50 is grounded. The main control chip 10 calculates the actual resistance value of the digital potentiometer 30 by detecting the resistance value of the voltage divider resistor 50, and adjusts the resistance value of the digital potentiometer 30 according to the difference between the actual resistance value and the target resistance value.

[0027] Understandably, when the number of load devices connected to the USB port controlled by the USB control circuit 40 of the energy storage power supply changes, the USB control circuit 40 can feed back the real-time connection status of the load devices to the main control chip 10. This allows the main control chip 10 to calculate the target value of the pull-up resistor 20 based on the current number of load devices and a preset algorithm, thereby obtaining the target resistance value of the digital potentiometer 30 to be adjusted. The preset algorithm can be a formula for calculating pull-up resistors that meets the IIC communication standard.

[0028] Voltage divider resistor 50 may include Figure 1 Resistors R3 and R4 are shown in the diagram. The first end of resistor R3 is connected to pin A1 of the main control chip 10 and pin A1 of the digital potentiometer 30, and the second end of resistor R3 is grounded. The first end of resistor R4 is connected to pin A0 of the main control chip 10 and pin A0 of the digital potentiometer 30, and the second end of resistor R4 is grounded.

[0029] Before adjusting the actual resistance value of the digital potentiometer 30 to the target resistance value, the main control chip 10 can first calculate the actual resistance value of the digital potentiometer 30 by detecting the resistance value of the voltage divider resistor 50. Then, based on the difference between the actual resistance value and the target resistance value of the digital potentiometer 30, the resistance value of the digital potentiometer 30 is adjusted to the target resistance value, thereby achieving the purpose of adjusting the resistance value of the pull-up resistor 20 to the corresponding target value.

[0030] In some embodiments, the hardware communication circuit 100 further includes a filter 60. The filter 60 is connected in series on the communication bus between the digital potentiometer 30 and the USB control chip 41, and is used to filter the communication control signals output by the main control chip 10.

[0031] Specifically, filter 60 can be an LC filter, which may include, for example... Figure 1 The capacitors C1, C2, L1, C3, C4, and L2 are shown.

[0032] That is, the hardware communication circuit 100 of this application can also be equipped with a filter 60 to filter the communication control signal output by the main control chip 10, which can filter out noise and other adverse factors that affect the communication quality in the communication control signal, further improve the communication reliability of the communication bus between the main control chip 10 and the USB control chip 41 in a strong electromagnetic interference environment, and improve the power supply quality of the energy storage power supply.

[0033] In some implementations, the USB control circuit 40 is used to convert the communication control signal into a differential communication signal after the USB control chip 41 receives the communication control signal. If the start byte and / or end byte of the current frame data in the differential communication signal does not conform to the corresponding custom specification, the current frame data is determined to be invalid and marked as invalid frame data.

[0034] Specifically, the USB control chip 41 may contain a level conversion circuit and a differential drive circuit, which can convert logic signals into differential pairs that conform to the USB electrical specifications. Therefore, the USB control chip 41 can convert communication control signals into differential communication signals.

[0035] After the USB control chip 41 converts the communication control signal into a differential communication signal, the USB control circuit 40 checks and detects that the start byte and / or end byte of the current frame data in the differential communication signal does not conform to the corresponding custom specification. If the current frame data does not conform to the custom specification, the current frame data is determined to be invalid and marked as invalid frame data. This includes the following situations: (1) When the USB control circuit 40 checks and detects that the start byte of the current frame data in the differential communication signal does not conform to the custom start byte specification, the current frame data is determined to be invalid and marked as invalid frame data; (2) When the USB control circuit 40 checks and detects that the end byte of the current frame data in the differential communication signal does not conform to the custom end byte specification, the current frame data is determined to be invalid and marked as invalid frame data; (3) When the USB control circuit 40 checks and detects that the start byte of the current frame data in the differential communication signal does not conform to the custom start byte specification and the end byte of the current frame data does not conform to the custom end byte specification, the current frame data is determined to be invalid and marked as invalid frame data.

[0036] Thus, the USB control circuit 40 of this application can mark the wireless frame data in the differential communication signal. After marking, it can prevent erroneous data from being misused and avoid causing subsequent processing errors, thereby further improving the power supply quality of the energy storage power supply.

[0037] In some embodiments, the USB control circuit 40 is also used to convert the communication control signal into a differential communication signal after the USB control chip 41 receives the communication control signal, and terminate the reception of the current frame data and trigger a timeout fault signal if the end byte of the current frame data in the differential communication signal is not detected within a preset time.

[0038] Specifically, the preset time can be, for example, 490μs, 500μs, 501μs, 502μs, 504μs, 505μs, 506μs, 507μs, 509μs or 510μs, and there is no limitation here.

[0039] Understandably, if the USB control circuit 40 does not detect the end byte of the current frame data in the differential communication signal for a relatively long period of time, it indicates that the communication between the current main control chip 10 and the USB control chip 41 has failed, and the communication control signal transmitted by the main control chip 10 is missing, resulting in the absence of an end byte.

[0040] Therefore, if the end byte of the current frame data in the differential communication signal is not detected within a preset time, the USB control circuit 40 can terminate the reception of the current frame data, trigger a timeout fault signal, and then trigger protective measures such as interrupting the power supply of the energy storage power supply to the load device according to the fault signal, so as to avoid damage to the load device.

[0041] In some embodiments, the USB control circuit 40 is also used to convert the communication control signal into a differential communication signal after the USB control chip 41 receives the communication control signal, and to verify the parity bit of the address byte of the differential communication signal. If the parity bit verification of the address byte of the differential communication signal fails, the data packet corresponding to the differential communication signal is discarded and a retransmission signal is sent to the main control chip 10.

[0042] Understandably, if the address byte is flipped during transmission due to interference, noise, or hardware failure (such as 0 becoming 1 or 1 becoming 0), the parity of the actually received address byte will not match that of the sending end, resulting in parity check failure when verifying the parity check bit of the IIC communication signal address byte.

[0043] Therefore, the USB control circuit 40 of this application verifies the parity bit of the IIC communication signal address byte. If the parity check fails, the current data packet corresponding to the differential communication signal is discarded, and then... Figure 1 The SCL signal in the signal is returned to the main control chip 10 as a retransmission signal, notifying the main control chip 10 to retransmit.

[0044] Thus, by discarding data corresponding to parity check failures as invalid data, subsequent data can be avoided from being sent to the wrong slave device, preventing erroneous operations. Furthermore, by discarding invalid data packets, the USB control circuit 40 does not need to parse or respond to error frames, saving CPU computing resources (such as interrupt handling and protocol parsing) and bus bandwidth.

[0045] In some implementations, the USB control circuit 40 is also used to verify the parity check bit of the address byte of the differential communication signal. If the parity check bit of the address byte of the differential communication signal is successfully verified, the main control chip 10 performs CRC verification on the data packet corresponding to the differential communication signal. If the result of the CRC verification is correct, the control command corresponding to the communication control signal is executed, and the operation result is returned to the main control chip 10 through the communication bus.

[0046] Specifically, for example, the USB control circuit 40 verifies the parity check bit of the address byte of the differential communication signal. If the parity check bit of the address byte of the differential communication signal is successfully verified, the main control chip 10 can calculate the CRC8 check value of the data packet content corresponding to the differential communication signal. If the CRC check result is correct, the USB control circuit executes the control command corresponding to the IIC communication control signal sent by the main control chip 10 and returns the operation result to the main control chip 10 through the bus.

[0047] CRC8 uses a predefined 8th-order polynomial to perform a modulo-2 division operation on the data, ultimately yielding a 1-byte (8-bit) check value. For example, the predefined 8th-order polynomial could be CRC-8 = x. 8 +x 2 +x+1.

[0048] Thus, after the USB control circuit 40 of this application successfully verifies the parity bit of the address byte of the differential communication signal, the main control chip 10 can also perform CRC verification on the data packet corresponding to the differential communication signal. Only after both verifications are correct will the USB control circuit 40 execute the corresponding control command, thereby achieving the enhancement effect of the communication signal at the communication protocol layer.

[0049] In some implementations, the main control chip 10 includes an error counter. The USB control circuit 40 is also used to verify the parity bit of the address byte of the differential communication signal. If the parity bit verification of the address byte of the differential communication signal is successful, the main control chip 10 performs a CRC check on the data packet corresponding to the differential communication signal. If the CRC check result is an error, the error count of the error counter is incremented by one. When the continuous error count in the error counter exceeds a first preset number, the main control chip 10 triggers a preset retransmission mechanism.

[0050] Specifically, the first preset number of times can be, for example, 4, 5, or 6 times, without limitation. In detail, taking a first preset number of 5 times as an example, if the main control chip 10 performs CRC verification on the data packet corresponding to the differential communication signal, and the CRC verification result is an error, the error counter is incremented by 1. Once the consecutive error count exceeds 5 times, a preset retransmission mechanism is triggered, causing the main control chip 10 to retransmit the communication control signal to the USB control circuit 40 according to the preset retransmission mechanism.

[0051] Thus, the hardware communication circuit 100 of this application can automatically trigger the main control chip 10 to retransmit the communication control signal to the USB control chip 41 when the parity check bit of the address byte of the differential communication signal is successful in the USB control circuit 40, but the CRC check result of the main control chip 10 on the data packet corresponding to the differential communication signal is incorrect. This enhances the communication quality of the IIC bus and improves the communication reliability of the IIC bus between the main control chip 10 and the USB control circuit 40 in a strong electromagnetic interference environment.

[0052] In some implementations, the preset retransmission mechanism is to use an exponential backoff algorithm for automatic retransmission, which is an algorithm that retransmits at exponential intervals.

[0053] Specifically, the main control chip 10 uses an exponential backoff algorithm to retransmit communication control signals. After the first retransmission of the communication control signal to the USB control chip 41, it retransmits the communication control signal to the USB control chip 41 again after a 1ms interval. After the second retransmission of the communication control signal to the USB control chip 41, it retransmits the communication control signal to the USB control chip 41 again after a 2ms interval. After the third retransmission of the communication control signal to the USB control chip 41, it retransmits the communication control signal to the USB control chip 41 again after a 4ms interval. This can avoid communication bus congestion, build communication rate adjustment logic, and realize dynamic adjustment of communication rate, for example, the communication rate can be reduced to 100kHz.

[0054] Thus, the main control chip 10 of this application uses an exponential backoff algorithm to automatically retransmit communication control signals to the USB control chip 41, which can adjust the communication rate between the main control chip 10 and the USB control circuit 40, thereby achieving the effect of dynamically adjusting the communication rate and improving the communication quality between the main control chip 10 and the USB control circuit 40.

[0055] In some implementations, when the main control chip 10 retransmits the communication control signal to the USB control chip 41 more than a second preset number of times using a preset retransmission mechanism, if the CRC check result is still incorrect, the main control chip 10 triggers an alarm signal and reports an error code, and the main control chip 10 reduces the communication rate of the communication control signal to a first rate value. When the main control chip 10 retransmits the communication control signal to the USB control chip 41 less than or equal to a second preset number of times using the preset retransmission mechanism, if the CRC check result is correct, the main control chip 10 maintains the communication rate of the communication control signal at the second rate value.

[0056] Specifically, the second preset number of times can be 2, 3 or 4 times, and there is no restriction here.

[0057] The first rate value can be, for example, 100 kHz, 110 kHz, 120 kHz, 130 kHz, 140 kHz, 150 kHz, 160 kHz, 170 kHz, 180 kHz, 190 kHz or 200 kHz, and there is no limitation here.

[0058] The second rate value can be, for example, 390 kHz, 400 kHz, 410 kHz, 420 kHz, 430 kHz, 440 kHz, 450 kHz, 460 kHz, 470 kHz, 480 kHz or 490 kHz, and there is no limitation here.

[0059] Please see Figure 2Taking a second preset number of retransmissions of 3, a first rate of 100kHz, and a second rate of 400kHz as an example, if the main control chip 10 automatically retransmits the communication control signal to the USB control chip 41 according to the preset retransmission mechanism, and if the main control chip 10 uses an exponential backoff algorithm to retransmit the communication control signal, and the CRC check result is still incorrect after 4 retransmissions, it indicates that there may be strong electromagnetic interference in the communication between the main control chip 10 and the USB control circuit 40. Therefore, the main control chip 10 can control the communication rate of the communication control signal to be reduced to 100kHz. Reducing the communication rate in a strong electromagnetic interference environment can effectively improve the anti-interference capability and communication reliability of the communication bus, ensuring the communication quality between the main control chip 10 and the USB control chip 41. At the same time, the main control chip 10 triggers an alarm signal and reports the error code to the control system, such as a Battery Management System (BMS), so that the hardware communication circuit 100 can issue an alarm signal in a timely manner, facilitating the user to promptly clear the strong electromagnetic interference components.

[0060] In addition, after the main control chip 10 retransmits the communication control signal to the USB control chip 41 twice using a preset retransmission mechanism, if the CRC check result is correct, the main control chip 10 can also control the communication rate of the communication control signal to remain at 400kHz. Understandably, compared to higher frequencies (such as MHz), 400kHz is more stable in long cables or complex electromagnetic environments, reducing signal attenuation and noise effects.

[0061] This application also provides an energy storage power supply. The energy storage power supply includes the hardware communication circuit 100 described in any of the above embodiments.

[0062] Specifically, the structure and working principle of the hardware communication circuit 100 are as described above and will not be repeated here. The energy storage power supply can be an outdoor portable energy storage power supply or other power supplies, and there are no restrictions here.

[0063] Thus, the hardware communication circuit 100 of the energy storage power supply of this application adds a digital potentiometer 30 and a pull-up resistor 20. The main control chip 10 sends a digital signal to the digital potentiometer 30 to adjust the resistance value of the digital potentiometer 30, so as to dynamically adjust the resistance value of the pull-up resistor 20, adapt to the communication rate of the communication control signal under different load conditions, thereby enhancing the communication quality of the communication bus under different load conditions, improving the communication reliability of the communication bus between the main control chip 10 and the USB control chip 41 in a strong electromagnetic interference environment, and improving the power supply quality of the energy storage power supply.

[0064] In other words, the energy storage power supply of this application improves the communication quality between the main control chip 10 and the USB control chip 41 by combining the internal structure optimization of the hardware communication circuit 100, the enhancement of the communication protocol, and the dynamic adjustment of the communication rate. This enhances the communication reliability of the IIC bus between the main control chip 10 and the USB control circuit 40 in a strong electromagnetic interference environment, and effectively improves the quality of the energy storage power supply.

[0065] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A hardware communication circuit for an energy storage power supply, characterized in that, The hardware communication circuit includes: a main control chip, a pull-up resistor, a digital potentiometer, and a USB control circuit. The USB control circuit contains a USB control chip. The digital potentiometer is connected to the communication bus between the main control chip and the USB control chip. The pull-up resistor is connected to the communication bus between the main control chip and the digital potentiometer. The main control chip is used to send communication control signals to the USB control chip; The main control chip is also used to send digital signals to the digital potentiometer to adjust the resistance value of the digital potentiometer, so as to dynamically adjust the resistance value of the pull-up resistor and adapt to the communication rate of the communication control signal under different load conditions.

2. The hardware communication circuit according to claim 1, characterized in that, A voltage divider resistor is provided between the main control chip and the digital potentiometer. The first end of the voltage divider resistor is connected to the digital potentiometer and the main control chip, and the second end of the voltage divider resistor is grounded. The main control chip calculates the actual resistance value of the digital potentiometer by detecting the resistance value of the voltage divider resistor, and adjusts the resistance value of the digital potentiometer according to the difference between the actual resistance value and the target resistance value.

3. The hardware communication circuit according to claim 1, characterized in that, The hardware communication circuit also includes a filter, which is connected in series on the communication bus between the digital potentiometer and the USB control chip. The filter is used to filter the communication control signal output by the main control chip.

4. The hardware communication circuit according to claim 1, characterized in that, The USB control circuit is used to convert the communication control signal into a differential communication signal after the USB control chip receives the communication control signal, and to determine that the current frame data is invalid and mark the current frame data as invalid frame data when the start byte and / or end byte of the current frame data in the differential communication signal does not conform to the corresponding custom specification.

5. The hardware communication circuit according to claim 1, characterized in that, The USB control circuit is also used to convert the communication control signal into a differential communication signal after the USB control chip receives the communication control signal, and terminate the reception of the current frame data and trigger a timeout fault signal when the end byte of the current frame data in the differential communication signal is not detected within a preset time.

6. The hardware communication circuit according to claim 1, characterized in that, The USB control circuit is further configured to, after the USB control chip receives the communication control signal, convert the communication control signal into a differential communication signal through the USB control chip, verify the parity check bit of the address byte of the differential communication signal, and if the parity check bit of the address byte of the differential communication signal fails to be verified, discard the data packet corresponding to the differential communication signal and send a retransmission signal to the main control chip.

7. The hardware communication circuit according to claim 6, characterized in that, The USB control circuit is also used to verify the parity check bit of the address byte of the differential communication signal. If the parity check bit of the address byte of the differential communication signal is successfully verified, the main control chip performs CRC verification on the data packet corresponding to the differential communication signal. If the result of the CRC verification is correct, the control command corresponding to the communication control signal is executed, and the operation result is returned to the main control chip through the communication bus.

8. The hardware communication circuit according to claim 7, characterized in that, The main control chip has an error counter. The USB control circuit is also used to verify the parity check bit of the address byte of the differential communication signal. If the parity check bit of the address byte of the differential communication signal is successfully verified, the main control chip performs CRC verification on the data packet corresponding to the differential communication signal. If the result of the CRC verification is an error, the error count of the error counter is incremented by one. When the continuous error count in the error counter exceeds a first preset number, the main control chip triggers a preset retransmission mechanism.

9. The hardware communication circuit according to claim 8, characterized in that, The preset retransmission mechanism is to use an exponential backoff algorithm for automatic retransmission, and the exponential backoff algorithm is an algorithm that retransmits at exponential intervals.

10. The hardware communication circuit according to claim 9, characterized in that, If the main control chip retransmits the communication control signal to the USB control chip more than a second preset number of times using the preset retransmission mechanism, and the result of the CRC check is still incorrect, the main control chip triggers an alarm signal and reports an error code, and the main control chip controls the communication rate of the communication control signal to be reduced to a first rate value. When the main control chip retransmits the communication control signal to the USB control chip using the preset retransmission mechanism for less than or equal to the second preset number of times, if the result of the CRC check is correct, the main control chip controls the communication rate of the communication control signal to remain at the second rate value.

11. An energy storage power source, characterized in that, The energy storage power supply includes the hardware communication circuit described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Charging protection circuit, charging protection method and mobile terminal

    CN106100025A

  • Timing sequence automatic test system of active module

    CN215116687U