Charging and discharging control circuit for sound box and sound box

By designing a charging and discharging control circuit including Type-C, Type-A interface control circuit, main control circuit, step-up circuit and Bluetooth module, the problem of the inability to charge and discharge of the speaker and the protocol fixed is solved, and the two-way charging and discharge of the speaker and multi-protocol compatibility are realized, and the working stability and application flexibility are improved.

CN120165475APending Publication Date: 2025-06-17JIANDA INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510349843.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The existing speakers can only be charged from external devices and cannot charge and discharge, and the Type-C interface charge and discharge communication protocol is fixed and cannot be compatible with multiple protocols.

Method used

A charging and discharging control circuit is designed, including Type-C interface control circuit, Type-A interface control circuit, main control circuit, step-up and buck circuit and Bluetooth module, which can realize the two-way charging and discharging function and is compatible with a variety of communication protocols.

Benefits of technology

It realizes the two-way charging and discharging function of the speaker, which is compatible with multiple charging and discharging protocols, improves the working stability of the speaker during the charging and discharging process, and expands the application flexibility of the speaker.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120165475A_ABST
    Figure CN120165475A_ABST
Patent Text Reader

Abstract

The invention discloses a charging and discharging control circuit for a sound box and the sound box. The circuit comprises a Type-C interface control circuit, a Type-A interface control circuit, a main control circuit, a buck-boost circuit and a Bluetooth module. The Type-C interface control circuit can be connected with external power supply equipment or power receiving equipment, and is connected with the buck-boost circuit and the main control circuit; the Type-A interface control circuit is used for being connected with external power receiving equipment and is connected with the buck-boost circuit and the main control circuit. The buck-boost circuit is connected with a battery pack of the sound box, the battery pack is connected with the main control circuit, and the buck-boost circuit realizes two-way transmission of electric energy under the control of the main control circuit. The Bluetooth module is connected with the main control circuit and is used for acquiring the real-time output power of the sound box. The main control circuit dynamically adjusts charging and discharging power by collecting battery voltage and communication protocol information of external equipment and combining real-time output power and different protocol power requirements. Through multi-protocol compatibility and power dynamic adjustment, a bidirectional charging and discharging function is realized, and the working stability of the loudspeaker box is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of charging, and particularly to a charge and discharge control circuit and a speaker for a speaker. Background Art

[0002] Currently, the Type-C interface charge and discharge circuit is basically applied to related mobile power supplies such as power banks. The products are single, only having a single charging and discharging function. Moreover, the Type-C charge and discharge communication protocol of most products is fixedly set, unable to coexist multiple protocols and program the communication protocol, and the protocol IC has long been solidified.

[0003] In addition, for current speakers, they only have a charging function, that is, charging the speaker through an external charging device, and cannot charge various terminals such as mobile phones. Summary of the Invention

[0004] The purpose of this application is to provide a charge and discharge control circuit and a speaker for a speaker, which can be compatible with multiple protocols, realize the two-way charge and discharge function, and is beneficial to ensuring the stability of the speaker during the charge and discharge process.

[0005] To achieve the above purpose, this application provides a charge and discharge control circuit for a speaker, which is used to be connected between the battery pack of the speaker and an external device. The external device includes an external power supply device and an external power receiving device. The charge and discharge control circuit includes a Type-C interface control circuit, a Type-A interface control circuit, a main control circuit, a buck-boost circuit, and a Bluetooth module; The Type-C interface control circuit includes a Type-C interface, which is used to connect the external power supply device or the external power receiving device. The Type-C interface control circuit is respectively connected to the buck-boost circuit and the main control circuit; The Type-A interface control circuit includes a Type-A interface, which is used to connect an external power receiving device. The Type-A interface control circuit is respectively connected to the buck-boost circuit and the main control circuit; The buck-boost circuit is connected to the main control circuit and the battery pack, and the battery pack is connected to the main control circuit. The buck-boost circuit is configured to realize the bidirectional transmission of electric energy under the control of the main control circuit; The Bluetooth module is connected to the main control circuit, and the Bluetooth module is used to obtain the real-time output power of the speaker; The main control circuit is configured to obtain the battery voltage of the battery pack and the communication protocol information of the external device, and based on the battery voltage and the real-time output power and combined with the power requirements of different communication protocols, control the buck-boost circuit to dynamically adjust the charging power or the discharging power; When the external power supply device is connected to the Type-C interface, the main control circuit controls the external power supply device to charge the battery pack through the Type-C interface control circuit and the buck-boost circuit based on the battery voltage, the communication protocol information, and the real-time output power; When the external power receiving device is connected to the Type-C interface or the Type-A interface, the main control circuit controls the battery pack to supply power to the external power receiving device through the buck-boost circuit and the corresponding interface control circuit based on the battery voltage, the communication protocol information, and the real-time output power.

[0006] Optionally, the main control circuit includes an MCU chip, and the MCU chip is configured with: A communication protocol detection pin group for obtaining the communication protocol information of an external device connected to the Type-C interface or the Type-A interface, where the external device is an external power supply device or an external power receiving device; A charge and discharge control pin group, including a Type-C charge and discharge control pin and a Type-A discharge control pin. The Type-C charge and discharge control pin is used to send a charge and discharge control signal to the charge and discharge control end of the Type-C interface control circuit, and the Type-A discharge control pin is used to send a discharge control signal to the discharge control end of the Type-A interface control circuit; A device voltage detection pin group for obtaining the charging input voltage signal of the external power supply device and the discharge output voltage signal fed back by the buck-boost circuit; A current detection pin group for obtaining the charging current signals of the Type-C interface and the Type-A interface. When the charging current exceeds the first threshold current, the MCU chip interrupts the charging; A battery management pin group, including a battery voltage detection pin and a battery temperature detection pin. The battery voltage detection pin is connected to the battery voltage detection end, and the battery voltage detection end is connected to the battery pack to monitor each battery voltage. The temperature detection pin is connected to the temperature sensor of the battery pack to obtain battery temperature data; A Bluetooth module communication pin group for communicating with the Bluetooth module to obtain the real-time output power; A charge and discharge enable output pin for outputting a charge and discharge enable signal to the charge and discharge enable input end of the buck-boost circuit to control its working state; A charge and discharge communication pin group for outputting a communication control signal to the buck-boost circuit to adjust the charging power or the discharging power; The MCU chip is configured to cooperate and control the charging and discharging process based on the battery voltages of the batteries in the battery pack, the battery temperature data, the real-time output power, the communication protocol information of the external device, the voltage signals obtained by the device voltage detection pin group, the charging current signal, the charging and discharging enable signal, the communication control signal, and the control signals of the charging and discharging control pin group.

