WO2022237353A1 - 在耳机收纳盒中配置耳机的方法、装置、设备及程序产品 - Google Patents

在耳机收纳盒中配置耳机的方法、装置、设备及程序产品 Download PDF

Info

Publication number
WO2022237353A1
WO2022237353A1 PCT/CN2022/083151 CN2022083151W WO2022237353A1 WO 2022237353 A1 WO2022237353 A1 WO 2022237353A1 CN 2022083151 W CN2022083151 W CN 2022083151W WO 2022237353 A1 WO2022237353 A1 WO 2022237353A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
pairing
source device
storage box
earphones
Prior art date
Application number
PCT/CN2022/083151
Other languages
English (en)
French (fr)
Inventor
许超杰
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022237353A1 publication Critical patent/WO2022237353A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • AHUMAN NECESSITIES
    • A45HAND OR TRAVELLING ARTICLES
    • A45CPURSES; LUGGAGE; HAND CARRIED BAGS
    • A45C11/00Receptacles for purposes not provided for in groups A45C1/00-A45C9/00
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • AHUMAN NECESSITIES
    • A45HAND OR TRAVELLING ARTICLES
    • A45CPURSES; LUGGAGE; HAND CARRIED BAGS
    • A45C11/00Receptacles for purposes not provided for in groups A45C1/00-A45C9/00
    • A45C2011/001Receptacles for purposes not provided for in groups A45C1/00-A45C9/00 for portable audio devices, e.g. headphones or MP3-players

