Audio equipment pairing method and equipment, and storage medium

By establishing a physical connection between electronic devices and audio devices and obtaining and matching identification information, the cumbersome device pairing problem in existing technologies is solved, enabling fast and stable device pairing and improving the user experience.

CN121603589APending Publication Date: 2026-03-03GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411150423.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

The pairing process for existing audio and electronic devices requires active user intervention, which is cumbersome and affects the user experience. In particular, when devices are lost or damaged, the pairing process between new and old devices becomes complicated.

Method used

By establishing a physical connection between electronic devices and audio devices, the pairing identification information of each audio device is obtained. When the identification information does not match, a teaming command is sent to enable the audio devices to team up, obtain the teaming identification information, and finally pair them according to the teaming identification information and the identification information preset by the electronic devices.

Benefits of technology

It enables rapid pairing of electronic devices and audio devices, reduces the complexity of user operations, improves user experience, avoids the search or waiting time in wireless connection mode, and ensures stable communication between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121603589A_ABST
    Figure CN121603589A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an audio device pairing method and device and a storage medium, the method is applied to an electronic device, and the method comprises the following steps: under the condition that the electronic device establishes a physical connection with at least two audio devices, obtaining pairing identification information of each audio device through the physical connection; under the condition that the pairing identification information between the at least two pieces of audio equipment is not matched, a team forming instruction is sent to the at least two pieces of audio equipment, team forming identification information after team forming of the at least two pieces of audio equipment is obtained, and the team forming instruction is used for instructing the at least two pieces of audio equipment to conduct team forming operation; and according to the team identification information and preset identification information of the electronic equipment, controlling the electronic equipment to be paired with the at least two pieces of audio equipment. Rapid pairing of the electronic device and the at least two audio devices can be achieved, and the convenience of audio device pairing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio device pairing technology, and includes, but is not limited to, a pairing method and device for audio devices, and a storage medium. Background Technology

[0002] With the development of technology, people often want to carry as few devices as possible while still meeting their needs when traveling. Therefore, electronic devices integrating audio equipment, such as watches that can store true wireless stereo (TWS) earphones, and earphone cases and earphones with touchscreens, are increasingly favored by users due to their portability and integration. These audio devices and electronic devices are pre-paired at the factory for user convenience.

[0003] However, if a user loses a device (such as an audio device or electronic device), they need to pair it with the original device when purchasing a replacement. Pairing existing audio and electronic devices usually requires active user intervention, which is cumbersome and negatively impacts the user experience. Summary of the Invention

[0004] In view of this, the audio device pairing method, device, and storage medium provided in this application can achieve rapid pairing of electronic devices with at least two audio devices, improving the convenience of audio device pairing. The audio device pairing method, device, and storage medium provided in this application are implemented as follows:

[0005] A first aspect of this application provides a pairing method for an audio device, the method being applied to an electronic device, the method comprising:

[0006] When the electronic device establishes a physical connection with at least two audio devices, the pairing identification information of each audio device is obtained through the physical connection.

[0007] If the pairing identification information between the at least two audio devices does not match, a teaming instruction is sent to the at least two audio devices to obtain the teaming identification information after the at least two audio devices are teamed up. The teaming instruction is used to instruct the at least two audio devices to perform a teaming operation.

[0008] Based on the team identification information and the preset identification information of the electronic device, the electronic device is controlled to pair with the at least two audio devices.

[0009] A second aspect of this application provides a pairing method for an audio device, the method being applied to the audio device, the method comprising:

[0010] When a physical connection is established between the audio device and the electronic device, the pairing identification information of the audio device is sent to the electronic device through the physical connection;

[0011] Upon receiving a team-up command from the electronic device, the audio device performs a team-up operation and determines the team-up identifier information;

[0012] The device receives preset identification information sent by the electronic device, which is used for pairing the audio device with the electronic device.

[0013] A third aspect of this application provides an electronic device, comprising:

[0014] The information acquisition module is used to acquire pairing identification information of each audio device through the physical connection when the electronic device establishes a physical connection with at least two audio devices;

[0015] A team control module is used to send a team command to the at least two audio devices when the pairing identification information between the at least two audio devices does not match, and to obtain the team identification information after the at least two audio devices are teamed up. The team command is used to instruct the at least two audio devices to perform a team operation.

[0016] The pairing control module is used to control the electronic device to pair with the at least two audio devices based on the team identification information and the preset identification information of the electronic device.

[0017] A fourth aspect of this application provides an audio device comprising:

[0018] The information sending module is used to send the pairing identification information of the audio device to the electronic device through the physical connection when the audio device and the electronic device establish a physical connection;

[0019] The team-up module is used to enable the audio device to perform a team-up operation and determine team-up identification information when it receives a team-up command sent by the electronic device.

[0020] A pairing module is used to receive preset identification information sent by the electronic device, the preset identification information being used for pairing the audio device with the electronic device.

[0021] The fifth aspect of this application provides an electronic device including a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the program to implement the method described in the first aspect of the embodiments of this application.

[0022] A sixth aspect of this application provides an audio device including a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the program to implement the method described in the second aspect of this application.

[0023] The seventh aspect of this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method described in the first aspect of the embodiments of this application.

[0024] The eighth aspect of this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method described in the second aspect of the embodiments of this application.

[0025] Compared with related technologies, the audio device pairing method, device, and storage medium provided in this application have at least the following advantages:

[0026] When an electronic device establishes a physical connection with at least two audio devices, the pairing identification information of each audio device is obtained through this physical connection. Unlike wireless connections, this eliminates the search or waiting time that may occur with wireless connections, and also avoids the problem of the electronic device not having pre-stored pairing addresses for the audio devices during the initial connection. Then, if the pairing identification information between two audio devices does not match (i.e., at least two audio devices are not already paired), a pairing command is sent to at least two audio devices instructing them to pair up, and the pairing identification information of the at least two paired audio devices is obtained. Based on the pairing identification information and the electronic device's preset identification information, the electronic device is controlled to pair with the at least two audio devices. This allows for quick pairing of a new electronic device or a new audio device with an existing device when the user loses their electronic device or the audio device that was paired with it, reducing the complexity of user operations and improving the user experience. Attached Figure Description

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

[0028] Figure 1 This is a schematic diagram of a structure corresponding to the electronic device and audio device disclosed in the embodiments of this application;

[0029] Figure 2 This is a schematic diagram of another structure corresponding to the electronic device and audio device disclosed in the embodiments of this application;

[0030] Figure 3 This is a schematic diagram of a process for applying the audio device pairing method disclosed in this application to an electronic device;

[0031] Figure 4 A schematic diagram illustrating the pairing method for audio devices disclosed in this application, which outputs pairing query information.

[0032] Figure 5 This is another schematic diagram illustrating the application of the audio device pairing method disclosed in the embodiments of this application to an electronic device;

[0033] Figure 6 This is another schematic diagram illustrating the application of the audio device pairing method disclosed in this application to an electronic device;

[0034] Figure 7 This is a schematic diagram of a process for applying the audio device pairing method disclosed in an embodiment of this application to an audio device;

[0035] Figure 8 This is a schematic flowchart of a pairing method for audio devices disclosed in an embodiment of this application.

[0036] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0037] Figure 10 Another structural schematic diagram of the electronic device provided in the embodiments of this application;

[0038] Figure 11 A schematic diagram of the structure of an audio device provided in an embodiment of this application;

[0039] Figure 12 This is a schematic diagram of the structure of an audio device provided in an embodiment of this application. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.

[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0042] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0043] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0044] With the development of technology, electronic devices integrating audio equipment, such as smartwatches that can hold true wireless stereo (TWS) earphones, earphone cases with touchscreens, and earphones themselves, are increasingly favored by users due to their portability, convenience, and rich functionality. These electronic and audio devices are pre-paired at the factory, allowing users to establish Bluetooth or other communication methods with the paired audio device upon first use. This pre-pairing design simplifies the user setup process, enabling users to immediately control the audio device via the electronic device upon receiving it, such as playing audio and adjusting volume, without the need for complex pairing operations, thus reducing the learning curve for new devices.

[0045] However, if some parts of an electronic or audio device are lost or damaged, users may choose to purchase replacement parts or reassign multiple devices to replace the lost or damaged ones in order to avoid wasting other parts. In this case, the pairing process between the new and existing devices becomes particularly important.

[0046] In view of this, embodiments of this application provide a pairing method, device, and storage medium for audio devices, which enables rapid pairing of electronic devices with at least two audio devices, improving the convenience of audio device pairing.