[0007] Optionally, the buck-boost circuit includes: A charging and discharging enable input terminal, which is connected to the main control circuit and is used to receive the charging and discharging enable input signal of the main control circuit; A communication control terminal, which is used to obtain the communication control signal output by the main control circuit to adjust the charging power or the discharging power; A battery power supply terminal, which is connected to the battery pack; A device power supply terminal, which is respectively connected to the Type-C interface control circuit and the Type-A interface control circuit; A discharge voltage detection terminal, which is connected to the main control circuit and is used to feedback the discharge output voltage signal to the main control circuit; The buck-boost circuit is configured to: In the charging mode, convert the electrical energy of the external power supply device into a charging voltage adapted to the battery pack; In the discharging mode, convert the electrical energy of the battery pack into a power supply voltage adapted to the external power receiving device.

[0008] Optionally, the buck-boost circuit includes a buck-boost charging chip, a first control triode, and a chip power supply input terminal. The buck-boost charging chip includes a charging and discharging enable input pin, a communication control pin group, a battery power supply pin, and a device power supply pin; The charging and discharging enable input pin is connected to the collector of the first control triode, the charging and discharging enable input terminal is connected to the base of the first control triode, the emitter of the first control triode and the communication control pin are respectively connected to the chip power supply input terminal. The chip power supply terminal is used to provide the voltage after voltage conversion for the external device or the battery. The communication control terminal is connected to the communication control pin group, the battery power supply pin is connected to the battery power supply terminal, and the device power supply pin is connected to the device power supply terminal.

[0009] Optionally, the Type-C interface control circuit includes the Type-C interface, a first Type-C power supply terminal, a second Type-C power supply terminal, a first detection terminal, a second detection terminal, and a Type-C charging and discharging control terminal. The Type-C interface includes a power supply pin, a communication protocol detection pin, and a ground pin; The first Type-C power supply terminal and the second Type-C power supply terminal are respectively connected to the power supply pins. The first Type-C power supply terminal is used to supply power to the IC that needs power supply in the charge and discharge control circuit. The second Type-C power supply terminal is connected to the device power supply terminal of the buck-boost circuit. The first detection terminal is connected to the power supply pin and connected to the main control circuit to input the signal of the input voltage into the main control circuit. The second detection terminal is connected to the ground pin and connected to the main control circuit; The communication protocol detection pin is connected to the main control circuit, and the communication protocol detection pin is used to obtain the communication protocol information of the external power supply device or the external power receiving device; The Type-C charge and discharge control terminal is used to receive the Type-C charge and discharge control signal of the main control circuit. The Type-C charge and discharge control terminal controls the formation or disconnection of a path between the second Type-C power supply terminal and the power supply pin based on the Type-C charge and discharge control signal.

[0010] Optionally, the Type-A interface control circuit includes the Type-A interface, an insertion detection terminal, a third detection terminal, a Type-A power supply terminal, and a Type-A discharge control terminal. The Type-A interface includes a power supply pin, a communication protocol detection pin, and an ID pin; The insertion detection terminal sends an insertion signal to the main control circuit when the external power receiving device is connected. The communication protocol detection pin is connected to the main control circuit and is used to obtain the communication protocol information of the external power receiving device; The third detection terminal is connected to the ID pin and is used to detect the discharge output current; The Type-A power supply terminal is connected to the device power supply terminal of the buck-boost circuit. The Type-A power supply terminal and the Type-A discharge control terminal are respectively connected to the power supply pin. The Type-A discharge control terminal is used to receive the Type-A discharge control signal of the main control circuit. The Type-A discharge control terminal controls the formation or disconnection of a path between the USB-A power supply terminal and the power supply pin based on the Type-A discharge control signal.

[0011] Optionally, the charge and discharge control circuit further includes an overvoltage protection circuit. The overvoltage protection circuit includes a first power supply input terminal, a second power supply input terminal, a first power supply output terminal, and a second power supply output terminal. The first power supply input terminal is connected to the first Type-C power supply terminal of the Type-C interface control circuit. The second power supply input terminal is connected to the battery pack. The first power supply output terminal is respectively connected to the Type-C interface control circuit, the Type-A interface control circuit, and the buck-boost circuit. The second power supply output terminal is connected to the main control circuit. The overvoltage protection circuit is used to perform voltage conversion according to the input voltage of the external power supply device or the battery pack and then supply power.

[0012] Optionally, when the battery voltage of each battery in the battery pack is less than the first threshold voltage and / or when the speaker is in a non-working state for a duration greater than or equal to the first threshold duration, the main control circuit disconnects the connection between the battery pack and the speaker, and the main control circuit obtains the working state of the speaker through the Bluetooth module.

[0013] Optionally, when the external power receiving device is connected to the Type-C interface control circuit or the Type-A interface control circuit, when the charging output current of the Type-C interface control circuit or the Type-A interface control circuit is less than the second threshold current and lasts for the second threshold duration, the main control circuit controls the charging output of the Type-C interface or the Type-A interface to be turned off.

[0014] To achieve the above object, the present application further provides a speaker, including the charge and discharge control circuit and the battery pack as described above. The speaker charges the battery pack or supplies power to an external device through the charge and discharge control circuit.

[0015] In the embodiments of the present application, a Type-C interface control circuit and a Type-A interface control circuit connecting the buck-boost circuit and the main control circuit are provided. The two respectively include a Type-C interface and a Type-A interface. The Type-C interface can be connected to an external power supply device and an external power receiving device, and the Type-A interface can be connected to an external power receiving device, enabling the speaker to realize the charging and discharging functions. In addition, the present application can be compatible with external devices of different communication protocols. The main control circuit can control the buck-boost circuit to dynamically adjust the charging power or discharging power according to the power requirements of different communication protocols, and can realize the compatibility of the Type-C interface with multiple bidirectional protocols. Moreover, in the present application, the main control circuit obtains the real-time output power of the speaker and the battery voltage of the battery pack through the Bluetooth module, and can then dynamically adjust the charging power and discharging power according to the real-time output power of the speaker and the battery voltage of the battery pack, which can improve the working stability of the speaker during the charging and discharging process. As described above, the charging and discharging control circuit for the speaker in the present application can enable the speaker to realize the discharging function while realizing its basic functions as a speaker, and can be compatible with multiple charging and discharging protocols. It can use various power banks and outdoor power supplies to charge the speaker, and can also use the speaker to charge various other terminals including mobile phones and tablets, making the use of the speaker more flexible. In addition, the present application dynamically adjusts the charging power and discharging power based on the battery voltage and the real-time output power of the speaker obtained by the Bluetooth module, which is beneficial to ensuring the working stability of the speaker during the charging and discharging process. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a block diagram of the charging and discharging control circuit in the embodiments of the present application.

