Sound box control method, control device and sound box

By designing a speaker control method, the charging and discharging path of the speaker is used to configure the working status according to the interface connection status and equipment type, the burden of users carrying large outdoor power supplies when camping in the wild is solved, and the multi-function power supply and charging functions of the speaker are realized, improving the camping experience.

CN119545244APending Publication Date: 2025-02-28GOLDANA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411640347.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When camping in the wild, users need to carry large outdoor power supplies to meet the power supply needs of multiple power equipment, which leads to a greater burden and experience.

Method used

A speaker control method is designed. The speaker includes a battery and at least one interface. By acquiring the connection status and device type of the interface, the charging and discharging path is configured as a charging or discharging state to realize external discharge or internal charge.

Benefits of technology

Through this speaker control method, users do not need to carry large outdoor power supplies, they only need to carry a speaker to meet entertainment and power supply needs, reduce camping burden, and improve experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545244A_ABST
    Figure CN119545244A_ABST
Patent Text Reader

Abstract

The invention discloses a sound box control method and device and a sound box, and relates to the technical field of sound boxes, and the sound box control method comprises the steps: obtaining the connection state of an interface; under the condition that the connection state is the insertion state, obtaining the device type of the device inserted into the interface; according to the equipment type, configuring a charging and discharging path electrically connected with the interface in the insertion state to be in a corresponding working state; wherein the working state comprises a charging state and a discharging state, and under the condition that the charging and discharging path is configured to be in the charging state, the charging and discharging path is used for charging the battery based on first voltage output by the equipment; under the condition that the charging and discharging path is configured to be in a discharging state, the charging and discharging path is used for charging accessed equipment; the invention aims to solve the technical problem that the burden is large when a user carries a large outdoor power supply to camp in the field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of speaker technology, and in particular to a speaker control method, a control device and a speaker. Background Art

[0002] In recent years, camping in China has developed from a niche outdoor sport to a popular leisure activity across the country. With the rapid development of the automobile industry, self-driving camping has become one of the trendy choices for more and more families, and people are paying more and more attention to the comfort and enjoyment of camping.

[0003] When camping, users generally need to carry an outdoor power supply to charge their electrical devices. When there are a large number of electrical devices, users may need to carry a large outdoor power supply to meet the power supply needs of multiple electrical devices. However, a large outdoor power supply will take up a large area and is heavy, which will increase the burden on users when camping in the wild and affect the user's camping experience. Summary of the invention

[0004] The main purpose of the present application is to provide a speaker control method, a control device and a speaker, aiming to solve the technical problem that users have a heavy burden when carrying a large outdoor power supply to go camping in the wild.

[0005] To achieve the above object, the present application proposes a speaker control method, wherein the speaker includes a battery and at least one interface, a charge and discharge path is provided between the interface and the battery, and the method includes:

[0006] Get the connection status of the interface;

[0007] When the connection state is an insertion state, obtaining a device type of a device inserted into the interface;

[0008] According to the device type, the charging and discharging path electrically connected to the interface in the inserted state is configured to a corresponding working state;

[0009] Among them, the working state includes a charging state and a discharging state. When the charge and discharge path is configured in the charging state, the charge and discharge path is used to charge the battery based on the first voltage output by the device; when the charge and discharge path is configured in the discharging state, the charge and discharge path is used to charge the connected device.

[0010] In one embodiment, the charge-discharge path includes a bidirectional charge-discharge circuit;

[0011] When the charge-discharge path is configured in a charging state, controlling the bidirectional charge-discharge circuit to convert the first voltage and output it to the battery to charge the battery;

[0012] When the charge-discharge path is configured in a discharge state, the bidirectional charge-discharge circuit is controlled to convert the received voltage and output it to the connected device, so as to charge the connected device.

[0013] In addition, to achieve the above purpose, the present application also proposes a speaker control method, the method comprising:

[0014] In one embodiment, configuring the charge and discharge path connected to the interface to a corresponding working state according to the device type includes:

[0015] When the device type is a power receiving device, the charge and discharge path connected to the interface is configured to be in a discharge state.

[0016] In one embodiment, configuring the charge-discharge path connected to the interface to a discharge state includes:

[0017] Obtain charging parameters of the powered device;

[0018] According to the charging parameters, the charging and discharging path is controlled to output a corresponding charging voltage and / or charging current to the powered device, so as to charge the powered device.