[0047] In this embodiment, the electronic device can be an earphone case, a watch with built-in earphones, or other similar devices. The audio device can be earphones, including but not limited to Bluetooth earphones (such as true wireless stereo (TWS) earphones, neckband earphones, etc.). The audio device can also be other wirelessly connected devices, such as Bluetooth speakers, music players, etc., which are not limited here.

[0048] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of the electronic device and audio device disclosed in the embodiments of this application.

[0049] In some embodiments, the electronic device may be an earphone case, and the audio device may be earphones. For example... Figure 1 As shown, the earphone case 10 may include a display screen 11. The earphone case 10 can be used to store earphones 20, which are wireless earphones, such as in-ear, over-ear, earbud, or ear-hook earphones. When not in use, the earphones 20 can be stored in the earphone case 10, and the earphone case 10 charges the earphones 20. The earphones 20 may include a first part and a second part, which are worn on the user's left and right ears respectively. The first part and the second part of the earphones 20 can be connected by a connecting cable, such as neckband wireless earphones; or they can be two independent parts, such as true wireless stereo (TWS) earphones.

[0050] In this embodiment, the earphone box 10 can be used as an independent smart device, with a display screen 11 on it. The earphone box 10 can have built-in software content, such as software for memorizing words or reading aloud texts.

[0051] In some embodiments, the display screen 11 of the headphone case 10 has a touch screen function, which can receive user trigger operations through the display screen 11 to control the built-in applications of the headphone case 10.

[0052] In some embodiments, the earphone case may be provided with a pressing mechanism, allowing the earphones to be removed from or placed inside the earphone case by pressing. For example, Figure 1 As shown, with the earphone 20 stored in the earphone case 10, the user can press the earphone 20, and the earphone 20 will pop out of the earphone case 10's storage compartment by means of a spring, magnet, or paddle installed inside the earphone case 10 (without falling out); then, the user can pull the earphone 20 out of the earphone case 10's storage compartment and wear it.

[0053] It should be noted that, as Figure 1 The earphone case 10 and earphones 20 shown are for illustrative purposes only. In some embodiments, the earphone case 10 has an openable lid, allowing the earphones 20 to be removed by opening the lid. Furthermore, the storage position of the earphones 20 within the earphone case 10 is not limited. For example, the earphones 20 can be stored as follows: Figure 1 The earphones 20 can be stored on the side of the earphone case 10, or they can be stored on the top of the earphone case 10.

[0054] In some embodiments, the earphone box 10 can communicate with other electronic devices or servers via a communication network. The communication network can be a wired network or a wireless network. For example, the communication network can be a local area network (LAN) or a wide area network (WAN), such as the Internet. When the communication network is a LAN, for example, it can be a wireless fidelity (WiFi) hotspot network, a WiFi P2P network, a Bluetooth network, a Zigbee network, or a near field communication (NFC) network, etc. When the communication network is a WAN, for example, it can be a 3rd generation wireless telephone technology (3G) network, a 4th generation mobile communication technology (4G) network, a 5th generation mobile communication technology (5G) network, a future public land mobile network (PLMN), or the Internet, etc.

[0055] In some embodiments, one or more apps (Applications) may be installed in the earphone case 10. An app, often shortened to application, is a software program capable of performing one or more specific functions. Installed applications may include instant messaging applications, video applications, audio applications, image capture applications, cloud desktop applications, drawing applications, and so on. The applications mentioned in this embodiment may be system applications pre-installed at the earphone case's factory or third-party applications downloaded from the network or obtained from other electronic devices by the user during use of the earphone case 10.

[0056] In some embodiments, the earphone case 10 may include, but is not limited to, running Windows or other operating systems.

[0057] In some embodiments, when the earphone 20 is removed and used, the earphone case 10 and the earphone 20 can establish a Bluetooth Low Energy (BLE) connection to enable the earphone case 10 to control the functions of the earphone 20, such as adjusting the playback volume or playback content.

[0058] In some embodiments, when the earphone 20 is removed and used, the earphone case 10 and the earphone 20 can establish a classic Bluetooth connection to enable the earphone 20 to play audio content corresponding to the application running on the earphone case 10.

[0059] In some embodiments, the earphone 20 can establish a classic Bluetooth connection with an electronic device other than the earphone case 10 to play the audio content of the connected electronic device. At the same time, the earphone case 10 and the earphone 20 can still establish a communication connection to enable the earphone case 10 to control the functions of the earphone 20.

[0060] It should be noted that the protocol versions of Bluetooth Low Energy or Bluetooth Classic mentioned above can be configured according to actual needs, and no restrictions are imposed here.

[0061] It should be noted that, for example Figure 1 The earphone case 10 and earphones 20 shown are paired before leaving the factory. Therefore, when the user takes out the earphones 20 for the first time, the earphones 20 can establish a wireless connection with the earphone case 10, allowing the user to control the earphones 20 through the earphone case 10.

[0062] It is understandable that, such as Figure 1 The earphone case shown can hold two earphones, and both the case and the earphones are pre-paired at the factory. During subsequent use, situations may arise such as the loss or damage of one, two, or the earphone case itself. Users can purchase the lost or damaged earphones or earphone case as needed, or combine multiple sets of the same model to create a complete product. Thus, after returning all the earphones to the earphone case, the pairing method disclosed in this application can be used to pair the new and old electronic or audio devices for continued use.

[0063] Please see Figure 2 , Figure 2 This is another structural diagram corresponding to the electronic device and audio device disclosed in the embodiments of this application.

[0064] In some embodiments, the electronic device is provided with a storage slot, or the electronic device is physically connected to a storage compartment that can hold at least two audio devices. The pairing identification information is obtained by the electronic device through the interface element between the storage compartment and the audio devices when at least two audio devices are placed in the storage compartment.

[0065] It's understandable that some electronic devices (such as headphone cases) have built-in storage compartments for audio devices (such as headphones). However, other electronic devices do not have built-in storage compartments, but can achieve a physical connection between the electronic device and the audio device by physically connecting the audio device's storage compartment.

[0066] like Figure 2 As shown, Figure 2 Parts (a) and (b) are respectively a front view and a side view of an electronic device and an audio device. The electronic device 210 can be a mobile phone, tablet, or educational device, etc. The electronic device 210 can be connected to the storage compartment 220 of the audio device 230 via magnetic attraction, snap-fit, or latching, and communicates with the storage compartment 220 through contact points to obtain pairing identification information of the audio device 230 stored in the storage compartment 220.

[0067] The audio device 230 can be headphones, a small Bluetooth player, or a microphone, etc. When the audio device 230 is stored in the storage slot of the storage compartment 220, the audio device 230 and the storage compartment 220 will establish a physical connection through an interface element between the storage compartment 220 and the audio device 230. This interface element can be a pogo pin or a USB interface, etc., and is not limited here.

[0068] The pairing method for audio devices provided in this embodiment is applied to, for example... Figure 2 In the case of the illustrated electronic and audio devices, the electronic device obtaining the pairing identification information of each audio device through a physical connection means that the electronic device obtains the pairing identification information of the audio devices physically connected to the storage compartment through the physical connection. In this case, the storage compartment can be considered as the data transmission medium during the data acquisition process.

[0069] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating a process of applying the audio device pairing method disclosed in this application to an electronic device, such as... Figure 3 The method shown is applied to electronic devices, and the pairing method for this audio device may include the following steps:

[0070] Step 301: When the electronic device establishes a physical connection with at least two audio devices, obtain the pairing identification information of each audio device through the physical connection.

[0071] In the embodiments of this application, the physical connection between the electronic device and the audio device can be established through a spring-loaded probe (pogopin) or a USB interface, etc. The appropriate physical connection method is selected according to the form of the electronic device and the audio device, and no limitation is made here.

[0072] For example, when the electronic device is an earphone case or a smartwatch with an earphone storage compartment, and the audio device is an earphone, a spring-loaded probe can be used to establish a physical connection between the electronic device and the audio device, and the audio device can be charged via the spring-loaded probe. When the audio device is a Bluetooth speaker, a physical connection can be established with the electronic device via a USB cable or other connection methods.

[0073] In this embodiment, when an electronic device establishes a physical connection with at least two audio devices, the pairing identification information of each audio device can be obtained through the physical connection. This pairing identification information is used to instruct the audio devices to complete pairing with other audio devices and electronic devices among the at least two audio devices. In related technical fields, if different devices need to establish a wireless connection (such as Bluetooth Low Energy or Bluetooth BT) to achieve audio playback or control functions, they need to obtain the other party's identification information for wireless connection (i.e., the pairing identification information in this application), such as the device's name, address, or specific pairing key. For example, in the BLE (Bluetooth Low Energy) connection and pairing process, the device can broadcast its own MAC address as pairing identification information. Other devices can discover the pairing identification information by scanning and establish a connection and pairing through a series of steps.

