A method, device and storage medium for connecting audio equipment

By determining the audio source input information and automatically connecting via Bluetooth TWS when the audio device is bumped, the cumbersome connection problem in the existing technology is solved, and a convenient device connection experience and social interaction are achieved.

CN116847318BActive Publication Date: 2026-11-17SHENZHEN XINYANG CHUANGZHI TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310583451.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-22
Publication Date
2026-11-17
Estimated Expiration
2043-05-22

AI Technical Summary

Technical Problem

The existing audio equipment has a cumbersome process and long waiting time when connecting via Bluetooth true wireless stereo (TWS), requiring users to press the TWS button on two connected audio devices at the same time within a certain period of time.

Method used

The system determines the audio source input information when a preset collision occurs in the audio equipment and sends the first information. After receiving the first data information, it establishes a Bluetooth TWS connection when preset conditions are met, and realizes automatic connection between devices by using near field communication (NFC) and Bluetooth technology.

Benefits of technology

It simplifies the Bluetooth TWS connection process, avoids cumbersome button operations and long waiting times, improves the user experience, increases user interactivity, and gives the audio equipment a social attribute.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116847318B_ABST
    Figure CN116847318B_ABST
Patent Text Reader

Abstract

This application provides a method, device, and storage medium for connecting an audio device, relating to the field of Bluetooth communication technology. The connection method includes, upon a preset collision, determining the audio source input information of the audio device and sending first information; the first information includes an identifier of the audio device, used to indicate Bluetooth true wireless stereo (TWS) connection; upon receiving the first data information and when the current connection state meets preset conditions, establishing a Bluetooth TWS connection with a target audio device based on target audio source information; the first data information includes the audio source input information of the target audio device; the target audio source information includes both the audio source input information of the audio device and the target audio device's audio source input information. This application addresses the problem of cumbersome processes and excessively long waiting times when interconnecting two audio devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Bluetooth communication technology, and in particular to a method, device and storage medium for connecting an audio device. Background Technology

[0002] A speaker is a portable, feature-rich loudspeaker that provides users with a good user experience. For example, it can have functions such as lighting changes, sound and light changes, karaoke, playback, and control.

[0003] Current audio equipment can connect to other devices not only via wired connections but also through wired, true wireless stereo (TWS), and broadcast connections. In TWS mode, connecting audio devices to other devices does not occupy any of the audio device's input interfaces. Therefore, even in TWS mode, audio devices can still connect to input sources such as USB drives and analog interfaces, greatly improving resource utilization. However, establishing a TWS connection typically requires the user to simultaneously press the TWS button on two connected audio devices within a certain timeframe, which is cumbersome and time-consuming. Summary of the Invention

[0004] To address the aforementioned technical problems, this application provides a method, device, and storage medium for connecting audio devices, which solves the issues of cumbersome interconnection processes and excessively long waiting times when connecting two audio devices.

[0005] In a first aspect, this application provides an audio device, comprising: a communicator configured to determine audio source input information of the audio device and send first information upon the occurrence of a preset collision; the first information including an identifier of the audio device for indicating a Bluetooth true wireless stereo (TWS) connection; and a processor configured to, upon receiving first data information and when the current connection state meets preset conditions, establish a Bluetooth TWS connection with the target audio device based on target audio source information; the first data information including audio source input information of the target audio device; and the target audio source information including both the audio source input information of the audio device and the target audio device's audio source input information.

[0006] Secondly, this application provides a method for connecting an audio device, comprising: upon a preset collision, determining the audio source input information of the audio device and sending first information; the first information includes an identifier of the audio device for indicating a Bluetooth true wireless stereo (TWS) connection; upon receiving first data information and when the current connection status meets preset conditions, establishing a Bluetooth TWS connection with the target audio device based on target audio source information; the first data information includes the audio source input information of the target audio device; the target audio source information includes both the audio source input information of the audio device and the audio source input information of the target audio device.

[0007] Thirdly, this application provides an electronic device, including: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to cause the electronic device to implement the audio connection method as provided in any of the second aspects when executing the computer program.

[0008] Fourthly, this application provides a computer-readable storage medium, comprising: storing a computer program on the computer-readable storage medium, which, when executed by a computing device, causes the computing device to perform the audio connection method as provided in any of the second aspects.