[0019] In one embodiment, according to the device type, configuring the charge and discharge path connected to the interface to a corresponding working state includes:

[0020] When the device type is a power receiving device, the operating state of the charge and discharge path connected to the interface is configured as a charging state.

[0021] In one embodiment, there are multiple interfaces, and when the connection states of the multiple interfaces are in the inserted state, configuring the charge and discharge paths connected to the interfaces to corresponding working states according to the device type includes:

[0022] According to the types of the connected devices, at least one of the plurality of charging and discharging paths electrically connected to the plurality of interfaces in the inserted state is configured to a corresponding working state.

[0023] In one embodiment, the plurality of interfaces include a main interface and at least one secondary interface, and according to the types of the plurality of devices connected, configuring at least one of the plurality of charging and discharging paths electrically connected to the plurality of interfaces in the inserted state into a corresponding working state includes:

[0024] In the case that the device type of the device connected to the main interface is a power supply device, only the working state of the charge-discharge path electrically connected to the main interface is configured as a charging state.

[0025] In one embodiment, according to the types of the connected devices, configuring at least one of the plurality of charging and discharging paths electrically connected to the plurality of interfaces in the inserted state to a corresponding working state includes:

[0026] In the case where the multiple types of devices connected include power supply devices and power receiving devices, the working state of the charge-discharge path connected to the interface of the power receiving device is configured to be a discharge state, and the charge-discharge path is controlled to convert the received voltage and output it to the discharge device;

[0027] The working state of the charge-discharge path connected to the interface of the power supply device is configured to be a charging state, and the charge-discharge path is controlled to charge the battery after converting the first voltage.

[0028] In one embodiment, the method further comprises:

[0029] The battery status of the battery is obtained, and the working status of the charge and discharge path is configured according to the battery status.

[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a control device, comprising: a memory, a processor, and a control program of a speaker stored in the memory and executable on the processor, wherein the control program of the speaker is configured to implement a speaker control method as described in any one of the above items.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a speaker, comprising a battery, at least one interface and the control device as described above, wherein the control device is electrically connected to the interface and the battery respectively.

[0032] In one embodiment, the interface includes a primary interface and a secondary interface.

[0033] One or more technical solutions proposed in this application have at least the following technical effects:

[0034] The speaker includes a battery and at least one interface. The speaker control method of the present application obtains the connection state of the interface. When the connection state is the plugged-in state, the device type of the device plugged into the interface is obtained; according to the device type, the charge-discharge path connected to the interface is configured as a corresponding working state; wherein the working state includes a charging state and a discharging state. When the charge-discharge path is configured as the charging state, the charge-discharge path is used to charge the battery based on the first voltage output by the device; when the charge-discharge path is configured as the discharging state, the charge-discharge path is used to charge the connected device. In this way, by applying the speaker control method of the present application to the speaker, the speaker can realize external discharge or internal charging. In actual applications, when the user uses it daily, he only needs to plug any interface of the speaker into the mains or other power supply equipment to charge the speaker. After the speaker is fully charged, it can be used as a power source to power electrical equipment in outdoor camping, and the speaker can include multiple interfaces to meet the power supply needs of multiple electrical equipment. In this way, users do not need to carry a large outdoor power supply when camping in the wild. They only need to carry a speaker to meet their entertainment needs and power supply needs at the same time, thereby reducing the burden of users camping in the wild and improving their camping experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 A schematic diagram of a process flow provided for an embodiment of the present application;

[0038] Figure 2 A flowchart diagram of another embodiment of the present application;

[0039] Figure 3 Schematic diagram of a circuit structure of an embodiment of the present application.

[0040] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0042] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0043] In recent years, camping in China has developed from a niche outdoor sport to a popular leisure activity across the country. With the rapid development of the automobile industry, self-driving camping has become one of the trendy choices for more and more families. People are paying more and more attention to the comfort and enjoyment of camping. Car-mounted outdoor speakers can bring the ultimate enjoyment of music and have broad development prospects.

[0044] When camping, users generally need to carry an outdoor power supply to charge their electrical devices. When there are a large number of electrical devices, users may need to carry a large outdoor power supply to meet the power supply needs of multiple electrical devices. However, a large outdoor power supply will take up a large area and is heavy, which will increase the burden on users when camping in the wild and affect the user's camping experience.