[0074] Optionally, in the embodiments of this application, the identification information of at least two audio devices may be the actual MAC address of each audio device or the virtual MAC address of each audio device after it has been grouped with other audio devices.

[0075] It should be noted that a MAC (Media Access Control Address) is a unique identifier for a network device at the data link layer. It is also called a LAN address, MAC address, Ethernet address, hardware address, or physical address, and is written into the hardware by the device manufacturer during production.

[0076] In some embodiments, the pairing identification information corresponding to each of the at least two audio devices is used to indicate the identification information of the audio device itself, or the pairing identification information corresponding to each of the at least two audio devices is used to indicate the identification information of the team to which the audio device belongs.

[0077] It's important to note that when there are multiple audio devices, electronic devices can establish communication connections with them through a teaming mechanism. Specifically, the electronic device can identify and organize at least two audio devices into a team, and then use the team's unique identifier, such as the team's virtual MAC address or other form of team identification information, to perform data transmission and communication. For newly purchased audio devices, since they have not been teamed with other audio devices before, their pairing identifier information can be the factory-preset identifier information, ensuring that the electronic device can obtain the identifier information of all audio devices.

[0078] For example, when the earphone case obtains the pairing identification information of two earphones, if the target earphone is a newly purchased earphone that has never been paired with other earphones, the pairing identification information obtained by the earphone case for the target earphone can be the actual MAC address written to the target earphone at the factory; however, if the target earphone is an older earphone, i.e., the target earphone has been paired with other earphones before, the pairing identification information obtained by the earphone case for the target earphone can be the MAC address of the target earphone after it was paired with other earphones. It should be noted that the MAC address of the pairing is an address with the same format as the actual MAC address, and it can be changed after each pairing.

[0079] In some embodiments, to determine the type of pairing identification information that the electronic device needs to obtain, different pairing information can be preset in each audio device based on whether it has been paired or not. For example, the pairing information of audio devices that have been paired is 1, and the pairing information of audio devices that have not been paired is 0.

[0080] Step 302: If the pairing identification information between at least two audio devices does not match, send a teaming instruction to at least two audio devices and obtain the teaming identification information after the at least two audio devices are teamed up. The teaming instruction is used to instruct the at least two audio devices to perform a teaming operation.

[0081] In the embodiments of this application, mismatch of pairing identification information between at least two audio devices may mean that the pairing identification information of the two audio devices is different.

[0082] For example, consider an electronic device that is an earphone case, an audio device that is an earphone, and an earphone case that can hold two earphones. During normal use of the earphones and the earphone case, the pairing identification information of the two earphones in the earphone case is matched (identical), and both can be paired MAC addresses. If a user loses one earphone due to loss or damage and obtains a new earphone as a replacement through repurchase or other exchange, the pairing identification information of the new earphone will be different from that of the lost or damaged old earphone. The pairing identification information of the new earphone will also be different from that of the unlost or undamaged old earphones in the earphone case. Furthermore, if a user loses or damages all of their earphones at once, the pairing identification information of the two newly acquired earphones may also be different.

[0083] In this embodiment of the application, after determining that the pairing identification information between at least two audio devices does not match, the electronic device will send a teaming instruction to at least two audio devices to enable the at least two audio devices to perform a teaming operation. After the two audio devices are teamed up, their pairing identification information will be replaced with the same teaming identification information.

[0084] In some embodiments, sending a team-up command to at least two audio devices includes:

[0085] Output pairing prompt information, which prompts the user whether to pair at least two audio devices with electronic devices;

[0086] Upon receiving a pairing confirmation instruction, send a teaming instruction to at least two audio devices.

[0087] It should be noted that after determining that the pairing identification information between at least two audio devices does not match, the electronic device can directly send a team-up command to at least two audio devices, or it can first output a pairing query message to inform the user that there are audio devices with mismatched pairing identification information. After receiving the user's confirmation command, it then sends a team-up command to at least two audio devices. This method provides users with more control, allowing them to team up devices with full knowledge, thus improving the ease of use of the device. It also avoids the possibility of accidental device pairing due to mistakenly placing audio devices when a user owns multiple electronic and audio devices, which could lead to confusion or inconvenience in use.

[0088] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating the pairing method for audio devices disclosed in this application, where pairing query information is output. For example... Figure 4As shown, after determining that the pairing identification information between at least two audio devices does not match, the electronic device can display a pairing query interface on the set display screen and output pairing query information on the interface. The pairing query information can be in voice or text form, which is not limited here. For example, the pairing query information can be "Pairing identification information mismatch detected, do you want to pair?"

[0089] In some embodiments, in addition to outputting pairing inquiry information through the pairing inquiry interface, the pairing inquiry interface also includes a cancel control and a pairing confirmation control. Users can trigger different controls to select whether to send a team-up command to at least two audio devices when the electronic device detects a mismatch in the pairing identification information of at least two audio devices. This allows users to determine whether to pair the electronic device with at least two audio devices according to their actual needs, meeting the personalized needs of different users.

[0090] In some embodiments, the teaming operation includes determining team identification information by a target audio device among at least two audio devices, wherein the target audio device is at least one of the at least two audio devices.

[0091] It is understandable that, since the team-up command is used to instruct at least two audio devices to perform a team-up operation, and the pairing identification information of at least two audio devices will be updated to the same team-up identification information after the team-up operation is completed, it is necessary to determine an identification information that all audio devices agree upon during the team-up operation.

[0092] One method for determining the team identification information is to select a target audio device from at least two audio devices to determine the team identification information, and then send the determined team identification information to the other audio devices through the physical connection between each audio device and the electronic device. The target audio device can be pre-set. For example, when the at least two audio devices are two headphones, and the target audio device can be two headphones, the left headphone can be pre-set as the target audio device. The team identification information determined by the target audio device can be randomly generated by the target audio device or generated using a preset algorithm; this is not limited here.

[0093] Alternatively, the method for determining team identification information can also be to treat all audio devices as target audio devices without specifying a single target device, so as to jointly determine a team identification information. For example, each audio device can generate a portion of its identification information and distribute it to all other audio devices, combining these portions to form the complete team identification information.

[0094] In some embodiments, obtaining the team identification information after at least two audio devices are teamed up includes:

[0095] Send a first information acquisition instruction to the target audio device. The first information acquisition instruction is used to instruct the target audio device to send team identification information to the electronic device. The target audio device is at least one of at least two audio devices.

[0096] Receive team identification information sent by the target audio device.

[0097] It should be noted that, since the grouping identifier information of each audio device should be identical after at least two audio devices have completed the grouping operation, when obtaining the grouping identifier information of at least two audio devices, a first information retrieval command can be sent only to the target device among the at least two audio devices to obtain the grouping identifier information.

[0098] Optionally, there can be more than one target audio device; all audio devices can be used as target audio devices, and a first information acquisition command can be sent. By implementing this method, the electronic device can obtain the team-up identifier information replied by all audio devices and compare whether the team-up identifier information replied by each audio device is the same. If they are the same, the team-up operation is confirmed to have been completed normally; otherwise, it is confirmed that at least two audio devices have failed to team up.

[0099] In some embodiments, if the pairing identification information between at least two audio devices matches, it is determined whether the pairing identification information of the at least two audio devices is consistent with the grouping identification information of audio devices stored in the electronic device. If they match, the audio device matching process ends. If they do not match, it can be confirmed that the at least two audio devices are a group of audio devices that have been grouped together, and the electronic device has never matched with the at least two audio devices that have been grouped together.

[0100] If it is determined that the electronic device has not been paired with at least two audio devices that have been in a group, the electronic device will save the group identification information and send a save instruction to at least two audio devices, which is used to instruct at least two audio devices to save the identification information preset by the electronic device.

[0101] Step 303: Based on the team identification information and the preset identification information of the electronic device, control the electronic device to pair with at least two audio devices.

[0102] In this embodiment of the application, after obtaining the team identification information of at least two audio devices after they are teamed up, the electronic device will control the electronic device to pair with at least two audio devices according to the team identification information and the identification information preset by the electronic device.

[0103] It should be noted that the default identification information of an electronic device is determined at the factory and differs from the pairing identification information of an audio device. The identification information of an electronic device will not change during the pairing process. For example, the default identification information of an electronic device could be the MAC address written to it at the factory.

[0104] In some embodiments, controlling the electronic device to pair with at least two audio devices based on team identification information and preset identification information of the electronic device includes:

[0105] Save team identification information;