[0017] Figure 2 It is a flowchart of the charging and discharging control circuit in the embodiments of the present application.

[0018] Figure 3 It is a circuit schematic diagram of the MCU control circuit in the embodiments of the present application.

[0019] Figure 4 It is a circuit schematic diagram of the buck-boost circuit in the embodiments of the present application.

[0020] Figure 5 It is a circuit schematic diagram of the Type-C interface control circuit in the embodiments of the present application.

[0021] Figure 6 It is a circuit schematic diagram of the Type-A interface control circuit in the embodiments of the present application.

[0022] Figure 7 It is a circuit schematic diagram of the overvoltage protection circuit in the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0023] To describe in detail the technical content, structural features, and achieved effects of the present application, the following will be described in detail in conjunction with the embodiments and with reference to the drawings.

[0024] To make the above objects, features, and advantages of the present application more apparent and understandable, the following will describe in detail the specific embodiments of the present application with reference to the drawings. Many specific details are set forth in the following description in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without departing from the spirit of the present application. Therefore, the present application is not limited by the specific embodiments disclosed below.

[0025] Please refer to Figure 1 and Figure 2 , an embodiment of the present application discloses a charge and discharge control circuit 1 for a speaker, which is used to connect between a battery pack and an external device, and the external device includes an external power supply device and an external power receiving device.

[0026] The charge and discharge control circuit 1 includes a Type-C (USB-C) interface control circuit 10, a Type-A (USB-A) interface control circuit 20, a main control circuit 30, a buck-boost circuit 40, and a Bluetooth module 50. The Type-C interface control circuit 10 includes a Type-C interface USB1, and the Type-C interface USB1 is used to connect an external power supply device or an external power receiving device. The Type-C interface control circuit 10 is respectively connected to the buck-boost circuit 40 and the main control circuit 30. The Type-A interface control circuit 20 includes a Type-A interface USB2, and the Type-A interface USB2 is used to connect an external power receiving device. The Type-A interface control circuit 20 is respectively connected to the buck-boost circuit 40 and the main control circuit 30. The buck-boost circuit 40 is connected to the main control circuit 30 and the battery pack 60, and the battery pack 60 is connected to the main control circuit 30. The buck-boost circuit 40 is configured to achieve bidirectional power transmission under the control of the main control circuit 30. The Bluetooth module 50 is connected to the main control circuit 30, and the Bluetooth module 50 is used to obtain the real-time output power of the speaker. The main control circuit 30 is configured to obtain the battery voltage of the battery pack 60 and the communication protocol information of the external device, and based on the battery voltage, the real-time output power, and the power requirements of different communication protocols, control the buck-boost circuit 40 to dynamically adjust the charging power or the discharging power. When an external power supply device is connected to the Type-C interface USB1, the main control circuit 30 controls the external power supply device to charge the battery pack 60 through the Type-C interface control circuit 10 and the buck-boost circuit 40 based on the battery voltage, the communication protocol information, and the real-time output power. When an external power receiving device is connected to the Type-C interface USB1 or the Type-A interface USB2, the main control circuit 30 controls the battery pack 60 to supply power to the external power receiving device through the buck-boost circuit 40 and the corresponding interface control circuit (the Type-C interface control circuit 10 or the Type-A interface control circuit 20) based on the battery voltage, the communication protocol information, and the real-time output power.

[0027] In the embodiments of the present application, a Type-C interface control circuit 10 and a Type-A interface control circuit 20 connecting the buck-boost circuit 40 and the main control circuit 30 are provided. The two respectively include a Type-C interface USB1 and a Type-A interface USB2. Among them, the Type-C interface USB1 can be connected to an external power supply device and an external power receiving device, and the Type-A interface USB2 can be connected to an external power receiving device, so that the speaker can realize the charging and discharging functions. In addition, the present application can be compatible with external devices of different communication protocols. The main control circuit 30 can control the buck-boost circuit 40 to dynamically adjust the charging power or discharging power according to the power requirements of different communication protocols, and can realize the compatibility of the Type-C interface USB1 with bidirectional multi-protocols. In addition, in the present application, the main control circuit 30 obtains the real-time output power of the speaker and the battery voltage of the battery pack 60 through the Bluetooth module 50, and then can dynamically adjust the charging power and discharging power according to the real-time output power of the speaker and the battery voltage of the battery pack 60, which can improve the working stability of the speaker during the charging and discharging process. As described above, the charging and discharging control circuit 1 for the speaker in the present application can enable the speaker to realize the discharging function while realizing its basic functions as a speaker, and can be compatible with a variety of charging and discharging protocols, can use various power banks and outdoor power supplies, etc. to charge the speaker, and can also use the speaker to charge various other terminals including mobile phones and tablets, making the use of the speaker more flexible. In addition, the present application can dynamically adjust the charging power and discharging power based on the battery voltage and the real-time output power of the speaker obtained by the Bluetooth module 50, which is beneficial to ensuring the working stability of the speaker during the charging and discharging process.

[0028] Please refer to Figures 3 to 7 , in some embodiments, the main control circuit 30 includes an MCU chip U1. The MCU chip U1 is configured with a communication protocol detection pin group, a charging and discharging control pin group, a device voltage detection pin group, a current detection pin group, a battery management pin group, a Bluetooth module communication pin group, a charging and discharging enable output pin PT1.2, and a charging and discharging communication pin group. In addition, the MCU chip U1 can be configured with a programmable logic module to facilitate the configuration and change of the control strategy of the MCU chip U1, including performing communication protocol configuration to be compatible with external devices of different protocols.

[0029] The communication protocol detection pin group is used to obtain the communication protocol information of the external device connected to the Type-C interface USB1 or the Type-A interface USB2. The communication protocol detection pin group can be changed / configured through the programmable logic module to parse and adapt to a variety of charging / discharging communication protocols.