Definitions

  • the embodiments of the present application relate to the field of chip technology, and in particular to a method, device, device, and program product for configuring earphones in an earphone storage box.
  • a pair of wireless earphones is pre-matched before leaving the factory.
  • one of the earphones first establishes a wireless connection with a sound source device (such as a mobile phone), and transfers the connection information of the other wireless earphone ( For example, the address) is sent to the audio source device, and the audio source device establishes a connection with another wireless earphone according to the connection information, and recognizes the two wireless earphones as a pair of earphones.
  • the pairing of the multiple earphones is completed before leaving the factory.
  • Embodiments of the present application provide a method, device, device, and program product for configuring earphones in an earphone storage box.
  • the technical solutions include:
  • the embodiment of the present application provides a method for configuring earphones in an earphone storage box, the method is executed by the earphone storage box, and the method includes:
  • the first pairing group identifier is used to instruct the sound source device to recognize the first earphone as The first pairing group identifies an earphone in the corresponding earphone device group; the audio source device is used to send audio data to the earphone in the earphone device group.
  • the embodiment of the present application provides a method for connecting an earphone in the first earphone, the method is executed by the first earphone, and the first earphone is configured according to the above-mentioned method of configuring the earphone in the earphone storage box,
  • the methods include:
  • the sound source device recognizes the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier
  • the audio data sent by the audio source device to the earphones in the earphone device group is received.
  • the embodiment of the present application provides a method for connecting a first earphone in a sound source device, the method is executed by the sound source device, and the first earphone is configured according to the above-mentioned method of configuring earphones in an earphone storage box,
  • the methods include:
  • Audio data is sent to the earphones in the earphone device group.
  • the embodiment of the present application provides a method for connecting an earphone in the first earphone, the method is executed by the first earphone, and the first earphone is configured according to the above-mentioned method of configuring the earphone in the earphone storage box,
  • the methods include:
  • connection information Broadcasting the connection information and resolvable identifier of the first earphone
  • the first pairing group identifier successfully resolves the resolvable identifier, and the first earphone is identified as an earphone in the earphone device group corresponding to the first pairing group identifier;
  • the audio data sent by the audio source device to the earphones in the earphone device group is received.
  • the embodiment of the present application provides a method for connecting a first earphone in a sound source device, the method is executed by the sound source device, and the first earphone is configured according to the above-mentioned method of configuring earphones in an earphone storage box,
  • the methods include:
  • connection information broadcast by the first earphone and the resolvable identifier
  • the first pairing group identifier provided by other earphones successfully resolves the resolvable identifier, identify the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier;
  • Audio data is sent to the earphones in the earphone device group.
  • an embodiment of the present application provides a device for configuring earphones in an earphone storage box, and the device includes:
  • a first instruction acquiring module configured to acquire a first instruction, and the first instruction is used to trigger configuration of the first earphone;
  • An identification reading module configured to read the first pairing identification of the earphone storage box
  • a configuration module configured to configure the first pairing group identifier to the first earphone; the first pairing group identifier is used to instruct the audio source device to configure the audio source device when the first earphone is connected to the audio source device.
  • the first earphone is identified as an earphone in the earphone device group corresponding to the first pairing group identifier; the sound source device is used to send audio data to each earphone in the device group.
  • an embodiment of the present application provides a device for connecting an earphone to a first earphone, the first earphone is configured according to the above-mentioned method for configuring an earphone in an earphone storage box, and the device includes:
  • the broadcast module is used to broadcast the connection information of the first earphone
  • a connection establishment module configured to establish a connection between the first earphone and the sound source device in response to receiving a first connection request sent by the sound source device based on the connection information
  • An identifier providing module configured to provide the sound source device with a first pairing group identifier, so that the sound source device recognizes the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier;
  • the audio data receiving module is configured to receive the audio data sent by the sound source device to the earphones in the earphone device group.
  • an embodiment of the present application provides an apparatus for connecting a first earphone in a sound source device, the first earphone is configured according to the above-mentioned method for configuring an earphone in an earphone storage box, and the apparatus includes:
  • a broadcast receiving module configured to receive connection information broadcast by the first earphone
  • a connection request sending module configured to send a first connection request based on the connection information, where the first connection request is used to establish a connection between the first earphone and the sound source device;
  • an identification receiving module configured to receive the first pairing identification provided by the first earphone
  • An earphone identification module configured to identify the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier
  • An audio data sending module configured to send audio data to the earphones in the earphone device group.
  • an embodiment of the present application provides a device for connecting an earphone to a first earphone, the first earphone is configured according to the above-mentioned method for configuring an earphone in an earphone storage box, and the device includes:
  • a broadcast module configured to broadcast connection information and a resolvable identifier of the first earphone
  • a connection establishment module configured to establish a connection between the first earphone and the sound source device in response to receiving a second connection request sent by the sound source device based on the connection information; the second connection request is the sound source
  • the device successfully parses the resolvable identifier through the first pairing group identifier provided by other earphones, and recognizes the first earphone as one of the earphones in the earphone device group corresponding to the first pairing group identifier.
  • the audio data receiving module is configured to receive the audio data sent by the sound source device to the earphones in the earphone device group.
  • an embodiment of the present application provides an apparatus for connecting a first earphone in a sound source device, the first earphone is configured according to the above-mentioned method for configuring an earphone in an earphone storage box, and the apparatus includes:
  • a broadcast receiving module configured to receive the connection information broadcast by the first earphone and the resolvable identifier
  • An earphone identification module configured to identify the first earphone as the earphone device corresponding to the first pairing ID when the resolvable ID is successfully resolved by the first pairing ID provided by other earphones one earphone in the group;
  • a connection request sending module configured to send a second connection request to the first earphone, where the second connection request is used to establish a connection between the first earphone and the audio source device;
  • An audio data sending module configured to send audio data to the earphones in the earphone device group.
  • the embodiment of the present application provides a processing chip, the processing chip is provided with the device for configuring the earphone in the earphone storage box, the device for connecting the earphone to the first earphone or the device for connecting the earphone in the sound source Means in the device for connecting the first earphone.
  • an embodiment of the present application provides a computer device, the computer device includes a processor and a memory, the processor and the memory are connected through a bus; the processor is used to execute the memory stored in the memory computer instructions to implement the method for configuring an earphone in an earphone storage box, the method for connecting an earphone to a first earphone, or the method for connecting a first earphone to a sound source device as described in the above aspects.
  • the embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to realize the above-mentioned configuration of the earphone in the earphone storage box.
  • a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to realize the above-mentioned configuration of the earphone in the earphone storage box.
  • the present application provides a computer program product comprising computer instructions stored in a computer readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the above-mentioned method for configuring an earphone in the earphone storage box and the method for connecting the earphone to the first earphone Or perform the method of connecting the first earphone in the audio source device.
  • the present application provides a computer program, which is executed by a processor of a computer device, so as to implement the above-mentioned method for arranging an earphone in an earphone storage box, the method for connecting an earphone in a first earphone, or the method for connecting an earphone in a sound source A method for connecting the first earphone in the device.
  • Fig. 1 is a system architecture diagram of a wireless audio playback system provided by an exemplary embodiment of the present application
  • Fig. 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;
  • Fig. 3 is a flowchart of a method for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application
  • Fig. 4 is a schematic structural diagram of an earphone storage box and an earphone related to the embodiment shown in Fig. 3;
  • FIG. 5 is a schematic diagram of a SIRK configuration process involved in the embodiment shown in FIG. 3;
  • FIG. 6 is a flow chart of a method for configuring headphones based on a headphone storage box provided by an exemplary embodiment of the present application
  • Fig. 7 is a schematic structural diagram of a device for configuring earphones in an earphone storage box provided by an exemplary embodiment of the present application;
  • Fig. 8 is a schematic structural diagram of an apparatus for connecting an earphone in a first earphone according to an exemplary embodiment of the present application
  • Fig. 9 is a schematic structural diagram of an apparatus for connecting a first earphone in a sound source device according to an exemplary embodiment of the present application.
  • Fig. 10 is a schematic structural diagram of an apparatus for connecting an earphone in a first earphone according to an exemplary embodiment of the present application
  • Fig. 11 is a schematic structural diagram of an apparatus for connecting a first earphone in a sound source device according to an exemplary embodiment of the present application
  • Fig. 12 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.
  • the "indication" mentioned in the embodiments of the present application may be a direct indication, may also be an indirect indication, and may also mean that there is an association relationship.
  • a indicates B which can mean that A directly indicates B, for example, B can be obtained through A; it can also indicate that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also indicate that there is an association between A and B relation.
  • the term "corresponding" may indicate that there is a direct or indirect correspondence between the two, or that there is an association between the two, or that it indicates and is indicated, configuration and is configuration etc.
  • predefinition can be realized by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in devices (for example, including terminal devices and network devices).
  • the implementation method is not limited.
  • pre-defined may refer to defined in the protocol.
  • BT Bluetooth
  • TWS True Wireless Stereo
  • the wireless headset When the wireless headset is in use, it needs to establish a wireless connection with the audio source device, and play the audio data pushed by the audio source device.
  • FIG. 1 shows a system architecture diagram of a wireless audio playback system provided by an exemplary embodiment of the present application.
  • the system includes a wireless headset 110 and a sound source device 120 .
  • the wireless earphone 110 may be a Bluetooth earphone, or an earphone supporting other short-distance wireless communication protocols (such as Wi-Fi protocol, ZigBee protocol, etc., which are not limited in this application) other than Bluetooth.
  • other short-distance wireless communication protocols such as Wi-Fi protocol, ZigBee protocol, etc., which are not limited in this application
  • the wireless earphone 110 has a function of playing audio, for example, the wireless earphone 110 is provided with a speaker component.
  • the sound source device 120 may be a computer device that supports the same short-distance wireless communication protocol as the wireless earphone 110, for example, the sound source device 120 may be a smart phone, a tablet computer, a smart TV, and a personal computer, etc.
  • the sound source device 120 can push audio data to the wireless earphone 110, and the wireless earphone plays the audio data.
  • 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, volume adjustment, answering/ Hang up the phone and so on.
  • the above system further includes a configuration device 130 .
  • the configuration device 130 has the function of configuring the wireless headset 110 .
  • the configuration device 130 may send configuration data to the wireless headset 110 to configure related parameters or attributes in the wireless headset 110.
  • the configuration device 130 can be implemented as a computer device such as an earphone storage box, a smart phone, a tablet computer, or a personal computer.
  • the first pairing group identifier is used to instruct the sound source device to recognize the first earphone as the earphone device group corresponding to the first pairing group identifier when the first earphone is connected to the audio source device A headset; the source device is used to send audio data to the headset in the headset device group.
  • obtain the first instruction including:
  • the first instruction is acquired.
  • the first instruction is acquired, including:
  • the first instruction is acquired.
  • the predetermined conditions include at least one of the following conditions:
  • 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;
  • the current pairing identification of the second earphone in the earphone storage box is the same as the current pairing identification of the first earphone, and the 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;
  • the matching identification of the second earphone in the earphone storage box is the first matching identification.
  • the earphone storage box includes a near-field communication function; get the first instruction, including:
  • the first instruction is acquired.
  • the earphone storage box and the first earphone respectively include a wired communication interface; obtaining the first instruction includes:
  • the first instruction is acquired.
  • the method also includes:
  • the first matching group identifier is updated.
  • the method also includes:
  • the second instruction is acquired.
  • configuring the first matching group identifier to the first earphone includes:
  • the pairing ID of the first earphone is updated to the first pairing ID.
  • the first matching group identifier is a set identity resolution key SIRK.
  • the audio source device Provide the first pairing group identifier to the audio source device, so that the audio source device recognizes the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier;
  • connection information Broadcasting the connection information and the resolvable identifier of the first earphone
  • the second connection request is the parsing of the first pairing identifier provided by the audio source device through other earphones to the resolvable identifier Success, and the first earphone is identified as an earphone in the earphone device group corresponding to the first pairing group identifier and then sent;
  • connection information broadcast by the first earphone and the resolvable identifier
  • the first earphone is identified as an earphone in the earphone device group corresponding to the first pairing group identifier
  • FIG. 2 shows a flow chart of a method for configuring an earphone in an earphone storage box provided by an exemplary embodiment of the present application.
  • This method can be used in the earphone storage box.
  • the method may include the following steps.
  • Step 201 acquire a first instruction, and the first instruction is used to trigger configuration of the first earphone.
  • the above-mentioned first instruction is an instruction corresponding to a user operation; for example, the above-mentioned first instruction is an operation signal received from a user operation, or, the above-mentioned first instruction is Generated instructions.
  • the above-mentioned first instruction is an instruction automatically triggered by the background; Instructions generated by the result.
  • the above-mentioned first instruction is an instruction obtained under the joint influence of user operations and background triggers; for example, the above-mentioned first instruction is a conditional judgment based on specified data after receiving an operation signal from a user operation or, the above-mentioned first instruction is an instruction generated based on the judgment result after receiving the operation signal operated by the user, performing condition judgment based on the specified data, and obtaining the judgment result.
  • Step 202 read the first pairing identification of the earphone storage box.
  • the earphone storage box may read the first pairing identifier pre-stored in a memory of the earphone storage box.
  • the earphone storage box can also read the first pairing identification from outside the earphone storage box; for example, when the earphone storage box is connected to the Internet, it can read it from a server on the network side.
  • the first pairing group identifier or, when the earphone storage box is connected to another computer device through a direct connection or a local area network, the earphone storage box can read the first pairing group identifier from another computer device.
  • step 201 and step 202 can be executed synchronously, or the above step 201 can be executed after step 202, or the above step 201 can also be executed before step 202, the embodiment of the present application does not have the same order of execution of the above step 201 and step 202 Do limited.
  • different earphone storage boxes correspond to different pairing identifications.
  • Step 203 assigning the first pairing identifier to the first earphone; the first pairing identifier is used to instruct the audio source device to recognize the first earphone as the first earphone when the first earphone is connected to the audio source device.
  • the pairing group identifies an earphone in the corresponding earphone device group; the audio source device is used to send audio data to the earphone in the earphone device group.
  • the first pairing identification may be provided to the sound source device.
  • the audio source device determines the device group to which the first earphone belongs through the first group identification sent by the first earphone, and for each earphone in the device group, the audio source device uniformly performs audio push service, for example, sends Each earphone in the group pushes the same audio data synchronously.
  • the configuration device can configure the same group identification for multiple earphones, so that after the sound source device establishes a connection with multiple earphones, it divides the multiple earphones into the same device group, and sends The above-mentioned multiple earphones push the same audio data synchronously, so that the free matching of multiple earphones can be realized without relying on the factory configuration.
  • the scheme shown in the embodiment of the present application configures the pairing grouping mark of the earphone through the grouping mark of the earphone storage box, because the grouping mark can instruct the audio source device to divide the device group
  • the earphones can be combined freely based on the same pairing logo configured in the same earphone storage box, thereby improving the flexibility of combining earphones and improving the convenience of using multiple earphones together.
  • user A originally had a pair of bluetooth earphones, and the left earphone in this pair of bluetooth earphones was damaged (or lost) during user A's use.
  • the newly purchased earphone and the existing right earphone can be recognized as the same pair of earphones.
  • a pair of Bluetooth headsets and A pair of Bluetooth headsets of user B is configured with the same group identification, and the subsequent audio source device can divide the two pairs of Bluetooth headsets into the same device group, and simultaneously push audio data to the two pairs of Bluetooth headsets.
  • FIG. 3 shows a flowchart of a method for configuring an earphone in an earphone storage box provided by an exemplary embodiment of the present application.
  • This method can be used in the earphone storage box.
  • the method may include the following steps.
  • Step 301 acquire a first instruction, where the first instruction is used to trigger configuration of the first earphone.
  • the above step of obtaining the first instruction includes:
  • the first instruction is acquired in response to the first earphone being placed in the earphone storage box.
  • the earphone storage box can determine that the first instruction has been obtained, and then determine that it needs to Configure the pairing ID of the first earphone.
  • the earphone storage box can detect whether the earphone is stored through at least one of a sensor, a communication interface, and a charging interface.
  • the aforementioned sensors may include a pressure sensor, a current sensor, etc.
  • the earphone storage box may detect whether an earphone is accommodated based on status data of the pressure sensor or the current sensor.
  • 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 can detect whether the earphone is stored through the communication status of the communication interface or the charging status of the charging interface.
  • FIG. 4 shows a schematic structural diagram of an earphone storage box and an earphone according to an embodiment of the present application.
  • the earphone storage box 44 there are two earphone storage positions in the earphone storage box 44, which are respectively used to accommodate the left earphone 41 and the right earphone 45, and the left earphone 41 and the right earphone 45 respectively contain an earphone communication interface 43, and the earphones are stored
  • the box 44 is provided with a receiving box communication interface 46 .
  • the earphone communication interface 43 in the right ear earphone 45 establishes communication with the storage box communication interface 46 at the storage position of the right ear earphone At this time, the earphone storage box 44 can determine that the right earphone is placed in the earphone storage box.
  • the first instruction is acquired in response to the first earphone being placed in the earphone storage box and meeting a predetermined condition.
  • the user does not necessarily need to configure the pairing identifier of the earphone when placing a certain earphone in the earphone storage box.
  • the user may want to use the earphone storage box for temporary storage or charging.
  • the earphone storage box can further determine whether to obtain the first instruction by means of detecting and judging the predetermined condition.
  • the above predetermined conditions may include but not limited to at least one of the following conditions:
  • the earphone storage box when the earphone storage box detects that the first earphone is stored, it may further determine whether the first instruction is obtained through user operations.
  • the first operation may include at least one of the following operations: pressing a specified button in the earphone storage box, pressing a specified button in the earphone storage box n times in succession (n is greater than or equal to 1, and n is an integer), long Press the designated button in the earphone storage box, close/open the earphone storage box, and control the earphone storage box to move in a specified trajectory, etc.
  • 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.
  • the earphone storage box 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 placed at a time), and when the user puts the first earphone into the earphone storage box, the earphone storage box There may be only this earphone. At this time, the user may want to configure this earphone separately, or there may be follow-up operations, such as putting the other earphone into the storage box and configuring the two earphones. The earphones are configured at the same time, or the user may not want to configure this earphone.
  • the earphone storage box can further combine the user's operation to determine whether to obtain the first instruction; If the position is empty and the second operation is received, it is considered that the user wants to configure the first earphone currently stored, and the first instruction is determined to be obtained; If the other earphone storage location is empty, but the second operation has not been received, it is temporarily not considered that the first instruction has been obtained.
  • the above-mentioned second operation may be the same as or different from the first operation.
  • the current pairing identification of the second earphone in the earphone storage box is the same as the current pairing identification of the first earphone, and the third operation performed by the user on the earphone storage box is received.
  • the user In the process of using the earphone storage box to store the earphones, the user usually puts a pair of earphones into the earphone storage box, that is, the current pairing identification of the two earphones in the earphone storage box is the same.
  • this The pairing logo of the pair of earphones is the first pairing logo of the earphone storage box (that is, this pair of earphones originally belonged to the current earphone storage box).
  • the pairing logo of this pair of earphones is different from the earphone storage box.
  • the user just wants to borrow the headphone storage box for charging. In both cases, the headphone storage box is not required to reconfigure the pairing group logo of this pair of headphones. Misconfiguration of pairing identifiers.
  • 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 user operations to determine whether the first instruction has been obtained.
  • the third operation may be the same as or different from the first operation or the second operation.
  • the 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.
  • the earphone storage box can store two earphones at the same time as the condition for determining to obtain the first instruction, that is, by detecting whether two earphones are stored at the same time, from line to determine whether the first instruction was fetched.
  • the earphone storage box may not detect the two earphones. Whether the original pairing identifiers of the earphones are the same, and directly further combined with user operations to determine whether the first instruction is obtained. 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 has been obtained; if the earphone storage box detects that the first earphone and the second earphone are currently stored , but the third operation has not been received yet, the first instruction is not considered to be obtained for the time being.
  • the pairing identifier of the second earphone in the earphone storage box is the first pairing identifier.
  • the earphone storage box uses the condition of whether the two earphones stored at the same time contain an earphone with the same identification as the first pairing group as the condition for determining to obtain the first instruction, At this time, the other earphone in the earphone storage box is the first earphone.
  • the user can put the earphones and his original earphones into the earphone storage box corresponding to his original earphones, and the earphone storage box If it is detected that the pairing identifier of an earphone is the same as its own pairing identifier, it is determined that the first instruction has been acquired.
  • the earphone storage box can obtain the original pairing identification of the earphone through the communication interface with the earphone.
  • the earphone storage box 44 includes a processing chip 47, which is connected to the communication interface 46 of the storage box through a bus.
  • the original configuration identifier of the earphone is stored in the earphone memory 42 .
  • the earphone communication interface 43 in the right ear earphone 45 establishes a communication connection with the storage box communication interface 46 at the storage position of the right ear earphone
  • the earphone storage box 44 reads the earphone memory in the right ear earphone 45 through the processing chip 47. 42 Stored configuration identification.
  • the acquiring the first instruction includes:
  • the first instruction is acquired in response to the first earphone being within the near field communication range of the earphone storage box.
  • the form of the device for configuring the first earphone may not be limited to the earphone storage box, as long as both of them support near field communication (Near Field Communication, NFC), the group identification can be realized configuration.
  • NFC Near Field Communication
  • the earphone storage box when the NFC function of the mobile phone and the earphone storage box is turned on, and the earphone storage box detects that there is an earphone within the communication range of the NFC function (the earphone storage box can receive the identity information sent by the earphone through the NFC function) , when it is judged that the device within the NFC communication range is a headset), the above-mentioned first instruction can be obtained.
  • the earphone storage box may also determine whether to obtain the first instruction in combination with user operations.
  • the earphone storage box may display a prompt message in the interface of the pairing program to prompt the user whether to configure the current first earphone (such as the earphone)
  • the earphone storage box may display a prompt message in the interface of the pairing program to prompt the user whether to configure the current first earphone (such as the earphone)
  • the new pairing identifier if a confirmation operation performed by the user is received, it is determined that the above-mentioned first instruction has been obtained.
  • the acquiring the first instruction includes:
  • the first instruction is acquired.
  • the first earphone and the earphone storage box may also be connected through a wired communication interface, so as to realize the configuration of the pairing identification.
  • the above-mentioned wired communication interface may be a Universal Serial Bus (Universal Serial Bus, USB) interface or other types of wired communication interfaces, which are not limited in the embodiments of the present application.
  • Universal Serial Bus Universal Serial Bus, USB
  • the first earphone is provided with a USB interface, and the user connects the earphone storage box to the earphone through a USB data cable.
  • the personal computer can detect the earphone connected through the USB, it can be considered to have obtained the above-mentioned first instruction.
  • the earphone storage box may also determine whether to obtain the first instruction in combination with user operations.
  • the earphone storage box can display a prompt message to prompt the user whether to configure a new pairing identification for the current first earphone, if After receiving the confirmation operation performed by the user, it is determined that the above-mentioned first instruction has been acquired.
  • Step 302 read the first pairing identification of the earphone storage box.
  • the earphone storage box may read the first pairing group identifier stored locally in advance.
  • the earphone storage box 44 includes the earphone storage box memory 48, the above-mentioned first pairing group identification is stored in the earphone storage box memory 48, and the processing chip 47 of the earphone storage box 44 can read from the earphone storage box memory 48. Read the first pairing group identifier in .
  • the earphone storage box can also read the first matching group identification from outside the local; The first matching group identification is read in the storage box; or, the earphone storage box can read the first matching group identification from other earphone storage boxes through a wired communication interface such as a USB interface, or the earphone storage box can also send to The server on the network side acquires the first pairing group identifier.
  • step 301 and step 302 can be executed synchronously, or the above step 301 can be executed after step 302, or the above step 301 can also be executed before step 302, the embodiment of the present application does not have the same order of execution of the above step 301 and step 302 Do limited.
  • different earphone storage boxes correspond to different pairing identifications.
  • Step 303 assigning the first pairing identifier to the first earphone, and the first pairing identifier is used to instruct the audio source device to recognize the first earphone as the first earphone when the first earphone is connected to the audio source device.
  • the matching group identifies an earphone in the corresponding earphone device group; the audio source device is used to send audio data to each earphone in the earphone device group. For example, the audio source device may send synchronous push audio data to each earphone in the earphone device group.
  • the earphone storage box may update the original pairing identifier of the first earphone to the first pairing identifier.
  • the earphone storage box can send the first matching group identification to the first earphone, and the first earphone replaces the original matching group identification;
  • the mode of the group identification is written into the memory (such as internal memory) of the first earphone.
  • the processing chip 47 in the earphone storage box 44 can write the first matching group identification through the communication interface with the right ear earphone 45 (i.e. the storage box communication interface 46 and the earphone communication interface 43).
  • the earphone memory 42 of the right earphone 45 is used to cover the original pairing identification in the earphone memory 42 of the right earphone 45 .
  • the earphone storage box may send the first pairing identifier to the earphone through NFC, and the earphone uses the first pairing identifier to replace its original pairing identifier.
  • the earphone storage box can send the first matching group identification to the earphone through the USB interface, and the earphone uses the first matching group identification to replace its original matching group identification; or, the earphone storage box can also send the first matching group identification through the USB interface.
  • a pairing group logo is directly written into the headphone memory to cover the original pairing group logo in the headphone memory.
  • the pairing ID of the first earphone in response to the fact that the original pairing ID of the first earphone is different from the first pairing ID, the pairing ID of the first earphone is updated to the first pairing ID.
  • the earphone storage box can detect in advance whether the original pairing ID of the first earphone is the same as the first pairing ID, and if not, update the pairing ID of the first earphone to the first pairing ID. group ID, otherwise the update operation will not be performed, thereby avoiding unnecessary data interaction.
  • the first matching group identifier is a set identity resolving key (Set Identity Resolving Key, SIRK).
  • the pairing identifier may be SIRK defined in the Bluetooth communication protocol.
  • the set identity resolution key SIRK is a 128-bit random number, which is used to uniquely identify a coordination set, which is the above-mentioned device group.
  • Devices belonging to the same coordination set can respond to the audio data or instructions of the audio source device in a coordinated manner, such as synchronously receiving the same audio data and playing it, or realizing synchronous volume adjustment and so on.
  • the data corresponding to the audio can be synchronously pushed to the two Bluetooth headsets for playback ;
  • the Bluetooth headset will feed back the user operation information to the mobile phone, and the mobile phone will determine the adjusted volume according to the user operation information, and feed back the adjusted volume to the other Bluetooth headset.
  • earphone so as to control another bluetooth earphone to adjust the volume synchronously.
  • the same audio data synchronously pushed by the audio source device means that the content of the audio data is the same, but the presentation forms may be different.
  • the different earphones are a pair of bluetooth earphones as an example, the bluetooth earphone includes a left ear earphone and a right ear earphone, then the audio source device pushes the same audio data to this pair of bluetooth earphones synchronously Push the left channel audio data, and push the right channel audio data to the right earphone at the same time, and the playback content of the left channel audio data and the right channel audio data is the same, for example, it can be the left channel audio of the same song data and right channel audio data.
  • FIG. 5 shows a schematic diagram of a SIRK configuration process involved in the embodiment of the present application. As shown in Figure 5, the process steps are as follows:
  • the user puts 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;
  • the earphone storage box detects a trigger event, for example, detects a preset operation (for example, detects a long press of a button in the earphone storage box);
  • the earphone storage box After detecting the trigger event, the earphone storage box reads the SIRKs respectively saved by the two Bluetooth earphones;
  • the earphone storage box compares the read SIRK with the local preset SIRK to determine whether the respective SIRKs of the two Bluetooth earphones are the same as the local preset SIRK;
  • the earphone storage box writes the preset SIRK into Bluetooth earphones with different SIRKs;
  • the SIRK can be recognized by the sound source device as two earphones in the same coordination set.
  • the two Bluetooth headsets belong to the same coordination set, that is, they form the same pair of headsets.
  • 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 .
  • SIRK is a 128-bit random number, which indicates that two earphones are in a coordination set, that is, a pair of earphones is formed.
  • 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.
  • the earphone storage box processing chip 47 can read the SIRK stored in the earphone 42 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 save it in the memory 42 .
  • the mobile phone or other audio source devices can be connected to the earphones 41 and 45 respectively, and recognize the earphones 41 and 45 as earphones in the same coordination set.
  • Step 304 updating the first matching group identifier in response to acquiring the second instruction.
  • the audio source device can divide two pairs of Bluetooth headsets into the same device group, and push audio data to the two pairs of Bluetooth headsets synchronously, so that multiple users can listen to the audio source data pushed by the audio source device at the same time .
  • the above application scenario may be a temporary usage scenario, and in a subsequent period, the user may need to cancel the permission of some earphones to receive the audio source data sent by the audio source device.
  • the first matching group identification in the earphone storage box can be updated through the second instruction. After the first matching group identification is updated, the user only needs to update one or one The group identification of the pair of earphones is updated correspondingly, that is, the relationship between this or a pair of earphones and other earphones can be removed from the same device group.
  • user A configures the same pairing identifier 1 for two pairs of Bluetooth headsets, so that user A and user B can use two pairs of headsets to receive audio data pushed by user A's mobile phone at the same time ; Afterwards, if user A does not want to share the audio data pushed by the mobile phone with user B any more, it only needs to update the matching group identification 1 in the earphone storage box to matching group identification 2 through the scheme shown in step 304, and then pass In the solution shown in steps 301 to 303, update the pairing ID of a pair of earphones you use to pairing ID 2, then when you connect the mobile phone and earphones again later, the mobile phone will no longer recognize the two pairs of earphones as the same Headphones that coordinate and concentrate.
  • the second instruction in response to the time interval between the last update time of the first pairing identifier and the current time reaching a time interval threshold, the second instruction is acquired;
  • the above-mentioned second instruction for updating the first pairing identification can be automatically triggered by the matching device based on the time element, for example, the first matching identification is updated every 24 hours, when the first matching identification last The time interval between the updated time and the current time reaches 24 hours, and the earphone storage box can obtain the second instruction by itself.
  • the second instruction in response to receiving a fourth operation on the earphone storage box, the second instruction is acquired.
  • the above-mentioned second instruction may also be actively triggered by the user, that is, the update of the first matching group identifier is triggered by the user through an operation.
  • the above fourth operation may be different from the above first operation, second operation and third operation.
  • the updating of the first pairing identifier may be performed on a basic pairing identifier corresponding to the earphone storage box.
  • the pairing identifier of the earphone storage box can be obtained by splicing SIRK and random numbers, and each time the first pairing identifier is updated, it can be kept The SIRK remains unchanged, and the random number after the SIRK is updated to obtain the updated first matching group identifier.
  • the scheme shown in the embodiment of the present application configures the pairing grouping mark of the earphone through the grouping mark of the earphone storage box, because the grouping mark can instruct the audio source device to divide the device group
  • the earphones can be combined freely based on the same pairing logo configured in the same earphone storage box, thereby improving the flexibility of combining earphones and improving the convenience of using multiple earphones together.
  • the first pairing identification can be set to It is provided to the sound source device, so that when the sound source device subsequently recognizes other earphones that also have the first pairing group identifier, it recognizes the other earphones and the first earphone as earphones in the same earphone device group.
  • the first earphone can be connected to the audio source device in at least the following two different ways.
  • the first earphone may be an earphone configured according to the method shown in FIG. 2 or FIG. 3 above, and the flow of the method for connecting the earphone in the first earphone may include the following:
  • the first earphone broadcasts the connection information of the first earphone; in response to receiving the first connection request sent by the audio source device based on the connection information, the first earphone establishes a connection between the first earphone and the audio source device;
  • the sound source device provides a first pairing group identifier, so that the sound source device recognizes the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier; audio data sent by the headset.
  • the flow of the method for connecting the first earphone in the sound source device may include the following:
  • connection information broadcast by the first earphone send a first connection request based on the connection information, and the first connection request is used to establish a connection between the first earphone and the sound source device; receive the first earphone provided by the first earphone A pairing group identifier; identifying the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier; sending audio data to the earphones in the earphone device group.
  • the first earphone 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 earphone can also send the sound source The device provides resolvable information that can be parsed through the first pairing group identifier, so that the sound source device can identify the first Whether the headset and other headsets belong to the same headset device group.
  • Connection method 2 from the side of the first earphone, the flow of the method for connecting the earphone in the first earphone may include the following:
  • 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 audio source device based on the connection information, establish a connection between the first earphone and the audio source device; the second The connection request is sent after the sound source device successfully parses the resolvable identifier provided by the first pairing group identifier provided by other earphones, and recognizes the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier ; receive the audio data sent by the audio source device to the earphones in the earphone device group.
  • the flow of the method for connecting the first earphone in the sound source device may include the following:
  • connection information broadcast by the first earphone and the resolvable identifier if the resolvable identifier is successfully resolved through the first pairing identifier provided by other earphones, identify the first earphone as the first pairing identifier An earphone in the corresponding earphone device group; send a second connection request to the first earphone, and the second connection request is used to establish a connection between the first earphone and the sound source device; send to the earphone in the earphone device group audio data.
  • FIG. 6 shows a flowchart of a method for configuring an earphone based on an earphone storage box provided by an exemplary embodiment of the present application. As shown in Fig. 6, the process may include the following steps.
  • an earphone (such as the left earphone) broadcasts its own connection information (such as name and address), so that audio devices such as mobile phones can discover it;
  • the audio source equipment such as the mobile phone connects to the left earphone;
  • the mobile phone reads the SIRK stored in the earphone through the Coordinated Set Identification Service (CSIS) instantiated in the left ear earphone, and saves it in the audio source device such as the mobile phone;
  • CSIS Coordinated Set Identification Service
  • the other earphone (such as the right earphone) sends a broadcast packet with a Resolvable Set Identifier (Resolvable Set Identifier, RSI) (the broadcast packet can also contain connection information), so that the mobile phone and other audio source devices can discover and analyze ;
  • a Resolvable Set Identifier Resolvable Set Identifier, RSI
  • the broadcast packet can also contain connection information
  • RSI is generated by SIRK and can be parsed by SIRK to determine that different members of a coordination set are in the same coordination set.
  • S65 mobile phone and other audio source devices find the broadcast packet in S64, use the saved SIRK to analyze RSI, if the analysis is successful, it means that the right earphone and the connected left earphone are in the same coordination set, that is, a pair of earphones is formed .
  • the audio source device and the first earphone may be connected by using the above connection mode 1) or connection mode 2) based on the master-slave attribute of the first earphone in a pair of earphones.
  • connection mode 1) or connection mode 2
  • the connection between the sound source device and the first earphone is carried out in the above connection mode 2).
  • connection between the sound source device and the first earphone may also be performed using the above connection mode 1) or connection mode 2) based on the connection sequence of the first earphone in a pair of earphones.
  • connection mode 1 connection mode 2
  • connection mode 2 connection mode 2
  • the connection sequence of the first earphone in a pair of earphones For example, when the first earphone is the first earphone in a pair of earphones connected to the audio source device (for example, the left ear earphone in FIG.
  • the first earphone is not the first earphone connected to the sound source device in a pair of earphones (such as the right ear earphone in the above-mentioned figure 6), the sound source device and the first earphone are connected using the above connection mode 2) .
  • the scheme shown in the embodiment of the present application configures the pairing grouping mark of the earphone through the grouping mark of the earphone storage box, because the grouping mark can instruct the audio source device to divide the device group
  • the earphones can be combined freely based on the same pairing logo configured in the same earphone storage box, thereby improving the flexibility of combining earphones and improving the convenience of using multiple earphones together.
  • the solutions shown in the above embodiments 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.).
  • the method for configuring earphones in other configuration devices is similar to the method for configuring earphones in an earphone storage box, and will not be repeated here.
  • FIG. 7 shows a schematic structural diagram of a device for arranging earphones in an earphone storage box according to an exemplary embodiment of the present application.
  • the unit includes:
  • the first instruction acquisition module 701 is configured to acquire a first instruction, and the first instruction is used to trigger configuration of the first earphone;
  • An identification reading module 702 configured to read the first pairing identification of the earphone storage box
  • the configuration module 703 is configured to configure the first pairing group identifier to the first earphone; the first pairing group identifier is used to instruct the sound source device to connect the first earphone to the audio source device when the first earphone is connected to the audio source device.
  • the first earphone is identified as an earphone in the earphone device group corresponding to the first pairing group identifier; the sound source device is configured to send audio data to each earphone in the earphone device group.
  • the first instruction acquiring module 701 is configured to acquire the first instruction in response to the first earphone being placed in the earphone storage box.
  • the first instruction acquiring module 701 is configured to acquire the first instruction in response to the first earphone being placed in the earphone storage box and meeting a predetermined condition.
  • the predetermined condition includes at least one of the following conditions:
  • 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;
  • 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;
  • the pairing identifier of the second earphone in the earphone storage box is the first pairing identifier.
  • the earphone storage box includes a near field communication function
  • the first instruction acquiring module 701 is configured to acquire the first instruction in response to the first earphone being within the near field communication range of the earphone storage box.
  • the earphone storage box and the first earphone respectively include a wired communication interface
  • the first instruction acquiring module 701 is configured to acquire the first instruction in response to the earphone storage box being connected to the first earphone through the wired communication interface.
  • the device further includes:
  • An identification updating module configured to update the first pairing identification in response to acquiring the second instruction.
  • the device further includes:
  • a second instruction fetch module for,
  • the second instruction In response to the time interval between the last update time of the first pairing identifier and the current time reaching a time interval threshold, the second instruction is acquired; or, in response to receiving a fourth user operation, the second instruction is acquired. Two instructions.
  • the configuration module 703 is configured to set the pairing identifier of the first earphone to Update to the first matching group identifier.
  • the first matching group identifier is a set identity resolution key SIRK.
  • the scheme shown in the embodiment of the present application configures the pairing grouping mark of the earphone through the grouping mark of the earphone storage box, because the grouping mark can instruct the audio source device to divide the device group
  • the earphones can be combined freely by configuring the same pairing logo in the same earphone storage box, thereby improving the flexibility of combining earphones and improving the convenience of using multiple earphones together.
  • FIG. 8 shows a schematic structural diagram of an apparatus for connecting an earphone in a first earphone according to an exemplary embodiment of the present application.
  • the first earphone is configured according to the above-mentioned method of configuring the earphone in the earphone storage box, and the device includes:
  • a connection establishment module 802 configured to establish a connection between the first earphone and the sound source device in response to receiving a first connection request sent by the sound source device based on the connection information;
  • An identifier providing module 803, configured to provide a first pairing group identifier to the sound source device, so that the sound source device recognizes the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier;
  • the audio data receiving module 804 is configured to receive the audio data sent by the sound source device to the earphones in the earphone device group.
  • the scheme shown in the embodiment of the present application configures the pairing grouping mark of the earphone through the grouping mark of the earphone storage box, because the grouping mark can instruct the audio source device to divide the device group
  • the earphones can be combined freely by configuring the same pairing logo in the same earphone storage box, thereby improving the flexibility of combining earphones and improving the convenience of using multiple earphones together.
  • FIG. 9 shows a schematic structural diagram of an apparatus for connecting a first earphone in a sound source device according to an exemplary embodiment of the present application.
  • the first earphone is configured according to the above-mentioned method for configuring earphones in an earphone storage box , the device consists of:
  • a connection request sending module 902 configured to send a first connection request based on the connection information, where the first connection request is used to establish a connection between the first earphone and the sound source device;
  • An identification receiving module 903, configured to receive the first pairing identification provided by the first earphone;
  • An earphone identification module 904 configured to identify the above-mentioned first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier;
  • An audio data sending module 905, configured to send audio data to the earphones in the earphone device group.
  • FIG. 10 shows a schematic structural diagram of an apparatus for connecting an earphone in a first earphone according to an exemplary embodiment of the present application.
  • the first earphone is configured according to the above-mentioned method of configuring the earphone in the earphone storage box, and the device includes:
  • a broadcast module 1001 configured to broadcast connection information and a resolvable identifier of the first earphone
  • a connection establishment module 1002 configured to establish a connection between the first earphone and the sound source device in response to receiving a second connection request sent by the sound source device based on the connection information; the second connection request is the The sound source device successfully resolves the resolvable identifier through the first pairing group identifier provided by other earphones, and recognizes the first earphone as an earphone in the earphone device group corresponding to the first pairing group identifier, and then sends of;
  • the audio data receiving module 1003 is configured to receive the audio data sent by the sound source device to the earphones in the earphone device group.
  • FIG. 11 shows a schematic structural diagram of a device for connecting a first earphone in a sound source device provided by an exemplary embodiment of the present application.
  • the first earphone is configured according to the above-mentioned method for configuring earphones in an earphone storage box , the device consists of:
  • a broadcast receiving module 1101, configured to receive the connection information and the resolvable identifier broadcast by the first earphone;
  • the earphone identification module 1102 is configured to identify the first earphone as the earphone corresponding to the first pairing ID when the resolvable ID is successfully resolved by the first pairing ID provided by other earphones One headset in the device group;
  • a connection request sending module 1103, configured to send a second connection request to the first earphone, where the second connection request is used to establish a connection between the first earphone and the audio source device;
  • An audio data sending module 1104 configured to send audio data to the earphones in the earphone device group.
  • the present application also provides a processing chip, the processing chip is provided with the device shown in the above embodiments.
  • the processing chip is implemented in the earphone storage box, it is used to read the first pairing group identifier of the earphone storage box, and configure the first pairing group identifier to the first earphone, so that the sound source device can assign multiple pairs corresponding to the same pairing group identifier.
  • the earphones can be identified as earphones in the same earphone device group, so as to push the audio data synchronously.
  • FIG. 12 shows a schematic structural diagram 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 through a bus 1230, and the processor 1210 is used to execute the computer instructions stored in the memory 1220, so as to implement the earphone as described in the above aspect.
  • the memory 1220 when the processor 1210 is used to execute the computer instructions stored in the memory 1220 to implement the method for configuring an earphone in the earphone storage box as described in the above aspect, as shown in FIG. 12 , the memory 1220 also stores a computer device Corresponding to the pairing group identifier, the pairing group identifier can be configured by the processor 1210 to the headset outside the computer device.
  • the embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement all or part of the steps of the methods shown in the above-mentioned embodiments .
  • the present application also provides a computer program product, the computer program product or the computer program includes computer instructions, and 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 methods shown in the above embodiments.
  • the present application also provides a computer program, which is executed by a processor of a computer device, so as to realize all or part of the steps of the methods shown in the above-mentioned embodiments.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.
  • the information including but not limited to user equipment information, user personal information, etc.
  • data including but not limited to data used for analysis, stored data, displayed data, etc.
  • signals involved in this application All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
  • the group identification and audio data involved in this application are all obtained under the condition of full authorization.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例公开了一种在耳机收纳盒中配置耳机的方法、装置、设备及程序产品,属于芯片技术领域。所述方法包括:获取第一指令,第一指令用于触发对第一耳机进行配置(201);读取耳机收纳盒的第一配组标识(202);将第一配组标识配置给第一耳机;第一配组标识用于在第一耳机与音源设备相连时,指示音源设备将第一耳机识别为第一配组标识对应的耳机设备组中的一个耳机;音源设备用于向耳机设备组中的耳机发送音频数据(203)。通过上述方案,不同的耳机可以通过配置相同的配组标识来进行自由的组合,从而提高了耳机之间进行组合的灵活性,进而提高了多个耳机配合使用的便捷性。