[0106] Send a save command to at least two audio devices, the save command instructing at least two audio devices to save the electronic device's preset identification information.

[0107] It should be noted that after acquiring the group identification information of at least two audio devices, the electronic device will save this group identification information to its storage medium and delete any existing group identification information. This ensures that the electronic device contains only one group identification information at a time, avoiding potential conflicts or confusion when establishing a communication connection. After saving the group identification information, the electronic device will also send pairing commands to at least two audio devices.

[0108] In this way, the electronic device and at least two audio devices will store the latest identification information of the other device, enabling the establishment of a stable communication connection, such as Bluetooth Low Energy or Bluetooth Classic.

[0109] In some embodiments, before controlling the electronic device to pair with at least two audio devices based on team identification information and preset identification information of the electronic device, the method further includes:

[0110] Check if the Bluetooth function of the electronic device is turned on;

[0111] Turn on the Bluetooth function of your electronic device when it is not enabled.

[0112] It's important to note that while pairing an electronic device with at least two audio devices doesn't require using the device's Bluetooth function, checking if the device's Bluetooth is enabled and then enabling it if it is initially disabled ensures that Bluetooth is active. This allows for automatic Bluetooth connection to the audio device simply by removing it after pairing, improving user convenience and experience.

[0113] By implementing the above technical solution, the audio device pairing method provided in this application obtains the pairing identification information of each audio device through a physical connection. Unlike wireless connections, this eliminates the search or waiting time that may occur with wireless connections, and avoids the problem of the electronic device not having a pre-stored pairing address for the audio device during the initial connection between the audio device and the electronic device. Then, if it is determined that the pairing identification information between two audio devices does not match, i.e., at least two audio devices are not already paired, a pairing command is sent to at least two audio devices instructing them to perform a pairing operation, and the pairing identification information of the at least two audio devices after pairing is obtained. Based on the pairing identification information and the electronic device's preset identification information, the electronic device is controlled to pair with the at least two audio devices. This allows for quick pairing of a new electronic device or a new audio device with an existing device when the user loses their electronic device or the audio device that was paired with it, reducing the complexity of user operations and improving the user experience.

[0114] Please see Figure 5 , Figure 5 This is another schematic diagram illustrating the application of the audio device pairing method disclosed in the embodiments of this application to an electronic device, such as... Figure 5 The method shown is applied to electronic devices, and the pairing method for this audio device may include the following steps:

[0115] Step 501: If it is detected that any one of the at least two audio devices has established a physical connection with the electronic device, a second information acquisition instruction is sent to the currently detected audio device through the physical connection.

[0116] In some embodiments, when an electronic device establishes a physical connection with at least two audio devices, obtaining pairing identification information for each audio device through the physical connection includes:

[0117] If it is detected that any one of the at least two audio devices has established a physical connection with the electronic device, a second information acquisition instruction is sent to the currently detected audio device through the physical connection. The second information acquisition instruction is used to instruct the currently detected audio device to send pairing identification information.

[0118] Receive pairing identification information sent by the currently detected audio device.

[0119] It should be noted that, to obtain pairing identification information for at least two audio devices, this information can be obtained all at once after the electronic device detects that all audio devices have established a physical connection with it. In some embodiments, the pairing identification information can also be obtained each time the electronic device detects that an audio device has established a physical connection with it. Both strategies are feasible and can be chosen according to specific application scenarios and requirements, and are not limited here.

[0120] For example, when the electronic device is an earphone case, each time the earphone case detects that an earphone has been placed inside, it will send a second information acquisition command to the currently detected earphone via a physical connection, such as a spring-loaded probe, and receive pairing identification information from the currently detected earphone in response to the second information acquisition command.

[0121] Step 502: Receive pairing identification information sent by the currently detected audio device.

[0122] Step 503: If the pairing identification information between at least two audio devices does not match, send a teaming instruction to at least two audio devices.

[0123] Step 504: Upon receiving a team reply command from at least two audio devices in response to the team command, obtain the Bluetooth status information of at least two audio devices. The Bluetooth status information includes the team status information and team record information of at least two audio devices.

[0124] In some embodiments, after sending the team-up command to the at least two audio devices, the method further includes:

[0125] Upon receiving a team response command from at least two audio devices in response to the team command, the Bluetooth status information of at least two audio devices is obtained. The Bluetooth status information includes team status information and team record information of at least two audio devices. The team status information is used to indicate whether each audio device is in a team state, and the team record information is used to indicate whether each audio device has stored a team record of teaming up with other audio devices.

[0126] Based on the team status information and team record information, determine whether at least two audio devices have completed team formation.

[0127] Understandably, after sending a group command to at least two audio devices, the electronic device needs to determine whether the at least two audio devices have already grouped up in order to proceed with the subsequent pairing operation between the electronic device and the at least two audio devices. When the electronic device receives a group response command from at least two audio devices in response to the group command, it can be determined that the at least two audio devices have received the group command and started the grouping operation. At this point, the electronic device can obtain the grouping status information from the Bluetooth status information of the at least two audio devices through the physical connection. This directly reflects whether the audio devices have successfully established a group connection with other devices, while the grouping record information provides a historical record of whether the audio devices have participated in grouping operations in the past. After obtaining this information, the electronic device will perform logical judgments based on the grouping status information and the grouping record information to determine whether the at least two audio devices have indeed completed grouping. This judgment process may include verifying that the grouping status of all audio devices is "grouped up," and checking whether there is a record in the grouping record information that matches the current grouping operation. If the electronic device determines that at least two audio devices have completed grouping, it will proceed to the next step, namely, pairing with this group of audio devices.

[0128] In some embodiments, the Bluetooth status information of at least two audio devices includes, in addition to the group status information and group record information of the at least two audio devices, Bluetooth connection information and pairing information. The Bluetooth connection information indicates whether the audio device is connected to a terminal device, which includes electronic devices and peripheral devices. The pairing information indicates whether the audio device is in a pairing broadcast state, providing the user with information on the current connection status and usage status of the audio device.

[0129] In some embodiments, obtaining Bluetooth status information of at least two audio devices includes:

[0130] Send a third information acquisition instruction to at least two audio devices. The third information acquisition instruction is used to instruct each audio device to send Bluetooth status information to the electronic device.

[0131] Receive Bluetooth status information from at least two audio devices.

[0132] It should be noted that the electronic device sends third information acquisition instructions to at least two audio devices and receives Bluetooth status information from at least two audio devices through the physical connection between the electronic device and at least two audio devices.

[0133] Step 505: Based on the team status information and team record information, determine whether at least two audio devices have completed team formation.

[0134] In some embodiments, determining whether at least two audio devices have completed teaming up, based on teaming status information and teaming record information, includes:

[0135] If the team status information indicates that at least two audio devices are in an unteamed state, and the team record information indicates that each audio device has a team record of teaming up with other audio devices, then at least two audio devices are determined to have completed teaming up; otherwise, at least two audio devices are determined not to have completed teaming up.

[0136] By checking the team status information and team record information, electronic devices can accurately determine whether audio devices have completed teaming. This can prevent electronic devices from mistakenly obtaining team identification information before audio devices are fully teamed, or from receiving relevant instructions for audio devices that have not completed teaming, which would interfere with the normal teaming process, increase the matching time, and may also cause errors during the matching process, affecting the user experience.

[0137] Optionally, the team record information can be a team record identifier. When the team record flag is 1, it indicates that the audio devices have completed teaming up. When the team record identifier is 0, it indicates that the audio devices have not completed teaming up.

[0138] Optionally, if the electronic device detects that any audio device has failed to team up successfully, or that the teaming status is not as expected, the electronic device may resend the teaming command or prompt the user to check the status of the audio devices to ensure that all devices can respond correctly and complete the teaming, thereby enabling subsequent pairing and audio transmission operations to proceed smoothly.

[0139] In some embodiments, an electronic device can determine that at least two audio devices have teamed up if it can reacquire pairing identification information of at least two audio devices.

[0140] Step 506: If at least two audio devices have completed team formation, obtain the team formation identifier information after the at least two audio devices have teamed up.

[0141] Step 507: Based on the team identification information and the preset identification information of the electronic device, control the electronic device to pair with at least two audio devices.

[0142] By implementing the above technical solution, the audio device pairing method proposed in this application enables electronic devices to accurately capture the pairing identification information of at least two audio devices and determine whether these audio devices have been successfully paired, thereby effectively avoiding errors caused by improper pairing. Furthermore, this method achieves a high degree of automation in the pairing process between audio devices and the matching process between electronic devices and audio devices. Users do not need to manually intervene, which not only reduces the learning cost for new users when purchasing new accessories for pairing but also greatly improves the overall user experience.