[0030] The charge and discharge control pin group includes the Type-C charge and discharge control pin PT3.3 and the Type-A discharge control pin PT2.0. The Type-C charge and discharge control pin PT3.3 is used to send a charge and discharge control signal to the charge and discharge control terminal VBUS_C_EN of the Type-C interface control circuit 10, and the Type-A discharge control pin PT2.0 is used to send a Type-A discharge control signal to the discharge control terminal VBUS_A_EN of the Type-A interface control circuit 20.

[0031] The device voltage detection pin group includes the charging voltage detection pin PT3.4 and the discharging voltage detection pin PT2.2, which are respectively used to obtain the charging input voltage signal of the Type-C interface USB1 and the discharging output voltage signal fed back by the buck-boost circuit 40.

[0032] The current detection pin group includes the pin P2.1 connected to the Type-C interface USB1 and the pin PT3.7 connected to the Type-A interface USB2, which are respectively used to obtain the charging current signals of the Type-C interface USB1 and the Type-A interface USB2. When the charging current exceeds the first threshold current, the MCU chip U1 interrupts the charging.

[0033] Specifically, the magnitude of the first threshold current is 3.1A. Of course, the present application does not limit this.

[0034] The battery management pin group includes the battery voltage detection pin PT2.6 and the battery temperature detection pin PT3.0. The battery voltage detection pin PT2.6 is connected to the battery voltage detection terminal VBAT, and the battery voltage detection terminal VBAT is connected to the battery pack 60 to monitor the voltages of the respective batteries. The battery temperature detection pin PT3.0 is connected to the temperature sensor (specifically an NTC) of the battery pack 60 to obtain battery temperature data.

[0035] The battery voltage detection pin PT2.6 is connected to the battery pack 60 through a battery voltage detection circuit. The battery voltage detection circuit includes a first MOS transistor Q1, a resistor R41, a resistor R152, and a resistor R153. The first end of the resistor R41 is connected to the buck-boost circuit 40. The control end of the first MOS transistor Q1 is connected to the second end of the resistor R41. The output end of the first MOS transistor Q1 is grounded. The input end of the first MOS transistor Q1 is connected to the first end of the resistor R153. The second end of the resistor R153 is connected to the first end of the resistor R152. The battery pack 60 is connected to the second end of the resistor R152. The control end of the first MOS transistor Q1 receives the battery voltage detection enable signal of the buck-boost circuit 40 to control the conduction of the first MOS transistor Q1. When the voltage of each battery in the battery pack is higher than 4.35V, the MCU chip U1 will trigger the battery overvoltage protection. At this time, the MCU chip U1 disconnects the charging circuit to protect the battery from overcharging. When the MCU chip U1 detects that the voltage of each battery is lower than 3.2V, the MCU chip U1 will trigger the battery undervoltage protection. At this time, the MCU chip U1 controls the speaker to shut down to protect the battery from over-discharging.

[0036] The Bluetooth module communication pin group includes differential signal pins BT_TX and BT_RX, which are used to communicate with the Bluetooth module 50 to obtain the real-time output power.

[0037] The charge and discharge enable output pin PT1.2 is used to output a charge and discharge enable signal to the charge and discharge enable input terminal 8905_CE of the buck-boost circuit 40 to control its working state.

[0038] The charge and discharge communication pin group is connected to the communication interface CON1 and is connected to the buck-boost circuit 40 through the communication interface CON1, and is used to output a communication control signal to the buck-boost circuit 40 to adjust the charging power or the discharging power. Among them, the pin PT1.4 and the pin PT1.5 are connected to the buck-boost circuit 40 through the I2C bus.

[0039] The MCU chip U1 is configured to cooperate and control the charge and discharge process based on the battery voltage of each battery, the battery temperature data, the real-time output power, the communication protocol information of the external device, the voltage signal obtained by the device voltage detection pin group, the charging current signal, the charge and discharge enable signal, the communication control signal, and the control signal of the charge and discharge control pin group.

[0040] In a specific example, when an external power supply device charges the battery pack 60, the MCU chip U1 detects the battery voltage of the battery pack 60 and controls the switching of the charging mode of the battery pack 60, including the following charging modes: (1) Trickle charging mode When the MCU chip U1 detects that the battery voltage is less than or equal to 60% of the target battery voltage, it enters the trickle charging mode. The MCU chip U1 will control the charging circuit to perform small current replenishment on the battery to achieve the purpose of activating the battery or gradually entering the constant current charging mode.

[0041] (2)Constant current charging mode When the MCU chip U1 detects that the battery voltage is between 60% and 99% of the target battery voltage, it enters the constant current charging mode. The charging control circuit will charge the battery with a constant current of 3A.

[0042] (3)Constant voltage charging mode When the MCU chip U1 detects that the battery voltage is greater than or equal to 99% of the target battery voltage, it enters the constant voltage charging mode. The charge and discharge control circuit will replenish the battery with a dynamic current to ensure that the battery pack 60 reaches the target battery voltage.

[0043] In some embodiments, during the charge and discharge process, the MCU chip U1 will detect the battery temperature of the battery pack 60, obtain the NTC (negative temperature coefficient) value, and execute the following charging strategy: When the MCU chip U1 detects that the NTC value is greater than 28.3KR (below 0°C), it activates the battery low temperature protection, and the battery stops charging or discharging.

[0044] When the MCU chip U1 detects that the NTC value is between 28.3 and 18.1KR (0 to 10°C), the battery is charged or discharged at 0.2C.

[0045] When the MCU chip U1 detects that the NTC value is between 18.1 and 4.7KR (10 to 45°C), the battery is charged or discharged at 0.5C.

[0046] When the MCU chip U1 detects that the NTC value is less than 4.7KR (above 45°C), it activates the battery over temperature protection, and the battery stops charging or discharging.

[0047] Specifically, the model of the MCU chip U1 is CSU3AF10. Of course, the model of the MCU chip U1 is not limited in this application.

[0048] Specifically, the communication protocol detection pin group includes the pin CC1_A and the pin CC2_A for connecting the Type-C interface USB1 to detect the PD protocol, and the pins DM_A and DP_A for detecting the connection of the QC protocol. The pins DM_A and DP_A are respectively connected to the HSD2+ pin and the HSD2- pin of the switching chip U5, and the D+ pin and the D- pin of the switching chip U5 are respectively connected to the D+ pin and the D- pin of the Type-C interface USB1. The communication protocol detection pin group further includes the pins DM_B and DP_B for connecting the Type-A interface USB2 for detection.