[0045] To this end, the main purpose of this application is to provide a speaker control method, a control device and a speaker, aiming to solve the technical problem that users have a heavy burden when carrying a large outdoor power supply when camping in the wild.

[0046] refer to Figure 1 In one embodiment of the present application, a method for controlling a speaker, the speaker comprising a battery and at least one interface, a charge and discharge path being provided between the interface and the battery, the method comprising:

[0047] Step S100: Obtain the connection status of the interface;

[0048] It should be noted that the connection status includes the plug-in status and the unplugged status, which are optional. Figure 3 The charge and discharge path includes a PD controller, which is used to obtain the plug-in status of the interface. When a device is plugged into / unplugged from the interface, the PD controller detects the change in the plug-in status and transmits a signal containing the plug-in status to the main control module; or, the charge and discharge path can also detect the contact and disconnection of the physical contacts of the interface through mechanical contact detection, or detect the change of the light path inside the interface through an optical sensor through optical detection to obtain the connection status of the interface.

[0049] Step S200: when the connection state is the insertion state, obtaining the device type of the device inserted into the interface;

[0050] It should be noted that the device type includes powered devices and power supply devices. Powered devices include devices such as mobile phones, tablets or Bluetooth headsets that need to obtain power from an external power source, while power supply devices include devices such as mobile power supplies or AC power that can provide power to other devices. The power supply devices are connected to the interface through an adapter. The device type of the inserted device can be determined based on the protocol sent by the device inserted into the interface. For example, refer to Figure 3 The charge and discharge path includes a PD controller, which is used to read the protocol information sent by the device inserted into the interface and transmit the protocol information to the main control module. The main control module determines the device type of the device inserted into the interface according to the protocol information.

[0051] Step S300: According to the device type, the charge and discharge path electrically connected to the interface in the inserted state is configured to a corresponding working state;

[0052] Step S400: wherein the working state includes a charging state and a discharging state. When the charge-discharge path is configured in the charging state, the charge-discharge path is used to charge the battery based on a first voltage output by the device; when the charge-discharge path is configured in the discharging state, the charge-discharge path is used to charge the connected device.

[0053] It should be noted that when the device type is a power supply device, the working state of the charge-discharge path connected to the corresponding interface should be configured as a charging state, so that the battery receives the voltage / current output by the power supply device through the charge-discharge path in the charging state. When the device type is a power receiving device, the working state of the charge-discharge path connected to the corresponding interface should be configured as a discharging state, so that the battery outputs the corresponding voltage / current to the power receiving device through the charge-discharge path in the discharging state.

[0054] It should be noted that the first voltage can be an adapted charging voltage of the battery. Before outputting the first voltage to the interface, the device will receive the charging parameters transmitted by the speaker. The device outputs the first voltage to the charging and discharging path connected to the interface according to the charging parameters, thereby powering the battery; or, the first voltage is the default output voltage of the device, and the charging and discharging path is used to boost / step down the first voltage according to preset charging parameters so that the battery receives an adapted voltage.

[0055] In this embodiment, reference Figure 2 , configuring the charge-discharge path connected to the interface to a discharge state further comprises:

[0056] Step S310: Obtain charging parameters of the powered device;

[0057] It should be noted that in the process of obtaining the charging parameters of the powered device, it is necessary to wait for the charging and discharging path to perform corresponding preparations for obtaining the charging parameters to ensure that the charging and discharging path and the powered device are correctly connected and in the corresponding state. When the preparation work of the charging and discharging path times out, it is necessary to record and report the abnormal event because it may be caused by a fault in the charging and discharging path / powered device. The user can take corresponding solutions based on the abnormal event; in the case where the charging and discharging path fails to obtain the charging parameters, the charging parameters of the powered device need to be obtained again. In actual applications, due to various reasons (such as equipment failure, communication interference, etc.), the charging and discharging path may not be able to successfully obtain the charging parameters at one time. At this time, by re-obtaining the charging parameters, some temporary faults or interferences can be eliminated.

[0058] Step S320: According to the charging parameters, the charging and discharging path is controlled to output a corresponding charging voltage and / or charging current to the powered device, so as to charge the powered device.