Description

在耳机收纳盒中配置耳机的方法、装置、设备及程序产品
本申请要求于2021年05月12日提交的申请号为202110518581.8、发明名称为“在耳机收纳盒中配置耳机的方法、装置及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及芯片技术领域,特别涉及一种在耳机收纳盒中配置耳机的方法、装置、设备及程序产品。
背景技术
随着蓝牙等短距离无线通信技术的不断发展,无线耳机的应用也越来越广泛。
某些场景涉及多个耳机的配合使用。比如,在相关技术中,一对无线耳机在出厂之前即预先进行配组,在使用时,其中一只耳机首先与音源设备(比如手机)建立无线连接,并将另一无线耳机的连接信息(比如地址)发送给音源设备,由音源设备根据该连接信息与另一无线耳机建立连接,并将两个无线耳机识别为一对耳机。上述方案中,对于多个耳机配合使用的场景中,多个耳机在出厂前完成配组。
发明内容
本申请实施例提供了一种在耳机收纳盒中配置耳机的方法、装置、设备及程序产品。所述技术方案包括:
一方面,本申请实施例提供了一种在耳机收纳盒中配置耳机的方法,所述方法由耳机收纳盒执行,所述方法包括:
获取第一指令,所述第一指令用于触发对第一耳机进行配置;
读取所述耳机收纳盒的第一配组标识;
将所述第一配组标识配置给所述第一耳机;所述第一配组标识用于在所述第一耳机与音源设备相连时,指示所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;所述音源设备用于向所述耳机设备组中的耳机发送音频数据。
一方面,本申请实施例提供了一种在第一耳机中进行连接耳机的方法,所述方法由第一耳机执行,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述方法包括:
广播所述第一耳机的连接信息;
响应于接收到音源设备基于所述连接信息发送的第一连接请求,建立所述第一耳机与所述音源设备之间的连接;
向所述音源设备提供所述第一配组标识,以便所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
一方面,本申请实施例提供了一种在音源设备中进行连接第一耳机的方法,所述方法由音源设备执行,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述方法包括:
接收所述第一耳机广播的连接信息;
基于所述连接信息发送第一连接请求,所述第一连接请求用于建立所述第一耳机与所述音源设备之间的连接;
接收所述第一耳机提供的所述第一配组标识;
将上述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
向所述耳机设备组中的耳机发送音频数据。
一方面,本申请实施例提供了一种在第一耳机中进行连接耳机的方法,所述方法由第一耳机执行,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述方法包括:
广播所述第一耳机的连接信息以及可解析标识;
响应于接收到音源设备基于所述连接信息发送的第二连接请求,建立所述第一耳机与所述音源设备之间的连接;所述第二连接请求是所述音源设备通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功,并将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机后发送的;
接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
一方面,本申请实施例提供了一种在音源设备中进行连接第一耳机的方法,所述方法由音源设备执行,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述方法包括:
接收所述第一耳机广播的连接信息以及可解析标识;
在通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功的情况下,将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
向第一耳机发送第二连接请求,所述第二连接请求用于建立所述第一耳机与所述音源设备之间的连接;
向所述耳机设备组中的耳机发送音频数据。
另一方面,本申请实施例提供了一种在耳机收纳盒中配置耳机的装置,所述装置包括:
第一指令获取模块,用于获取第一指令,所述第一指令用于触发对第一耳机进行配置;
标识读取模块,用于读取所述耳机收纳盒的第一配组标识;
配置模块,用于将所述第一配组标识配置给所述第一耳机;所述第一配组标识用于在所述第一耳机与音源设备相连时,指示所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;所述音源设备用于向所述设备组中的各个耳机发送音频数据。
另一方面,本申请实施例提供了一种在第一耳机中进行连接耳机的装置,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述装置包括:
广播模块,用于广播第一耳机的连接信息;
连接建立模块,用于响应于接收到音源设备基于所述连接信息发送的第一连接请求,建立所述第一耳机与所述音源设备之间的连接;
标识提供模块,用于向所述音源设备提供第一配组标识,以便所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
音频数据接收模块,用于接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
另一方面,本申请实施例提供了一种在音源设备中进行连接第一耳机的装置,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述装置包括:
广播接收模块,用于接收所述第一耳机广播的连接信息;
连接请求发送模块,用于基于所述连接信息发送第一连接请求,所述第一连接请求用于建立所述第一耳机与所述音源设备之间的连接;
标识接收模块,用于接收所述第一耳机提供的所述第一配组标识;
耳机识别模块,用于将上述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
音频数据发送模块,用于向所述耳机设备组中的耳机发送音频数据。
另一方面,本申请实施例提供了一种在第一耳机中进行连接耳机的装置,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述装置包括:
广播模块,用于广播第一耳机的连接信息以及可解析标识;
连接建立模块,用于响应于接收到音源设备基于所述连接信息发送的第二连接请求,建立所述第一耳机与所述音源设备之间的连接;所述第二连接请求是所述音源设备通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功,并将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机后发送的;
音频数据接收模块,用于接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
另一方面,本申请实施例提供了一种在音源设备中进行连接第一耳机的装置,所述第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,所述装置包括:
广播接收模块,用于接收所述第一耳机广播的连接信息以及可解析标识;
耳机识别模块,用于在通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功的情况下,将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
连接请求发送模块,用于向第一耳机发送第二连接请求,所述第二连接请求用于建立所述第一耳机与所述音源设备之间的连接;
音频数据发送模块,用于向所述耳机设备组中的耳机发送音频数据。
另一方面,本申请实施例提供了一种处理芯片,所述处理芯片中设置有如上述方面所述的在耳机收纳盒中配置耳机的装置、在第一耳机中进行连接耳机的装置或者在音源设备中进行连接第一耳机的装置。
另一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述处理器和所述存储器之间通过总线相连;所述处理器用于执行所述存储器中存储的计算机指令,以实现如上述方面所述的在耳机收纳盒中配置耳机的方法、在第一耳机中进行连接耳机的方法或者在音源设备中进行连接第一耳机的方法。
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述在耳机收纳盒中配置耳机的方法、在第一耳机中进行连接耳机的方法或者在音源设备中进行连接第一耳机的方法。
又一方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述在耳机收纳盒中配置耳机的方法、在第一耳机中进行连接耳机的方法或者在音源设备中进行连接第一耳机的方法。
又一方面,本申请提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述在耳机收纳盒中配置耳机的方法、在第一耳机中进行连接耳机的方法或者在音源设备中进行连接第一耳机的方法。
附图说明
图1是本申请一个示例性实施例提供的无线音频播放系统的系统架构图;
图2是本申请一个示例性实施例提供的在耳机收纳盒中配置耳机的方法流程图;
图3是本申请一个示例性实施例提供的在耳机收纳盒中配置耳机的方法的流程图;
图4是图3所示实施例涉及的一种耳机收纳盒及耳机的结构示意图;
图5是图3所示实施例涉及的一种SIRK配置流程示意图;
图6是本申请一个示例性实施例提供的基于耳机收纳盒配置耳机的方法的流程图;
图7是本申请一个示例性实施例提供的在耳机收纳盒中配置耳机的装置的结构示意 图;
图8是本申请一个示例性实施例提供的在第一耳机中进行连接耳机的装置的结构示意图;
图9是本申请一个示例性实施例提供的在音源设备中进行连接第一耳机的装置的结构示意图;
图10是本申请一个示例性实施例提供的在第一耳机中进行连接耳机的装置的结构示意图;
图11是本申请一个示例性实施例提供的在音源设备中进行连接第一耳机的装置的结构示意图;
图12是本申请一个示例性实施例提供的计算机设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
应理解,在本申请的实施例中提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。
在本申请实施例的描述中,术语“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。
本申请实施例中,“预定义”可以通过在设备(例如,包括终端设备和网络设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。比如预定义可以是指协议中定义的。
得益于蓝牙(Bluetooth,BT)等短距离无线通信技术的发展,无线耳机也越来越多的被用户所接受,其实现形式也越来越多样化。比如,目前的无线耳机有真无线立体声(True Wireless Stereo,TWS)蓝牙耳机等等。
无线耳机在使用时,需要与音源设备建立无线连接,并播放音源设备推送的音频数据。
请参考图1,其示出了本申请一个示例性实施例提供的无线音频播放系统的系统架构图。如图1所示,该系统包括无线耳机110以及音源设备120。
其中,无线耳机110可以是蓝牙耳机、或者支持蓝牙之外的其它短距离无线通信协议(比如Wi-Fi协议、紫蜂ZigBee协议等等,本申请对此不作限定)的耳机等等。
无线耳机110具有播放音频的功能,例如,无线耳机110中设置有扬声器组件。
音源设备120可以是与无线耳机110支持相同的短距离无线通信协议的计算机设备,例如,音源设备120可以是智能手机、平板电脑、智能电视、以及个人电脑等等。
音源设备120与无线耳机110之间通过短距离无线通信方式相连接后,音源设备120可以向无线耳机110推送音频数据,由无线耳机对该音频数据进行播放。
在一些方案中,无线耳机110也可以向音源设备120发送控制信息,以对音源设备120中与音频播放相关的功能进行控制,比如切换至上一首、切换至下一首、音量调节、接听/挂断电话等等。
在本申请实施例中,上述系统还包含配置设备130。
其中,该配置设备130具有对无线耳机110进行配置的功能。
例如,配置设备130可以向无线耳机110发送配置数据,以对无线耳机110中的相关 参数或属性进行配置。
配置设备130可以实现为耳机收纳盒、智能手机、平板电脑、或者个人电脑等计算机设备。
本申请实施例提供的在耳机收纳盒中配置耳机的方法包括:
获取第一指令,第一指令用于触发对第一耳机进行配置;
读取耳机收纳盒的第一配组标识;
将第一配组标识配置给第一耳机;第一配组标识用于在第一耳机与音源设备相连时,指示音源设备将第一耳机识别为第一配组标识对应的耳机设备组中的一个耳机;音源设备用于向耳机设备组中的耳机发送音频数据。
可选的,获取第一指令,包括:
响应于第一耳机被置于耳机收纳盒内,获取第一指令。
可选的,响应于第一耳机被置于耳机收纳盒内,获取第一指令,包括:
响应于第一耳机被置于耳机收纳盒内,且满足预定条件,获取第一指令。
可选的,预定条件包括以下条件中的至少一项:
接收到用户对耳机收纳盒执行的第一操作;
耳机收纳盒中除了第一耳机所在的耳机收纳位置之外的另一耳机收纳位置为空,且接收到用户对耳机收纳盒执行的第二操作;
耳机收纳盒中的第二耳机当前的配组标识,与第一耳机当前的配组标识相同,且接收到用户对耳机收纳盒执行的第三操作;
耳机收纳盒中除了第一耳机所在的耳机收纳位置之外的另一耳机收纳位置中收纳有第二耳机;以及
耳机收纳盒中的第二耳机的配组标识为第一配组标识。
可选的,耳机收纳盒包括近场通信功能;获取第一指令,包括:
响应于第一耳机位于耳机收纳盒的近场通信范围内,获取第一指令。
可选的,耳机收纳盒以及第一耳机分别包含有线通信接口;获取第一指令,包括:
响应于耳机收纳盒与第一耳机通过有线通信接口相连,获取第一指令。
可选的,方法还包括:
响应于获取到第二指令,对第一配组标识进行更新。
可选的,方法还包括:
响应于第一配组标识上一次更新的时间与当前时间之间的时间间隔达到时间间隔阈值,获取第二指令;
或者,
响应于接收到用户的第四操作,获取第二指令。
可选的,将第一配组标识配置给第一耳机,包括:
响应于第一耳机当前的配组标识与第一配组标识不同,将第一耳机的配组标识更新为第一配组标识。
可选的,第一配组标识为集身份解析密钥SIRK。
本申请实施例提供的在第一耳机中进行连接耳机的方法包括:
广播第一耳机的连接信息;
响应于接收到音源设备基于连接信息发送的第一连接请求,建立第一耳机与音源设备之间的连接;
向音源设备提供第一配组标识,以便音源设备将第一耳机识别为第一配组标识对应的耳机设备组中的一个耳机;
接收音源设备向耳机设备组中的耳机发送的音频数据。
本申请实施例提供的在音源设备中进行连接第一耳机的方法包括:
接收第一耳机广播的连接信息;
基于连接信息发送第一连接请求,第一连接请求用于建立第一耳机与音源设备之间的连接;
接收第一耳机提供的第一配组标识;
将上述第一耳机识别为第一配组标识对应的耳机设备组中的一个耳机;
向耳机设备组中的耳机发送音频数据。
本申请实施例提供的在第一耳机中进行连接耳机的方法包括:
广播第一耳机的连接信息以及可解析标识;
响应于接收到音源设备基于连接信息发送的第二连接请求,建立第一耳机与音源设备之间的连接;第二连接请求是音源设备通过其它耳机提供的第一配组标识对可解析标识解析成功,并将第一耳机识别为第一配组标识对应的耳机设备组中的一个耳机后发送的;
接收音源设备向耳机设备组中的耳机发送的音频数据。
本申请实施例提供的在音源设备中进行连接第一耳机的方法包括:
接收第一耳机广播的连接信息以及可解析标识;
在通过其它耳机提供的第一配组标识对可解析标识解析成功的情况下,将第一耳机识别为第一配组标识对应的耳机设备组中的一个耳机;
向第一耳机发送第二连接请求,第二连接请求用于建立第一耳机与音源设备之间的连接;
向耳机设备组中的耳机发送音频数据。
请参考图2,其示出了本申请一个示例性实施例提供的在耳机收纳盒中配置耳机的方法的流程图。该方法可以用于耳机收纳盒中。该方法可以包括如下步骤。
步骤201,获取第一指令,该第一指令用于触发对第一耳机进行配置。
在一种可能的实现方式中,上述第一指令是用户操作对应的指令;比如,上述第一指令是接收到的用户操作的操作信号,或者,上述第一指令是在接收到该操作信号时生成的指令。
在另一种可能的实现方式中,上述第一指令是后台自动触发的指令;比如,上述第一指令是基于指定数据进行条件判断后得到的判断结果,或者,上述第一指令是基于该判断结果生成的指令。
在另一种可能的实现方式中,上述第一指令是由用户操作和后台触发共同影响下获得的指令;比如,上述第一指令是接收到用户操作的操作信号后,基于指定数据进行条件判断后得到的判断结果;或者,上述第一指令是接收到用户操作的操作信号后,基于指定数据进行条件判断后得到判断结果,并基于判断结果生成的指令。
步骤202,读取耳机收纳盒的第一配组标识。
在一种可能的实现方式中,该耳机收纳盒可以读取预先存储在耳机收纳盒的存储器中的第一配组标识。
在另一种可能的实现方式中,该耳机收纳盒也可以从耳机收纳盒之外读取该第一配组标识;比如,当该耳机收纳盒连接互联网时,可以从网络侧的服务器读取该第一配组标识;或者,当该耳机收纳盒通过直连方式或者局域网连接另一个计算机设备时,该耳机收纳盒可以从另一计算机设备读取该第一配组标识。
上述步骤201和步骤202可以同步执行,或者,上述步骤201可以在步骤202之后执行,或者,上述步骤201也可以在步骤202之前执行,本申请实施例对于上述步骤201和步骤202的执行顺序不做限定。
在本申请实施例中,不同的耳机收纳盒,对应有不同的配组标识。
步骤203,将该第一配组标识配置给该第一耳机;该第一配组标识用于在该第一耳机 与音源设备相连时,指示该音源设备将该第一耳机识别为该第一配组标识对应的耳机设备组中的一个耳机;该音源设备用于向该耳机设备组中的耳机发送音频数据。
在本申请实施例的一种可能的方案中,第一耳机与音源设备连接后,可以将第一配组标识提供给该音源设备。相应的,该音源设备通过第一耳机发送的第一配组标识,来确定第一耳机所属的设备组,对于该设备组内的各个耳机,音源设备统一进行音频推送服务,比如,向该设备组内的各个耳机同步推送相同的音频数据。
通过本申请实施例所示的方案,配置设备可以对多个耳机分别配置相同的配组标识,使得音源设备在与多个耳机建立连接后,将多个耳机划分至同一个设备组,并向上述多个耳机同步推送相同的音频数据,从而不依赖出厂配置,即可以实现对多个耳机的自由配组。
综上所述,本申请实施例所示的方案,通过耳机收纳盒的配组标识,对耳机的配组标识进行配置,由于配组标识可以指示音源设备进行设备组的划分,也就是说不同的耳机可以基于同一个耳机收纳盒配置相同的配组标识来进行自由的组合,从而提高了耳机之间进行组合的灵活性,进而提高了多个耳机配合使用的便捷性。
本申请上述实施例所示的方案,可以应用于任意需要将两个耳机进行组合的场景。
例如,在一种示例性的场景中,用户A原有一副蓝牙耳机,用户A在使用过程中,这一副蓝牙耳机中的左耳耳机损坏(或者丢失),此时,用户A只需要再购买一只同型号的左耳耳机,并通过上述图2所示实施例中的方案,通过耳机收纳盒为新购买的耳机与已有的右耳耳机配置相同的配组标识,后续音源设备即可以将新购买的耳机和已有的右耳耳机识别为同一副耳机。
再例如,在另一种示例性的场景中,用户A有一副蓝牙耳机,用户B也有一副蓝牙耳机,但是用户A和用户B有通过耳机收听同一个音源设备输出的音频数据的需求(例如,用户A和用户B在图书馆中通过同一个手机收看同一个网课),此时,通过上述图2所示实施例中的方案,可以通过耳机收纳盒为用户A的一副蓝牙耳机以及用户B的一副蓝牙耳机配置相同的配组标识,后续音源设备即可以将两副蓝牙耳机划分至同一个设备组,并向两副蓝牙耳机同步推送音频数据。
上述两个示例性的场景仅以将两个蓝牙耳机配置为一副蓝牙耳机,以及,将两副蓝牙耳机配置为一组蓝牙耳机为例进行说明,本申请实施例所示的方案也可以应用在其它场景,比如对蓝牙音箱进行配组的场景等等,本申请实施例对于上述图2所示的方案的应用场景不做限定。
请参考图3,其示出了本申请一个示例性实施例提供的在耳机收纳盒中配置耳机的方法的流程图。该方法可以用于耳机收纳盒中。该方法可以包括如下步骤。
步骤301,获取第一指令,该第一指令用于触发对第一耳机进行配置。
在一种可能的实现方式中,上述获取第一指令的步骤包括:
响应于该第一耳机被置于该耳机收纳盒内,获取该第一指令。
在本申请实施例中,当第一耳机的耳机型号与耳机收纳盒相适配,且第一耳机被置于耳机收纳盒内时,耳机收纳盒可以确定获取到第一指令,继而确定需要对第一耳机的配组标识进行配置。
其中,耳机收纳盒可以通过传感器、通信接口、以及充电接口中的至少一种来检测是否收纳有耳机。
可选的,上述传感器可以包括压力传感器、电流传感器等,耳机收纳盒可以通过压力传感器或者电流传感器的状态数据来检测是否收纳有耳机。
上述通信接口和充电接口可以是同一个物理接口,该物理接口可以在通信接口和充电接口之间相互切换;或者,上述通信接口和充电接口也可以实现为相互独立的两个物理接口。耳机收纳盒可以通过通信接口的通信状态,或者充电接口的充电状态,来检测是否收纳有耳机。
比如,请参考图4,其示出了本申请实施例涉及的一种耳机收纳盒及耳机的结构示意图。如图4所示,耳机收纳盒44中具有两个耳机收纳位置,分别用于收纳左耳耳机41和右耳耳机45,左耳耳机41和右耳耳机45分别包含耳机通信接口43,耳机收纳盒44中对应耳机通信接口43设置有收纳盒通信接口46。如图4所示的,当右耳耳机45被置于耳机收纳盒44中时,右耳耳机45中的耳机通信接口43,与右耳耳机收纳位置处的收纳盒通信接口46之间建立通信连接,此时,耳机收纳盒44可以确定出耳机收纳盒中放置有右耳耳机。
在一种可能的实现方式中,响应于该第一耳机被置于该耳机收纳盒内,且满足预定条件,获取该第一指令。
在某些情况下,用户将某个耳机放置在耳机收纳盒中,并不一定需要对该耳机的配组标识进行配置。例如,用户可能是想要借助于耳机收纳盒进行临时收纳或者充电。为了避免在这种情况下进行不必要的检测,当耳机收纳盒中收纳有上述第一耳机时,耳机收纳盒可以借助于对预定条件的检测判断,来进一步确定是否获取到第一指令。
其中,上述预定条件可以包括且不限于以下条件中的至少一项:
1)接收到用户对该耳机收纳盒执行的第一操作。
在一个示例性的方案中,耳机收纳盒在检测到收纳有第一耳机的情况下,可以进一步通过用户操作来确定是否获取到第一指令。
其中,第一操作可以包括以下操作中的至少一种:按下耳机收纳盒中的指定按键、连续n次按下耳机收纳盒中的指定按键(n大于等于1,且n为整数)、长按耳机收纳盒中的指定按键、关闭/打开耳机收纳盒、以及控制耳机收纳盒以指定轨迹运动等等。
2)该耳机收纳盒中除了该第一耳机所在的耳机收纳位置之外的另一耳机收纳位置为空,且接收到用户对耳机收纳盒执行的第二操作。
用户将耳机置入耳机收纳盒时,通常将不同的耳机分别置入耳机收纳盒(也就是一次置入一只耳机),当用户将第一耳机置入耳机收纳盒时,该耳机收纳盒中可能只有这一只耳机,此时,用户可能想要对这一只耳机单独进行配置,或者,也可能还有后续的操作,比如,将另一只耳机也置入收纳盒,并对两只耳机同时进行配置,或者,用户也可能不想对这只耳机进行配置,因此,当耳机收纳盒检测到当前除了第一耳机所在的耳机收纳位置之外的另一耳机收纳位置为空时,并不能准确判断用户的意图,此时,耳机收纳盒可以进一步结合用户操作来确定是否获取到第一指令;比如,当耳机收纳盒中除了该第一耳机所在的耳机收纳位置之外的另一耳机收纳位置为空,并且接收到第二操作,则认为用户想要对当前收纳的第一耳机进行配置,确定获取到第一指令;而当耳机收纳盒中除了该第一耳机所在的耳机收纳位置之外的另一耳机收纳位置为空,但是并未接收到第二操作,则暂不认为获取到第一指令。
其中,上述第二操作与第一操作可以相同,也可以不同。
3)该耳机收纳盒中的第二耳机当前的配组标识,与该第一耳机当前的配组标识相同,且接收到用户对该耳机收纳盒执行的第三操作。
用户在使用耳机收纳盒收纳耳机的过程中,通常将一副耳机都置入耳机收纳盒,也就是,耳机收纳盒中的两个耳机当前的配组标识是相同的,一种情况下,这副耳机的配组标识就是耳机收纳盒的第一配组标识(也就是这副耳机原本就是属于当前的耳机收纳盒),另一种情况下,这副耳机的配组标识不同于耳机收纳盒的第一配组标识,但是用户只是想借用该耳机收纳盒进行充电,这两种情况下,都不需要耳机收纳盒对这副耳机的配组标识进行重配置,为了避免对这副耳机的配组标识误配置,在本申请实施例中,当耳机收纳盒检测到收纳的第一耳机和第二耳机当前的配组标识相同时,可以进一步结合用户操作来确定是否获取到第一指令。
其中,第三操作与第一操作或者第二操作可以相同,也可以不同。
4)该耳机收纳盒中除了该第一耳机所在的耳机收纳位置之外的另一耳机收纳位置中收纳有第二耳机。
在本申请实施例的一种可能的实现方案中,耳机收纳盒可以将同时收纳有两个耳机作为确定获取到第一指令的条件,也就是说,通过检测是否同时收纳有两个耳机,来自行确定是否获取到第一指令。
在另一种可能的实现方案中,该耳机收纳盒中除了该第一耳机所在的耳机收纳位置之外的另一耳机收纳位置中收纳有第二耳机时,耳机收纳盒也可以不检测两个耳机原有的配组标识是否相同,而直接进一步的结合用户操作来确定是否获取到第一指令。例如,当耳机收纳盒检测到当前收纳有第一耳机和第二耳机,且接收到第三操作时,确定获取到第一指令;若耳机收纳盒检测到当前收纳有第一耳机和第二耳机,但是尚未接收到第三操作时,则暂不认为获取到第一指令。
5)该耳机收纳盒中的第二耳机的配组标识为该第一配组标识。
在本申请实施例的一种可能的实现方案中,耳机收纳盒将同时收纳的两个耳机中是否包含一个与第一配组标识相同的耳机的条件,作为确定获取到第一指令的条件,此时,耳机收纳盒中的另一个耳机即为第一耳机。
例如,用户想要将一个耳机与自己原有的耳机配置为同一组耳机,则用户可以将该耳机与自己原有的耳机一同放置入自己原有的耳机对应的耳机收纳盒中,耳机收纳盒检测到一个耳机的配组标识与自己的配组标识相同,则确定获取到第一指令。
在本申请实施例中,耳机收纳盒可以通过与耳机之间的通信接口,获取耳机原有的配组标识。
例如,在图4中,耳机收纳盒44中包含有处理芯片47,该处理芯片与收纳盒通信接口46之间通过总线相连,同时左耳耳机41和右耳耳机45中分别设置有耳机内存42,耳机内存42中存储有耳机原有的配置标识。当右耳耳机45中的耳机通信接口43,与右耳耳机收纳位置处的收纳盒通信接口46之间建立通信连接后,耳机收纳盒44通过处理芯片47读取右耳耳机45中的耳机内存42存储的配置标识。
在一种可能的实现方式中,当该耳机收纳盒包括近场通信功能时,该获取第一指令,包括:
响应于该第一耳机位于该耳机收纳盒的近场通信范围内,获取该第一指令。
在本申请实施例中,对第一耳机进行配置的设备的形态也可以不限制在耳机收纳盒上,只要两者都支持近场通信(Near Field Communication,NFC),即可以实现配组标识的配置。
在一种示例性的方案中,当手机和耳机收纳盒的NFC功能处于开启状态,且耳机收纳盒检测到NFC功能的通信范围内存在耳机(耳机收纳盒可以通过NFC功能接收耳机发送的身份信息,以判断NFC通信范围内的设备为耳机)时,即可以获取上述第一指令。
在本申请实施例中,在第一耳机位于该耳机收纳盒的近场通信范围内的基础上,耳机收纳盒也可以结合用户操作来确定是否获取到第一指令。
例如,第一耳机位于该耳机收纳盒的近场通信范围内时,耳机收纳盒可以在配组程序的界面中展示一个提示信息,以提示用户是否需要对当前的第一耳机(比如耳机)配置新的配组标识,若接收到用户执行的确认操作,则确定获取到上述第一指令。
在一种可能的实现方式中,当该耳机收纳盒以及该第一耳机分别包含有线通信接口时,该获取第一指令,包括:
响应于耳机收纳盒与第一耳机通过该有线通信接口相连,获取第一指令。
在本申请实施例中,第一耳机与耳机收纳盒之间也可以通过有线通信接口相连,以实现配组标识的配置。
其中,上述有线通信接口可以是通用串行总线(Universal Serial Bus,USB)接口或者 其它类型的有线通信接口,本申请实施例对此不做限定。
例如,第一耳机中设置有USB接口,用户通过USB数据线将耳机收纳盒与耳机相连,此时,个人电脑可以检测到通过USB连接的耳机后,即可以认为获取到上述第一指令。
在本申请实施例中,在耳机收纳盒与该第一耳机通过有线通信接口相连的基础上,耳机收纳盒也可以结合用户操作来确定是否获取到第一指令。
例如,以个人电脑为例,第一耳机与个耳机收纳盒通过USB接口相连时,耳机收纳盒可以展示一个提示信息,以提示用户是否需要对当前的第一耳机配置新的配组标识,若接收到用户执行的确认操作,则确定获取到上述第一指令。
步骤302,读取耳机收纳盒的第一配组标识。
在一种可能的实现方式中,耳机收纳盒可以读取预先存储在本地的第一配组标识。
例如,请参考图4,耳机收纳盒44中包含耳机收纳盒内存48,该耳机收纳盒内存48中存储有上述第一配组标识,耳机收纳盒44的处理芯片47可以从耳机收纳盒内存48中读取该第一配组标识。
在另一种可能的实现方式中,耳机收纳盒也可以从本地之外读取该第一配组标识;比如,该耳机收纳盒可以通过蓝牙或者NFC等短距离无线通信技术,从另一个耳机收纳盒中读取该第一配组标识;或者,该耳机收纳盒可以通过USB接口等有线通信接口从其它耳机收纳盒中读取该第一配组标识,或者,该耳机收纳盒也可以向网络侧的服务器获取该第一配组标识。
上述步骤301和步骤302可以同步执行,或者,上述步骤301可以在步骤302之后执行,或者,上述步骤301也可以在步骤302之前执行,本申请实施例对于上述步骤301和步骤302的执行顺序不做限定。
在本申请实施例中,不同的耳机收纳盒,对应有不同的配组标识。
步骤303,将该第一配组标识配置给该第一耳机,该第一配组标识用于在该第一耳机与音源设备相连时,指示该音源设备将该第一耳机识别为该第一配组标识对应的耳机设备组中的一个耳机;该音源设备用于向该耳机设备组中的各个耳机发送音频数据。比如,该音源设备可以向耳机设备组中的各个耳机发送同步推送音频数据。
在本申请实施例中,耳机收纳盒可以将第一耳机原有的配组标识更新为该第一配组标识。
其中,耳机收纳盒可以将第一配组标识发送给第一耳机,由第一耳机替换原有的配组标识;或者,耳机收纳盒也可以将第一配组标识直接以覆盖原有的配组标识的方式,写入第一耳机的存储器(比如内存)中。
例如,请参考图4,耳机收纳盒44中的处理芯片47可以将第一配组标识,通过与右耳耳机45之间的通信接口(即收纳盒通信接口46和耳机通信接口43)写入右耳耳机45的耳机内存42,以覆盖右耳耳机45的耳机内存42中原有的配组标识。
再例如,耳机收纳盒可以通过NFC的方式,将第一配组标识发送给耳机,由耳机使用该第一配组标识替换其原有的配组标识。
再例如,耳机收纳盒可以通过USB接口将第一配组标识发送给耳机,由耳机使用该第一配组标识替换其原有的配组标识;或者,耳机收纳盒也可以通过USB接口将第一配组标识直接写入耳机内存,以覆盖耳机内存中原有的配组标识。
在一种可能的实现方式中,响应于该第一耳机原有的配组标识与该第一配组标识不同,将该第一耳机的配组标识更新为该第一配组标识。
在本申请实施例中,耳机收纳盒可以预先检测第一耳机原有的配组标识与该第一配组标识是否相同,若不同,则将第一耳机的配组标识更新为该第一配组标识,否则不执行更新操作,从而避免不必要的数据交互。
在一种可能的实现方式中,该第一配组标识为集身份解析密钥(Set Identity Resolving  Key,SIRK)。
在本申请实施例中,当上述第一耳机是支持蓝牙通信协议,且通过蓝牙方式与音源设备建立连接的耳机时,上述配组标识可以是蓝牙通信协议中定义的SIRK。
其中,集身份解析密钥SIRK是一个128位的随机数,用于唯一标识一个协调集,该协调集即为上述设备组。
属于同一个协调集的设备,可以通过协调的方式响应音源设备的音频数据或者指令,比如同步接收相同的音频数据并进行播放,或者,实现同步调节音量等等。
例如,以两个蓝牙耳机属于同一协调集为例,当两个蓝牙耳机分别与手机相连后,手机中存在需要播放的音频时,可以将该音频对应的数据同步推送给两个蓝牙耳机进行播放;再例如,当用户操作其中一个蓝牙耳机进行音量调节时,该蓝牙耳机将用户操作信息反馈给手机,手机根据用户操作信息确定调节后的音量,并将调节后的音量反馈给另一只蓝牙耳机,从而控制另一只蓝牙耳机同步进行音量调节。
可选的,对于不同的耳机,音源设备同步推送的相同音频数据,是指音频数据的内容相同,但是其表现形式可以不同。例如,以不同的耳机是一副蓝牙耳机为例,该蓝牙耳机包含左耳耳机和右耳耳机,则音源设备向这一副蓝牙耳机同步推送相同的音频数据,是指音源设备向左耳耳机推送左声道音频数据,同时向右耳耳机推送右声道音频数据,且左声道音频数据和右声道音频数据的播放内容是相同的,比如,可以是同一段歌曲的左声道音频数据和右声道音频数据。
以上述的配组标识是SIRK,第一耳机是蓝牙耳机为例,请参考图5,其示出了本申请实施例涉及的一种SIRK配置流程示意图。如图5所示,该流程步骤如下:
S51,用户将两只蓝牙耳机放置入耳机收纳盒;其中,两只蓝牙耳机的型号相同,或者,两只蓝牙耳机的型号不同,但是都与耳机收纳盒相适配;
S52,耳机收纳盒检测到触发事件,比如,检测到预设的操作(例如,检测到长按耳机收纳盒中某个按键);
S53,耳机收纳盒检测到触发事件后,读取两只蓝牙耳机各自保存的SIRK;
S54,耳机收纳盒将读取到的SIRK与本地预置的SIRK进行比较,以确定两只蓝牙耳机各自的SIRK与本地预置的SIRK是否相同;
S55,耳机收纳盒将预置的SIRK写入具有不同SIRK的蓝牙耳机;
S56,两只蓝牙耳机在使用时,可以通过该SIRK被音源设备识别为同一协调集中的两只耳机。
在保证两只蓝牙耳机中的SIRK是相同的情况下,这两只蓝牙耳机就属于同一个协调集,即组成同一副耳机。
例如,以图4为例,耳机41和45,耳机收纳盒44中都会在出厂的时候预置SIRK,保存在内存42和48中。SIRK在耳机41和45,以及耳机收纳盒44中都是可读可写的。
其中,SIRK是一个128位的随机数,标志着两只耳机在一个协调集中,即组成一副耳机。同一个协调集中的耳机可以以协调的方式响应手机的指令或者其他数据,如实现同步调解音量等。
耳机41和45放入耳机收纳盒44中后,耳机收纳盒处理芯片47可以通过通信接口43和46,读取耳机中保存在42中的SIRK。耳机收纳盒处理芯片47可以通过通信接口43和46将耳机收纳盒44中预置在收纳盒内存48中的SIRK写入到耳机41和45中,并保存在内存42中。
手机或者其他音源设备可以分别连接耳机41和45,并将耳机41和45识别为同一个协调集中的耳机。
步骤304,响应于获取到第二指令,对该第一配组标识进行更新。
在本申请实施例的一个可能场景中,音源设备可以将两副蓝牙耳机划分至同一个设备 组,并向两副蓝牙耳机同步推送音频数据,以便多个用户同时收听到音源设备推送的音源数据。
然而,在某些情况下,上述应用场景可能是一个临时使用的场景,在后续时间内,用户可能需要解除部分耳机接收音源设备发送的音源数据的权限。针对此类需求,在本申请实施例所示的方案中,耳机收纳盒中的第一配组标识可以通过第二指令触发更新,在第一配组标识更新后,用户只需要将一个或者一副耳机的配组标识对应进行更新,即可以将这一个或者一副耳机与其它耳机解除同一设备组的关系。
例如,用户A通过步骤301至步骤303所示的方案,对两副蓝牙耳机配置了相同的配组标识1,以供用户A和用户B同时使用两副耳机接收用户A的手机推送的音频数据;之后,若用户A不想再与用户B共享该手机推送的音频数据,则只需要通过步骤304所示的方案,将耳机收纳盒中的配组标识1更新为配组标识2,然后再通过步骤301至步骤303所示的方案,将自己使用的一副耳机的配组标识更新为配组标识2,则后续再次连接手机和耳机时,手机不会再将这两副耳机识别为同一个协调集中的耳机。
在一种可能的实现方式中,响应于该第一配组标识上一次更新的时间与当前时间之间的时间间隔达到时间间隔阈值,获取该第二指令;
其中,上述用于对第一配组标识进行更新的第二指令可以由配组设备基于时间元素自动触发,例如,第一配组标识每隔24小时更新一次,当第一配组标识上一次更新的时间与当前时间之间的时间间隔达到24小时,耳机收纳盒可以自行获取该第二指令。
在另一种可能的实现方式中,响应于接收到对该耳机收纳盒的第四操作,获取第二指令。
其中,上述第二指令也可以由用户主动触发,也就是说,由用户通过操作触发对第一配组标识进行更新。
其中,上述第四操作可以与上述第一操作、第二操作以及第三操作都不相同。
在一种可能的实现方式中,上述对该第一配组标识进行更新,可以是在该耳机收纳盒对应的基础的配组标识上进行更新。
例如,以该耳机收纳盒对应的基础的配组标识时SIRK为例,该耳机收纳盒的配组标识可以由SIRK与随机数拼接获得,每次对第一配组标识进行更新时,可以保持SIRK不变,更新SIRK之后的随机数,得到更新后的第一配组标识。
综上所述,本申请实施例所示的方案,通过耳机收纳盒的配组标识,对耳机的配组标识进行配置,由于配组标识可以指示音源设备进行设备组的划分,也就是说不同的耳机可以基于同一个耳机收纳盒配置相同的配组标识来进行自由的组合,从而提高了耳机之间进行组合的灵活性,进而提高了多个耳机配合使用的便捷性。
在本申请上述图3对应的实施例所示的方案中,基于耳机收纳盒对第一耳机配置了第一配组标识之后,第一耳机在与音源设备相连时,可以将第一配组标识提供给音源设备,以便音源设备后续识别到同样具有该第一配组标识的其它耳机时,将其它耳机与该第一耳机识别为同一个耳机设备组中的耳机。
其中,第一耳机至少可以通过以下两种不同的方式与音源设备进行连接。
连接方式1),从第一耳机侧来说,该第一耳机可以是经过根据上述图2或图3所示的方法配置的耳机,在第一耳机中进行连接耳机的方法流程可以包括如下:
第一耳机广播该第一耳机的连接信息;响应于接收到音源设备基于该连接信息发送的第一连接请求,第一耳机建立该第一耳机与该音源设备之间的连接;第一耳机向该音源设备提供第一配组标识,以便该音源设备将该第一耳机识别为该第一配组标识对应的耳机设备组中的一个耳机;第一耳机接收该音源设备向该耳机设备组中的耳机发送的音频数据。
相应的,从音源设备来说,在音源设备中进行连接第一耳机的方法流程可以包括如下:
接收该第一耳机广播的连接信息;基于该连接信息发送第一连接请求,该第一连接请 求用于建立该第一耳机与该音源设备之间的连接;接收该第一耳机提供的该第一配组标识;将上述第一耳机识别为该第一配组标识对应的耳机设备组中的一个耳机;向该耳机设备组中的耳机发送音频数据。
在本申请上述图3对应的实施例所示的方案中,基于耳机收纳盒对第一耳机配置了第一配组标识之后,第一耳机在与音源设备相连时,第一耳机也可以向音源设备提供通过该第一配组标识进行解析的可解析信息,以便音源设备在已经与具有该第一配组标识的其它耳机相连的情况下,通过对该可解析信息的解析过程识别该第一耳机与其它耳机是否属于同一耳机设备组。
连接方式2),从第一耳机侧来说,在第一耳机中进行连接耳机的方法流程可以包括如下:
第一耳机广播该第一耳机的连接信息以及可解析标识;响应于接收到音源设备基于该连接信息发送的第二连接请求,建立该第一耳机与该音源设备之间的连接;该第二连接请求是该音源设备通过其它耳机提供的该第一配组标识对该可解析标识解析成功,并将该第一耳机识别为该第一配组标识对应的耳机设备组中的一个耳机后发送的;接收该音源设备向该耳机设备组中的耳机发送的音频数据。
相应的,从音源设备来说,在音源设备中进行连接第一耳机的方法流程可以包括如下:
接收该第一耳机广播的连接信息以及可解析标识;在通过其它耳机提供的该第一配组标识对该可解析标识解析成功的情况下,将该第一耳机识别为该第一配组标识对应的耳机设备组中的一个耳机;向第一耳机发送第二连接请求,该第二连接请求用于建立该第一耳机与该音源设备之间的连接;向该耳机设备组中的耳机发送音频数据。
请参考图6,其示出了本申请一个示例性实施例提供的基于耳机收纳盒配置耳机的方法的流程图。如图6所示,该流程可以包括如下步骤。
S61,一只耳机(如左耳耳机)广播自己的连接信息(例如名字和地址),让手机等音源设备去发现;
手机要连接一副耳机,可以先连接一只耳机,再去判断另一只耳机和这只耳机是否是同一副耳机。
S62,手机等音源设备通过该左耳耳机的名字发现该左耳耳机后,连接该左耳耳机;
S63,连接成功后,手机通过左耳耳机中实例化的协调集标志服务(Coordinated Set Identification Service,CSIS)读取该耳机中保存的SIRK,保存在手机等音源设备中;
S64,另一只耳机(如右耳耳机)发送带有可解析集标志符(Resolvable Set Identifier,RSI)的广播包(广播包中还可以包含连接信息),让手机等音源设备去发现和解析;
其中,RSI是使用SIRK生成的,并可以用SIRK来解析,用于判断一个协调集中的不同成员在同一个协调集中。
S65,手机等音源设备发现S64中的广播包后,用保存的SIRK解析RSI,若解析成功,则说明该右耳耳机和已经连接的左耳耳机在同一个协调集中,即组成了一副耳机。
在一种可能的实现方式中,音源设备和第一耳机之间可以基于第一耳机在一副耳机中的主从属性,来采用上述连接方式1)或者连接方式2)进行连接。例如,当第一耳机是一副耳机中的主耳机(例如上述图6中的左耳耳机)时,音源设备和第一耳机之间采用上述连接方式1)进行连接,相应的,当第一耳机是一副耳机中的从耳机(例如上述图6中的右耳耳机)时,音源设备和第一耳机之间采用上述连接方式2)进行连接。
在另一种可能的实现方式中,音源设备和第一耳机之间也可以基于第一耳机在一副耳机中的连接位序,来采用上述连接方式1)或者连接方式2)进行连接。例如,当第一耳机是一副耳机中第一个与音源设备连接的耳机(例如上述图6中的左耳耳机)时,音源设备和第一耳机之间采用上述连接方式1)进行连接,相应的,当第一耳机不是一副耳机中第一个与音源设备连接的耳机(例如上述图6中的右耳耳机)时,音源设备和第一耳机之 间采用上述连接方式2)进行连接。
综上所述,本申请实施例所示的方案,通过耳机收纳盒的配组标识,对耳机的配组标识进行配置,由于配组标识可以指示音源设备进行设备组的划分,也就是说不同的耳机可以基于同一个耳机收纳盒配置相同的配组标识来进行自由的组合,从而提高了耳机之间进行组合的灵活性,进而提高了多个耳机配合使用的便捷性。
其中,本申请上述实施例所示的方案,除了可以用于在耳机收纳盒中配置耳机的方法之外,还可以在其它配置设备(比如手机、个人电脑等)中配置耳机。其中,其它配置设备配置耳机的方法,与在耳机收纳盒中配置耳机的方法类似,此处不再赘述。
请参考图7,其示出了本申请一个示例性实施例提供的在耳机收纳盒中配置耳机的装置的结构示意图。该装置包括:
第一指令获取模块701,用于获取第一指令,所述第一指令用于触发对第一耳机进行配置;
标识读取模块702,用于读取所述耳机收纳盒的第一配组标识;
配置模块703,用于将所述第一配组标识配置给所述第一耳机;所述第一配组标识用于在所述第一耳机与音源设备相连时,指示所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;所述音源设备用于向所述耳机设备组中的各个耳机发送音频数据。
在一种可能的实现方式中,
所述第一指令获取模块701,用于响应于所述第一耳机被置于所述耳机收纳盒内,获取所述第一指令。
在一种可能的实现方式中,所述第一指令获取模块701,用于响应于所述第一耳机被置于所述耳机收纳盒内,且满足预定条件,获取所述第一指令。
在一种可能的实现方式中,所述预定条件包括以下条件中的至少一项:
接收到用户对所述耳机收纳盒执行的第一操作;
所述耳机收纳盒中除了所述第一耳机所在的耳机收纳位置之外的另一耳机收纳位置为空,且接收到用户对所述耳机收纳盒执行的第二操作;
所述耳机收纳盒中的第二耳机当前的配组标识,与所述第一耳机当前的配组标识相同,且接收到用户对所述耳机收纳盒执行的第三操作;
所述耳机收纳盒中除了所述第一耳机所在的耳机收纳位置之外的另一耳机收纳位置中收纳有第二耳机;以及
所述耳机收纳盒中的第二耳机的配组标识为所述第一配组标识。
在一种可能的实现方式中,所述耳机收纳盒包括近场通信功能;
所述第一指令获取模块701,用于响应于所述第一耳机位于所述耳机收纳盒的近场通信范围内,获取所述第一指令。
在一种可能的实现方式中,所述耳机收纳盒以及所述第一耳机分别包含有线通信接口;
所述第一指令获取模块701,用于响应于所述耳机收纳盒与所述第一耳机通过所述有线通信接口相连,获取所述第一指令。
在一种可能的实现方式中,所述装置还包括:
标识更新模块,用于响应于获取到第二指令,对所述第一配组标识进行更新。
在一种可能的实现方式中,所述装置还包括:
第二指令获取模块,用于,
响应于所述第一配组标识上一次更新的时间与当前时间之间的时间间隔达到时间间隔阈值,获取所述第二指令;或者,响应于接收到用户的第四操作,获取所述第二指令。
在一种可能的实现方式中,所述配置模块703,用于响应于所述第一耳机原有的配组 标识与所述第一配组标识不同,将所述第一耳机的配组标识更新为所述第一配组标识。
在一种可能的实现方式中,所述第一配组标识为集身份解析密钥SIRK。
综上所述,本申请实施例所示的方案,通过耳机收纳盒的配组标识,对耳机的配组标识进行配置,由于配组标识可以指示音源设备进行设备组的划分,也就是说不同的耳机可以通过同一个耳机收纳盒配置相同的配组标识来进行自由的组合,从而提高了耳机之间进行组合的灵活性,进而提高了多个耳机配合使用的便捷性。
请参考图8,其示出了本申请一个示例性实施例提供的在第一耳机中进行连接耳机的装置的结构示意图。该第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,该装置包括:
广播模块801,用于广播第一耳机的连接信息;
连接建立模块802,用于响应于接收到音源设备基于所述连接信息发送的第一连接请求,建立所述第一耳机与所述音源设备之间的连接;
标识提供模块803,用于向所述音源设备提供第一配组标识,以便所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
音频数据接收模块804,用于接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
综上所述,本申请实施例所示的方案,通过耳机收纳盒的配组标识,对耳机的配组标识进行配置,由于配组标识可以指示音源设备进行设备组的划分,也就是说不同的耳机可以通过同一个耳机收纳盒配置相同的配组标识来进行自由的组合,从而提高了耳机之间进行组合的灵活性,进而提高了多个耳机配合使用的便捷性。
请参考图9,其示出了本申请一个示例性实施例提供的在音源设备中进行连接第一耳机的装置的结构示意图,该第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,该装置包括:
广播接收模块901,用于接收所述第一耳机广播的连接信息;
连接请求发送模块902,用于基于所述连接信息发送第一连接请求,所述第一连接请求用于建立所述第一耳机与所述音源设备之间的连接;
标识接收模块903,用于接收所述第一耳机提供的所述第一配组标识;
耳机识别模块904,用于将上述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
音频数据发送模块905,用于向所述耳机设备组中的耳机发送音频数据。
请参考图10,其示出了本申请一个示例性实施例提供的在第一耳机中进行连接耳机的装置的结构示意图。该第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,该装置包括:
广播模块1001,用于广播第一耳机的连接信息以及可解析标识;
连接建立模块1002,用于响应于接收到音源设备基于所述连接信息发送的第二连接请求,建立所述第一耳机与所述音源设备之间的连接;所述第二连接请求是所述音源设备通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功,并将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机后发送的;
音频数据接收模块1003,用于接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
请参考图11,其示出了本申请一个示例性实施例提供的在音源设备中进行连接第一耳机的装置的结构示意图,该第一耳机经过根据上述在耳机收纳盒中配置耳机的方法配置,该装置包括:
广播接收模块1101,用于接收所述第一耳机广播的连接信息以及可解析标识;
耳机识别模块1102,用于在通过其它耳机提供的所述第一配组标识对所述可解析标识 解析成功的情况下,将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
连接请求发送模块1103,用于向第一耳机发送第二连接请求,所述第二连接请求用于建立所述第一耳机与所述音源设备之间的连接;
音频数据发送模块1104,用于向所述耳机设备组中的耳机发送音频数据。
本申请还提供了一种处理芯片,该处理芯片中设置有如上述实施例所示的装置。该处理芯片实现在耳机收纳盒中时,用于读取耳机收纳盒的第一配组标识,并将第一配组标识配置给第一耳机,以便音源设备将同一个配组标识对应的多个耳机识别为同一个耳机设备组中的耳机,从而进行同步的音频数据推送。
请参考图12,其示出了本申请一个示例性实施例提供的计算机设备的结构示意图。该计算机设备中包括处理器1210和存储器1220,处理器1210和存储器1220之间通过总线1230相连,且处理器1210用于执行存储器1220中存储的计算机指令,以实现如上述方面所述的在耳机收纳盒中配置耳机的方法、在第一耳机中进行连接耳机的方法或者在音源设备中进行连接第一耳机的方法。
其中,当处理器1210用于执行存储器1220中存储的计算机指令,以实现如上述方面所述的在耳机收纳盒中配置耳机的方法时,如图12所示,存储器1220中还存储有计算机设备对应的配组标识,该配组标识可以由处理器1210配置给计算机设备之外的耳机。
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述各个实施例所示的方法的全部或者部分步骤。
本申请还提供了一种计算机程序产品,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得计算机设备执行上述各个实施例所示的方法的全部或者部分步骤。
本申请还提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述各个实施例所示的方法的全部或者部分步骤。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的配组标识、音频数据都是在充分授权的情况下获取的。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (23)

  1. 一种在耳机收纳盒中配置耳机的方法,所述方法由耳机收纳盒执行,所述方法包括:
    获取第一指令,所述第一指令用于触发对第一耳机进行配置;
    读取所述耳机收纳盒的第一配组标识;
    将所述第一配组标识配置给所述第一耳机;所述第一配组标识用于在所述第一耳机与音源设备相连时,指示所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;所述音源设备用于向所述耳机设备组中的耳机发送音频数据。
  2. 根据权利要求1所述的方法,所述获取第一指令,包括:
    响应于所述第一耳机被置于所述耳机收纳盒内,获取所述第一指令。
  3. 根据权利要求2所述的方法,所述响应于所述第一耳机被置于所述耳机收纳盒内,获取所述第一指令,包括:
    响应于所述第一耳机被置于所述耳机收纳盒内,且满足预定条件,获取所述第一指令。
  4. 根据权利要求3所述的方法,所述预定条件包括以下条件中的至少一项:
    接收到用户对所述耳机收纳盒执行的第一操作;
    所述耳机收纳盒中除了所述第一耳机所在的耳机收纳位置之外的另一耳机收纳位置为空,且接收到用户对所述耳机收纳盒执行的第二操作;
    所述耳机收纳盒中的第二耳机当前的配组标识,与所述第一耳机当前的配组标识相同,且接收到用户对所述耳机收纳盒执行的第三操作;
    所述耳机收纳盒中除了所述第一耳机所在的耳机收纳位置之外的另一耳机收纳位置中收纳有第二耳机;以及
    所述耳机收纳盒中的第二耳机的配组标识为所述第一配组标识。
  5. 根据权利要求1所述的方法,所述耳机收纳盒包括近场通信功能;所述获取第一指令,包括:
    响应于所述第一耳机位于所述耳机收纳盒的近场通信范围内,获取所述第一指令。
  6. 根据权利要求1所述的方法,所述耳机收纳盒以及所述第一耳机分别包含有线通信接口;所述获取第一指令,包括:
    响应于所述耳机收纳盒与所述第一耳机通过所述有线通信接口相连,获取所述第一指令。
  7. 根据权利要求1所述的方法,所述方法还包括:
    响应于获取到第二指令,对所述第一配组标识进行更新。
  8. 根据权利要求7所述的方法,所述方法还包括:
    响应于所述第一配组标识上一次更新的时间与当前时间之间的时间间隔达到时间间隔阈值,获取所述第二指令;
    或者,
    响应于接收到用户的第四操作,获取所述第二指令。
  9. 根据权利要求1所述的方法,所述将所述第一配组标识配置给所述第一耳机,包括:
    响应于所述第一耳机当前的配组标识与所述第一配组标识不同,将所述第一耳机的配 组标识更新为所述第一配组标识。
  10. 根据权利要求1至9任一所述的方法,所述第一配组标识为集身份解析密钥SIRK。
  11. 一种在第一耳机中进行连接耳机的方法,所述方法由第一耳机执行,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述方法包括:
    广播所述第一耳机的连接信息;
    响应于接收到音源设备基于所述连接信息发送的第一连接请求,建立所述第一耳机与所述音源设备之间的连接;
    向所述音源设备提供所述第一配组标识,以便所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
    接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
  12. 一种在音源设备中进行连接第一耳机的方法,所述方法由音源设备执行,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述方法包括:
    接收所述第一耳机广播的连接信息;
    基于所述连接信息发送第一连接请求,所述第一连接请求用于建立所述第一耳机与所述音源设备之间的连接;
    接收所述第一耳机提供的所述第一配组标识;
    将上述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
    向所述耳机设备组中的耳机发送音频数据。
  13. 一种在第一耳机中进行连接耳机的方法,所述方法由第一耳机执行,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述方法包括:
    广播所述第一耳机的连接信息以及可解析标识;
    响应于接收到音源设备基于所述连接信息发送的第二连接请求,建立所述第一耳机与所述音源设备之间的连接;所述第二连接请求是所述音源设备通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功,并将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机后发送的;
    接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
  14. 一种在音源设备中进行连接第一耳机的方法,所述方法由音源设备执行,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述方法包括:
    接收所述第一耳机广播的连接信息以及可解析标识;
    在通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功的情况下,将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
    向第一耳机发送第二连接请求,所述第二连接请求用于建立所述第一耳机与所述音源设备之间的连接;
    向所述耳机设备组中的耳机发送音频数据。
  15. 一种在耳机收纳盒中配置耳机的装置,所述装置包括:
    第一指令获取模块,用于获取第一指令,所述第一指令用于触发对第一耳机进行配置;
    标识读取模块,用于读取所述耳机收纳盒的第一配组标识;
    配置模块,用于将所述第一配组标识配置给所述第一耳机;所述第一配组标识用于在所述第一耳机与音源设备相连时,指示所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;所述音源设备用于向所述耳机设备组中的耳机发送 音频数据。
  16. 一种在第一耳机中进行连接耳机的装置,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述装置包括:
    广播模块,用于广播所述第一耳机的连接信息;
    连接建立模块,用于响应于接收到音源设备基于所述连接信息发送的第一连接请求,建立所述第一耳机与所述音源设备之间的连接;
    标识提供模块,用于向所述音源设备提供所述第一配组标识,以便所述音源设备将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
    音频数据接收模块,用于接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
  17. 一种在音源设备中进行连接第一耳机的装置,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述装置包括:
    广播接收模块,用于接收所述第一耳机广播的连接信息;
    连接请求发送模块,用于基于所述连接信息发送第一连接请求,所述第一连接请求用于建立所述第一耳机与所述音源设备之间的连接;
    标识接收模块,用于接收所述第一耳机提供的所述第一配组标识;
    耳机识别模块,用于将上述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
    音频数据发送模块,用于向所述耳机设备组中的耳机发送音频数据。
  18. 一种在第一耳机中进行连接耳机的装置,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述装置包括:
    广播模块,用于广播第一耳机的连接信息以及可解析标识;
    连接建立模块,用于响应于接收到音源设备基于所述连接信息发送的第二连接请求,建立所述第一耳机与所述音源设备之间的连接;所述第二连接请求是所述音源设备通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功,并将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机后发送的;
    音频数据接收模块,用于接收所述音源设备向所述耳机设备组中的耳机发送的音频数据。
  19. 一种在音源设备中进行连接第一耳机的装置,所述第一耳机经过根据权利要求1至10任一所述的方法配置,所述装置包括:
    广播接收模块,用于接收所述第一耳机广播的连接信息以及可解析标识;
    耳机识别模块,用于在通过其它耳机提供的所述第一配组标识对所述可解析标识解析成功的情况下,将所述第一耳机识别为所述第一配组标识对应的耳机设备组中的一个耳机;
    连接请求发送模块,用于向第一耳机发送第二连接请求,所述第二连接请求用于建立所述第一耳机与所述音源设备之间的连接;
    音频数据发送模块,用于向所述耳机设备组中的耳机发送音频数据。
  20. 一种计算机设备,所述计算机设备包括处理器和存储器,所述处理器和所述存储器之间通过总线相连;
    所述处理器用于执行所述存储器中存储的计算机指令,以实现如权利要求1至14任一所述的方法。
  21. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条计算机指令,所述计算机指令由处理器加载并执行以实现如权利要求1至14任一所述的方法。
  22. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令由终端的处理器执行,使得所述终端执行如权利要求1至14任一所述的方法。
  23. 一种处理芯片,所述处理芯片用于执行如权利要求1至14任一所述的方法。