[0049] Please refer to Figure 4 , in some embodiments, the buck-boost circuit 40 includes a charge and discharge enable input terminal 8905_CE, a communication control terminal, a battery power supply terminal VBAT, a device power supply terminal VBUS, and a discharge voltage detection terminal VBUS_OUT. The charge and discharge enable input terminal 8905_CE is connected to the charge and discharge enable output pin PT1.2 of the MCU chip U1 to receive the charge and discharge enable input signal of the main control circuit 30. The communication control terminal includes an SDA terminal and an SCL terminal, which are respectively connected to the pins PT1.4 and PT1.5 of the MCU chip U1 through the communication interface CON1 for obtaining the communication control signal output by the main control circuit 30 to adjust the charging power or the discharging power.

[0050] The battery power supply terminal VBAT is connected to the battery pack 60. The device power supply terminal VBUS is respectively connected to the Type-C interface control circuit 10 and the Type-A interface control circuit 20. The discharge voltage detection terminal is connected to the main control circuit 30 for feeding back the discharge output voltage signal to the main control circuit 30.

[0051] The buck-boost circuit 40 is configured to convert the electric energy of an external power supply device into a charging voltage adapted to the battery pack 60 in the charging mode. In the discharging mode, the electric energy of the battery pack 60 is converted into a power supply voltage adapted to an external power receiving device.

[0052] Specifically, the buck-boost circuit 40 further includes a buck-boost charging chip U2, a first control triode Q11, and a chip power supply input terminal LDO_3.3V. The buck-boost charging chip U2 includes a charge and discharge enable input pin CE, a communication control pin group, a battery power supply pin VBAT, and a device power supply pin VBUS.

[0053] The charge / discharge enable input pin CE is connected to the collector of the first control triode Q11. The charge / discharge enable input terminal 8905_CE is connected to the base of the first control triode Q11. The emitter of the first control triode Q11 and the communication control pin group are respectively connected to the chip power supply input terminal LDO_3.3V. The chip power supply input terminal LDO_3.3V is used to provide the voltage after voltage conversion for external devices or batteries. The communication control terminals SDA and SCL are connected to the communication control pin group SDA and SCL. The battery power supply pin VBAT is connected to the battery power supply terminal VBAT. The device power supply pin VBUS is connected to the device power supply terminal VBUS.

[0054] Specifically, the VBAT pin of the buck-boost charging chip U2 is connected to the battery power supply terminal VBAT through a plurality of filter capacitors. The VBUS pin is connected to the device power supply terminal VBUS through a plurality of filter capacitors and is respectively connected to the Type-C interface control circuit 10 and the Type-A interface control circuit 20. The discharge voltage detection terminal VBUS_OUT is connected to the first end of the resistor R119. The second end of the resistor R119 is connected to the pin VBUS. The discharge voltage detection terminal VBUS_OUT is connected to the pin PT2.2 of the MCU chip U1. The VBUS pin of the buck-boost chip U2 is connected to the first end of the resistor R82. The resistor R85 is connected to the second end of the resistor R82 and grounded. The pin FB of the buck-boost chip U2 is connected to the second end of the resistor R82 to provide line loss compensation for the device power supply terminal VBUS.

[0055] In a specific example, the buck-boost charging chip U2 selects SC8905. The chip SC8905 integrates an H-bridge MOS transistor, which saves PCB space compared with the external H-bridge MOS transistor of the common buck-boost charging chip U2, and can save the price cost of 4 P-MOS transistors.

[0056] Of course, the present application does not limit the selection of the buck-boost charging chip U2.

[0057] Please refer to Figure 5 , in some embodiments, the Type-C interface control circuit 10 includes a Type-C interface USB1, a first Type-C power supply terminal VBUS_C, a second Type-C power supply terminal VBUS, a first detection terminal VOUT_C, a second detection terminal OCP_C, and a Type-C charge / discharge control terminal VBUS_C_EN. The Type-C interface USB1 includes a power supply pin VBUS, communication protocol detection pins CC1 / CC2, D+ / D-, and ground pins GND / GND. The Type-C interface USB1 detects and determines whether the external device is a SINK (external power receiving device) or a SOURCE (external power supply device) through the pins CC1 and CC2.

[0058] The first Type-C power supply terminal VBUS_C and the second Type-C power supply terminal VBUS are respectively connected to the power supply pin VBUS. The first Type-C power supply terminal VBUS_C is used to supply power to the IC that needs power supply in the charge and discharge control circuit. The second Type-C power supply terminal VBUS is connected to the device power supply terminal VBUS of the buck-boost circuit 40. The first detection terminal VOUT_C is connected to the power supply pin VBUS and connected to the main control circuit 30 to input the signal of the input voltage to the main control circuit 30. The second detection terminal OCP_C is connected to the ground pin GND and connected to the main control circuit 30. The communication protocol detection pin is connected to the main control circuit 30, and the communication protocol detection pin is used to obtain the communication protocol information of the external power supply device or the external power receiving device.

[0059] The Type-C charge and discharge control terminal VBUS_C_EN is used to receive the Type-C charge and discharge control signal of the main control circuit 30. The Type-C charge and discharge control terminal VBUS_C_EN controls the formation or disconnection of the path between the second Type-C power supply terminal VBUS and the power supply pin VBUS based on the Type-C charge and discharge control signal.

[0060] Specifically, the power supply pin VBUS of the Type-C interface USB1 is respectively connected to the bead FB1 and the bead FB2. The bead FB1 is connected to the overvoltage protection circuit. The bead FB2 is connected to the fuse F1. The fuse F1 is connected to the second Type-C power supply terminal VBUS through the second MOS transistor Q2 and the third MOS transistor Q3. The control ends of the second MOS transistor Q2 and the third MOS transistor Q3 are both connected to the fourth MOS transistor Q4. The control end of the fourth MOS transistor Q4 is connected to the Type-C charge and discharge control pin PT3.3 of the MCU chip U1, which is used to control the on and off of the second MOS transistor Q2 and the third MOS transistor Q3. The fuse F1 is connected to the first detection terminal VOUT_C through the resistor R44 and connected to the charging voltage detection pin PT3.4 of the MCU chip U1.

[0061] Specifically, the ground pin GND is connected to the first end of the resistor R24 through the parallel-connected beads FB3 and FB4. The first end of the resistor R45 is connected to the first end of the resistor R24. The second end of the resistor R45 is grounded. The second end of the resistor R24 is connected to the second detection terminal OCP_C. The MCU chip U1 detects the voltage across R45 through the second detection terminal OCP_C and then calculates the current magnitude.