[0009] Fifthly, this application provides a computer program product that, when run on a computer, causes the computer to execute the audio connection method as provided in any of the second aspects.

[0010] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on the first computer-readable storage medium. The first computer-readable storage medium may be packaged together with the server's processor, or it may be packaged separately from the server's processor; this application does not impose any limitations on this.

[0011] The descriptions of the second, third, fourth, and fifth aspects in this application can be referenced to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, fourth, and fifth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0012] In this application, the names of the aforementioned servers do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those in this application, they fall within the scope of the claims of this application and their equivalents.

[0013] These or other aspects of this application will become more readily apparent in the following description.

[0014] The technical solution provided in this application has the following advantages compared with the prior art:

[0015] In the above solution, when a preset collision occurs, the speaker determines its audio source input information and sends first information. Upon receiving this first data information and if the current connection status meets preset conditions, the speaker establishes a Bluetooth TWS connection with the target speaker based on both its own audio source input information and the target speaker's audio source input information. This allows for Bluetooth TWS connection between devices via touch, avoiding the cumbersome and time-consuming process of users simultaneously pressing the TWS buttons on two connected speaker devices within a certain timeframe, thus improving the user experience. Furthermore, the touch-based connection method increases user interaction, shortens social distance, and gives the speakers a social attribute. Attached Figure Description

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

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A schematic diagram illustrating a scenario for the audio connection method provided in an embodiment of this application;

[0019] Figure 2 This is one of the structural schematic diagrams of the audio device provided in the embodiments of this application;

[0020] Figure 3 This is a second schematic diagram of the structure of the audio device provided in the embodiments of this application;

[0021] Figure 4 This is the third schematic diagram of the structure of the audio device provided in the embodiments of this application;

[0022] Figure 5 One of the schematic flowcharts of the audio connection method provided in the embodiments of this application;

[0023] Figure 6 A second schematic flowchart illustrating the audio connection method provided in this application embodiment;

[0024] Figure 7 The third schematic flowchart illustrating the audio connection method provided in this application embodiment;

[0025] Figure 8The fourth schematic flowchart illustrating the audio connection method provided in this application embodiment;

[0026] Figure 9 Fifth schematic flowchart of the audio connection method provided in the embodiments of this application;

[0027] Figure 10 The fourth schematic diagram of the structure of the audio device provided in the embodiments of this application;

[0028] Figure 11 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0029] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0030] Many specific details are set forth in the following description in order to provide a full understanding of this application, but this application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of this application, and not all embodiments.

[0031] It should be noted that in this application, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0032] Near Field Communication (NFC) in this application embodiment is a short-range wireless communication technology used for data exchange between devices. NFC supports two modes: read mode (one device reads information from another device) and peer-to-peer mode (two devices exchange data with each other).

[0033] The TWS technology described in this application is a wireless audio technology that allows users to simultaneously receive audio signals through two independent earphones (left and right ears) and achieve a stereo effect without any physical connection. This technology is implemented via Bluetooth or other wireless communication protocols. An audio signal is sent from a device (such as a smartphone, music player, or computer) and split into left and right channels, which are then received and played through two independent wireless earphones respectively.

[0034] Bluetooth, as used in this application embodiment, is a wireless communication technology used for connecting and exchanging data between devices over a short range.

[0035] The Bluetooth TWS connection in this embodiment refers to the connection between Bluetooth TWS devices (which have both Bluetooth and TWS functionality). TWS devices can achieve wireless connection via Bluetooth technology and simultaneously receive audio signals from an audio source to achieve a stereo audio experience. Bluetooth TWS connection is typically used for connection between TWS earbuds, and the connection between TWS earbuds is usually automatic. Once the primary earbud establishes a Bluetooth connection with the audio source, it automatically establishes a synchronized wireless connection with the secondary earbud. This synchronized connection allows both earbuds to play audio simultaneously without physical cables, providing users with a more free and convenient experience.

[0036] Figure 1 This is a schematic diagram of the scenario architecture for the audio connection method provided in an embodiment of this application. Figure 1 As shown in the embodiment of this application, the scenario architecture includes: a terminal device 100 and an audio device 200.