[0143] Please see Figure 6 , Figure 6 This is another schematic diagram illustrating the application of the audio device pairing method disclosed in the embodiments of this application to an electronic device, such as... Figure 6 The method shown is applied to electronic devices, and the pairing method for this audio device may include the following steps:

[0144] Step 601: When the electronic device establishes a physical connection with at least two audio devices, obtain the pairing identification information of each audio device through the physical connection.

[0145] Step 602: If the pairing identification information between at least two audio devices does not match, determine whether there is a target pairing identification information among the at least two pairing identification information that matches the identification information pre-stored by the electronic device.

[0146] In some embodiments, the teaming operation includes determining that the pairing identifier information corresponding to the target audio device is the teaming identifier information after at least two audio devices are teamed up, wherein the target audio device is at least one of the at least two audio devices, and the method further includes: before sending the teaming instruction to the at least two audio devices.

[0147] Determine whether there is a target pairing identifier that matches the target pairing identifier that is pre-stored in the electronic device among the at least two pairing identifiers corresponding to at least two audio devices;

[0148] If it exists, determine that the audio device corresponding to the target pairing identifier information is the target audio device.

[0149] It should be noted that when at least two audio devices are paired with an electronic device, at least one of the audio devices may have been paired with the electronic device before. In this case, the electronic device stores the target team identifier information of the previously paired audio device (which can be understood as the team identifier information of the team to which the previously paired audio device and the audio device that has been damaged or lost belong).

[0150] After identifying the target pairing identifier, the audio device corresponding to that identifier can be designated as the target audio device. Subsequently, when this target audio device teams up with other audio devices after receiving a teaming command from the electronic device, the teaming identifier of at least two audio devices is identified as the target pairing identifier. Thus, when the electronic device pairs with at least two audio devices, it does not need to update its stored target teaming identifier.

[0151] Step 603: If it exists, determine that the audio device corresponding to the target pairing identification information is the target audio device, send a teaming instruction to at least two audio devices, and obtain the teaming identification information after the at least two audio devices are teamed up.

[0152] If among the at least two pairing identifiers corresponding to at least two audio devices, there is a target pairing identifier that matches the target teaming identifier pre-stored by the electronic device, then the teaming identifier after the at least two audio devices are teamed up is the target pairing identifier.

[0153] Step 604: Obtain the target pairing information of the target audio device. The target pairing information includes the pairing records between the target audio device and the peripheral device.

[0154] In some embodiments, the pairing method for audio devices provided in this application further includes:

[0155] Obtain the target pairing information of the target audio device, which includes the pairing records between the target audio device and peripheral devices;

[0156] Send the target pairing information to at least two audio devices other than the target audio device.

[0157] It should be noted that the target pairing information includes pairing records between the target audio device and peripheral devices. These pairing records may include identification information used by the peripheral device to establish a communication connection. Peripheral devices refer to terminal devices other than electronic devices. For example, in addition to connecting to the headphone case (electronic device), headphones (audio) can also pair with other peripheral devices such as mobile phones and tablets to establish communication connections via Bluetooth or similar means.

[0158] When an electronic device pairs with at least two audio devices, the device sends the target pairing information of the target audio device to the other participating audio devices. Once the electronic device has paired with at least two audio devices, each audio device stores the complete target pairing information. Crucially, these audio devices share a unified pairing identifier after pairing. This identifier is consistent with the one used when the target audio device pairs with peripheral devices, ensuring that the identifier of each audio device relative to the peripheral device remains unchanged. Furthermore, since each audio device stores the peripheral device's identifier, it can establish a communication connection with the peripheral device without re-pairing, simplifying the process of pairing peripheral devices after a user has damaged or lost an audio device.

[0159] Step 605: Send the target pairing information to at least two audio devices other than the target audio device.

[0160] Step 606: Based on the team identification information and the preset identification information of the electronic device, control the electronic device to pair with at least two audio devices.

[0161] By implementing the above technical solution, the audio device pairing method proposed in this application can significantly improve the convenience of users switching and connecting between different audio devices. By sharing unified team identification information, it ensures seamless collaboration between audio devices, and even in the event of audio device damage or loss, pairing with peripheral devices can be quickly restored, greatly simplifying the user's operating experience.

[0162] Please see Figure 7 , Figure 7 This is a schematic diagram illustrating a process of applying the audio device pairing method disclosed in an embodiment of this application to an audio device, such as... Figure 7 As shown, the following steps may be included:

[0163] Step 701: When a physical connection is established between the audio device and the electronic device, the pairing identification information of the audio device is sent to the electronic device through the physical connection.

[0164] In some embodiments, sending audio device pairing identification information to an electronic device via a physical connection includes:

[0165] Upon receiving a second information acquisition instruction from an electronic device, the system sends pairing identification information of the audio device to the electronic device. The second information acquisition instruction is used to instruct the audio device to send the pairing identification information.

[0166] It should be noted that the pairing identifier information corresponding to the audio device is used to indicate the identifier information of the audio device itself, or the pairing identifier information corresponding to the audio device is used to indicate the identifier information of the team to which the audio device belongs, depending on whether the audio device has been paired with other audio devices before this pairing with the electronic device.

[0167] Step 702: Upon receiving a team-up instruction from an electronic device, the audio device performs a team-up operation and determines the team-up identifier information.

[0168] In some embodiments, after receiving a team-up instruction sent by an electronic device, the pairing method for audio devices provided in this application further includes: sending a team-up reply instruction to the electronic device in response to the team-up instruction.

[0169] It should be noted that after receiving a team-up command from an electronic device, the audio device will team up with other audio devices. The audio device can first send a team-up reply command in response to the team-up command to the electronic device so that the electronic device understands and confirms that the audio device has received the team-up command, and the electronic device can proceed with the subsequent matching process.

[0170] In some embodiments, after the audio devices perform a teaming operation and determine the teaming identification information, the pairing method for the audio devices provided in this application further includes: sending the Bluetooth status information of the audio devices to the electronic device when a third information acquisition instruction is received from the electronic device.

[0171] It should be noted that Bluetooth status information includes audio device grouping status information and grouping record information. Grouping status information indicates whether the audio device is in a grouping state, and grouping record information indicates whether the audio device has stored grouping records of grouping operations with other audio devices.

[0172] In some embodiments, after determining the team identification information, the pairing method for audio devices provided in this application further includes:

[0173] Upon receiving a first information retrieval instruction from an electronic device, the audio device sends a team identification information to the electronic device. The first information retrieval instruction is used to instruct the audio device to send the team identification information to the electronic device.

[0174] It should be noted that, since the team identification information of each audio device should be identical after at least two audio devices have completed the teaming operation, the audio device will only send the team identification information to the electronic device in response to the first information retrieval instruction after the audio device has determined the team identification information with other audio devices.

[0175] Optionally, in addition to the audio device's group status information and group record information, the Bluetooth status information also includes Bluetooth connection information and pairing information. The Bluetooth connection information indicates whether the audio device is connected to a terminal device, which includes electronic devices and peripheral devices. The pairing information indicates whether the audio device is in a pairing broadcast state, providing users with information about the audio device's current connection status and usage status.

[0176] In some embodiments, before the audio devices perform a grouping operation, the audio device pairing method provided in this application further includes:

[0177] If the audio device stores pairing information, the pairing information, including pairing records between the audio device and peripheral devices, is deleted.

[0178] It's important to clarify that, given that audio devices may have pairing records with multiple peripheral devices before being paired, if this historical pairing information is not cleared, it could negatively impact the subsequent process of audio devices and peripheral devices re-pairing with electronic devices after being paired. Specifically, if each audio device retains its own pairing record, which may contain the identifiers of peripheral devices that the paired audio device needs to match, some audio devices may mistakenly determine that they do not need to re-pair, even though their pairing identifiers have changed. This inconsistency can lead to matching errors and affect the user experience.

[0179] Step 703: Based on the team identification information and the preset identification information of the electronic device, control the electronic device to pair with at least two audio devices.

[0180] By implementing the above technical solution, the audio device pairing method proposed in this application can be applied to audio devices to achieve rapid pairing with electronic devices.

[0181] Please see Figure 8 , Figure 8 This is a schematic flowchart of a pairing method for audio devices disclosed in an embodiment of this application. In one embodiment, the electronic device is a watch with two headphone storage slots, and the at least two audio devices are two headphones, such as... Figure 8 As shown, the pairing method for audio devices provided in this application may include the following steps:

[0182] Step 801: If a physical connection is detected between earphone 1 or earphone 2 and the watch, a second information acquisition command is sent to the currently detected earphone.