[0062] Please refer to Figure 6, in some embodiments, the Type-A interface control circuit 20 includes a Type-A interface USB2, an insertion detection terminal INDET-A, a third detection terminal OCP_A, a Type-A power supply terminal VBUS, and a Type-A discharge control terminal VBUS_A_EN. The Type-A interface USB2 includes a power supply pin, a communication protocol detection pin, and an ID pin. The insertion detection terminal INDET-A sends an insertion signal to the main control circuit 30 when an external powered device is connected. The communication protocol detection pin is connected to the main control circuit 30 for obtaining the communication protocol information of the external powered device. The third detection terminal OCP_A is connected to the ID pin for detecting the discharge output current.

[0063] The Type-A power supply terminal VBUS is connected to the device power supply terminal VBUS of the buck-boost circuit 40. The Type-A power supply terminal VBUS and the Type-A discharge control terminal VBUS_A_EN are respectively connected to the power supply pin. The Type-A discharge control terminal VBUS_A_EN is used to receive the Type-A discharge control signal from the main control circuit 30, and the Type-A discharge control terminal VBUS_A_EN controls the Type-A power supply terminal VBUS and the power supply pin to form a path or disconnect based on the Type-A discharge control signal.

[0064] In a specific example, one path of the power supply pin is connected to a bead FB5 and connected to the VBUS pin of the buck-boost charging chip U2 through a fifth MOS transistor Q5 and a sixth MOS transistor Q6. The control terminals of the fifth MOS transistor Q5 and the sixth MOS transistor Q6 are both connected to a seventh MOS transistor Q7. The control terminal of the seventh MOS transistor Q7 is connected to the Type-A discharge control pin PT2.0 of the MCU chip U1 for controlling the on and off of the fifth MOS transistor Q5 and the sixth MOS transistor Q6. Another path of the power supply pin is connected to the base of the second control triode Q12 through a series-connected diode D15 and a resistor R64. The insertion detection terminal INDET-A is connected to the collector of the second control triode Q12. The emitter of the second control triode Q12 is connected to the power supply input terminal LDO_3.3V. The insertion detection terminal INDET-A is connected to the pin PT1.3 of the MCU chip U1 to send the insertion signal to the MCU chip U1.

[0065] The communication protocol detection pin D- is connected to the pin PT2.4 of the MCU chip U1 through a resistor R14, and the communication protocol detection pin D+ is connected to the pin PT2.3 of the MCU chip U1 through a resistor R15.

[0066] The ID pin is connected to the pin PT3.7 through a bead FB6 and a resistor R26. The first end of the resistor R43 is connected to the bead FB4, and the second end is grounded. The MCU chip U1 detects the voltage across R43 through the third detection terminal OCP_A and then calculates the current magnitude.

[0067] Please refer to Figure 7 Figure 7 , in some embodiments, the charge and discharge control circuit 1 further includes an overvoltage protection circuit. The overvoltage protection circuit includes a first power supply input terminal VBUS_C, a second power supply input terminal VBAT, a first power supply output terminal LDO_3.3V, and a second power supply output terminal MCU_VDD. The first power supply input terminal VBUS_C is connected to the first Type-C power supply terminal VBUS_C of the Type-C interface control circuit 10. The second power supply input terminal VBAT is connected to the battery pack 60. The first power supply output terminal LDO_3.3V is respectively connected to the Type-C interface control circuit 10, the Type-A interface control circuit 20, and the buck-boost circuit 40. The second power supply output terminal MCU_VDD is connected to the main control circuit 30. The overvoltage protection circuit is used to supply power after voltage conversion according to the input voltage of an external power supply device or the battery pack 60.

[0068] Specifically, the value of the input voltage is about 5V, and the value of the voltage after voltage conversion is 3.3V.

[0069]

[0069] Specifically, the first power supply input terminal VBUS_C is current-limited by the OVP chip U3. The output terminal of the OVP chip U3 is connected to the first end of the resistor R47. The second end of the resistor R47 is connected to the diode D16 and is connected to the input terminal of the linear voltage regulator U4. The second power supply input terminal VBAT is connected to the first end of the resistor R46. The second end of the resistor R46 is connected to the diode D17 and is connected to the input terminal of the linear voltage regulator U4. One path of the output terminal of the linear voltage regulator U4 is connected to the buck-boost charging chip U2, the second end of the resistor R24 of the Type-C interface control circuit 10, the second end of the resistor R26 of the Type-A interface control circuit 20, the communication interface COM1, and the power supply pin V+ of the switching chip U5. Another path is connected to the power supply input pin VDD of the MCU chip U1 through the resistor R62. The overcurrent protection circuit is used to limit the output voltage to supply power to each circuit IC such as the MCU chip U1, the buck-boost charging chip U2, and the switching chip U5.

[0070]

[0070] In some embodiments, when the battery voltage of each battery in the battery pack is less than the first threshold voltage or the speaker is in a non-working state for a duration greater than or equal to the first threshold duration, the main control circuit 30 will disconnect the connection between the battery pack 60 and the speaker. The main control circuit 30 obtains the working state of the speaker through the Bluetooth module 50. By judging the working state of the speaker, when it is in a non-working state for a long time, a sleep instruction is sent through the MCU chip U1, and the connection with the battery pack 60 is disconnected when the speaker is in a non-working state, so that the speaker enters the shutdown state, which is beneficial to ensuring the battery life of the speaker.

[0071] Specifically, the value of the first threshold voltage is 3.2V, the non-operating state is that the speaker is in a state without music, and the first threshold duration is 20 minutes. It can be understood that both the first threshold voltage and the first threshold duration can be set as needed, and the present application places no restrictions on this.

[0072] In some embodiments, when an external power-receiving device is connected to the Type-C interface control circuit 10 or the Type-A interface control circuit 20, when the charging output current of the Type-C interface control circuit 10 or the Type-A interface control circuit 20 is less than the second threshold current and lasts for the second threshold duration, the main control circuit 30 controls the charging output of the Type-C interface USB1 or the Type-A interface USB2 to be turned off.

[0073] Specifically, the second threshold current is 200 mA, and the second threshold duration is 30 minutes. Of course, the present application places no restrictions on this.

[0074] The present application also discloses a speaker, including the charge and discharge control circuit 1 and the battery pack 60 as described above. The speaker charges the battery pack 60 or supplies power to an external device through the charge and discharge control circuit 1.

[0075] In a specific example, the external power supply device is usually an adapter power supply, and the external power-receiving device can be other devices such as a power bank.