[0037] The audio device 200 provided in this application embodiment is a portable speaker with rich functionality, capable of providing users with a good user experience. For example, it may have functions such as Bluetooth TWS connection, NFC, display, light changes, sound and light changes, karaoke, playback, and control. In some embodiments, the audio device includes a communicator and a processor for providing NFC and Bluetooth TWS connection functions. For example, Figure 2 A structural schematic diagram of an audio device provided in this application is shown below. Figure 2 As shown, the audio device 200 may include a communicator (NFC tag 221, NFC receiver module 222) and a processor (Bluetooth chip 223). The Bluetooth chip 223 is connected to the NFC receiver module 222 via an I2C interface. The NFC tag 221 and the NFC receiver module 222 need to be installed on the same side of the audio device 200 in order to implement the audio connection method of this application.

[0038] In some embodiments, when the audio device 200 receives a connection command, it can establish a Bluetooth TWS connection with the terminal device 100 to achieve connection and communication.

[0039] The terminal device 100 provided in this application embodiment can have various implementation forms, such as mobile phones, personal computers (PCs), smart TVs, laser projection devices, televisions, monitors, wearable devices, in-vehicle devices, electronic tables, etc.

[0040] The terminal device 100 provided in this application embodiment can have various implementation forms, such as audio equipment, mobile phone, personal computer (PC), smart TV, laser projection equipment, television, monitor, wearable device, vehicle-mounted equipment, electronic table, etc.

[0041] It should be noted that the audio connection method provided in this application embodiment can be executed by the audio device 200.

[0042] For example, when the speaker connection method provided in this application embodiment is executed by the speaker device 200, the process is as follows: when a preset collision occurs, the speaker device 200 determines its audio source input information and sends first information. When the speaker device 200 receives the first data information and the current connection state meets the preset conditions, it establishes a Bluetooth TWS connection with the target speaker device based on the audio source input information of the speaker device 200 and the audio source input information of the target speaker device. This enables Bluetooth TWS connection between devices via touch, avoiding the cumbersome process and long waiting time that previously required users to simultaneously press the TWS buttons on two interconnected speaker devices within a certain timeframe, thus improving the user experience.

[0043] Figure 3 A hardware configuration block diagram of the audio device 200 according to an exemplary embodiment is shown. For example... Figure 3The audio equipment 200 shown includes at least one of the following: a tuner / demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to nth interface for input / output. The display 260 may be a touch-screen display, such as a touch monitor. The tuner / demodulator 210 receives broadcast television signals via wired or wireless reception and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. The detector 230 is used to collect signals from the external environment or signals interacting with the external environment. The controller 250 and the tuner / demodulator 210 may be located in different separate devices; that is, the tuner / demodulator 210 may also be located in an external device of the main device containing the controller 250, such as an external set-top box.

[0044] In some embodiments, the controller 250 controls the operation of the audio equipment 200 and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the audio equipment 200.

[0045] In some examples, the operating system of the audio device 200 in one or more embodiments is the Android system, such as... Figure 4 As shown, the audio device 200 can be logically divided into an application layer (hereinafter referred to as the "application layer") 21, an application framework layer (hereinafter referred to as the "framework layer") 22, an Android runtime and system library layer (hereinafter referred to as the "system runtime library layer") 23, and a kernel layer 24.

[0046] The application layer 21 includes one or more applications. These applications can be system applications or third-party applications. For example, application layer 21 may include a first application that provides speaker connectivity. The framework layer 22 provides application programming interfaces (APIs) and programming frameworks for the applications in application layer 21. The system runtime library layer 23 provides support for the upper layer, namely the framework layer 22. When the framework layer 22 is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer 23 to implement the functions required by the framework layer 22. The kernel layer 24 acts as software middleware between the hardware layer and application layer 21, managing and controlling hardware and software resources.

[0047] In some examples, after the speaker device 200 is powered on, if a user needs to establish a Bluetooth TWS connection with another speaker device while using the speaker device 200, the user can pick up the other speaker device and touch it to a designated area of ​​the speaker device 200. When the transceiver unit 202 of the speaker device 200 determines that a preset collision has occurred, it determines the audio source input information of the speaker device and sends first information. The first information includes the speaker device's identifier, used to indicate the Bluetooth true wireless stereo TWS connection. When the processing unit 201 of the speaker device 200 receives the first data information and the current connection status meets the preset conditions, it establishes a Bluetooth TWS connection with the target speaker device based on the target audio source information. The first data information includes the audio source input information of the target speaker device. The target audio source information includes both the audio source input information of the speaker device and the target audio source input information of the target speaker device. This touch-based Bluetooth TWS connection between devices avoids the cumbersome and time-consuming process of simultaneously pressing the TWS buttons on two interconnected speaker devices within a certain time frame, thus improving the user experience.