[0183] It should be noted that, in this embodiment of the application, the second information acquisition instruction is used to instruct the currently detected audio device to send pairing identification information.

[0184] In one embodiment, when the watch detects that either earphone 1 or earphone 2 has established a physical connection with it, that is, the earphone is securely placed in the watch's built-in storage slot and data is transmitted with the earphone through a spring-loaded probe or contact in the slot, the watch can send a second information acquisition command to earphone 1 or earphone 2 through the physical connection.

[0185] It should be noted that the order in which the watch sends the second information retrieval command to earphone 1 and to earphone 2 can be determined based on the order in which the watch detects the physical connection of earphone 1 or earphone 2. Alternatively, the commands can be sent simultaneously when both earphone 1 and earphone 2 have established a physical connection with the watch; this is not a limitation here.

[0186] Step 802: Upon receiving the second information acquisition instruction sent by the watch, send the pairing identification information of the earphone 1 to the watch.

[0187] In one embodiment, upon receiving a second information retrieval instruction from the watch, the earphone 1 sends pairing identification information of the earphone 1 to the watch.

[0188] Step 803: Upon receiving the second information acquisition instruction sent by the watch, send the pairing identification information of the earphone 1 to the watch.

[0189] In one embodiment, upon receiving a second information retrieval instruction from the watch, the earphone 2 sends pairing identification information of the earphone 1 to the watch.

[0190] Step 804: Determine whether the pairing identification information received from earphone 1 and earphone 2 matches.

[0191] After receiving pairing identification information from earphones 1 and 2 respectively, the watch determines whether the received pairing identification information from earphone 1 and earphone 2 matches. If they do not match, the watch proceeds with the subsequent pairing process.

[0192] If the pairing identifier information received from earphone 1 and earphone 2 matches, it means that earphone 1 and earphone 2 have been paired together and belong to the same team. Their pairing identifier information is identical, representing the team identifier information of their respective teams. Therefore, it is necessary to further determine whether the pairing identifier information of earphone 1 and earphone 2 matches the target team identifier information pre-stored in the watch. If they still match, earphone 1, earphone 2, and the watch are paired normally, the pairing process can end, and the user can use them directly.

[0193] If the pairing identification information received from earphone 1 and earphone 2 matches, but the pairing identification information of earphone 1 and earphone 2 does not match the target pairing identification information pre-stored in the watch, then simply send and save the watch's preset identification information in the storage medium of earphone 1 and earphone 2, and send and save the pairing identification information of earphone 1 and earphone 2 in the storage medium of the watch to complete the pairing of the watch with earphone 1 and earphone 2.

[0194] Step 805: Output pairing query information to determine whether the user's confirmation instruction has been received.

[0195] If a confirmation command is received from the user, proceed to step 806; otherwise, end the pairing process between the watch and earphones 1 and 2.

[0196] Step 806: Send a team-up command to earphone 1 and earphone 2.

[0197] Upon receiving a confirmation command from the user, a team-up command is sent to headset 1 and headset 2.

[0198] Optionally, before sending the pairing command to earphones 1 and 2, the watch will also check if its Bluetooth function is enabled; and if the watch's Bluetooth function is disabled, it will enable the watch's Bluetooth function. This allows the watch to quickly establish a Bluetooth connection after pairing with earphones 1 and 2.

[0199] Step 807: Upon receiving the team-up instruction from the watch, earphone 1 performs the team-up operation and confirms the team-up identifier information with earphone 2.

[0200] In one embodiment, when the earphone 1 receives a team-up instruction from the watch, the earphone 1 performs a team-up operation and confirms team-up identification information with the earphone 2.

[0201] It should be noted that when the earphone 1 receives the team-up command sent by the watch, it will also send a team-up reply command to the watch so that the watch can confirm that the team-up command it sent was received normally by the earphone 1.

[0202] Step 808: Upon receiving the team-up instruction from the watch, the earphone 2 performs the team-up operation and confirms the team-up identifier information with the earphone 1.

[0203] In one embodiment, when the earphone 1 receives a team-up instruction from the watch, the earphone 1 performs a team-up operation and confirms team-up identification information with the earphone 2.

[0204] It should be noted that when the earphone 2 receives the team-up command sent by the watch, it will also send a team-up reply command to the watch so that the watch can confirm that the team-up command it sent was received normally by the earphone 2.

[0205] Step 809: Upon receiving the team-up reply command from Earphone 1 and Earphone 2, send a third information retrieval command to Earphone 1 and Earphone 2.

[0206] In this embodiment of the application, the third information acquisition instruction is used to instruct the audio device to send Bluetooth status information to the electronic device.

[0207] In one embodiment, upon receiving a team response command from earphones 1 and 2, the watch sends a third information acquisition command to earphones 1 and 2 to obtain their Bluetooth status information.

[0208] In some embodiments, the pairing method for audio devices applied to an electronic device further includes, after sending a pairing command to at least two audio devices via a physical connection:

[0209] If no teaming response command is received from at least two audio devices within a preset first waiting time, a first prompt message is output, indicating that the electronic device has failed to pair with at least two audio devices.

[0210] It should be noted that if the electronic device does not receive a team-up response from at least two audio devices within the preset first waiting time, the electronic device can determine that the matching has failed and output the corresponding first prompt message.

[0211] Optionally, the first prompt message can also indicate that the pairing failure occurred because the electronic device did not receive a team-up response from at least two audio devices in response to the team-up command. Providing an accurate reason for the pairing failure through the first prompt message helps users quickly locate the problem and take appropriate measures, further improving user experience and problem-solving efficiency.

[0212] For example, in such Figure 8 In the embodiment shown, if the watch does not receive a team-up reply from earphones 1 and 2 within 10 seconds (preset first waiting time) after sending the team-up command to earphones 1 and 2, the pairing is deemed to have failed, the pairing process ends, and the first prompt message is output.

[0213] Step 810: Upon receiving a third information acquisition command from the watch, the earphone 1 sends its Bluetooth status information to the watch.

[0214] Step 811: Upon receiving the third information acquisition command sent by the watch, the earphone 2 sends its Bluetooth status information to the watch.

[0215] Step 812: Based on the Bluetooth status information of earphone 1 and earphone 2, determine whether earphone 1 and earphone 2 have completed team formation.

[0216] In some embodiments, after sending a third information acquisition instruction to at least two audio devices, the pairing method for audio devices applied to an electronic device further includes:

[0217] If no Bluetooth status information from at least two audio devices is received within a preset second waiting time, a second prompt message is generated to indicate that the electronic device has failed to pair with at least two audio devices.

[0218] It should be noted that if the electronic device does not receive Bluetooth status information from at least two audio devices within the preset second waiting time, the electronic device can determine that the pairing has failed and output the corresponding second prompt message.

[0219] Optionally, the second prompt can also indicate that the pairing failure occurred because the electronic device did not receive Bluetooth status information from at least two audio devices. Providing an accurate reason for the pairing failure through the second prompt helps users quickly locate the problem and take appropriate measures, further improving user experience and problem-solving efficiency.

[0220] For example, in such Figure 8 In the embodiment shown, if the watch does not receive Bluetooth status information from earphones 1 and 2 within 15 seconds (a preset second waiting time) after sending the third information acquisition command to earphones 1 and 2, the pairing is deemed to have failed, the pairing process ends, and a second prompt message is output.

[0221] In one embodiment, after receiving the Bluetooth status information (including team status information and team record information) of earphones 1 and 2, the watch can determine whether earphones 1 and 2 have completed team formation by judging the team status information and team record information of earphones 1 and 2.

[0222] For example, if the team status information of both earphone 1 and earphone 2 indicates that earphone 1 and earphone 2 are in an unteamed state, and the team record information of both earphone 1 and earphone 2 indicates that each earphone has a team record with other earphones, then it is determined that earphone 1 and earphone 2 have completed teaming up.

[0223] If it is confirmed that Headphone 1 and Headphone 2 have successfully teamed up, proceed to step 813.

[0224] If it is determined that earphone 1 and earphone 2 have not completed pairing, then step 809 is repeated to continuously obtain the latest Bluetooth status information of earphone 1 and earphone 2 until it is determined that earphone 1 and earphone 2 have completed pairing, or the time exceeds the preset second waiting time. Then, the second prompt message is output, indicating that pairing has failed and the pairing process ends.

[0225] Step 813: Send the watch's preset identification information to earphones 1 and 2.

[0226] Step 814: Earphone 1 saves the watch's preset identification information and sends a save reply command to the watch.

[0227] Step 815: Earphone 2 saves the watch's preset identification information and sends a save reply command to the watch.