[0076] To facilitate understanding of the technical solution of the present application, the following briefly describes the specific implementation process of the present application, which should not be regarded as a limitation to the present application.

[0077] When the Type-C interface USB1 is connected to an external power supply device to charge the speaker, the MCU chip U1 will detect whether the battery pack 60 meets the charging requirements. When the battery pack 60 meets the charging conditions, the MCU chip U1 conducts communication protocol confirmation with the external adapter through the Type-C interface USB1, confirms the output power, turns on the Type-C charge and discharge control switch VUBS_C_EN, and finally the external adapter voltage reaches the buck-boost charge and discharge chip U2 to charge the battery pack 50. At this time, if the Bluetooth is turned on and working, music can be played while charging. The TYPE-C charging part and the Bluetooth part operate independently of each other and can also detect the battery voltage and communicate with each other for protection.

[0078] When the Type-C interface USB1 is connected to an external power receiving device, during discharging, the current path is opposite to that during charging. The MCU chip U1 determines whether the external device is a power receiving device through pins CC1 and CC2, and confirms the output power after successful communication protocol handshake. During the discharging process, the MCU chip U1 continuously detects the voltage output by the battery pack 50 through the discharging voltage detection terminal VBUS_OUT. When the voltage is low, some compensation will be made to ensure the line loss of the Type-C interface control circuit 10. When the output current is less than 100 mA for 30 minutes continuously, the MCU chip U1 will turn off the output of the Type-C interface USB1 to protect the external power receiving device.

[0079] When an external device is inserted into the Type-A interface USB2, the MCU chip U1 determines whether the external device is inserted by the level detected by INDET-A, and confirms the output power after successful communication protocol handshake. During the discharging process, the output current first reaches the VBUS pin of the buck-boost charging chip U2. The discharging voltage detection pin PT2.2 of the MCU chip U1 detects whether the output voltage of VBUS meets the requirements of the communication protocol, turns on the Type-C charge and discharge control switch VBUS_C_EN, and the Type-A charge and discharge control switch VBUS_A_EN turns on the fifth MOS transistor Q5 and the sixth MOS transistor Q6, so that the current flows through FB5 and finally reaches the Type-A interface USB2 to output to the external power receiving device. When the output current is less than 100 mA for 30 minutes continuously, the MCU chip U1 will turn off the output of the Type-A interface USB2 to protect the external power receiving device.

[0080] When the output of the Type-C or Type-A is turned off, the MCU chip U1 enters the sleep state. At this time, the output of the buck-boost charging chip U2 is also at a low level, so the output of the CE pin of the buck-boost charging chip U2 is also at a low level, and the buck-boost charging chip U2 also enters the sleep state to ensure the long standby time of the speaker product.

[0081] In summary, the charge and discharge control circuit 1 of the present application is applied to a speaker device. By carrying the circuit with the MCU chip U1 and the buck-boost charging chip U2, it can be compatible with the Type-C interface USB1 and the Type-A interface USB2. In addition, the MCU control circuit of the present application can be compatible with various communication protocols, can adjust the charge and discharge power and charge and discharge mode according to parameters such as the voltage and temperature of the battery pack 60, and can also dynamically adjust the discharge power of the USB interface according to the output power of the speaker. The charge and discharge control circuit 1 of the present application has various safety protection functions, including protection functions such as interrupting the charge and discharge output when overvoltage, undervoltage, overcurrent, overcharge, over-discharge, and the battery temperature is too high. In addition, various external power supply devices such as various power banks and outdoor power supplies can charge the speaker, and the speaker can charge various external power receiving devices including mobile phones.

[0082] The above-disclosed are only the preferred examples of the present application, which are used to facilitate the understanding and implementation by those skilled in the art. Of course, the scope of rights of the present application cannot be limited thereby. Therefore, equivalent changes made according to the scope of the patent application of the present application still fall within the scope covered by the present application.

Claims

1. A charge and discharge control circuit for a speaker, used to be connected between a battery pack of the speaker and an external device, wherein the external device includes an external power supply device and an external power receiving device, characterized in that: The charge and discharge control circuit includes a Type-C interface control circuit, a Type-A interface control circuit, a main control circuit, a buck-boost circuit and a Bluetooth module; The Type-C interface control circuit includes a Type-C interface, the Type-C interface is used to connect the external power supply device or the external powered device, and the Type-C interface control circuit is respectively connected to the buck-boost circuit and the main control circuit; The Type-A interface control circuit includes a Type-A interface, the Type-A interface is used to connect an external powered device, and the Type-A interface control circuit is respectively connected to the buck-boost circuit and the main control circuit; The buck-boost circuit is connected to the main control circuit and the battery pack, the battery pack is connected to the main control circuit, and the buck-boost circuit is configured to achieve bidirectional transmission of electric energy under the control of the main control circuit; The Bluetooth module is connected to the main control circuit, and the Bluetooth module is used to obtain the real-time output power of the speaker; The main control circuit is configured to obtain the battery voltage of the battery pack and the communication protocol information of the external device, and control the buck-boost circuit to dynamically adjust the charging power or discharging power based on the battery voltage and the real-time output power and in combination with the power requirements of different communication protocols; When the external power supply device is connected to the Type-C interface, the main control circuit controls the external power supply device to charge the battery pack through the Type-C interface control circuit and the buck-boost circuit based on the battery voltage, the communication protocol information and the real-time output power; When the external powered device is connected to the Type-C interface or the Type-A interface, the main control circuit controls the battery pack to supply power to the external powered device through the buck-boost circuit and the corresponding interface control circuit based on the battery voltage, the communication protocol information and the real-time output power.