[0048] Specifically, the storage unit 203 of the audio device 200 is used to store the application program of the first application and data such as the operating system of the audio device 200.

[0049] In the following embodiments, the audio device 200 described above is used as the execution subject for the audio connection method provided in the embodiments of this disclosure to illustrate the method of the embodiments of this application.

[0050] This application provides a method for connecting an audio system, such as... Figure 5 As shown, the connection method of the speaker may include S11-S12.

[0051] S11. When a preset collision occurs, determine the audio source input information of the audio equipment and send the first message.

[0052] Among them, the preset collision is a preset range collision. For example, in... Figure 2 When a collision occurs within the range of the NFC tag of the audio device 200 shown, the collision is determined to be a preset collision.

[0053] In some embodiments, the preset collision is a preset intensity collision. In this case, the audio device 200 also includes a pressure sensor for detecting the collision intensity. When the collision intensity exceeds a threshold, the audio device determines the current collision to be a preset collision.

[0054] In some embodiments, determining the audio source input information of the audio device may be based on, for example, Figure 3The data transmission status of each module in the communicator 220 of the audio equipment 200 is used to determine whether the sub-modules in the communicator 220 are transmitting audio data. If yes, it is determined that there is an audio source input; otherwise, it is determined that there is no audio source input.

[0055] In some embodiments, determining the audio source input information of the audio device may also be based on, for example... Figure 3 The data transmission status of each interface in the external device interface 240 of the audio equipment 200 is used to determine whether the external device interface 240 is transmitting audio data. If yes, it is determined that there is an audio source input; otherwise, it is determined that there is no audio source input.

[0056] Of course, the audio source input information of the audio device in this application can also be determined in other ways, such as through other interfaces or modules, without making specific limitations here.

[0057] Then, the audio equipment sends the first message.

[0058] The first piece of information includes the speaker device's identifier, used to indicate Bluetooth true wireless stereo (TWS) connection. Specifically, the speaker device's identifier can be its media access control address (MAC address), name, serial number, or other unique identifiers.

[0059] In some embodiments, the first information may also include the model information of the audio device and the Bluetooth identifier (identity document, ID).

[0060] In some embodiments, the audio device sending the first information may be, for example, Figure 2 The NFC tag 221 of the audio device 200 shown includes an NFC transmitting module for sending first information when a preset collision is determined to have occurred in the audio device.

[0061] In this way, when a preset collision is detected, the audio device first determines its audio source input information and sends a first message so that the target audio device involved in the preset collision can synchronize its data status with the audio device based on the first message. Simultaneously, the target audio device involved in the preset collision also determines its audio source input information and sends a second message so that it can synchronize its data status with the target audio device based on the identifier of the target audio device in the second message.

[0062] In some embodiments, the audio device may acquire the second information by, upon determining that a preset collision has occurred, in a manner such as... Figure 2 The NFC receiving module 222 of the audio device 200 shown automatically reads the second information stored in the NFC tag of the target audio device. Similarly, the target audio device can also obtain the first information by automatically reading the first information when it determines that a preset collision has occurred. Figure 2 The first information is stored in the NFC tag 221 of the audio device 200 shown.

[0063] Finally, after sending the first message, such as Figure 6 As shown, the audio connection method of this application further includes the following steps S111-S112: synchronizing the data status of the audio device with the target audio device.

[0064] S111. Upon receiving the second information, search for the target audio device based on the identifier in the second information.

[0065] The second piece of information is the information sent by the target audio device when a preset collision occurs.

[0066] Specifically, upon receiving the second information, the system searches for the corresponding device, i.e., the target audio device, based on the identifier in the second information.

[0067] S112. When the target audio device is found within the preset time period, send the second data information to the target audio device.

[0068] The second data information includes the current audio source input information of the audio equipment, which is used to synchronize the data status of the audio equipment.