[0228] After both earphone 1 and earphone 2 have saved the watch's preset identification information (which can be the watch's MAC address when it was manufactured), the pairing process on one side of the earphone is complete.

[0229] Step 816: Upon receiving the save reply command sent by earphone 1 and earphone 2, send the first information retrieval command to earphone 1.

[0230] It is understandable that after headset 1 and headset 2 complete the team formation, their team formation identifiers are identical. Therefore, either headset can be selected to obtain the team formation identifier. The selected headset can be pre-set and is not limited here.

[0231] In one embodiment, upon receiving a save reply instruction from earphones 1 and 2, the watch sends a first information retrieval instruction to earphone 1 to obtain the team identification information after earphones 1 and 2 have teamed up.

[0232] Step 817: Upon receiving the first information retrieval instruction from the watch, send team identification information to the watch.

[0233] Upon receiving the first information retrieval command from the watch, the earphone 1 sends a team identification message to the watch.

[0234] Step 818: Save the team identification information.

[0235] After receiving the team identification information sent by earphone 1, the watch saves the team identification information in the device's storage medium. In this way, the storage mediums of earphones 1 and 2 contain the watch's preset identification information, while the storage medium of the watch contains the team identification information after earphones 1 and 2 are teamed up. After earphones 1 and 2 leave the watch's storage slot, they can automatically recognize each other and establish a stable connection via Bluetooth or other wireless communication technologies.

[0236] Step 819: Output a message indicating successful matching.

[0237] In some embodiments, after controlling the electronic device to pair with at least two audio devices based on team identification information and preset identification information of the electronic device, the pairing method for the audio devices applied to the electronic device further includes:

[0238] Output a successful match message, which indicates that at least two audio devices have been successfully paired with the electronic device.

[0239] For example, after the watch saves the team identification information, the watch can output a matching success message through its configured display or speaker in the form of text, image or audio.

[0240] By implementing the above technical solution, this application provides an efficient and convenient method for pairing audio devices, which enables rapid pairing of electronic devices with at least two audio devices, thereby improving the convenience of audio device pairing.

[0241] It should be understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0242] Based on the foregoing embodiments, this application provides an electronic device, which includes various modules and units included in each module, which can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.

[0243] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 9 As shown, the electronic device includes an information acquisition module 901, a team control module 902, and a pairing control module 903, wherein:

[0244] The information acquisition module 901 is used to acquire the pairing identification information of each audio device through the physical connection when the electronic device establishes a physical connection with at least two audio devices;

[0245] The team control module 902 is used to send a team command to at least two audio devices when the pairing identification information between at least two audio devices does not match, and to obtain the team identification information after the at least two audio devices are teamed up. The team command is used to instruct at least two audio devices to perform a team operation.

[0246] The pairing control module 903 is used to control the electronic device to pair with at least two audio devices based on the team identification information and the preset identification information of the electronic device.

[0247] In some embodiments, the information acquisition module 901 is further configured to send a first information acquisition instruction to the target audio device, the first information acquisition instruction being configured to instruct the target audio device to send team identification information to the electronic device, the target audio device being at least one of at least two audio devices; and to receive the team identification information sent by the target audio device.

[0248] In some embodiments, the information acquisition module 901 is further configured to, when detecting that any one of at least two audio devices has established a physical connection with an electronic device, send a second information acquisition instruction to the currently detected audio device through the physical connection, the second information acquisition instruction being used to instruct the currently detected audio device to send pairing identification information; and receive the pairing identification information sent by the currently detected audio device.

[0249] In some embodiments, the team control module 902 is further configured to output pairing inquiry information, which prompts the user whether to pair at least two audio devices with electronic devices; and, upon receiving a pairing confirmation instruction, to send a team command to at least two audio devices.

[0250] In some embodiments, the group control module 902 is further configured to, upon receiving a group reply instruction from at least two audio devices in response to a group instruction, acquire Bluetooth status information of at least two audio devices, the Bluetooth status information including group status information and group record information of the at least two audio devices, the group status information indicating whether each audio device is in a group state, and the group record information indicating whether each audio device has stored a group record of grouping with other audio devices; and determine whether the at least two audio devices have completed grouping based on the group status information and the group record information.

[0251] In some embodiments, the team control module 902 is further configured to send a third information acquisition instruction to at least two audio devices, the third information acquisition instruction being used to instruct each audio device to send Bluetooth status information to the electronic device; and to receive Bluetooth status information from at least two audio devices.

[0252] In some embodiments, the team control module 902 is further configured to determine that at least two audio devices have completed teaming when the team status information indicates that at least two audio devices are in an unteamed state and the team record information indicates that each audio device has stored a teaming record of teaming with other audio devices; otherwise, it is configured to determine that at least two audio devices have not completed teaming.

[0253] In some embodiments, the teaming operation includes determining that the pairing identification information corresponding to the target audio device is the teaming identification information after at least two audio devices are teamed up, and the target audio device is at least one of the at least two audio devices. The information acquisition module 901 is further configured to determine whether there is a target pairing identification information that matches the target teaming identification information pre-stored by the electronic device among the at least two pairing identification information corresponding to the at least two audio devices; if so, determine that the audio device corresponding to the target pairing identification information is the target audio device.

[0254] In some embodiments, the information acquisition module 901 is further configured to acquire target pairing information of the target audio device, the target pairing information including pairing records between the target audio device and peripheral devices; and send the target pairing information to at least two audio devices other than the target audio device.

[0255] In some embodiments, the pairing control module 903 is further configured to save team identification information and send a save instruction to at least two audio devices, the save instruction being used to instruct at least two audio devices to save the identification information preset by the electronic device.

[0256] In some embodiments, the electronic device further includes a Bluetooth control module, which is used to detect whether the Bluetooth function of the electronic device is enabled; and to enable the Bluetooth function of the electronic device when the Bluetooth function of the electronic device is disabled.

[0257] In some embodiments, the electronic device further includes a prompting module, which is configured to output a first prompting message if no teaming response instruction is received from at least two audio devices in response to the teaming instruction within a preset first waiting time. The first prompting message is used to indicate that the electronic device has failed to pair with at least two audio devices.

[0258] In some embodiments, the prompting module is further configured to generate a second prompt message if Bluetooth status information from at least two audio devices is not received within a preset second waiting time. The second prompt message is used to indicate that the electronic device has failed to pair with at least two audio devices.

[0259] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0260] It should be noted that, in the embodiments of this application... Figure 9 The module division of the illustrated electronic device is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into a single processing unit, exist as separate physical units, or be integrated into a single unit. The integrated units described above can be implemented in hardware, as software functional units, or in a combination of both.

[0261] It should be noted that, in the embodiments of this application, if the above-described methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0262] This application provides an electronic device, the internal structure of which can be shown in the following diagram. Figure 10 As shown, the electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the methods described above.

[0263] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method provided in the above embodiments.

[0264] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the method provided in the above-described method embodiments.

[0265] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0266] In one embodiment, the electronic device provided in this application can be implemented as a computer program, and the computer program can be implemented as follows: Figure 10The device operates on the electronic device shown. The memory of the electronic device can store the various program modules that make up the above-described apparatus. The computer program composed of the various program modules causes the processor to execute the steps of the methods in the various embodiments of this application described in this specification.

[0267] Figure 11 A schematic diagram of the structure of an audio device provided in an embodiment of this application, such as... Figure 11 As shown, the audio device includes an information sending module 1101, a teaming module 1102, and a pairing module 1103, wherein:

[0268] The information sending module 1101 is used to send the pairing identification information of the audio device to the electronic device through the physical connection when the audio device and the electronic device establish a physical connection;

[0269] The team-up module 1102 is used to perform a team-up operation and determine team-up identification information when the audio device receives a team-up command sent by the electronic device.

[0270] The pairing module 1103 is used to receive preset identification information sent by the electronic device. The preset identification information is used for pairing the audio device with the electronic device.

[0271] In some embodiments, the pairing module 1103 is further configured to send team identification information to the electronic device upon receiving a first information acquisition instruction sent by the electronic device. The first information acquisition instruction is used to instruct the audio device to send team identification information to the electronic device.

[0272] In some embodiments, the information sending module 1101 is further configured to send pairing identification information of an audio device to the electronic device upon receiving a second information acquisition instruction sent by the electronic device, wherein the second information acquisition instruction is used to instruct the audio device to send the pairing identification information.

[0273] In some embodiments, the pairing module 1102 is further configured to delete pairing information, including pairing records between the audio device and peripheral devices, if the audio device stores pairing information.