2. The charge and discharge control circuit according to claim 1, characterized in that: The main control circuit includes an MCU chip, and the MCU chip is configured with: A communication protocol detection pin group, used to obtain communication protocol information of an external device connected to the Type-C interface or the Type-A interface, wherein the external device is an external power supply device or an external power receiving device; A charge and discharge control pin group, including a Type-C charge and discharge control pin and a Type-A discharge control pin, wherein the Type-C charge and discharge control pin is used to send a charge and discharge control signal to the charge and discharge control end of the Type-C interface control circuit, and the Type-A discharge control pin is used to send a discharge control signal to the discharge control end of the Type-A interface control circuit; A device voltage detection pin group, used to obtain a charging input voltage signal of the external power supply device and a discharging output voltage signal fed back by the buck-boost circuit; A current detection pin group, used to obtain the charging current signal of the Type-C interface and the Type-A interface. When the charging current exceeds a first threshold current, the MCU chip interrupts charging; A battery management pin group, including a battery voltage detection pin and a battery temperature detection pin, wherein the battery voltage detection pin is connected to the battery voltage detection terminal, the battery voltage detection terminal is connected to the battery pack to monitor the voltage of each battery, and the temperature detection pin is connected to the temperature sensor of the battery pack to obtain battery temperature data; A Bluetooth module communication pin group, used for communicating with the Bluetooth module to obtain the real-time output power; A charge and discharge enable output pin, used to output a charge and discharge enable signal to the charge and discharge enable input terminal of the buck-boost circuit to control its working state; A charge and discharge communication pin group, used for outputting a communication control signal to the buck-boost circuit to adjust the charging power or the discharging power; The MCU chip is configured to collaboratively control the charging and discharging process based on the battery voltage of each battery in the battery pack, the battery temperature data, the real-time output power, the communication protocol information of the external device, the voltage signal obtained by the device voltage detection pin group, the charging current signal, the charging and discharging enable signal, the communication control signal and the control signal of the charging and discharging control pin group.

3. The charge and discharge control circuit according to claim 1, characterized in that: The buck-boost circuit comprises: A charge and discharge enable input terminal, the charge and discharge enable input terminal is connected to the main control circuit and is used to receive a charge and discharge enable input signal of the main control circuit; A communication control terminal, used for obtaining a communication control signal output by the main control circuit to adjust the charging power or the discharging power; A battery power supply terminal, connected to the battery pack; The device power supply end is connected to the Type-C interface control circuit and the Type-A interface control circuit respectively; A discharge voltage detection terminal, connected to the main control circuit, and used to feed back a discharge output voltage signal to the main control circuit; The buck-boost circuit is configured as follows: In charging mode, converting the electric energy of the external power supply device into a charging voltage suitable for the battery pack; In the discharge mode, the electric energy of the battery pack is converted into a supply voltage adapted to the external powered device.

4. The charge and discharge control circuit according to claim 3, characterized in that: The buck-boost circuit includes a buck-boost charging chip, a first control transistor and a chip power supply input terminal, and the buck-boost charging chip includes a charge and discharge enable input pin, a communication control pin group, a battery power supply pin and a device power supply pin; The charge and discharge enable input pin is connected to the collector of the first control transistor, the charge and discharge enable input terminal is connected to the base of the first control transistor, the emitter of the first control transistor and the communication control pin are respectively connected to the chip power supply input terminal, the chip power supply terminal is used to provide the voltage after voltage conversion of the external device or the battery, the communication control terminal is connected to the communication control pin group, the battery power supply pin is connected to the battery power supply terminal, and the device power supply pin is connected to the device power supply terminal.

5. The charge and discharge control circuit according to claim 1, characterized in that: The Type-C interface control circuit includes the Type-C interface, a first Type-C power supply terminal, a second Type-C power supply terminal, a first detection terminal, a second detection terminal and a Type-C charge and discharge control terminal, and the Type-C interface includes a power supply pin, a communication protocol detection pin and a ground pin; The first Type-C power supply end and the second Type-C power supply end are connected to the power supply pins respectively, the first Type-C power supply end is used to power the power-requiring IC of the charge and discharge control circuit, the second Type-C power supply end is connected to the device power supply end of the buck-boost circuit, the first detection end is connected to the power supply pin and connected to the main control circuit to input the input voltage signal to the main control circuit, and the second detection end is connected to the ground pin and connected to the main control circuit; The communication protocol detection pin is connected to the main control circuit, and the communication protocol detection pin is used to obtain the communication protocol information of the external power supply device or the external powered device; The Type-C charge and discharge control end is used to receive the Type-C charge and discharge control signal of the main control circuit, and the Type-C charge and discharge control end controls the formation of a path or disconnection between the second Type-C power supply end and the power supply pin based on the Type-C charge and discharge control signal.

6. The charge and discharge control circuit according to claim 1, characterized in that: The Type-A interface control circuit includes the Type-A interface, an insertion detection terminal, a third detection terminal, a Type-A power supply terminal and a Type-A discharge control terminal, and the Type-A interface includes a power supply pin, a communication protocol detection pin and an ID pin; The insertion detection end sends an insertion signal to the main control circuit when the external powered device is connected, and the communication protocol detection pin is connected to the main control circuit to obtain the communication protocol information of the external powered device; The third detection end is connected to the ID pin and is used to detect the discharge output current; The Type-A power supply end is connected to the device power supply end of the buck-boost circuit, the Type-A power supply end and the Type-A discharge control end are respectively connected to the power supply pins, the Type-A discharge control end is used to receive the Type-A discharge control signal of the main control circuit, and the Type-A discharge control end controls the USB-A power supply end to form a path or disconnect with the power supply pin based on the Type-A discharge control signal.

7. The charge and discharge control circuit according to claim 1, characterized in that: The charge and discharge control circuit also includes an overvoltage protection circuit, which includes a first power supply input terminal, a second power supply input terminal, a first power supply output terminal, and a second power supply output terminal. The first power supply input terminal is connected to the first Type-C power supply terminal of the Type-C interface control circuit, the second power supply input terminal is connected to the battery pack, the first power supply output terminal is respectively connected to the Type-C interface control circuit, the Type-A interface control circuit and the buck-boost circuit, the second power supply output terminal is connected to the main control circuit, and the overvoltage protection circuit is used to perform voltage conversion according to the input voltage of the external power supply device or the battery pack and then provide power.

8. The charge and discharge control circuit according to claim 1, characterized in that: When the battery voltage of each battery in the battery pack is less than a first threshold voltage and / or the speaker is in a non-working state for a period greater than or equal to a first threshold, the main control circuit disconnects the battery pack from the speaker, and the main control circuit obtains the working status of the speaker through the Bluetooth module.

9. The charge and discharge control circuit according to claim 1, characterized in that: When the external powered device is connected to the TYPE-C interface control circuit or the Type-A interface control circuit, when the charging output current of the TYPE-C interface control circuit or the Type-A interface control circuit is less than the second threshold current and lasts for the second threshold time, the main control circuit controls the charging output of the TYPE-C interface or the Type-A interface to be turned off.

10. A sound box, characterized in that: It comprises the charge and discharge control circuit and battery pack as described in any one of claims 1 to 9, and the speaker charges the battery pack or supplies power to an external device through the charge and discharge control circuit.