[0069] In the above scheme, after receiving the second information, the audio device searches for the target audio device based on the identifier in the second information. Upon finding the target audio device, it sends second data information to the target audio device to synchronize the audio device's data status. This enables data synchronization between devices via touch, laying the foundation for subsequent Bluetooth TWS connections.

[0070] S12. Upon receiving the first data information and when the current connection status meets the preset conditions, establish a Bluetooth TWS connection with the target audio device based on the target audio source information.

[0071] The first data information includes the audio source input information of the target audio device; the target audio source information includes the audio source input information of the audio device and the audio source input information of the target audio device.

[0072] First, during the interaction between the speaker and the target speaker, the target speaker also needs to perform the same steps as the speaker to facilitate Bluetooth TWS connection. For example... Figure 7As shown, the audio equipment and the target audio equipment shall perform the following steps respectively:

[0073] S2001. When a preset collision is determined, the audio device determines its audio source input information and sends the first information. Simultaneously, S2011. When a preset collision is determined, the target audio device determines its audio source input information and sends the second information.

[0074] The first piece of information includes the identifier of the audio equipment, and the second piece of information includes the identifier of the target audio equipment.

[0075] S2002. When the audio equipment receives the second information, it searches for the target audio equipment based on the identifier in the second information. Simultaneously, S2012. When the target audio equipment receives the first information, it searches for the audio equipment based on the identifier in the first information.

[0076] S2003. When the audio device detects the target audio device within a preset time period, it sends second data information to the target audio device. Simultaneously, S2013. When the target audio device detects the audio device within a preset time period, it sends first data information to the audio device.

[0077] The second data information includes the audio source input information of the current audio device, and the first data information includes the audio source input information of the current target audio device.

[0078] S2004. When the audio device receives the first data information and determines that the current connection status meets the preset conditions, it establishes a Bluetooth TWS connection with the target audio device based on the target audio source information. Simultaneously, S2014. When the target audio device receives the second data information and determines that the current connection status meets the preset conditions, it establishes a Bluetooth TWS connection with the audio device based on the target audio source information.

[0079] In the above solution, when a preset collision occurs between the speaker device and the target speaker device, a Bluetooth TWS connection is established between them based on the audio source input information of both devices. This allows for Bluetooth TWS connection between devices via touch, avoiding the cumbersome and time-consuming process of users simultaneously pressing the TWS buttons on two connected speaker devices within a certain timeframe, thus improving the user experience.

[0080] Secondly, upon receiving the first data information and when the current connection status meets the preset conditions, a Bluetooth TWS connection is established with the target audio device based on the target audio source information.

[0081] The current connection status meets the preset conditions, including: when it is determined that it is suitable to enter the pairing mode and there is no current connection with other devices, the current connection status meets the preset conditions; or, when it is determined that it is suitable to enter the pairing mode and there is a current connection with other devices, but the other devices are not the host, the current connection status meets the preset conditions.

[0082] Specifically, such as Figure 8 As shown, when the audio device receives the first data information and the current connection status meets the preset conditions, it establishes a Bluetooth TWS connection with the target audio device based on the target audio source information, including the following steps:

[0083] S121, Received the first data information.

[0084] S122. Determine whether it is suitable to enter the pairing mode. If it is determined that it is suitable to enter the pairing mode, execute step S123. If it is determined that it is not suitable to enter the pairing mode, execute step S124.

[0085] Specifically, when the audio equipment receives the first data information, it determines the current playback mode. If the current playback mode is subwoofer mode or speech mode, it determines that it is not suitable to enter pairing mode. If the current playback mode is neither subwoofer mode nor speech mode, it determines that it is suitable to enter pairing mode.

[0086] In the above solution, when the current playback mode is subwoofer mode or voice mode, it is determined that it is not suitable to enter the pairing mode. That is, when the function currently being used by the speaker device is incompatible with the TWS function, the speaker device will determine that it is not suitable to enter the Bluetooth TWS connection mode at this time, so as to avoid ambiguity for the user.

[0087] S123. Determine whether the device is currently connected to other devices. If it is connected to other devices, execute step S125. If it is not connected to other devices, execute step S127.

[0088] S124, Feedback: Bluetooth TWS connection request rejected.

[0089] Specifically, when the audio device determines that it is not suitable to enter pairing mode, it rejects the Bluetooth TWS connection request and provides feedback on the result. In some embodiments, the audio device further includes a display module for displaying first content when the Bluetooth TWS connection request is rejected. The first content indicates that the current function is unavailable.