[0274] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0275] It should be noted that, in the embodiments of this application... Figure 11The module division of the audio device shown is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or be integrated into one unit with two or more units. The integrated units described above can be implemented in hardware, as software functional units, or a combination of both.

[0276] It should be noted that, in the embodiments of this application, if the above-described methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause the audio device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0277] This application provides an audio device, the internal structure of which can be shown in the following diagram. Figure 12 As shown, the audio device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the methods described above.

[0278] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method provided in the above embodiments.

[0279] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the method provided in the above-described method embodiments.

[0280] Those skilled in the art will understand that Figure 12The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the audio device to which the present application is applied. A specific audio device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0281] In one embodiment, the audio device provided in this application can be implemented as a computer program, and the computer program can be implemented as follows: Figure 12 The device operates on the audio device shown. The memory of the audio device can store the various program modules that make up the above-described apparatus. The computer program comprised of the various program modules causes the processor to execute the steps of the methods in the various embodiments of this application described in this specification.

[0282] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0283] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.

[0284] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.

[0285] It should be noted that, in this document, 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. Unless otherwise specified, 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 that element.

[0286] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.

[0287] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.

[0288] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.

[0289] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0290] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0291] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0292] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0293] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0294] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A pairing method for audio devices, characterized in that, The method is applied to an electronic device, and the method includes: When the electronic device establishes a physical connection with at least two audio devices, the pairing identification information of each audio device is obtained through the physical connection. If the pairing identification information between the at least two audio devices does not match, a teaming instruction is sent to the at least two audio devices to obtain the teaming identification information after the at least two audio devices are teamed up. The teaming instruction is used to instruct the at least two audio devices to perform a teaming operation. Based on the team identification information and the preset identification information of the electronic device, the electronic device is controlled to pair with the at least two audio devices.

2. The method according to claim 1, characterized in that, The step of obtaining the team identification information after the at least two audio devices are teamed up includes: Send a first information acquisition instruction to the target audio device, the first information acquisition instruction being used to instruct the target audio device to send the team identification information to the electronic device, the target audio device being at least one of the at least two audio devices; Receive the team identification information sent by the target audio device.

3. The method according to claim 1, characterized in that, When the electronic device establishes a physical connection with at least two audio devices, obtaining the pairing identification information of each audio device through the physical connection includes: If it is detected that any one of the at least two audio devices has established a physical connection with the electronic device, a second information acquisition instruction is sent to the currently detected audio device through the physical connection. The second information acquisition instruction is used to instruct the currently detected audio device to send pairing identification information. Receive pairing identification information sent by the currently detected audio device.

4. The method according to claim 1, characterized in that, Sending a team command to the at least two audio devices includes: Output pairing query information, which is used to prompt the user whether to pair the at least two audio devices with the electronic device; Upon receiving a pairing confirmation instruction, a team-up instruction is sent to the at least two audio devices.

5. The method according to claim 1, characterized in that, After sending the team-up command to the at least two audio devices, the method further includes: Upon receiving a team reply instruction from the at least two audio devices in response to the team instruction, the Bluetooth status information of the at least two audio devices is obtained. The Bluetooth status information includes team status information and team record information of the at least two audio devices. The team status information is used to indicate whether each audio device is in a team state, and the team record information is used to indicate whether each audio device has stored a team record of performing team operations with other audio devices. Based on the team status information and the team record information, determine whether the at least two audio devices have completed team formation.

6. The method according to claim 5, characterized in that, The step of obtaining the Bluetooth status information of the at least two audio devices includes: Send a third information acquisition instruction to the at least two audio devices, the third information acquisition instruction being used to instruct each audio device to send the Bluetooth status information to the electronic device; Receive Bluetooth status information from the at least two audio devices.

7. The method according to claim 5, characterized in that, The step of determining whether the at least two audio devices have completed team formation based on the team formation status information and the team formation record information includes: If the team status information indicates that at least two audio devices are in an unteamed state, and the team record information indicates that each audio device has a team record of teaming up with other audio devices, then it is determined that at least two audio devices have completed teaming up; otherwise, it is determined that at least two audio devices have not completed teaming up.

8. The method according to claim 1, characterized in that, The team formation operation includes determining the team identification information through a target audio device among the at least two audio devices, wherein the target audio device is at least one of the at least two audio devices.

9. The method according to claim 1, characterized in that, The team-up operation includes determining that the pairing identifier information corresponding to the target audio device is the team-up identifier information after the at least two audio devices are teamed up, wherein the target audio device is at least one of the at least two audio devices, and before sending the team-up command to the at least two audio devices, the method further includes: Determine whether there is a target pairing identifier that matches the target team identifier that is pre-stored in the electronic device among at least two pairing identifiers corresponding to at least two audio devices; If it exists, determine that the audio device corresponding to the target pairing identification information is the target audio device.

10. The method according to claim 9, characterized in that, The method further includes: Obtain the target pairing information of the target audio device, wherein the target pairing information includes pairing records between the target audio device and peripheral devices; The target pairing information is sent to the audio devices other than the target audio device among the at least two audio devices.

11. The method according to claim 1, characterized in that, The pairing identification information corresponding to each of the at least two audio devices is used to indicate the identification information of the audio device itself, or the pairing identification information corresponding to each of the at least two audio devices is used to indicate the identification information of the team to which the audio device belongs.

12. The method according to claim 1, characterized in that, The step of controlling the electronic device to pair with the at least two audio devices based on the team identification information and the preset identification information of the electronic device includes: Save the team identification information; Send a save command to the at least two audio devices, the save command being used to instruct the at least two audio devices to save the electronic device's preset identification information.

13. The method according to claim 1, characterized in that, Before controlling the electronic device to pair with the at least two audio devices based on the team identification information and the preset identification information of the electronic device, the method further includes: Detect whether the Bluetooth function of the electronic device is enabled; Turn on the Bluetooth function of the electronic device when it is not enabled.

14. The method according to claim 1, characterized in that, After sending the team-up command to the at least two audio devices via the physical connection, the method further includes: If no team-up response command is received from the at least two audio devices in response to the team-up command within a preset first waiting time, a first prompt message is output, which indicates that the electronic device has failed to pair with the at least two audio devices.

15. The method according to claim 6, characterized in that, After sending the third information acquisition instruction to the at least two audio devices, the method further includes: If the Bluetooth status information of the at least two audio devices is not received within a preset second waiting time, a second prompt message is generated, which indicates that the electronic device has failed to pair with the at least two audio devices.

16. A pairing method for audio devices, characterized in that, The method is applied to an audio device, and the method includes: When a physical connection is established between the audio device and the electronic device, the pairing identification information of the audio device is sent to the electronic device through the physical connection; Upon receiving a team-up command from the electronic device, the audio device performs a team-up operation and determines the team-up identifier information; The device receives preset identification information sent by the electronic device, which is used for pairing the audio device with the electronic device.

17. The method according to claim 16, characterized in that, After determining the team identification information, the method further includes: Upon receiving a first information acquisition instruction from the electronic device, the audio device sends the team identification information to the electronic device. The first information acquisition instruction is used to instruct the audio device to send the team identification information to the electronic device.

18. The method according to claim 16, characterized in that, Sending the audio device's pairing identifier information to the electronic device via the physical connection includes: Upon receiving a second information acquisition instruction from the electronic device, the pairing identification information of the audio device is sent to the electronic device, wherein the second information acquisition instruction is used to instruct the audio device to send the pairing identification information.

19. The method according to claim 16, characterized in that, Before the audio devices perform the team-up operation, the method further includes: If the audio device stores pairing information, the pairing information, including pairing records between the audio device and peripheral devices, is deleted.

20. An electronic device, characterized in that, include: The information acquisition module is used to acquire pairing identification information of each audio device through the physical connection when the electronic device establishes a physical connection with at least two audio devices; A team control module is used to send a team command to the at least two audio devices when the pairing identification information between the at least two audio devices does not match, and to obtain the team identification information after the at least two audio devices are teamed up. The team command is used to instruct the at least two audio devices to perform a team operation. The pairing control module is used to control the electronic device to pair with the at least two audio devices based on the team identification information and the preset identification information of the electronic device.

21. An audio device, characterized in that, include: The information sending module is used to send the pairing identification information of the audio device to the electronic device through the physical connection when the audio device and the electronic device establish a physical connection; The team-up module is used to enable the audio device to perform a team-up operation and determine team-up identification information when it receives a team-up command sent by the electronic device. A pairing module is used to receive preset identification information sent by the electronic device, the preset identification information being used for pairing the audio device with the electronic device.

22. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 15.

23. An audio device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 16 to 19.

24. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 15.

25. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 16 to 19.