Method, device and computer equipment for configuring earphones in earphone storage box
By configuring headphones in the headphone storage box, the headphones and the sound source device are identified as the same device group using the group identifier, which solves the problem of insufficient flexibility in the use of multiple headphones and improves the convenience of headphone combination .
Patent Information
- Application Number
- CN202110518581.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-12
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-05-12
AI Technical Summary
Existing wireless headphones lack flexibility in the use scenarios of multiple headphones, affecting convenience, and cannot be combined freely during use.
By configuring headphones in the headphone storage box, the headphones and the sound source device are identified as the same device group using the group identification, thereby realizing free combination between the headphones. The method includes obtaining instructions, reading a grouping identifier, configuring the identifier to the headset, and providing the identifier to identify as the same group when the headset is connected to the sound source device.
The flexibility of headphone combination and the convenience of using multiple headphones together are improved, so that different headphones can be configured with the same set logo based on the same headphone storage box to realize synchronous audio data push.
Smart Images

Figure CN115348494B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of chip technology, and more particularly to a method, device and computer equipment for configuring earphones in an earphone storage box. Background Art
[0002] With the continuous development of short-range wireless communication technologies such as Bluetooth, the application of wireless headphones is becoming more and more widespread.
[0003] Some scenarios involve the coordinated use of multiple earphones. For example, in the related art, a pair of wireless earphones is pre-paired before leaving the factory. When in use, one of the earphones first establishes a wireless connection with a sound source device (such as a mobile phone), and sends the connection information (such as the address) of the other wireless earphone to the sound source device. The sound source device establishes a connection with the other wireless earphone based on the connection information, and recognizes the two wireless earphones as a pair of earphones.
[0004] In the above solution, in the scenario where multiple earphones are used together, the multiple earphones can only be paired before leaving the factory, resulting in a lack of flexibility in the combination of the earphones, affecting the convenience of using the multiple earphones together. Summary of the invention
[0005] The embodiments of the present application provide a method, an apparatus and a computer device for configuring headphones in a headphone storage box. The technical solution includes:
[0006] On the one hand, an embodiment of the present application provides a method for configuring headphones in a headphone storage box, the method comprising:
[0007] Obtaining a first instruction, where the first instruction is used to trigger configuration of a first headset;
[0008] Reading a first pairing group identifier of the earphone storage box;
[0009] The first pairing identifier is configured to the first earphone; the first pairing identifier is used to instruct the sound source device to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing identifier when the first earphone is connected to the sound source device; the sound source device is used to send audio data to the earphones in the earphone device group.
[0010] On the one hand, an embodiment of the present application provides a method for connecting an earphone in a first earphone, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the method includes:
[0011] Broadcasting the connection information of the first headset;
[0012] In response to receiving a first connection request sent by the sound source device based on the connection information, establishing a connection between the first headset and the sound source device;
[0013] Providing the first pairing group identifier to the sound source device so that the sound source device recognizes the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier;
[0014] The audio data sent by the sound source device to the headphones in the headphone device group is received.
[0015] On the one hand, an embodiment of the present application provides a method for connecting a first earphone in an audio source device, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the method includes:
[0016] Receiving connection information broadcast by the first headset;
[0017] Sending a first connection request based on the connection information, where the first connection request is used to establish a connection between the first headset and the audio source device;
[0018] receiving the first pairing group identifier provided by the first headset;
[0019] Identify the first headset as a headset in the headset device group corresponding to the first pairing identifier;
[0020] The audio data is sent to the headphones in the headphone device group.
[0021] On the one hand, an embodiment of the present application provides a method for connecting an earphone in a first earphone, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the method includes:
[0022] Broadcasting the connection information of the first headset and the resolvable identifier;
[0023] In response to receiving a second connection request sent by the sound source device based on the connection information, establishing a connection between the first headset and the sound source device; the second connection request is sent after the sound source device successfully resolves the resolvable identifier through the first pairing group identifier provided by other headsets and identifies the first headset as one of the headsets in the headset device group corresponding to the first pairing group identifier;
[0024] The audio data sent by the sound source device to the headphones in the headphone device group is received.
[0025] On the one hand, an embodiment of the present application provides a method for connecting a first earphone in an audio source device, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the method includes:
[0026] Receiving the connection information and the resolvable identifier broadcast by the first headset;
[0027] When the resolvable identifier is successfully resolved by the first pairing group identifier provided by other earphones, identifying the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier;
[0028] Sending a second connection request to the first headset, where the second connection request is used to establish a connection between the first headset and the audio source device;
[0029] The audio data is sent to the headphones in the headphone device group.
[0030] On the other hand, an embodiment of the present application provides a device for configuring earphones in an earphone storage box, the device comprising:
[0031] A first instruction acquisition module, used to acquire a first instruction, where the first instruction is used to trigger configuration of the first headset;
[0032] An identification reading module, used for reading a first pairing group identification of the earphone storage box;
[0033] A configuration module is used to configure the first pairing identifier to the first earphone; the first pairing identifier is used to instruct the sound source device to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing identifier when the first earphone is connected to the sound source device; the sound source device is used to send audio data to each earphone in the device group.
[0034] On the other hand, an embodiment of the present application provides a device for connecting an earphone in a first earphone, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the device includes:
[0035] A broadcast module, used for broadcasting the connection information of the first headset;
[0036] a connection establishing module, configured to establish a connection between the first headset and the sound source device in response to receiving a first connection request sent by the sound source device based on the connection information;
[0037] an identification providing module, configured to provide a first pairing group identification to the sound source device, so that the sound source device identifies the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identification;
[0038] The audio data receiving module is used to receive the audio data sent by the sound source device to the headphones in the headphone device group.
[0039] On the other hand, an embodiment of the present application provides a device for connecting a first earphone in an audio source device, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the device includes:
[0040] a broadcast receiving module, configured to receive connection information broadcast by the first headset;
[0041] a connection request sending module, configured to send a first connection request based on the connection information, wherein the first connection request is used to establish a connection between the first headset and the audio source device;
[0042] an identification receiving module, configured to receive the first pairing group identification provided by the first headset;
[0043] An earphone identification module, used to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier;
[0044] The audio data sending module is used to send audio data to the headphones in the headphone device group.
[0045] On the other hand, an embodiment of the present application provides a device for connecting an earphone in a first earphone, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the device includes:
[0046] A broadcast module, used for broadcasting the connection information of the first headset and a resolvable identifier;
[0047] a connection establishing module, configured to establish a connection between the first headset and the audio source device in response to receiving a second connection request sent by the audio source device based on the connection information; the second connection request is sent after the audio source device successfully resolves the resolvable identifier through the first pairing group identifier provided by other headsets and identifies the first headset as one of the headsets in the headset device group corresponding to the first pairing group identifier;
[0048] The audio data receiving module is used to receive the audio data sent by the sound source device to the headphones in the headphone device group.
[0049] On the other hand, an embodiment of the present application provides a device for connecting a first earphone in an audio source device, wherein the first earphone is configured according to the above method for configuring an earphone in an earphone storage box, and the device includes:
[0050] A broadcast receiving module, configured to receive the connection information and the resolvable identifier broadcast by the first headset;
[0051] A headset identification module, configured to identify the first headset as one of the headset device groups corresponding to the first pairing group identifier when the resolvable identifier is successfully resolved by the first pairing group identifier provided by other headsets;
[0052] a connection request sending module, configured to send a second connection request to the first headset, wherein the second connection request is used to establish a connection between the first headset and the audio source device;
[0053] The audio data sending module is used to send audio data to the headphones in the headphone device group.
[0054] On the other hand, an embodiment of the present application provides a processing chip, which is provided with a device for configuring headphones in an headphone storage box, a device for connecting headphones in a first headphone, or a device for connecting the first headphone in a sound source device as described in the above aspects.
[0055] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, and the processor and the memory are connected via a bus; the processor is used to execute computer instructions stored in the memory to implement the method of configuring headphones in an headphone storage box, the method of connecting headphones in a first headphone, or the method of connecting the first headphone in a sound source device as described in the above aspects.
[0056] On the other hand, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is loaded and executed by a processor to implement the above-mentioned method of configuring headphones in an headphone storage box, the method of connecting headphones in a first headphone, or the method of connecting the first headphone in a sound source device.
[0057] In another aspect, the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned method of configuring headphones in a headphone storage box, the method of connecting headphones in a first headphone, or the method of connecting the first headphone in a sound source device.
[0058] On the other hand, the present application provides a computer program, which is executed by a processor of a computer device to implement the above-mentioned method of configuring headphones in an headphone storage box, the method of connecting headphones in a first headphone, or the method of connecting the first headphone in a sound source device.
[0059] The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:
[0060] The pairing identification of the earphone is configured through the pairing identification of the earphone storage box. Since the pairing identification can indicate the division of the sound source device into device groups, that is to say, different earphones can be freely combined based on the same pairing identification configured on the same earphone storage box, thereby improving the flexibility of combining the earphones and further improving the convenience of using multiple earphones together. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 is a system architecture diagram of a wireless audio playback system provided by an exemplary embodiment of the present application;
[0062] Figure 2 is a flow chart of a method for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application;
[0063] Figure 3 is a flow chart of a method for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application;
[0064] Figure 4 yes Figure 3 A schematic structural diagram of an earphone storage box and earphones involved in the illustrated embodiment;
[0065] Figure 5 yes Figure 3 A schematic diagram of a SIRK configuration process involved in the illustrated embodiment;
[0066] Figure 6 is a flow chart of a method for configuring earphones based on an earphone storage box provided by an exemplary embodiment of the present application;
[0067] Figure 7 is a structural schematic diagram of a device for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application;
[0068] Figure 8 is a structural schematic diagram of an apparatus for connecting an earphone in a first earphone provided by an exemplary embodiment of the present application;
[0069] Fig. 9 is a structural schematic diagram of an apparatus for connecting a first earphone in a sound source device provided by an exemplary embodiment of the present application;
[0070] Fig.10 is a structural schematic diagram of an apparatus for connecting an earphone in a first earphone provided by an exemplary embodiment of the present application;
[0071] Fig.11 is a structural schematic diagram of an apparatus for connecting a first earphone in a sound source device provided by an exemplary embodiment of the present application;
[0072] Fig.12 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0074] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0075] It should be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B.
[0076] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.
[0077] In the embodiments of the present application, "pre-definition" can be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device and a network device), and the present application does not limit the specific implementation method. For example, pre-definition can refer to what is defined in the protocol.
[0078] Thanks to the development of short-range wireless communication technologies such as Bluetooth (BT), wireless headphones are increasingly accepted by users, and their implementation forms are becoming more and more diverse. For example, current wireless headphones include True Wireless Stereo (TWS) Bluetooth headphones, etc.
[0079] When using wireless headphones, they need to establish a wireless connection with the audio source device and play the audio data pushed by the audio source device.
[0080] Please refer to Figure 1 , which shows a system architecture diagram of a wireless audio playback system provided by an exemplary embodiment of the present application. Figure 1 As shown, the system includes a wireless headset 110 and an audio source device 120 .
[0081] The wireless headset 110 may be a Bluetooth headset, or a headset supporting other short-range wireless communication protocols other than Bluetooth (such as Wi-Fi protocol, ZigBee protocol, etc., which are not limited in this application), etc.
[0082] The wireless headset 110 has a function of playing audio. For example, a speaker component is provided in the wireless headset 110 .
[0083] The audio source device 120 may be a computer device that supports the same short-range wireless communication protocol as the wireless headset 110 . For example, the audio source device 120 may be a smart phone, a tablet computer, a smart TV, a personal computer, and the like.
[0084] After the sound source device 120 and the wireless headset 110 are connected via short-range wireless communication, the sound source device 120 can push audio data to the wireless headset 110, and the wireless headset plays the audio data.
[0085] In some scenarios, the wireless headset 110 can also send control information to the audio source device 120 to control functions related to audio playback in the audio source device 120, such as switching to the previous song, switching to the next song, adjusting the volume, answering / hanging up the phone, etc.
[0086] In the embodiment of the present application, the above system further includes a configuration device 130 .
[0087] The configuration device 130 has the function of configuring the wireless headset 110 .
[0088] For example, the configuration device 130 may send configuration data to the wireless headset 110 to configure relevant parameters or properties in the wireless headset 110 .
[0089] The configuration device 130 may be implemented as a headset storage box, a smart phone, a tablet computer, or a computer device such as a personal computer.
[0090] Please refer to Figure 2 , which shows a flow chart of a method for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application. The method can be used in an earphone storage box. The method can include the following steps.
[0091] Step 201: Obtain a first instruction, where the first instruction is used to trigger configuration of a first headset.
[0092] In a possible implementation, the first instruction is an instruction corresponding to a user operation; for example, the first instruction is an operation signal received from the user, or the first instruction is an instruction generated when the operation signal is received.
[0093] In another possible implementation, the first instruction is an instruction automatically triggered by the background; for example, the first instruction is a judgment result obtained after conditional judgment based on specified data, or the first instruction is an instruction generated based on the judgment result.
[0094] In another possible implementation, the first instruction is an instruction obtained under the combined influence of user operation and background triggering; for example, the first instruction is a judgment result obtained after conditional judgment based on specified data after receiving an operation signal of user operation; or, the first instruction is an instruction generated based on the judgment result after conditional judgment based on specified data after receiving an operation signal of user operation.
[0095] Step 202: read the first pairing group identifier of the earphone storage box.
[0096] In a possible implementation, the earphone storage box may read a first pairing group identifier pre-stored in a memory of the earphone storage box.
[0097] In another possible implementation, the headphone storage box can also read the first pairing identifier from outside the headphone storage box; for example, when the headphone storage box is connected to the Internet, the first pairing identifier can be read from a server on the network side; or, when the headphone storage box is connected to another computer device via a direct connection or a local area network, the headphone storage box can read the first pairing identifier from the other computer device.
[0098] The above steps 201 and 202 may be executed simultaneously, or the above step 201 may be executed after step 202, or the above step 201 may be executed before step 202. The embodiment of the present application does not limit the execution order of the above steps 201 and 202.
[0099] In the embodiment of the present application, different earphone storage boxes correspond to different pairing identifiers.
[0100] Step 203, configuring the first pairing group identifier to the first earphone; the first pairing group identifier is used to instruct the sound source device to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier when the first earphone is connected to the sound source device; the sound source device is used to send audio data to the earphones in the earphone device group.
[0101] In a possible solution of the embodiment of the present application, after the first earphone is connected to the sound source device, the first pairing group identifier can be provided to the sound source device. Accordingly, the sound source device determines the device group to which the first earphone belongs through the first pairing group identifier sent by the first earphone, and the sound source device uniformly performs audio push services for each earphone in the device group, for example, synchronously pushes the same audio data to each earphone in the device group.
[0102] Through the scheme shown in the embodiment of the present application, the configuration device can configure the same pairing identifier for multiple headphones respectively, so that after the audio source device establishes a connection with multiple headphones, the multiple headphones are divided into the same device group, and the same audio data is pushed to the above-mentioned multiple headphones synchronously, thereby not relying on the factory configuration, that is, free pairing of multiple headphones can be achieved.
[0103] To sum up, the scheme shown in the embodiment of the present application configures the pairing identification of the earphone through the pairing identification of the earphone storage box. Since the pairing identification can indicate the division of the sound source device into device groups, that is to say, different earphones can be freely combined based on the same earphone storage box configured with the same pairing identification, thereby improving the flexibility of combining the earphones and further improving the convenience of using multiple earphones together.
[0104] The solution shown in the above embodiments of the present application can be applied to any scenario where two headphones need to be combined.
[0105] For example, in an exemplary scenario, user A originally has a pair of Bluetooth headphones. During the use of user A, the left earphone of the pair of Bluetooth headphones is damaged (or lost). At this time, user A only needs to buy another left earphone of the same model and replace it with the left earphone through the above method. Figure 2 In the solution of the illustrated embodiment, the earphone storage box is used to configure the same pairing identification for the newly purchased earphone and the existing right earphone, so that the subsequent audio source device can identify the newly purchased earphone and the existing right earphone as the same pair of earphones.
[0106] For another example, in another exemplary scenario, user A has a pair of Bluetooth headphones, and user B also has a pair of Bluetooth headphones, but user A and user B need to listen to the audio data output by the same audio source device through the headphones (for example, user A and user B watch the same online class through the same mobile phone in the library). At this time, through the above Figure 2 The solution in the illustrated embodiment can configure the same pairing group identifier for a pair of Bluetooth headphones of user A and a pair of Bluetooth headphones of user B through an earphone storage box. Subsequently, the audio source device can classify the two pairs of Bluetooth headphones into the same device group and push audio data to the two pairs of Bluetooth headphones synchronously.
[0107] The above two exemplary scenarios are only described by configuring two Bluetooth headsets into a pair of Bluetooth headsets, and configuring two pairs of Bluetooth headsets into a group of Bluetooth headsets. The solution shown in the embodiment of the present application can also be applied to other scenarios, such as the scenario of pairing Bluetooth speakers, etc. The embodiment of the present application is only applicable to the above Figure 2 The application scenarios of the solutions shown are not limited.
[0108] Please refer to Figure 3 , which shows a flow chart of a method for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application. The method can be used in an earphone storage box. The method can include the following steps.
[0109] Step 301: Obtain a first instruction, where the first instruction is used to trigger configuration of a first headset.
[0110] In a possible implementation, the step of obtaining the first instruction includes:
[0111] In response to the first earphone being placed in the earphone storage box, the first instruction is obtained.
[0112] In an embodiment of the present application, when the headphone model of the first headphone is compatible with the headphone storage box and the first headphone is placed in the headphone storage box, the headphone storage box can determine that the first instruction has been obtained, and then determine that the pairing identifier of the first headphone needs to be configured.
[0113] The earphone storage box can detect whether the earphone is stored by at least one of a sensor, a communication interface, and a charging interface.
[0114] Optionally, the above-mentioned sensor may include a pressure sensor, a current sensor, etc., and the earphone storage box may detect whether the earphone is stored through the status data of the pressure sensor or the current sensor.
[0115] The communication interface and the charging interface may be the same physical interface, and the physical interface may be switched between the communication interface and the charging interface; or the communication interface and the charging interface may be implemented as two independent physical interfaces. The earphone storage box may detect whether the earphones are stored by the communication status of the communication interface or the charging status of the charging interface.
[0116] For example, please refer to Figure 4 , which shows a schematic diagram of the structure of an earphone storage box and earphones involved in an embodiment of the present application. Figure 4As shown, the earphone storage box 44 has two earphone storage positions, which are used to store the left earphone 41 and the right earphone 45 respectively. The left earphone 41 and the right earphone 45 respectively include an earphone communication interface 43. The earphone storage box 44 is provided with a storage box communication interface 46 corresponding to the earphone communication interface 43. Figure 4 As shown, when the right earphone 45 is placed in the earphone storage box 44, a communication connection is established between the earphone communication interface 43 in the right earphone 45 and the storage box communication interface 46 at the right earphone storage position. At this time, the earphone storage box 44 can determine that a right earphone is placed in the earphone storage box.
[0117] In a possible implementation manner, in response to the first earphone being placed in the earphone storage box and satisfying a predetermined condition, the first instruction is acquired.
[0118] In some cases, when a user places a headset in an earphone storage box, it is not necessary to configure the pairing identifier of the headset. For example, the user may want to use the earphone storage box for temporary storage or charging. In order to avoid unnecessary detection in this case, when the earphone storage box stores the first earphone, the earphone storage box can further determine whether the first instruction is obtained by detecting and judging the predetermined condition.
[0119] The above-mentioned predetermined conditions may include but are not limited to at least one of the following conditions:
[0120] 1) A first operation performed by a user on the earphone storage box is received.
[0121] In an exemplary solution, when the earphone storage box detects that the first earphone is stored, it can further determine whether the first instruction is obtained through user operation.
[0122] Among them, the first operation may include at least one of the following operations: pressing a designated button in the earphone storage box, pressing a designated button in the earphone storage box for n consecutive times (n is greater than or equal to 1, and n is an integer), long pressing a designated button in the earphone storage box, closing / opening the earphone storage box, and controlling the earphone storage box to move along a specified trajectory, etc.
[0123] 2) Another earphone storage position in the earphone storage box except the earphone storage position where the first earphone is located is empty, and a second operation performed by the user on the earphone storage box is received.
[0124] When the user puts the earphones into the earphone storage box, usually different earphones are put into the earphone storage box respectively (that is, one earphone is put into the earphone storage box at a time). When the user puts the first earphone into the earphone storage box, there may be only this earphone in the earphone storage box. At this time, the user may want to configure this earphone separately, or there may be subsequent operations, such as putting another earphone into the storage box and configuring the two earphones at the same time, or the user may not want to configure this earphone. Therefore, when the earphone storage box detects that there is another earphone in addition to the earphone storage position where the first earphone is currently located, When the earphone storage position is empty, the user's intention cannot be accurately judged. At this time, the earphone storage box can further combine the user operation to determine whether the first instruction is obtained; for example, when another earphone storage position in the earphone storage box except the earphone storage position where the first earphone is located is empty and the second operation is received, it is considered that the user wants to configure the first earphone currently stored, and it is determined that the first instruction is obtained; and when another earphone storage position in the earphone storage box except the earphone storage position where the first earphone is located is empty, but the second operation is not received, it is temporarily considered that the first instruction is obtained.
[0125] The second operation may be the same as or different from the first operation.
[0126] 3) The current pairing identifier of the second earphone in the earphone storage box is the same as the current pairing identifier of the first earphone, and a third operation performed by the user on the earphone storage box is received.
[0127] When using an earphone storage box to store earphones, users usually put a pair of earphones into the earphone storage box, that is, the current pairing identifiers of the two earphones in the earphone storage box are the same. In one case, the pairing identifier of this pair of earphones is the first pairing identifier of the earphone storage box (that is, this pair of earphones originally belongs to the current earphone storage box). In another case, the pairing identifier of this pair of earphones is different from the first pairing identifier of the earphone storage box, but the user just wants to use the earphone storage box for charging. In both cases, the earphone storage box does not need to reconfigure the pairing identifier of this pair of earphones. In order to avoid misconfiguration of the pairing identifier of this pair of earphones, in an embodiment of the present application, when the earphone storage box detects that the current pairing identifiers of the first earphone and the second earphone stored are the same, it can be further combined with the user operation to determine whether the first instruction is obtained.
[0128] The third operation may be the same as or different from the first operation or the second operation.
[0129] 4) A second earphone is stored in another earphone storage position in the earphone storage box except the earphone storage position where the first earphone is located.
[0130] In a possible implementation scheme of the embodiment of the present application, the earphone storage box may use the simultaneous storage of two earphones as a condition for determining whether the first instruction is obtained, that is, by detecting whether two earphones are stored at the same time, it can determine whether the first instruction is obtained.
[0131] In another possible implementation, when a second earphone is stored in another earphone storage position in the earphone storage box other than the earphone storage position where the first earphone is located, the earphone storage box may not detect whether the original pairing identifiers of the two earphones are the same, but directly further determine whether the first instruction is obtained in combination with the user operation. For example, when the earphone storage box detects that the first earphone and the second earphone are currently stored and receives the third operation, it is determined that the first instruction is obtained; if the earphone storage box detects that the first earphone and the second earphone are currently stored, but has not received the third operation, it is not considered that the first instruction is obtained.
[0132] 5) The pairing identifier of the second earphone in the earphone storage box is the first pairing identifier.
[0133] In a possible implementation scheme of the embodiment of the present application, the earphone storage box uses the condition of whether two earphones stored at the same time contain an earphone with the same first pairing group identifier as a condition for determining whether the first instruction is obtained. At this time, the other earphone in the earphone storage box is the first earphone.
[0134] For example, if a user wants to configure an earphone and his original earphones into the same set of earphones, the user can place the earphones together with his original earphones into the earphone storage box corresponding to his original earphones. If the earphone storage box detects that the pairing identifier of an earphone is the same as its own pairing identifier, it determines that the first instruction has been obtained.
[0135] In an embodiment of the present application, the earphone storage box can obtain the original pairing identification of the earphone through a communication interface between the earphone and the earphone.
[0136] For example, in Figure 4 In the embodiment, the earphone storage box 44 includes a processing chip 47, which is connected to the storage box communication interface 46 through a bus. At the same time, the left earphone 41 and the right earphone 45 are respectively provided with an earphone memory 42, and the earphone memory 42 stores the original configuration identifier of the earphone. When the earphone communication interface 43 in the right earphone 45 establishes a communication connection with the storage box communication interface 46 at the right earphone storage position, the earphone storage box 44 reads the configuration identifier stored in the earphone memory 42 in the right earphone 45 through the processing chip 47.
[0137] In a possible implementation, when the earphone storage box includes a near field communication function, obtaining the first instruction includes:
[0138] In response to the first earphone being located within the near field communication range of the earphone storage box, the first instruction is acquired.
[0139] In the embodiment of the present application, the form of the device for configuring the first earphone may not be limited to the earphone storage box. As long as both support near field communication (NFC), the configuration of the pairing identifier can be achieved.
[0140] In an exemplary scenario, when the NFC functions of the mobile phone and the earphone storage box are turned on, and the earphone storage box detects that there are earphones within the communication range of the NFC function (the earphone storage box can receive identity information sent by the earphones through the NFC function to determine that the device within the NFC communication range is the earphones), the above-mentioned first instruction can be obtained.
[0141] In the embodiment of the present application, based on the first earphone being located within the near field communication range of the earphone storage box, the earphone storage box may also determine whether to obtain the first instruction in combination with the user operation.
[0142] For example, when the first earphone is within the near-field communication range of the earphone storage box, the earphone storage box can display a prompt message in the interface of the pairing program to prompt the user whether a new pairing identifier needs to be configured for the current first earphone (such as the earphone). If a confirmation operation performed by the user is received, it is determined that the above-mentioned first instruction is obtained.
[0143] In a possible implementation, when the earphone storage box and the first earphone respectively include a wired communication interface, obtaining the first instruction includes:
[0144] In response to the earphone storage box being connected to the first earphone through the wired communication interface, a first instruction is obtained.
[0145] In an embodiment of the present application, the first earphone and the earphone storage box can also be connected via a wired communication interface to achieve the configuration of the pairing identification.
[0146] The wired communication interface may be a Universal Serial Bus (USB) interface or other types of wired communication interfaces, which is not limited in the embodiments of the present application.
[0147] For example, the first earphone is provided with a USB interface, and the user connects the earphone storage box to the earphone via a USB data cable. At this time, the personal computer can detect the earphone connected via USB, and it can be considered that the above-mentioned first instruction is obtained.
[0148] In the embodiment of the present application, based on the connection between the earphone storage box and the first earphone via the wired communication interface, the earphone storage box can also determine whether to obtain the first instruction in combination with the user operation.
[0149] For example, taking a personal computer as an example, when the first earphone is connected to an earphone storage box through a USB interface, the earphone storage box can display a prompt message to prompt the user whether a new pairing group identifier needs to be configured for the current first earphone. If a confirmation operation performed by the user is received, it is determined that the above-mentioned first instruction is obtained.
[0150] Step 302: read the first pairing group identifier of the earphone storage box.
[0151] In a possible implementation, the earphone storage box may read the first pairing group identifier pre-stored locally.
[0152] For example, see Figure 4 The earphone storage box 44 includes an earphone storage box memory 48 , and the earphone storage box memory 48 stores the first pairing group identifier. The processing chip 47 of the earphone storage box 44 can read the first pairing group identifier from the earphone storage box memory 48 .
[0153] In another possible implementation, the earphone storage box can also read the first pairing group identifier from outside the local area; for example, the earphone storage box can read the first pairing group identifier from another earphone storage box through a short-range wireless communication technology such as Bluetooth or NFC; or, the earphone storage box can read the first pairing group identifier from other earphone storage boxes through a wired communication interface such as a USB interface, or, the earphone storage box can obtain the first pairing group identifier from a server on the network side.
[0154] The above steps 301 and 302 may be executed simultaneously, or the above step 301 may be executed after step 302, or the above step 301 may be executed before step 302. The embodiment of the present application does not limit the execution order of the above steps 301 and 302.
[0155] In the embodiment of the present application, different earphone storage boxes correspond to different pairing identifiers.
[0156] Step 303, the first pairing group identifier is configured to the first earphone, and the first pairing group identifier is used to instruct the audio source device to identify the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier when the first earphone is connected to the audio source device; the audio source device is used to send audio data to each earphone in the earphone device group. For example, the audio source device can send synchronous push audio data to each earphone in the earphone device group.
[0157] In an embodiment of the present application, the earphone storage box can update the original pairing identifier of the first earphone to the first pairing identifier.
[0158] Among them, the earphone storage box can send the first pairing identification to the first earphone, and the first earphone can replace the original pairing identification; or, the earphone storage box can also directly write the first pairing identification into the storage (such as memory) of the first earphone in a manner of overwriting the original pairing identification.
[0159] For example, see Figure 4 The processing chip 47 in the earphone storage box 44 can write the first pairing identifier into the earphone memory 42 of the right earphone 45 through the communication interface between the right earphone 45 (i.e., the storage box communication interface 46 and the earphone communication interface 43) to overwrite the original pairing identifier in the earphone memory 42 of the right earphone 45.
[0160] For another example, the earphone storage box can send the first pairing identifier to the earphone via NFC, and the earphone uses the first pairing identifier to replace its original pairing identifier.
[0161] For another example, the earphone storage box can send the first pairing group identifier to the earphone through a USB interface, and the earphone uses the first pairing group identifier to replace its original pairing group identifier; or, the earphone storage box can also write the first pairing group identifier directly into the earphone memory through a USB interface to overwrite the original pairing group identifier in the earphone memory.
[0162] In a possible implementation manner, in response to the original pairing identifier of the first headset being different from the first pairing identifier, the pairing identifier of the first headset is updated to the first pairing identifier.
[0163] In an embodiment of the present application, the earphone storage box can pre-detect whether the original pairing identifier of the first earphone is the same as the first pairing identifier. If they are different, the pairing identifier of the first earphone is updated to the first pairing identifier. Otherwise, the update operation is not performed, thereby avoiding unnecessary data interaction.
[0164] In a possible implementation manner, the first group identifier is a set identity resolving key (Set Identity Resolving Key, SIRK).
[0165] In an embodiment of the present application, when the first earphone supports the Bluetooth communication protocol and establishes a connection with the audio source device via Bluetooth, the pairing group identifier may be SIRK defined in the Bluetooth communication protocol.
[0166] The set identity resolution key SIRK is a 128-bit random number used to uniquely identify a coordination set, which is the above-mentioned device group.
[0167] Devices belonging to the same coordination set can respond to audio data or instructions from the audio source device in a coordinated manner, such as synchronously receiving and playing the same audio data, or synchronously adjusting the volume, etc.
[0168] For example, taking two Bluetooth headsets belonging to the same coordination set as an example, when the two Bluetooth headsets are respectively connected to mobile phones, when there is audio that needs to be played in the mobile phone, the data corresponding to the audio can be synchronously pushed to the two Bluetooth headsets for playback; for another example, when the user operates one of the Bluetooth headsets to adjust the volume, the Bluetooth headset feeds back the user operation information to the mobile phone, the mobile phone determines the adjusted volume based on the user operation information, and feeds back the adjusted volume to the other Bluetooth headset, thereby controlling the other Bluetooth headset to synchronously adjust the volume.
[0169] Optionally, for different headphones, the same audio data pushed synchronously by the sound source device means that the content of the audio data is the same, but its expression form may be different. For example, taking the different headphones as a pair of Bluetooth headphones, the Bluetooth headphones include a left earphone and a right earphone, then the sound source device synchronously pushes the same audio data to the pair of Bluetooth headphones, which means that the sound source device pushes the left channel audio data to the left earphone and pushes the right channel audio data to the right earphone, and the playback content of the left channel audio data and the right channel audio data are the same, for example, they can be the left channel audio data and the right channel audio data of the same song.
[0170] For example, the pairing identifier is SIRK and the first headset is a Bluetooth headset. Figure 5 , which shows a schematic diagram of a SIRK configuration process involved in an embodiment of the present application. Figure 5 As shown, the process steps are as follows:
[0171] S51, the user places two Bluetooth headsets into the headset storage box; wherein the two Bluetooth headsets are of the same model, or the two Bluetooth headsets are of different models but both are compatible with the headset storage box;
[0172] S52, the earphone storage box detects a trigger event, such as detecting a preset operation (for example, detecting a long press of a button in the earphone storage box);
[0173] S53, after the earphone storage box detects the trigger event, it reads the SIRKs saved by the two Bluetooth earphones respectively;
[0174] S54, the earphone storage box compares the read SIRK with the locally preset SIRK to determine whether the SIRKs of the two Bluetooth earphones are the same as the locally preset SIRK;
[0175] S55, the earphone storage box writes the preset SIRK into the Bluetooth earphone with a different SIRK;
[0176] S56, when two Bluetooth headsets are in use, they can be identified as two headsets in the same coordination set by the audio source device through the SIRK.
[0177] When the SIRKs in the two Bluetooth headsets are the same, the two Bluetooth headsets belong to the same coordination set, that is, they constitute the same pair of headsets.
[0178] For example, Figure 4 For example, the earphones 41 and 45 and the earphone storage box 44 are preset with SIRK when leaving the factory and stored in the memories 42 and 48. SIRK is readable and writable in the earphones 41 and 45 and the earphone storage box 44.
[0179] SIRK is a 128-bit random number, which indicates that the two earphones are in a coordination set, that is, they form a pair of earphones. The earphones in the same coordination set can respond to the instructions or other data of the mobile phone in a coordinated manner, such as realizing synchronous volume adjustment.
[0180] After the earphones 41 and 45 are placed in the earphone storage box 44, the earphone storage box processing chip 47 can read the SIRK stored in 42 of the earphones through the communication interfaces 43 and 46. The earphone storage box processing chip 47 can write the SIRK preset in the storage box memory 48 in the earphone storage box 44 into the earphones 41 and 45 through the communication interfaces 43 and 46, and store it in the memory 42.
[0181] A mobile phone or other audio source device can be connected to earphones 41 and 45 respectively, and recognize earphones 41 and 45 as earphones in the same coordination set.
[0182] Step 304: in response to obtaining the second instruction, update the first pairing identifier.
[0183] In a possible scenario of an embodiment of the present application, the audio source device may classify two pairs of Bluetooth headsets into the same device group and synchronously push audio data to the two pairs of Bluetooth headsets so that multiple users can listen to the audio source data pushed by the audio source device at the same time.
[0184] However, in some cases, the above application scenario may be a temporary use scenario, and in the subsequent time, the user may need to remove the permission of some headphones to receive the sound source data sent by the sound source device. In response to such needs, in the solution shown in the embodiment of the present application, the first pairing group identifier in the headphone storage box can be triggered to update by the second instruction. After the first pairing group identifier is updated, the user only needs to update the pairing group identifier of one or a pair of headphones accordingly, that is, the one or a pair of headphones can be removed from the same device group as other headphones.
[0185] For example, user A configures the same pairing group identifier 1 for two pairs of Bluetooth headsets through the scheme shown in steps 301 to 303, so that user A and user B can use the two pairs of headsets at the same time to receive audio data pushed by user A's mobile phone; thereafter, if user A no longer wants to share the audio data pushed by the mobile phone with user B, he only needs to update the pairing group identifier 1 in the headset storage box to the pairing group identifier 2 through the scheme shown in step 304, and then update the pairing group identifier of the pair of headsets he uses to the pairing group identifier 2 through the scheme shown in steps 301 to 303. When the mobile phone and the headset are connected again subsequently, the mobile phone will no longer recognize the two pairs of headsets as headsets in the same coordinated set.
[0186] In a possible implementation, in response to a time interval between a time when the first pairing identifier was last updated and a current time reaching a time interval threshold, acquiring the second instruction;
[0187] Among them, the above-mentioned second instruction for updating the first pairing identification can be automatically triggered by the pairing device based on the time element. For example, the first pairing identification is updated every 24 hours. When the time interval between the last update time of the first pairing identification and the current time reaches 24 hours, the earphone storage box can obtain the second instruction by itself.
[0188] In another possible implementation, in response to receiving a fourth operation on the earphone storage box, a second instruction is obtained.
[0189] The second instruction may also be actively triggered by the user, that is, the user triggers the update of the first pairing group identifier through an operation.
[0190] The fourth operation may be different from the first operation, the second operation and the third operation.
[0191] In a possible implementation, the updating of the first pairing identifier may be performed on a basic pairing identifier corresponding to the earphone storage box.
[0192] For example, taking the basic group identifier SIRK corresponding to the earphone storage box as an example, the group identifier of the earphone storage box can be obtained by concatenating SIRK and a random number. Each time the first group identifier is updated, SIRK can be kept unchanged, and the random number after SIRK can be updated to obtain the updated first group identifier.
[0193] To sum up, the scheme shown in the embodiment of the present application configures the pairing identification of the earphone through the pairing identification of the earphone storage box. Since the pairing identification can indicate the division of the sound source device into device groups, that is to say, different earphones can be freely combined based on the same earphone storage box configured with the same pairing identification, thereby improving the flexibility of combining the earphones and further improving the convenience of using multiple earphones together.
[0194] In this application Figure 3 In the scheme shown in the corresponding embodiment, after the first earphone is configured with the first pairing identifier based on the earphone storage box, when the first earphone is connected to the sound source device, the first pairing identifier can be provided to the sound source device, so that when the sound source device subsequently identifies other earphones that also have the first pairing identifier, the other earphones and the first earphone are identified as earphones in the same earphone device group.
[0195] The first earphone can be connected to the audio source device in at least the following two different ways.
[0196] Connection mode 1), from the first earphone side, the first earphone can be connected according to the above Figure 2 or Figure 3 For the earphone configured by the method shown, the method flow of connecting the earphone in the first earphone may include the following:
[0197] The first earphone broadcasts the connection information of the first earphone; in response to receiving a first connection request sent by the sound source device based on the connection information, the first earphone establishes a connection between the first earphone and the sound source device; the first earphone provides a first pairing group identifier to the sound source device, so that the sound source device identifies the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier; the first earphone receives audio data sent by the sound source device to the earphones in the earphone device group.
[0198] Correspondingly, from the perspective of the audio source device, the method flow for connecting the first earphone in the audio source device may include the following:
[0199] Receive connection information broadcast by the first headset; send a first connection request based on the connection information, where the first connection request is used to establish a connection between the first headset and the sound source device; receive the first pairing group identifier provided by the first headset; identify the first headset as one of the headsets in the headset device group corresponding to the first pairing group identifier; and send audio data to the headsets in the headset device group.
[0200] In this application Figure 3 In the scheme shown in the corresponding embodiment, after the first earphone is configured with a first pairing group identifier based on the earphone storage box, when the first earphone is connected to the sound source device, the first earphone can also provide the sound source device with resolvable information that is parsed through the first pairing group identifier, so that when the sound source device is already connected to other earphones having the first pairing group identifier, it can identify whether the first earphone and other earphones belong to the same earphone device group through the parsing process of the resolvable information.
[0201] Connection mode 2), from the first earphone side, the method flow of connecting the earphone in the first earphone may include the following:
[0202] The first earphone broadcasts the connection information and the resolvable identifier of the first earphone; in response to receiving a second connection request sent by the sound source device based on the connection information, a connection between the first earphone and the sound source device is established; the second connection request is sent after the sound source device successfully resolves the resolvable identifier through the first pairing group identifier provided by other earphones and identifies the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier; and audio data sent by the sound source device to the earphones in the earphone device group is received.
[0203] Correspondingly, from the perspective of the audio source device, the method flow for connecting the first earphone in the audio source device may include the following:
[0204] Receive the connection information and the resolvable identifier broadcast by the first headset; if the resolvable identifier is successfully resolved through the first pairing group identifier provided by other headsets, identify the first headset as one of the headsets in the headset device group corresponding to the first pairing group identifier; send a second connection request to the first headset, where the second connection request is used to establish a connection between the first headset and the sound source device; and send audio data to the headsets in the headset device group.
[0205] Please refer to Figure 6 , which shows a flow chart of a method for configuring headphones based on a headphone storage box provided by an exemplary embodiment of the present application. Figure 6 As shown, the process may include the following steps.
[0206] S61, one earphone (such as the left earphone) broadcasts its connection information (such as name and address) so that the mobile phone and other audio source devices can discover it;
[0207] If you want to connect a pair of headphones to your mobile phone, you can connect one earphone first, and then determine whether the other earphone is the same pair of headphones.
[0208] S62, after the mobile phone or other audio source device discovers the left earphone by the name of the left earphone, it connects to the left earphone;
[0209] S63, after the connection is successful, the mobile phone reads the SIRK stored in the left earphone through the Coordinated Set Identification Service (CSIS) instantiated in the left earphone, and stores it in the audio source device such as the mobile phone;
[0210] S64, the other earphone (such as the right earphone) sends a broadcast packet with a resolvable set identifier (RSI) (the broadcast packet may also include connection information) for the mobile phone and other audio source devices to discover and parse;
[0211] Among them, RSI is generated using SIRK and can be parsed by SIRK to determine whether different members of a coordination set are in the same coordination set.
[0212] S65, after the mobile phone or other audio source device finds the broadcast packet in S64, it uses the saved SIRK to parse the RSI. If the parsing is successful, it means that the right earphone and the connected left earphone are in the same coordination set, that is, they form a pair of earphones.
[0213] In a possible implementation, the audio source device and the first earphone can be connected using the above connection method 1) or connection method 2) based on the master-slave property of the first earphone in a pair of earphones. Figure 6 When the left earphone in the left earphone is connected to the audio source device, the audio source device and the first earphone are connected using the above connection method 1). Accordingly, when the first earphone is a slave earphone in a pair of earphones (for example, the above Figure 6 When the right earphone is used, the audio source device and the first earphone are connected using the above-mentioned connection method 2).
[0214] In another possible implementation, the audio source device and the first earphone may also be connected using the above connection method 1) or connection method 2) based on the connection sequence of the first earphone in a pair of earphones. Figure 6When the left earphone in the left earphone is connected to the sound source device, the sound source device and the first earphone are connected using the above connection method 1). Accordingly, when the first earphone is not the first earphone in a pair of earphones connected to the sound source device (for example, the above Figure 6 When the right earphone is used, the audio source device and the first earphone are connected using the above-mentioned connection method 2).
[0215] To sum up, the scheme shown in the embodiment of the present application configures the pairing identification of the earphone through the pairing identification of the earphone storage box. Since the pairing identification can indicate the division of the sound source device into device groups, that is to say, different earphones can be freely combined based on the same earphone storage box configured with the same pairing identification, thereby improving the flexibility of combining the earphones and further improving the convenience of using multiple earphones together.
[0216] Among them, the scheme shown in the above embodiment of the present application can be used not only for configuring the earphones in the earphone storage box, but also for configuring the earphones in other configuration devices (such as mobile phones, personal computers, etc.). Among them, the method of configuring the earphones in other configuration devices is similar to the method of configuring the earphones in the earphone storage box, and will not be repeated here.
[0217] Please refer to Figure 7 , which shows a schematic diagram of the structure of a device for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application. The device includes:
[0218] A first instruction acquisition module 701, used to acquire a first instruction, where the first instruction is used to trigger configuration of a first headset;
[0219] An identification reading module 702 is used to read a first pairing group identification of the earphone storage box;
[0220] Configuration module 703 is used to configure the first pairing identifier to the first earphone; the first pairing identifier is used to instruct the sound source device to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing identifier when the first earphone is connected to the sound source device; the sound source device is used to send audio data to each earphone in the earphone device group.
[0221] In one possible implementation,
[0222] The first instruction acquisition module 701 is used to acquire the first instruction in response to the first earphone being placed in the earphone storage box.
[0223] In a possible implementation, the first instruction acquisition module 701 is configured to acquire the first instruction in response to the first earphone being placed in the earphone storage box and satisfying a predetermined condition.
[0224] In a possible implementation manner, the predetermined condition includes at least one of the following conditions:
[0225] receiving a first operation performed by a user on the earphone storage box;
[0226] Another earphone storage position in the earphone storage box other than the earphone storage position where the first earphone is located is empty, and a second operation performed by the user on the earphone storage box is received;
[0227] the current pairing identifier of the second earphone in the earphone storage box is the same as the current pairing identifier of the first earphone, and a third operation performed by the user on the earphone storage box is received;
[0228] A second earphone is stored in another earphone storage position in the earphone storage box except the earphone storage position where the first earphone is located; and
[0229] The pairing identifier of the second earphone in the earphone storage box is the first pairing identifier.
[0230] In a possible implementation, the earphone storage box includes a near field communication function;
[0231] The first instruction acquisition module 701 is configured to acquire the first instruction in response to the first earphone being located within the near field communication range of the earphone storage box.
[0232] In a possible implementation, the earphone storage box and the first earphone respectively include a wired communication interface;
[0233] The first instruction acquisition module 701 is used to acquire the first instruction in response to the earphone storage box being connected to the first earphone through the wired communication interface.
[0234] In a possible implementation manner, the device further includes:
[0235] The identifier updating module is used to update the first pairing group identifier in response to obtaining the second instruction.
[0236] In a possible implementation manner, the device further includes:
[0237] The second instruction acquisition module is used to:
[0238] In response to the time interval between the time when the first pairing identifier was last updated and the current time reaching a time interval threshold, the second instruction is obtained; or in response to receiving a fourth operation of the user, the second instruction is obtained.
[0239] In a possible implementation manner, the configuration module 703 is configured to update the pairing identifier of the first headset to the first pairing identifier in response to the original pairing identifier of the first headset being different from the first pairing identifier.
[0240] In a possible implementation manner, the first group identifier is a set identity resolution key SIRK.
[0241] To sum up, the scheme shown in the embodiment of the present application configures the pairing identification of the earphone through the pairing identification of the earphone storage box. Since the pairing identification can indicate the division of the sound source device into device groups, that is to say, different earphones can be freely combined through the same earphone storage box configured with the same pairing identification, thereby improving the flexibility of combining the earphones and further improving the convenience of using multiple earphones together.
[0242] Please refer to Figure 8 , which shows a schematic diagram of the structure of a device for connecting headphones in a first headphone provided by an exemplary embodiment of the present application. The first headphone is configured according to the method for configuring headphones in a headphone storage box, and the device includes:
[0243] A broadcast module 801 is used to broadcast connection information of the first headset;
[0244] A connection establishing module 802, configured to establish a connection between the first headset and the sound source device in response to receiving a first connection request sent by the sound source device based on the connection information;
[0245] The identification providing module 803 is used to provide a first pairing group identification to the sound source device, so that the sound source device recognizes the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identification;
[0246] The audio data receiving module 804 is used to receive the audio data sent by the audio source device to the headphones in the headphone device group.
[0247] To sum up, the scheme shown in the embodiment of the present application configures the pairing identification of the earphone through the pairing identification of the earphone storage box. Since the pairing identification can indicate the division of the sound source device into device groups, that is to say, different earphones can be freely combined through the same earphone storage box configured with the same pairing identification, thereby improving the flexibility of combining the earphones and further improving the convenience of using multiple earphones together.
[0248] Please refer to Fig. 9, which shows a schematic structural diagram of a device for connecting a first earphone in an audio source device provided by an exemplary embodiment of the present application, wherein the first earphone is configured according to the above-mentioned method for configuring an earphone in an earphone storage box, and the device includes:
[0249] A broadcast receiving module 901, configured to receive connection information broadcast by the first headset;
[0250] A connection request sending module 902, configured to send a first connection request based on the connection information, wherein the first connection request is used to establish a connection between the first headset and the audio source device;
[0251] An identification receiving module 903 is used to receive the first pairing group identification provided by the first headset;
[0252] An earphone identification module 904 is used to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier;
[0253] The audio data sending module 905 is used to send audio data to the headphones in the headphone device group.
[0254] Please refer to Fig.10 , which shows a schematic diagram of the structure of a device for connecting headphones in a first headphone provided by an exemplary embodiment of the present application. The first headphone is configured according to the method for configuring headphones in a headphone storage box, and the device includes:
[0255] A broadcast module 1001, configured to broadcast connection information of a first headset and a resolvable identifier;
[0256] The connection establishing module 1002 is configured to establish a connection between the first headset and the audio source device in response to receiving a second connection request sent by the audio source device based on the connection information; the second connection request is sent after the audio source device successfully resolves the resolvable identifier through the first pairing group identifier provided by other headphones and identifies the first headset as one of the headphones in the headphone device group corresponding to the first pairing group identifier;
[0257] The audio data receiving module 1003 is used to receive the audio data sent by the sound source device to the headphones in the headphone device group.
[0258] Please refer to Fig.11 , which shows a schematic structural diagram of a device for connecting a first earphone in an audio source device provided by an exemplary embodiment of the present application, wherein the first earphone is configured according to the above-mentioned method for configuring an earphone in an earphone storage box, and the device includes:
[0259] A broadcast receiving module 1101, configured to receive connection information and a resolvable identifier broadcast by the first headset;
[0260] The headset identification module 1102 is configured to identify the first headset as one of the headset devices in the headset device group corresponding to the first pairing group identifier when the resolvable identifier is successfully resolved by the first pairing group identifier provided by other headsets;
[0261] A connection request sending module 1103, configured to send a second connection request to the first headset, wherein the second connection request is used to establish a connection between the first headset and the audio source device;
[0262] The audio data sending module 1104 is configured to send audio data to the headphones in the headphone device group.
[0263] The present application also provides a processing chip, in which the device as shown in the above embodiment is provided. When the processing chip is implemented in an earphone storage box, it is used to read the first pairing group identifier of the earphone storage box and assign the first pairing group identifier to the first earphone, so that the audio source device can identify multiple earphones corresponding to the same pairing group identifier as earphones in the same earphone device group, thereby performing synchronous audio data push.
[0264] Please refer to Fig.12 , which shows a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application. The computer device includes a processor 1210 and a memory 1220, the processor 1210 and the memory 1220 are connected via a bus 1230, and the processor 1210 is used to execute computer instructions stored in the memory 1220 to implement the method of configuring headphones in the headphone storage box, the method of connecting headphones in the first headphone, or the method of connecting the first headphone in the sound source device as described in the above aspects.
[0265] When the processor 1210 is used to execute the computer instructions stored in the memory 1220 to implement the method for configuring earphones in the earphone storage box as described in the above aspects, Fig.12 As shown, the memory 1220 also stores a pairing identifier corresponding to the computer device, and the pairing identifier can be configured by the processor 1210 to headphones other than the computer device.
[0266] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement all or part of the steps of the method shown in the above embodiments.
[0267] The present application also provides a computer program product, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes all or part of the steps of the method shown in the above embodiments.
[0268] The present application also provides a computer program, which is executed by a processor of a computer device to implement all or part of the steps of the methods shown in the above embodiments.
[0269] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0270] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for arranging earphones in an earphone storage box, It is characterized in that The method comprises: Obtaining a first instruction, where the first instruction is used to trigger configuration of a first headset; Reading a first pairing group identifier of the earphone storage box; The first pairing identifier is configured to the first earphone; the first pairing identifier is used to instruct the sound source device to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing identifier when the first earphone is connected to the sound source device; the sound source device is used to send audio data to the earphones in the earphone device group.
2. The method according to claim 1, It is characterized in that The obtaining of the first instruction comprises: In response to the first earphone being placed in the earphone storage box, the first instruction is acquired.
3. The method according to claim 2, It is characterized in that In response to the first earphone being placed in the earphone storage box, acquiring the first instruction includes: In response to the first earphone being placed in the earphone storage box and satisfying a predetermined condition, the first instruction is acquired.
4. The method according to claim 3, It is characterized in that The predetermined condition includes at least one of the following conditions: receiving a first operation performed by a user on the earphone storage box; Another earphone storage position in the earphone storage box other than the earphone storage position where the first earphone is located is empty, and a second operation performed by the user on the earphone storage box is received; the current pairing identifier of the second earphone in the earphone storage box is the same as the current pairing identifier of the first earphone, and a third operation performed by the user on the earphone storage box is received; A second earphone is stored in another earphone storage position in the earphone storage box except the earphone storage position where the first earphone is located; and The pairing identifier of the second earphone in the earphone storage box is the first pairing identifier.
5. The method according to claim 1, It is characterized in that The earphone storage box includes a near field communication function; and obtaining the first instruction includes: In response to the first earphone being located within a near field communication range of the earphone storage box, acquiring the first instruction.
6. The method according to claim 1, It is characterized in that The earphone storage box and the first earphone each include a wired communication interface; and obtaining the first instruction includes: In response to the earphone storage box being connected to the first earphone through the wired communication interface, the first instruction is acquired.
7. The method according to claim 1, It is characterized in that The method further comprises: In response to obtaining the second instruction, the first pairing identifier is updated.
8. The method according to claim 7, It is characterized in that The method further comprises: In response to the time interval between the time when the first pairing identifier was last updated and the current time reaching a time interval threshold, acquiring the second instruction; or, In response to receiving a fourth operation of the user, the second instruction is acquired.
9. The method according to claim 1, It is characterized in that The configuring the first pairing identifier to the first headset includes: In response to the current pairing identifier of the first headset being different from the first pairing identifier, the pairing identifier of the first headset is updated to the first pairing identifier.
10. The method according to any one of claims 1 to 9, It is characterized in that The first group identifier is a set identity resolution key SIRK.
11. A method for connecting an earphone in a first earphone, It is characterized in that The first earphone is configured by the method according to any one of claims 1 to 10, the method comprising: Broadcasting the connection information of the first headset; In response to receiving a first connection request sent by the sound source device based on the connection information, establishing a connection between the first headset and the sound source device; Providing the first pairing group identifier to the sound source device so that the sound source device recognizes the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier; The audio data sent by the sound source device to the headphones in the headphone device group is received.
12. A method for connecting a first earphone in an audio source device, It is characterized in that The first earphone is configured by the method according to any one of claims 1 to 10, the method comprising: Receiving connection information broadcast by the first headset; Sending a first connection request based on the connection information, where the first connection request is used to establish a connection between the first headset and the audio source device; receiving the first pairing group identifier provided by the first headset; Identify the first headset as a headset in the headset device group corresponding to the first pairing identifier; The audio data is sent to the headphones in the headphone device group.
13. A method for connecting an earphone in a first earphone, It is characterized in that The first earphone is configured by the method according to any one of claims 1 to 10, the method comprising: Broadcasting the connection information of the first headset and the resolvable identifier; In response to receiving a second connection request sent by the sound source device based on the connection information, establishing a connection between the first headset and the sound source device; the second connection request is sent after the sound source device successfully resolves the resolvable identifier through the first pairing group identifier provided by other headsets and identifies the first headset as one of the headsets in the headset device group corresponding to the first pairing group identifier; The audio data sent by the sound source device to the headphones in the headphone device group is received.
14. A method for connecting a first earphone in an audio source device, It is characterized in that The first earphone is configured by the method according to any one of claims 1 to 10, the method comprising: Receiving the connection information and the resolvable identifier broadcast by the first headset; When the resolvable identifier is successfully resolved by the first pairing group identifier provided by other earphones, identifying the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier; Sending a second connection request to the first headset, where the second connection request is used to establish a connection between the first headset and the audio source device; The audio data is sent to the headphones in the headphone device group.
15. A device for arranging earphones in an earphone storage box, It is characterized in that The device comprises: A first instruction acquisition module, used to acquire a first instruction, where the first instruction is used to trigger configuration of the first headset; An identification reading module, used for reading a first pairing group identification of the earphone storage box; A configuration module is used to configure the first pairing identifier to the first earphone; the first pairing identifier is used to instruct the sound source device to identify the first earphone as one of the earphones in the earphone device group corresponding to the first pairing identifier when the first earphone is connected to the sound source device; the sound source device is used to send audio data to the earphones in the earphone device group.
16. A computer device, It is characterized in that The computer device includes a processor and a memory, and the processor and the memory are connected via a bus; The processor is used to execute computer instructions stored in the memory to implement the method according to any one of claims 1 to 14.