[0090] S125. Determine whether other devices are the host, and if other devices are the host, execute step S126; if other devices are not the host, execute step S127.

[0091] Specifically, in a Bluetooth TWS connection system, there is typically a master and a slave. The master is responsible for establishing a Bluetooth connection with the audio source (such as a mobile phone) and receiving the audio signal from the source. The slave connects to the master via Bluetooth and receives the audio signal transmitted by the master to achieve stereo sound. The slave is usually a subordinate device of the master, achieving synchronized audio playback through its connection with the master. Therefore, when confirming that the speaker is connected to other devices, it is necessary to determine whether those other devices are the master.

[0092] In Bluetooth TWS connection systems, the specific identifiers for the master and slave devices may vary depending on the brand and model of the TWS device. Therefore, in some embodiments, determining whether another device is the master can be based on pre-stored information. For example, when another device connects to an audio device via Bluetooth TWS, master and slave information is displayed, allowing the determination of whether the other device is the master based on this information. Of course, there may be other methods to determine whether another device is the master, and this application does not limit this approach.

[0093] S126. Treat both the audio equipment and the target audio equipment as secondary units and complete the Bluetooth TWS connection with the target audio equipment.

[0094] In some embodiments, the audio device further includes a display module for displaying second content when both the audio device and the target audio device are used as secondary units to complete a Bluetooth TWS connection with the target audio device. The second content indicates that both the audio device and the target audio device are secondary units during the Bluetooth TWS connection process.

[0095] S127. Connect to the target audio device via Bluetooth TWS based on the target audio source information.

[0096] In the above solution, when the audio device is connected to other devices, and the other devices are the host, both the audio device and the target audio device are used as slave devices to complete the Bluetooth TWS connection with the target audio device. This avoids connection failures that would occur if the audio device or the target audio device were used as the host for Bluetooth TWS connection when there is already a host device connected.

[0097] In some embodiments, such as Figure 9 As shown, establishing a Bluetooth TWS connection with the target audio device based on the target audio source information may include the following steps:

[0098] S1271. Determine if there is an audio source input, and execute step S1272 if there is an audio source input, and execute step S1273 if there is no audio source input.

[0099] Since the target audio source information includes the audio source input information of the audio equipment and the audio source input information of the target audio equipment, the audio equipment can determine whether there is an audio source input based on the target audio source.

[0100] Specifically, if both the audio input information of the speaker device and the target speaker device indicate no audio input, then no audio input is confirmed. If the audio input information of the speaker device indicates an audio input, but the audio input information of the target speaker device indicates no audio input, then the audio input source is confirmed to be the speaker device. If the audio input information of the speaker device indicates no audio input, but the audio input information of the target speaker device indicates an audio input, then the audio input source is confirmed to be the target speaker device. If both the audio input information of the speaker device and the audio input information of the target speaker device indicate an audio input, then an error message is provided.

[0101] In some embodiments, the audio device further includes a display module for displaying error information when both the audio device and the target audio device have audio source input.

[0102] S1272. Determine whether the input audio source is an audio device. If the input audio source is an audio device, execute step S1274. If the input audio source is not an audio device, execute step S1275.

[0103] S1273. Use either the audio device or the target audio device as the host to complete the Bluetooth TWS connection with the target audio device.

[0104] In some embodiments, the audio device further includes a display module, configured to display third content when either the audio device or the target audio device is designated as the host and a Bluetooth TWS connection with the target audio device is established. The third content indicates that during the Bluetooth TWS connection process, the audio device is the host and the target audio device is the slave; or, the target audio device is the host and the audio device is the slave.

[0105] S1274. Use the audio device as the host to complete the Bluetooth TWS connection with the target audio device.

[0106] In some embodiments, the audio device further includes a display module for displaying a fourth type of content when the audio device acts as the host and completes a Bluetooth TWS connection with the target audio device. This fourth type of content indicates that during the Bluetooth TWS connection process, the audio device is the host and the target audio device is the slave device.

[0107] S1275. Determine that the input audio source is the target audio device, use the target audio device as the host, and complete the Bluetooth TWS connection with the target audio device.