PCT/CN2022/083151 2021-05-12 2022-03-25 在耳机收纳盒中配置耳机的方法、装置、设备及程序产品 WO2022237353A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110518581.8A CN115348494A (zh) 2021-05-12 2021-05-12 在耳机收纳盒中配置耳机的方法、装置及计算机设备
CN202110518581.8 2021-05-12

Publications (1)

Publication Number Publication Date
WO2022237353A1 true WO2022237353A1 (zh) 2022-11-17

Family

ID=83946503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083151 WO2022237353A1 (zh) 2021-05-12 2022-03-25 在耳机收纳盒中配置耳机的方法、装置、设备及程序产品

Country Status (2)

Country Link
CN (1) CN115348494A (zh)
WO (1) WO2022237353A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1887770A1 (en) * 2006-08-10 2008-02-13 Skyline Information Co., Ltd. Automatic pairing method for building up a connection between a Bluetooth-enabled headset and a master unit
CN109168101A (zh) * 2018-11-16 2019-01-08 歌尔股份有限公司 耳机盒、耳机套装和耳机连接方法
CN109600694A (zh) * 2019-01-16 2019-04-09 歌尔科技有限公司 一种无线耳机的配对方法、装置、终端及充电盒
CN111629369A (zh) * 2020-05-27 2020-09-04 歌尔科技有限公司 一种蓝牙耳机及其配对连接方法、装置和tws耳机
CN111971985A (zh) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 耳机配对、耳机控制方法、蓝牙耳机收纳装置及介质
CN112492442A (zh) * 2020-11-24 2021-03-12 江苏紫米电子技术有限公司 一种蓝牙耳机的连接切换方法、装置、设备及存储介质
CN112672245A (zh) * 2020-11-30 2021-04-16 西安芯海微电子科技有限公司 一种耳机控制方法、耳机、耳机盒及计算机可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1887770A1 (en) * 2006-08-10 2008-02-13 Skyline Information Co., Ltd. Automatic pairing method for building up a connection between a Bluetooth-enabled headset and a master unit
CN109168101A (zh) * 2018-11-16 2019-01-08 歌尔股份有限公司 耳机盒、耳机套装和耳机连接方法
CN109600694A (zh) * 2019-01-16 2019-04-09 歌尔科技有限公司 一种无线耳机的配对方法、装置、终端及充电盒
CN111971985A (zh) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 耳机配对、耳机控制方法、蓝牙耳机收纳装置及介质
CN111629369A (zh) * 2020-05-27 2020-09-04 歌尔科技有限公司 一种蓝牙耳机及其配对连接方法、装置和tws耳机
CN112492442A (zh) * 2020-11-24 2021-03-12 江苏紫米电子技术有限公司 一种蓝牙耳机的连接切换方法、装置、设备及存储介质
CN112672245A (zh) * 2020-11-30 2021-04-16 西安芯海微电子科技有限公司 一种耳机控制方法、耳机、耳机盒及计算机可读存储介质