[0059] It should be noted that different powered devices have different charging requirements. Charging parameters include charging voltage, charging current, and charging power that are compatible with the powered devices. The charging and discharging path is controlled based on the power supply parameters of the powered device. After converting the voltage and current of the battery, the corresponding voltage and current are output to the powered device to meet the power supply requirements of the powered device. For example, Figure 3 When the interface is inserted into the powered device, the main control module controls the charging controller to perform corresponding step-down / step-up processing on the voltage output by the battery according to the charging parameters received by the PD controller, so that the interface outputs the adapted voltage and current to the powered device.

[0060] Specifically, by applying the speaker control method of the present application to the speaker, the speaker can be discharged externally or charged internally. In practical applications, when the user uses it daily, he only needs to plug any interface of the speaker into the mains or other power supply equipment to charge the speaker. After the speaker is fully charged, it can be used as a power source for powering electrical equipment during outdoor camping, and the speaker can include multiple interfaces to meet the power supply needs of multiple electrical equipment. In this way, users do not need to carry a large outdoor power supply when camping in the wild. They only need to carry a speaker to meet their entertainment needs and power supply needs at the same time, thereby reducing the burden of users camping in the wild and improving their experience of camping in the wild.

[0061] In one embodiment of the present application, the charge-discharge path includes a bidirectional charge-discharge circuit;

[0062] Step S410: When the charge and discharge path is configured to be in a charging state, the bidirectional charge and discharge circuit is controlled to convert the first voltage and output it to the battery to charge the battery; when the charge and discharge path is configured to be in a discharging state, the bidirectional charge and discharge circuit is controlled to convert the received voltage and output it to the connected device to charge the connected device.

[0063] In this embodiment, reference Figure 3 The bidirectional charge and discharge circuit includes a PD controller and a charging controller connected in sequence, both of which have bidirectional charge and discharge functions, and the charging controller also has a bidirectional boost / step-down function, wherein a first end of the PD controller is connected to an interface, a second end of the charging controller is electrically connected to a battery, and signal transmission ends of the PD controller and the charging controller are both connected to a main control module. When the device type of the device inserted into the interface is a powered device, the main control module configures the charging direction of the PD controller and the charging controller to be external discharge, and controls the charging controller to perform boost / step-down processing on the received voltage, such as the voltage of the battery, so that the charging voltage output to the powered device is an adaptive voltage; when the device type of the device inserted into the interface is a power supply device, the main control module configures the charging direction of the PD controller and the charging controller to be internal discharge, that is, receiving electric energy provided by the power supply device from the interface and charging the battery.

[0064] In one embodiment of the present application, there are multiple interfaces, and when the connection state of the multiple interfaces is the insertion state, configuring the charge and discharge paths connected to the interfaces to the corresponding working states according to the device type includes:

[0065] Step S330: According to the multiple types of the connected devices, at least one of the multiple charging and discharging paths electrically connected to the multiple interfaces in the inserted state is configured to a corresponding working state.

[0066] It can be understood that when multiple interfaces are connected to powered devices, the working state of the charging and discharging paths connected to the multiple interfaces is configured to be in a discharging state, so that the battery can power multiple powered devices at the same time, thereby providing users with more connection options to charge multiple powered devices such as mobile phones, players, computers, etc., thereby improving the user experience.

[0067] In this embodiment, according to the types of the connected devices, configuring at least one of the plurality of charging and discharging paths electrically connected to the plurality of interfaces in the inserted state to a corresponding working state includes:

[0068] Step S331: In the case where the multiple types of devices connected include power supply devices and power receiving devices, the working state of the charge-discharge path connected to the interface of the power receiving device is configured to be a discharging state, and the charge-discharge path is controlled to convert the received voltage and output it to the discharging device; the working state of the charge-discharge path connected to the interface of the power supply device is configured to be a charging state, and the charge-discharge path is controlled to convert the first voltage to charge the battery.

[0069] With this arrangement, the speaker can charge at least one powered device while charging internally. In practical applications, the speaker with multiple interfaces can be used as a power extender to provide power to other devices through its discharge interface, reducing the trouble caused by insufficient sockets. When camping outdoors, the power supply interface of the speaker can be connected to the power output end of the solar panel so that the solar panel can charge the battery in the speaker. The speaker can also charge powered devices such as mobile phones and tablets while charging. In this way, while enjoying the music played by the speaker, the user can also ensure that the speaker and the mobile phone are sufficiently charged, thereby improving the user experience.