[0108] In some embodiments, the audio device further includes a display module for displaying a fifth piece of content when the target audio device is used as the host and a Bluetooth TWS connection with the target audio device is completed. The fifth piece of content indicates that during the Bluetooth TWS connection process, the target audio device is the host and the audio device is the slave device.

[0109] In the above solution, when a preset collision occurs, the speaker determines its audio source input information and sends first information. Upon receiving this first data information and if the current connection status meets preset conditions, the speaker establishes a Bluetooth TWS connection with the target speaker based on both its own audio source input information and the target speaker's audio source input information. This allows for Bluetooth TWS connection between devices via touch, avoiding the cumbersome and time-consuming process of users simultaneously pressing the TWS buttons on two connected speaker devices within a certain timeframe, thus improving the user experience. Furthermore, the touch-based connection method increases user interaction, shortens social distance, and gives the speakers a social attribute.

[0110] This application embodiment can divide the audio device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing unit. The integrated modules can be implemented in hardware or software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0111] like Figure 10 As shown in the diagram, an embodiment of this application provides a schematic diagram of the structure of an audio device 200. It includes a processor 101 and a communicator 102.

[0112] The communicator 102 is configured to determine the audio source input information of the audio device and send first information when a preset collision occurs; the first information includes the identifier of the audio device for indicating a Bluetooth true wireless stereo (TWS) connection; the processor 101 is configured to establish a Bluetooth TWS connection with the target audio device based on the target audio source information when it receives the first data information and the current connection status meets preset conditions; the first data information includes the audio source input information of the target audio device; the target audio source information includes the audio source input information of the audio device and the target audio device's audio source input information.

[0113] In some implementable examples, processor 101 is specifically configured to: determine that the current connection state meets preset conditions when it is determined that it is appropriate to enter pairing mode and is not currently connected to other devices; or, determine that the current connection state meets preset conditions when it is determined that it is appropriate to enter pairing mode and is currently connected to other devices, but the other devices are not the host.

[0114] In some feasible examples, the processor 101 is also configured to: when it is determined that it is appropriate to enter pairing mode, but is currently connected to another device and the other device is the master, both the speaker device and the target speaker device are treated as slave devices to complete the Bluetooth TWS connection with the target speaker device.

[0115] In some implementable examples, the communicator 102 is also configured to reject the Bluetooth TWS connection request when it is determined that it is not appropriate to enter pairing mode.

[0116] In some implementable examples, communicator 102 is specifically configured to determine that it is not appropriate to enter pairing mode when the current playback mode is subwoofer mode or voice mode.

[0117] In some feasible examples, the processor 101 is specifically configured to: when the target audio source information displays an audio source input, and the audio source input is an audio device, use the audio device as the host to complete the Bluetooth TWS connection with the target audio device; and when the target audio source information displays an audio source input, and the audio source input is the target audio device, use the target audio device as the host to complete the Bluetooth TWS connection with the target audio device.

[0118] In some feasible examples, processor 101 is specifically configured to: when the target audio source information shows no audio source input, use either the audio device or the target audio device as the host to complete a Bluetooth TWS connection with the target audio device.

[0119] In some implementable examples, the communicator 102 is also configured to: upon receiving the second information, search for a target audio device based on the identifier in the second information; the second information is information sent by the target audio device when a preset collision occurs; and when the target audio device is found within a preset time period, send second data information to the target audio device; the second data information includes the current audio source input information of the audio device, used to synchronize the data status of the audio device.

[0120] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and their functions will not be repeated here.

[0121] Of course, the audio device 200 provided in this application embodiment includes, but is not limited to, the modules described above. For example, the audio device 200 may also include a memory 103. The memory 103 may be used to store the program code of the audio device 200, and may also be used to store data generated by the audio device 200 during operation, such as data in write requests.

[0122] As an example, combined Figure 4 The receiving unit 202 in the audio device 200 performs the same function as the communicator 102, the processing unit 201 performs the same function as the processor 101, and the storage unit 203 performs the same function as the memory 103.

[0123] like Figure 11 As shown, this application embodiment also provides a chip system that can be applied to the audio device 200 in the foregoing embodiments. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 can be the processor in the audio device 200. The processor 1501 and the interface circuit 1502 can be interconnected via a line. The processor 1501 can receive and execute computer instructions from the memory of the audio device 200 through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the audio device 200 can perform the various steps performed by the audio device 200 in the foregoing embodiments. Of course, the chip system may also include other discrete components, which are not specifically limited in this application embodiment.