Also Published As

Publication number Publication date
CN115348494A (zh) 2022-11-15

Similar Documents

Publication Publication Date Title
EP3169086B1 (en) Connection method for multimedia playing device, master device, control terminal, and system
US20140233755A1 (en) Wireless network audio system having auto-pairing function and auto-pairing method using the same
WO2017166603A1 (zh) 一种音质调整方法、终端、电子设备及非易失性计算机存储介质
EP3166343A1 (en) Audio playing method and apparatus for multiple playing devices
CN110650408B (zh) 一种耳机及防丢方法、系统、计算机可读存储介质
CN104378801A (zh) 接入无线网络的方法及装置
CN111447600A (zh) 无线耳机的音频共享方法、终端设备及存储介质
US20140269651A1 (en) Media device configuration and ecosystem setup
WO2023160212A1 (zh) 连接建立方法、装置、设备、存储介质及程序产品
JP2017041755A (ja) オーディオシステム、オーディオ機器およびオーディオ機器設定方法
WO2024016948A1 (zh) 信息更新方法及装置、音频共享方法及系统、电子设备
WO2024066694A1 (zh) 音频设备的连接方法、装置、存储介质及设备
WO2024041189A1 (zh) 一种无线音频/视频装置和无线通信方法
WO2022237353A1 (zh) 在耳机收纳盒中配置耳机的方法、装置、设备及程序产品
CN116074679B (zh) 智能耳机的左右状态确定方法、装置、设备及存储介质
US20080040446A1 (en) Method for transfer of data
CN105682010B (zh) 音频播放系统中的蓝牙连接控制方法、装置及播放设备
CN113810887B (zh) 蓝牙协议连接方法、装置、存储介质及相关设备
CN114885261A (zh) 耳机组件、无线音频播放系统及其通信方法
CN114844736A (zh) 一种设备及通话控制方法
CN110968233A (zh) 音乐播放切换操作方法、系统、存储介质及设备
WO2023185147A1 (zh) 服务查询的处理方法、装置、设备、存储介质及程序产品
WO2024001134A1 (zh) 音频设备的连接方法、装置、存储介质及设备
WO2023246055A1 (zh) 蓝牙设备配置方法、装置、电子设备及存储介质
EP3220660A1 (en) Method adapted to be performed in a master device of a sound system, corresponding configuring methods for an audio rendering device, corresponding devices, system, computer readable program products, computer readable storage media and signal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22806323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22806323

Country of ref document: EP

Kind code of ref document: A1