[0070] It should be noted that the battery includes a battery management system (BMS) and multiple battery cells. The BMS is responsible for monitoring and controlling the charging and discharging status of each battery cell to ensure the safety and efficiency of the battery pack. If the working state of the charging and discharging path connected to one interface is the charging state, and the working state of the charging and discharging path connected to the other interface is the discharging state, the BMS can ensure that some battery cells enter the charging mode, while other battery cells can simultaneously power the connected powered devices. In this way, the speaker can provide power to the powered device while charging, realizing the function of simultaneous charging and discharging.

[0071] When multiple power supply devices are connected at the same time, the internal circuit of the speaker may not be able to effectively handle the input of multiple power supplies, which may reduce the charging efficiency and even damage the internal circuit of the speaker. Therefore, when multiple interfaces are connected to power supply devices at the same time, it is necessary to ensure that only one charging and discharging path can be configured as the charging state, so that only one power supply device among the multiple power supply devices can charge the battery.

[0072] In one embodiment of the present application, the plurality of interfaces include a main interface and at least one secondary interface, and according to the types of the plurality of devices connected, configuring at least one of the plurality of charging and discharging paths electrically connected to the plurality of interfaces in the inserted state into a corresponding working state includes:

[0073] Step S332: when the device type of the device connected to the main interface is a power supply device, only the working state of the charge-discharge path electrically connected to the main interface is configured as a charging state.

[0074] With this arrangement, when multiple interfaces (including the main interface) are simultaneously plugged into power supply devices, only the working state of the charge and discharge path connected to the main interface is configured to be the charging state, thereby preventing multiple power supply devices from charging the battery at the same time.

[0075] In this embodiment, if the working state of the charge and discharge path connected to the main interface is in the charging state and is unplugged, it is necessary to configure the working state of the charge and discharge path connected to one of the secondary interfaces plugged into the power supply device to be in the charging state, so that the power supply device can charge the battery through another charge and discharge path. Therefore, when the connection state of any interface is in the unplugged state, it is necessary to obtain the plug-in state of the main interface to determine whether the interface is the main interface. When the plug-in and unplugging state of the main interface is the unplugged state, it is necessary to obtain the device type of the device inserted into the secondary interface. If there is a device whose device type is a power supply device inserted into a secondary interface, the working state of the charge and discharge path connected to the secondary interface is configured to be a charging state; if there are multiple devices whose device type is a power supply device inserted into the secondary interface, the working state of the charge and discharge path connected to one of the secondary interfaces can be configured to be a charging state according to the preset program, wherein the preset program can sort the time when the multiple secondary interfaces are inserted into the power supply device in sequence, and configure the working state of the charge and discharge path corresponding to the last secondary interface inserted into the power supply device as a charging state; or, multiple secondary interfaces have corresponding serial numbers, such as the first secondary interface, the second secondary interface to the Nth secondary interface, and the preset program can sort the serial numbers of the multiple secondary interfaces inserted into the power supply device according to size, and configure the working state of the charge and discharge path connected to the secondary interface with the smallest serial number as a charging state.

[0076] In one embodiment of the present application, the method further includes:

[0077] Step S500: Acquire the battery status of the battery, and configure the working status of the charge and discharge path according to the battery status.

[0078] In this embodiment, when the working state of the charge-discharge path is the charging state, the battery flag is set to pre-charge, indicating that the battery has completed the preparation for charging, for example, the charge enable of the charge-discharge path has been turned on; or, the battery voltage is detected and the voltage difference between each battery cell is ensured to be within a reasonable range; or, the battery temperature is detected. If the battery temperature is too high or too low, the battery will be preheated or cooled first to ensure that it is charged within a suitable temperature range. When the working state of the charge-discharge path is the discharging state or the stopped working state, the battery flag is set to pre-charge prohibition.

[0079] Furthermore, when the working state of at least one charge and discharge path is the charging state and the battery flag is the charging state, the battery flag is configured to be charging in progress; when the working state of all charge and discharge paths is not the charging state and the battery flag is the discharging state, the battery flag is configured to be discharging in progress.