[0124] This application also provides a computer-readable storage medium for storing computer instructions for the operation of the aforementioned audio device 200.

[0125] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An audio device, characterized in that, include: The communicator is configured to determine the audio source input information of the audio device and send a first message when a preset collision occurs; The first information includes the identifier of the audio device, used to indicate Bluetooth true wireless stereo (TWS) connection; The processor is configured to, upon receiving first data information and when the current connection status meets preset conditions, establish a Bluetooth TWS connection with a target audio device based on target audio source information; the first data information includes audio source input information of the target audio device; the target audio source information includes audio source input information of the audio device and audio source input information of the target audio device. The processor is specifically configured as follows: When it is determined that it is suitable to enter pairing mode and there is no current connection with other devices, the current connection status is determined to meet the preset conditions; when it is determined that it is suitable to enter pairing mode and there is a current connection with other devices, but the other devices are not the host, the current connection status is determined to meet the preset conditions. When the target audio source information displays an audio source input, and the audio source input is an audio device, the audio device is used as the host to complete the Bluetooth TWS connection with the target audio device; when the target audio source information displays an audio source input, and the audio source input is the target audio device, the target audio device is used as the host to complete the Bluetooth TWS connection with the target audio device. When the target audio source information shows no audio source input, either the audio device or the target audio device can be used as the host to complete the Bluetooth TWS connection with the target audio device. The processor is also configured to: When it is determined that it is suitable to enter pairing mode, but the device is already connected to another device, and the other device is the host, both the speaker device and the target speaker device are used as slave devices to complete the Bluetooth TWS connection with the target speaker device.

2. The audio equipment according to claim 1, characterized in that, The communicator is also configured to reject the Bluetooth TWS connection request when it is determined that entering pairing mode is not appropriate.

3. The audio device according to claim 1 or 2, characterized in that, The communicator is also configured to: Upon receiving the second information, the target audio device is searched based on the identifier in the second information; the second information is the information sent by the target audio device when a preset collision occurs. When the target audio device is found within a preset time period, second data information is sent to the target audio device; the second data information includes the current audio source input information of the audio device, which is used to synchronize the data status of the audio device.

4. A method for connecting audio equipment, characterized in that, include: When a preset collision occurs, determine the audio source input information of the audio equipment and send the first message; The first information includes the identifier of the audio device, used to indicate Bluetooth true wireless stereo (TWS) connection; Upon receiving the first data information and when the current connection status meets the preset conditions, a Bluetooth TWS connection is established with the target audio device based on the target audio source information; the first data information includes the audio source input information of the target audio device. The target audio source information includes the audio source input information of the audio device and the audio source input information of the target audio device; The step of establishing a Bluetooth TWS connection with the target audio device based on the target audio source information when the first data information is received and the current connection status meets preset conditions includes: When it is determined that it is suitable to enter pairing mode and there is no current connection with other devices, the current connection status is determined to meet the preset conditions; when it is determined that it is suitable to enter pairing mode and there is a current connection with other devices, but the other devices are not the host, the current connection status is determined to meet the preset conditions. When the target audio source information displays an audio source input, and the audio source input is an audio device, the audio device is used as the host to complete the Bluetooth TWS connection with the target audio device; when the target audio source information displays an audio source input, and the audio source input is the target audio device, the target audio device is used as the host to complete the Bluetooth TWS connection with the target audio device. When the target audio source information shows no audio source input, either the audio device or the target audio device can be used as the host to complete the Bluetooth TWS connection with the target audio device. The method further includes: When it is determined that it is suitable to enter pairing mode, but the device is already connected to another device, and the other device is the host, both the speaker device and the target speaker device are used as slave devices to complete the Bluetooth TWS connection with the target speaker device.

5. An electronic device, characterized in that, include: A memory and a processor, the memory being used to store a computer program; the processor being used to cause the electronic device to implement the audio connection method of claim 4 when executing the computer program.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a computing device, causes the computing device to implement the audio connection method of claim 4.

Citation Information

Patent Citations

  • Cross-device control method, device and system

    CN112260907A

  • Sound box and microphone all-in-one machine with TWS pairing function

    CN114554350A