[0080] It should be noted that if the battery flag is charging in progress, it means that the power supply device is charging the battery at this time. The working state of the charge and discharge path can be configured according to the battery status of the battery. The battery status includes the battery power and the battery temperature, etc. For example, when the battery power reaches the preset value, the working state of the charge and discharge path whose working state is the charging state is configured to stop working state to avoid overcharging; or, the temperature state of the battery is detected. When the temperature of the battery rises abnormally during the charging process (such as exceeding 45°C), the working state of the corresponding charge and discharge path should be configured to stop working state, or the charge and discharge path should be controlled to limit the current transmitted to the battery to prevent the battery from overheating. Further, other actions can be performed according to the charging flag, such as controlling multiple LED lights on the speaker to display corresponding colors according to the battery power to prompt the user of the current battery power, or when the battery power reaches a specific threshold, a sound prompt is issued through the speaker to remind the user to pay attention to the battery power status.

[0081] If the battery flag is in discharge, it means that the battery may be supplying power to at least one powered device, or multiple charge and discharge paths are in a stopped working state. When the working state of at least one charge and discharge path is in a discharge state, the working state of the charge and discharge path can be configured according to the battery state of the battery. For example, when the battery power is lower than a preset value (such as 10%), the working state of the charge and discharge path that is in a discharge state is configured to be a stopped working state to prevent the battery from over-discharging and protect the internal structure of the battery from damage, thereby extending the service life of the battery; or, the current output by the battery is detected. When the current output by the battery increases abnormally (for example, exceeds the maximum recommended discharge current of the battery), the working state of the charge and discharge path should be adjusted to a stopped working state, or the current output to the powered device should be limited by controlling the charge and discharge path to prevent the battery or the powered device from being damaged due to overcurrent, so as to ensure that the battery works within a safe range. When multiple charging and discharging paths are in a stopped state, multiple LED lights on the speaker can be controlled to flash according to the rhythm of the music, providing users with a more immersive music experience; or when the battery power is lower than a preset value (such as 10%), the speaker volume can be reduced or some functions can be turned off to extend the battery life. At the same time, corresponding sound or light prompts can be issued to remind users to charge in time.

[0082] Furthermore, in this embodiment, after the battery flag is configured as pre-charge / pre-charge prohibition, the battery flag and the working state of the charge and discharge path need to be analyzed and judged respectively. When the battery flag is pre-charge, and the working state of the charge and discharge paths connected to multiple interfaces is not the charging state, this abnormal event is recorded and reported; when the battery flag is pre-charge prohibition, and the working state of the charge and discharge paths connected to at least one interface is the charging state, this abnormal event is recorded and reported. By monitoring the battery flag and the working state of the charge and discharge path, the system can promptly detect whether the charge and discharge path is in an incorrect working state.

[0083] It should be noted that after the flag is configured as pre-charge, if the battery management system (BMS) or related control circuit fails or misoperates, the charge and discharge path that should be in the charging state may be misconfigured as the discharge state. In this case, the battery may not only fail to receive the charging current, but may discharge to the power supply device, causing unnecessary loss of battery power. It may also cause the power supply device to be unable to charge the battery, resulting in the battery being exhausted and unable to be replenished in time, thereby affecting the battery life and even causing safety hazards. Similarly, after the flag is configured as pre-charge prohibition, if the battery management system (BMS) or related control circuit fails or misoperates, the charge and discharge path that should be in the discharge state or stopped working state may be misconfigured as the charging state. In this case, the battery may be unable to connect to the powered device for power supply. Among them, the abnormal event may include information such as the flag of the battery, the working state of each charge and discharge path, and the time when the event occurs. The user can take corresponding measures according to the reported abnormal event to ensure the safety and normal operation of the battery and the charge and discharge path.

[0084] The present application also provides a control device, comprising: a memory, a processor, and a speaker control program stored in the memory and executable on the processor, wherein the speaker control program is configured to implement any of the speaker control methods described above.

[0085] The control device provided by the present application adopts the speaker control method in the above embodiment, which can solve the technical problem that the user has a heavy burden when carrying a large outdoor power supply to go camping in the wild. Compared with the prior art, the beneficial effects of the control device provided by the present application are the same as the beneficial effects of the speaker control method provided by the above embodiment, and other technical features in the control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0086] The present application provides a speaker, which includes a battery and the control device described above, and the control device is electrically connected to the battery.

[0087] The speaker provided in the present application includes a battery and the control device in the above embodiment, which can solve the same technical problem. Compared with the prior art, the beneficial effects of the speaker provided in the present application are the same as the beneficial effects of the control device provided in the above embodiment, and other technical features in the speaker are the same as the features disclosed in the control device in the above embodiment, which will not be described in detail here.

[0088] In one embodiment of the present application, the interface includes a main interface and a sub-interface. When the device type of the device connected to the main interface is a power supply device, only the charge and discharge path electrically connected to the main interface is configured to be in a charging state, and when the device type of the device connected to the main interface is not a power supply device (for example, the main interface is unplugged or connected to a powered device) and the device type of the device connected to the sub-interface is a power supply device, the working state of the charge and discharge path connected to the sub-interface is configured to be in a charging state.

[0089] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A speaker control method, characterized in that: The speaker box includes a battery and at least one interface, a charge and discharge path is provided between the interface and the battery, and the method includes: Get the connection status of the interface; When the connection state is an insertion state, obtaining a device type of a device inserted into the interface; According to the device type, configuring the charge and discharge path electrically connected to the interface in the inserted state to a corresponding working state; Among them, the working state includes a charging state and a discharging state. When the charge and discharge path is configured in the charging state, the charge and discharge path is used to charge the battery based on the first voltage output by the device; when the charge and discharge path is configured in the discharging state, the charge and discharge path is used to charge the connected device.

2. The speaker control method according to claim 1, characterized in that: The charge and discharge path includes a bidirectional charge and discharge circuit; When the charge-discharge path is configured in a charging state, controlling the bidirectional charge-discharge circuit to convert the first voltage and output it to the battery to charge the battery; When the charge-discharge path is configured in a discharge state, the bidirectional charge-discharge circuit is controlled to convert the received voltage and output it to the connected device, so as to charge the connected device.

3. The speaker control method according to claim 1, characterized in that: The configuring the charge and discharge path connected to the interface to a corresponding working state according to the device type includes: When the device type is a power receiving device, the charge and discharge path connected to the interface is configured to be in a discharge state.

4. The speaker control method according to claim 3, characterized in that: Configuring the charge-discharge path connected to the interface to a discharge state includes: Obtain charging parameters of the powered device; According to the charging parameters, the charging and discharging path is controlled to output a corresponding charging voltage and / or charging current to the powered device, so as to charge the powered device.

5. The speaker control method according to claim 1, characterized in that: According to the device type, configuring the charge and discharge path connected to the interface to a corresponding working state includes: When the device type is a power receiving device, the operating state of the charge and discharge path connected to the interface is configured as a charging state.

6. The speaker control method according to any one of claims 1 to 5, characterized in that: There are multiple interfaces, and when the connection states of the multiple interfaces are in the inserted state, configuring the charge and discharge paths connected to the interfaces to corresponding working states according to the device type includes: According to the types of the connected devices, at least one of the plurality of charging and discharging paths electrically connected to the plurality of interfaces in the inserted state is configured to a corresponding working state.

7. The speaker control method according to claim 6, characterized in that: The multiple interfaces include a main interface and at least one secondary interface, and according to the multiple types of the connected devices, configuring at least one of the multiple charging and discharging paths electrically connected to the multiple interfaces in the inserted state into a corresponding working state includes: In the case that the device type of the device connected to the main interface is a power supply device, only the working state of the charge-discharge path electrically connected to the main interface is configured as a charging state.

8. The speaker control method according to claim 6, characterized in that: According to the types of the plurality of devices connected, configuring at least one of the plurality of charging and discharging paths electrically connected to the plurality of interfaces in the inserted state to a corresponding working state includes: In the case where the multiple types of devices connected include power supply devices and power receiving devices, the working state of the charge-discharge path connected to the interface of the power receiving device is configured to be a discharge state, and the charge-discharge path is controlled to convert the received voltage and output it to the discharge device; The working state of the charge-discharge path connected to the interface of the power supply device is configured to be a charging state, and the charge-discharge path is controlled to charge the battery after converting the first voltage.

9. The speaker control method according to any one of claims 1 to 5, characterized in that: The method further comprises: The battery status of the battery is obtained, and the working status of the charge and discharge path is configured according to the battery status.

10. A control device, characterized in that: include: A memory, a processor, and a speaker control program stored in the memory and executable on the processor, wherein the speaker control program is configured to implement the speaker control method as described in any one of claims 1 to 9.

11. A sound box, characterized in that: The invention comprises a battery, at least one interface and the control device as claimed in claim 10, wherein the control device is electrically connected to the interface and the battery respectively.

12. The speaker as claimed in claim 11, characterized in that The interface includes a primary interface and a secondary interface.