WO2023029938A1 - Tws耳机解耦分享方法、装置、设备及存储介质 - Google Patents

Tws耳机解耦分享方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023029938A1
WO2023029938A1 PCT/CN2022/111860 CN2022111860W WO2023029938A1 WO 2023029938 A1 WO2023029938 A1 WO 2023029938A1 CN 2022111860 W CN2022111860 W CN 2022111860W WO 2023029938 A1 WO2023029938 A1 WO 2023029938A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
terminal
interface
identification information
mobile phone
Prior art date
Application number
PCT/CN2022/111860
Other languages
English (en)
French (fr)
Inventor
宁杰
苏炯金
范文通
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023029938A1 publication Critical patent/WO2023029938A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments

Definitions

  • the embodiments of the present application relate to the field of electronic equipment, and in particular to a TWS earphone decoupling and sharing method, device, device and storage medium.
  • a true wireless stereo (TWS) headset is a special Bluetooth headset that includes two headset bodies, such as the left earphone (or left earbud) and the right earphone (right earbud), respectively. And there is no need to connect wires between the left earphone and the right earphone.
  • the left earphone and the right earphone of the TWS earphone can be used as a pair of binaural earphones, or they can be used separately.
  • TWS headsets generally connect to terminal devices by means of automatic proximity discovery connection.
  • both the left earphone and the right earphone of the TWS earphone are used as the audio input/output device of Terminal 1
  • one earphone such as the left earphone or the right earphone
  • the TWS earphone needs to be decoupled.
  • the decoupling operation of TWS earphones is relatively cumbersome at present.
  • the embodiment of the present application provides a TWS earphone decoupling sharing method, device, equipment and storage medium, which can decouple the TWS earphone more simply and conveniently, so that the two earphones of the TWS earphone can be used independently.
  • the embodiment of the present application provides a TWS headset decoupling and sharing method, which is applied to the first terminal.
  • the method includes: the first terminal displays the identification information of the left earphone of the TWS headset on the first interface, and the right The identification information of the earphone; the first terminal receives the first operation, and the first operation is a sharing operation on the first earphone performed on the first interface based on the identification information of the first earphone; the first earphone is the left earphone or the right earphone Earphones; the first terminal displays a second interface in response to the first operation; the second interface includes at least one identification information of the second terminal; the first terminal receives the second operation, and the second operation is to select the target second interface on the second interface The operation of the identification information of the terminal; the target second terminal is one of the at least one second terminal; the first terminal sends a first message to the target second terminal in response to the second operation; the first message includes the information of the first earphone identifying information.
  • the user can decouple the TWS earphone more simply and conveniently, so that the two earphones of the TWS earphone can be connected separately.
  • the first earphone (the left-ear earphone or the right-ear earphone) may be used as the audio input/output device of the target second terminal.
  • the first terminal displays the second interface in response to the first operation, including: the first terminal displays a first menu in response to the first operation, and the first menu includes identification information of at least two sharing methods ; In response to the operation of selecting the identification information of the target sharing method, the first terminal determines that the sharing method is the target sharing method; the target sharing method is one of at least two sharing methods; the first terminal displays the second interface.
  • the first terminal sending the first message to the target second terminal includes: the first terminal sending the first message to the target second terminal in a target sharing manner.
  • the user can actively select the desired target sharing method to trigger the first terminal to send the first message to the target second terminal through the target sharing method.
  • the target sharing method may be Bluetooth, WLAN and the like.
  • the first terminal has the function of sharing the device by default using the first sharing method; the first terminal sends the first message to the target second terminal, including: when the first terminal uses the first sharing method by default When the device sharing function is turned on, the first terminal sends the first message to the target second terminal through the first sharing method.
  • the first terminal has the function of sharing the device in the first sharing manner by default.
  • the function of the first terminal to share the device by default using the first sharing method is turned on, the user does not need to actively select the sharing method, and the first terminal can send the first message to the target second terminal through the first sharing method by default.
  • the first sharing method may be Bluetooth.
  • the method further includes: the first terminal receiving service information broadcast by at least one third terminal; the first terminal according to at least one third terminal
  • the broadcast service information filters the identification information of at least one third terminal to obtain the identification information of at least one second terminal that supports connection to the TWS earphone; the identification information of at least one third terminal includes the identification information of at least one second terminal.
  • the service information broadcast by each third terminal includes a device type corresponding to the third terminal.
  • the first terminal can determine whether each third terminal is a device that supports the connection of TWS earphones according to the device type corresponding to the third terminal included in the service information broadcast by the third terminal, so that at least one third terminal
  • the identification information is filtered to obtain identification information of at least one second terminal that supports connection to the TWS earphone.
  • the service information broadcast by each third terminal includes a first field, and the first field is used to indicate whether the third terminal supports connecting to the TWS earphone.
  • the first terminal can directly determine whether each third terminal is a device that supports connecting to a TWS headset according to the first field included in the service information broadcast by the third terminal, so as to perform identification information on at least one third terminal. Filter to obtain the identification information of at least one second terminal that supports connecting to the TWS earphone.
  • the method further includes: the first terminal receiving a second message sent by the target second terminal, where the second message is used to instruct the target second terminal to accept the first earphone.
  • the method further includes: disconnecting the first terminal from the first earphone.
  • the first terminal may send a disconnection message to the first earphone to instruct the first earphone to disconnect from the first terminal, or the first terminal may actively disconnect from the first earphone. Headphone connection.
  • the disconnecting the first terminal from the first earphone includes: disconnecting the service link between the first terminal and the first earphone.
  • the method further includes: the first terminal sends first auxiliary information to the target second terminal, sends second auxiliary information to the first earphone, and the first auxiliary information and the second auxiliary information are used to assist the target second terminal Establish a connection with the first headset.
  • the first terminal sends the first auxiliary information to the target second terminal, and sends the second auxiliary information to the first earphone, which can increase the connection speed between the target second terminal and the first earphone.
  • the method further includes: the first terminal displays the connection status of the left-ear headset and the connection status of the right-ear headset on the first interface; before the first terminal receives the first operation, the connection status of the left-ear headset, And the connection state of the right earphone is the first state.
  • the method further includes: the first terminal updates the connection state of the first earphone to the second state.
  • the first terminal updates the connection state of the first earphone to the second state, and may prompt the user for a change in the connection state of the first earphone.
  • the method further includes: the first terminal updating the connection status of the first earphone to the third status.
  • the method further includes: the first terminal receives a third operation, and the third operation is based on the first earphone on the first interface.
  • the retraction operation on the first earphone performed by the identification information; the first terminal sends first indication information to the first earphone in response to the third operation, where the first indication information is used to instruct the first earphone to disconnect from the target second terminal.
  • the user can perform operations on the first terminal to take back the left earphone actively.
  • the method further includes: the first terminal receives a third operation, and the third operation is based on the first earphone on the first interface The retraction operation on the first earphone performed by the identification information; the first terminal sends second indication information to the target second terminal in response to the third operation, and the second indication information is used to instruct the target second terminal to disconnect from the first earphone connect.
  • the user can also perform operations on the first terminal to actively retract the left earphone.
  • the difference from the previous implementation is that in the previous implementation, the first earphone actively disconnects from the target second terminal, but in this implementation, the target second terminal actively disconnects from the first earphone.
  • the method further includes: the first terminal updating the connection state of the first earphone to the first state.
  • the first terminal displays the identification information of the left-ear earphone and the identification information of the right-ear earphone of the TWS earphone on the first interface, including: the first terminal displays the first interface, and the first interface includes TWS
  • the overall identification information of the earphone the first terminal displays the identification information of the left earphone and the identification information of the right earphone of the TWS earphone in the first interface in response to the decoupling operation of the overall identification information of the TWS earphone.
  • the first interface includes a Bluetooth setting interface, a pull-down interface or a negative screen.
  • the embodiment of the present application provides a device for decoupling and sharing a TWS earphone, and the device can be applied to a first terminal.
  • the device may include: a display module, a receiving module, a processing module, and a sending module.
  • the display module is used to display the identification information of the left earphone of the TWS earphone and the identification information of the right earphone in the first interface; the receiving module is used to receive the first operation, the first operation is based on the first The sharing operation on the first earphone performed by the identification information of the earphone; the first earphone is a left-ear earphone or a right-ear earphone; a processing module is configured to display a second interface through a display module in response to the first operation; the second interface includes at least The identification information of a second terminal; the receiving module is also configured to receive a second operation, the second operation is an operation of selecting the identification information of the target second terminal on the second interface; the target second terminal is the at least one second terminal One of them; a processing module, further configured to send a first message to the target second terminal through the sending module in response to the second operation; the first message includes identification information of the first earphone.
  • the processing module is specifically configured to display a first menu through the display module in response to the first operation, and the first menu includes identification information of at least two sharing methods; in response to the operation of selecting the identification information of the target sharing method , determining the sharing method as the target sharing method; the target sharing method is one of at least two sharing methods; and displaying the second interface through the display module.
  • the sending module is specifically configured to send the first message to the target second terminal in a target sharing manner.
  • the first terminal has the function of sharing the device by default using the first sharing method; The method sends the first message to the target second terminal.
  • the identification information of at least one second terminal included in the second interface is identification information of a second terminal that supports connection to the TWS earphone.
  • the receiving module is also used to receive the service information broadcast by at least one third terminal; the processing module is also used to filter the identification information of at least one third terminal according to the service information broadcast by at least one third terminal to obtain the TWS support connection
  • the identification information of at least one second terminal of the headset; the identification information of at least one third terminal includes identification information of at least one second terminal.
  • the service information broadcast by each third terminal includes a device type corresponding to the third terminal.
  • the service information broadcast by each third terminal includes a first field, and the first field is used to indicate whether the third terminal supports connecting to the TWS earphone.
  • the receiving module is further configured to receive a second message sent by the target second terminal, where the second message is used to instruct the target second terminal to accept the first earphone.
  • the processing module is further configured to control the first terminal to disconnect from the first earphone.
  • the processing module is specifically configured to control the first terminal to disconnect the service link from the first earphone.
  • the sending module is further configured to send the first auxiliary information to the target second terminal, and send the second auxiliary information to the first earphone, the first auxiliary information and the second auxiliary information are used to assist the target second terminal and the first The headset establishes a connection.
  • the display module is further configured to display the connection status of the left-ear earphone and the connection status of the right-ear earphone on the first interface.
  • the connection state of the left earphone and the connection state of the right earphone are both in the first state.
  • the processing module is further configured to update the connection status of the first earphone to the second status.
  • the processing module is further configured to update the connection status of the first earphone to the third status.
  • the receiving module is further configured to receive a third operation, where the third operation is a withdrawal operation on the first earphone performed on the first interface based on the identification information of the first earphone; the processing module is also configured to respond to In a third operation, the sending module sends first indication information to the first earphone, where the first indication information is used to instruct the first earphone to disconnect from the target second terminal.
  • the receiving module is further configured to receive a third operation, and the third operation is a withdrawal operation of the first earphone performed on the first interface based on the identification information of the first earphone; the processing module is also configured to respond to In the third operation, the sending module sends second indication information to the target second terminal, where the second indication information is used to instruct the target second terminal to disconnect from the first earphone.
  • the processing module is further configured to update the connection state of the first earphone to the first state.
  • the display module is specifically used to display the first interface
  • the first interface includes the overall identification information of the TWS earphone; in response to the decoupling operation of the overall identification information of the TWS earphone, the TWS earphone is displayed in the first interface The identification information of the left earphone and the identification information of the right earphone.
  • the first interface includes a Bluetooth setting interface, a pull-down interface or a negative screen.
  • an embodiment of the present application provides an electronic device, where the electronic device may be the first terminal described in the foregoing first aspect.
  • the electronic device includes: a processor, a memory for storing processor-executable instructions; when the processor is configured to execute the instructions, the electronic device implements the first aspect and any possible implementation manner of the first aspect. described method.
  • an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device realizes the first aspect and the first aspect.
  • the embodiment of the present application provides a computer program product, including computer readable code, or a non-volatile computer readable storage medium bearing computer readable code, when the computer readable code is stored in an electronic device During operation, the processor in the electronic device implements the method described in the first aspect and any possible implementation manner of the first aspect.
  • the embodiment of the present application provides a TWS headset decoupling sharing method, which is applied to the second terminal, and the method includes: the second terminal receives the first message sent by the first terminal, and the first message includes the information of the first headset. Identification information; the first earphone is the left ear earphone or the right ear earphone of the TWS earphone; the second terminal displays the first notification information according to the first message, and the first notification information is used to prompt the second terminal to accept the first earphone; the second terminal In response to accepting the operation of the first earphone, a connection is established with the first earphone.
  • the user can decouple the TWS earphone more simply and conveniently, so that the two earphones of the TWS earphone can be connected separately.
  • the first earphone (the left-ear earphone or the right-ear earphone) may be used as the audio input/output device of the second terminal.
  • the method further includes: the second terminal displays a first interface, and the first interface includes identification information of the first earphone and a connection status of the first earphone.
  • the user can check the connection status of the first earphone on the first interface on the second terminal.
  • the first interface further includes a sharing identifier corresponding to the first earphone.
  • the sharing identifier corresponding to the first earphone may be used to remind the user that the first earphone is the earphone to be shared.
  • the first interface includes a Bluetooth setting interface, a pull-down interface or a negative screen.
  • the second terminal displaying the first notification information according to the first message includes: the second terminal displaying the first notification information on the desktop, or on a pull-down interface, or on a negative screen, according to the first message.
  • the method further includes: the second terminal sends a second message to the first terminal, where the second message is used to instruct the second terminal to accept the first earphone.
  • the embodiment of the present application provides a device for decoupling and sharing a TWS earphone, and the device can be applied to a second terminal.
  • the device may include: a receiving module, a display module, and a processing module; the receiving module is configured to receive the first message sent by the first terminal, the first message includes the identification information of the first earphone; the first earphone is the left ear of the TWS earphone Earphone or right earphone; a display module, configured to display the first notification information according to the first message, the first notification information is used to prompt to accept the first earphone, such as prompting the second terminal to accept the first earphone; a processing module, for responding To accept the operation of the first earphone, establish a connection with the first earphone.
  • the display module is further configured to display a first interface, where the first interface includes identification information of the first earphone and a connection status of the first earphone.
  • the first interface further includes a sharing identifier corresponding to the first earphone.
  • the first interface includes a Bluetooth setting interface, a pull-down interface or a negative screen.
  • the display module is specifically configured to display the first notification information on the desktop, or on a pull-down interface, or on a negative screen, according to the first message.
  • the device further includes: a sending module, configured to send a second message to the first terminal, where the second message is used to instruct the second terminal to accept the first earphone.
  • the embodiment of the present application provides an electronic device, where the electronic device may be the first terminal described in the first aspect.
  • the electronic device includes: a processor, a memory for storing processor-executable instructions; when the processor is configured to execute the instructions, the electronic device implements the sixth aspect and any possible implementation manner of the sixth aspect. described method.
  • the embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by the electronic device, the electronic device realizes the sixth aspect and the sixth aspect.
  • the embodiment of the present application provides a computer program product, including computer readable code, or a non-volatile computer readable storage medium carrying computer readable code, when the computer readable code is stored in an electronic device During operation, the processor in the electronic device implements the method described in the tenth aspect and any possible implementation manner of the tenth aspect.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of the left ear/right earphone in the TWS earphone provided by the embodiment of the present application;
  • FIG. 4 is a schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 5 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 6 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 7 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of a sharing object selection interface provided by an embodiment of the present application.
  • FIG. 9 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of an interaction process between mobile phone 1 and mobile phone 2 provided in the embodiment of the present application.
  • FIG. 11 is a schematic diagram of the desktop of the mobile phone 2 provided by the embodiment of the present application.
  • FIG. 12 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 13 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 14 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 15 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 16 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 17 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 18 is a schematic diagram of another interaction flow between mobile phone 1 and mobile phone 2 provided by the embodiment of the present application.
  • FIG. 19 is a schematic diagram of the interaction process between the mobile phone 1 and the left earphone provided by the embodiment of the present application;
  • FIG. 20 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 21 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 22 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 23 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 24 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • FIG. 25 is a schematic structural diagram of a TWS earphone decoupling and sharing device provided by an embodiment of the present application.
  • FIG. 26 is another schematic structural diagram of the TWS earphone decoupling and sharing device provided by the embodiment of the present application.
  • Fig. 27 is another schematic structural diagram of the TWS earphone decoupling and sharing device provided by the embodiment of the present application.
  • references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • the term “connected” includes both direct and indirect connections, unless otherwise stated.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features.
  • a true wireless stereo (TWS) headset is a special Bluetooth headset that includes two headset bodies, such as the left earphone (or left earbud) and the right earphone (right earbud), respectively. And there is no need to connect wires between the left earphone and the right earphone.
  • the left earphone and the right earphone of the TWS earphone can be used as a pair of binaural earphones, or they can be used separately.
  • the left-ear earphone and the right-ear earphone of the TWS earphone can be connected to the same terminal device (such as a mobile phone, a tablet computer, etc.), and used as a pair of binaural earphones.
  • the user can disconnect the earphone from the currently connected terminal device and reconnect the earphone to another terminal device. Then, the left-ear earphone and the right-ear earphone can be used separately as audio input/output devices of their corresponding terminal devices to implement functions such as calling and playing audio.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • user 1 has a TWS headset, and the left and right earphones of the TWS headset are connected to user 1's mobile phone 1, and the left and right earphones of the TWS headset are both audio inputs of mobile phone 1 /output device.
  • the left earphone can be disconnected from mobile phone 1. and connect the left earbud to phone 2.
  • user 1 can use the right earphone to play the audio data of mobile phone 1
  • user 2 can use the left earphone to play the audio data of mobile phone 2, that is, the left earphone and the right earphone can be used separately.
  • TWS earphones are generally connected to terminal devices by means of automatic proximity discovery connection.
  • the decoupling operation is relatively cumbersome.
  • the TWS earphone In some close-range scenarios, it is even impossible to decouple the TWS earphones. For example, in the scene shown in Figure 1 above, if the distance between the left earphone and mobile phone 2 is too close to mobile phone 1 and the right earphone (such as within the Bluetooth range of mobile phone 1), the TWS earphone cannot be decoupled .
  • the embodiment of the present application provides a TWS earphone decoupling and sharing method.
  • the first terminal may display a first interface, and the first interface may include the identification information of the left earphone of the TWS earphone , and the identification information of the right earphone.
  • the user may perform a sharing operation on the left earphone based on the identification information of the left earphone on the first interface, or perform a sharing operation on the right earphone based on the identification information of the right earphone.
  • the first terminal may decouple and share the left earphone to the second terminal in response to the sharing operation on the left earphone, so that the left earphone serves as the audio input/output device of the second terminal; or, in response to the right earphone In the sharing operation, the right earphone is decoupled and shared with the second terminal, so that the right earphone serves as the audio input/output device of the second terminal.
  • the TWS earphone can be decoupled more simply and conveniently, so that the two earphones of the TWS earphone can be used independently.
  • the first terminal and/or the second terminal may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook,
  • PDA personal digital assistant
  • augmented reality augmented reality, AR
  • virtual reality virtual reality, VR
  • the embodiment of the present application has specific details about the first terminal and the second terminal The form is not particularly limited.
  • the device forms of the first terminal and the second terminal may be the same, for example, both the first terminal and the second terminal are mobile phones.
  • the device forms of the first terminal and the second terminal may also be different, for example, the first terminal is a mobile phone, and the second terminal is a tablet computer.
  • FIG. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device shown in FIG. 2 may be the above-mentioned first terminal or the second terminal.
  • the first terminal or the second terminal may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (universal serial bus, USB) interface 230, a charging management module 240, a power management Module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, earphone jack 270D, sensor module 280, button 290, motor 291, indication device 292, camera 293, display screen 294, and subscriber identification module (subscriber identification module, SIM) card interface 295, etc.
  • SIM subscriber identification module
  • the processor 210 may include one or more processing units, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the electronic equipment.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in processor 210 is a cache memory.
  • the memory may hold instructions or data that the processor 210 has just used or recycled.
  • processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship among the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device.
  • the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 240 is configured to receive charging input from the charger. While the charging management module 240 is charging the battery 242 , it can also supply power to the electronic device through the power management module 241 .
  • the power management module 241 is used for connecting the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives the input from the battery 242 and/or the charging management module 240 to provide power for the processor 210 , the internal memory 221 , the external memory, the display screen 294 , the camera 293 , and the wireless communication module 260 .
  • the power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 241 can also be set in the processor 210 .
  • the power management module 241 and the charging management module 240 may also be set in the same device.
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.
  • the mobile communication module 250 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices.
  • the mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 250 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 250 may be set in the processor 210 .
  • at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 210, and be set in the same device as the mobile communication module 250 or other functional modules.
  • the wireless communication module 260 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the wireless communication module 260 can also receive the signal to be sent from the processor 210 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 to radiate out.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • LTE
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • the first terminal may use the wireless communication module 260 to establish a Bluetooth connection with the second terminal through a wireless communication technology, such as Bluetooth (BT). Based on the established Bluetooth connection, the first terminal can send information or messages to the second terminal, and can also receive information or messages from the second terminal.
  • BT Bluetooth
  • the electronic device realizes the display function through the GPU, the display screen 294, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 294 is used to display images, videos and the like.
  • Display 294 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device may include 1 or N display screens 294, where N is a positive integer greater than 1.
  • the electronic device can realize the shooting function through ISP, camera 293 , video codec, GPU, display screen 294 and application processor.
  • the ISP is used for processing the data fed back by the camera 293 .
  • the ISP may be located in the camera 293 .
  • Camera 293 is used to capture still images or video.
  • the electronic device may include 1 or N cameras 293, where N is a positive integer greater than 1.
  • Video codecs are used to compress or decompress digital video.
  • An electronic device may support one or more video codecs.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 221 may be used to store computer-executable program codes including instructions.
  • the processor 210 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 221 .
  • the processor 210 can establish a Bluetooth connection with the second terminal through the wireless communication module 260 by executing instructions stored in the internal memory 221, and communicate with the second terminal The terminal performs short-distance data interaction.
  • the internal memory 221 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
  • the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • a wireless communication technology such as Bluetooth is used to establish a Bluetooth connection between the electronic device and the TWS earphone
  • the electronic device can store the Bluetooth address of the TWS earphone in the internal memory 221 .
  • the left earphone and the right earphone of the TWS earphone have their own Bluetooth addresses respectively.
  • the electronic device can connect the TWS earphone to the electronic device.
  • the Bluetooth address association of the left earphone and the right earphone is stored in the internal memory 221.
  • the electronic device can realize the audio function through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the earphone interface 270D, and the application processor. Such as calls, music playback, recording, etc.
  • the audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 270 may also be used to encode and decode audio signals.
  • the audio module 270 can be set in the processor 210, or some functional modules of the audio module 270 can be set in the processor 210.
  • Speaker 270A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • the electronic device can listen to music through speaker 270A, or listen to hands-free calls.
  • Receiver 270B also called “earpiece” is used to convert audio electrical signals into audio signals.
  • the receiver 270B can be placed close to the human ear to listen to the voice.
  • the microphone 270C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 270C with a human mouth, and input the sound signal into the microphone 270C.
  • the electronic device may be provided with at least one microphone 270C.
  • the electronic device can be provided with two microphones 270C, which can also implement a noise reduction function in addition to collecting sound signals.
  • the electronic device can also be equipped with three, four or more microphones 270C to realize sound signal collection, noise reduction, identify sound sources, and realize directional recording functions, etc.
  • the TWS earphone when the electronic device establishes a Bluetooth connection with the TWS earphone, the TWS earphone can be used as an audio input/output device of the electronic device.
  • the audio module 270 can receive the audio electrical signal transmitted by the wireless communication module 260, and implement functions such as answering calls through the TWS earphone.
  • the TWS headset when the user is making a phone call, the TWS headset (such as the left earphone or the right earphone of the TWS headset) can collect the user's voice signal, convert it into an audio signal and send it to the wireless communication module 260 of the electronic device.
  • the wireless communication module 260 transmits the audio electrical signal to the audio module 270 .
  • the audio module 270 can convert the received electrical audio signal into a digital audio signal, encode it and transmit it to the mobile communication module 250 .
  • the mobile communication module 250 transmits the data to the call peer device to realize the call.
  • the earphone interface 270D is used for connecting wired earphones.
  • the earphone interface 270D can be a USB interface 230, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 280 may include a pressure sensor 280A, a gyro sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, bone conduction sensor 280M, etc.
  • the structure of the electronic device shown in FIG. 2 does not constitute a specific limitation on the first terminal or the second terminal.
  • the first terminal and/or the second terminal when the first terminal and/or the second terminal is a tablet computer, desktop, laptop, handheld computer, notebook computer, UMPC, netbook, and other The device, the first terminal and/or the second terminal may include more or less components than shown in FIG. 2 , or combine some components, or separate some components, or arrange different components.
  • the components shown in Fig. 2 can be implemented in hardware, software or a combination of software and hardware.
  • the embodiment of the present application does not limit the specific structures of the first terminal and the second terminal.
  • FIG. 3 is a schematic structural diagram of a left-ear/right-ear earphone in a TWS earphone provided in an embodiment of the present application.
  • the left/right earphone of the TWS earphone may include: a processor 301 , a memory 302 , a sensor 303 , a wireless communication module 304 , at least one receiver 305 , at least one microphone 306 and a power supply 307 .
  • the memory 302 can be used to store application program codes, such as application program codes for establishing a Bluetooth connection with another earphone of the TWS earphone and enabling the earphone to be paired with the first terminal.
  • the processor 301 can control the execution of the above application program code, so as to realize the function of the earphone of the TWS earphone in the embodiment of the present application.
  • the memory 302 may also store a Bluetooth address for uniquely identifying the headset, and store a Bluetooth address of another headset of the TWS headset.
  • the memory 302 may also store connection data of an electronic device that has been successfully paired with the earphone before.
  • the connection data may be the Bluetooth address of the electronic device that has been successfully paired with the headset.
  • the earphone can be automatically paired with the electronic device without configuring the connection therebetween, such as performing legality verification.
  • the above bluetooth address may be a Media Access Control (Media Access Control, MAC) address.
  • the sensor 303 may be a distance sensor or a proximity light sensor.
  • the processor 301 of the earphone can determine whether it is worn by the user through the sensor 303 .
  • the processor 301 of the earphone can use the proximity light sensor to detect whether there is an object near the earbud, so as to determine whether the earphone is worn by the user.
  • the processor 301 of the headset may turn on the receiver 305 .
  • the earphone may also include a bone conduction sensor, combined into a bone conduction earphone.
  • the bone conduction sensor can acquire the vibration signal of the vibrating bone block of the vocal part, and the processor 301 analyzes the voice signal to realize the control function corresponding to the voice signal.
  • the earphone may further include a touch sensor or a pressure sensor, which are respectively used to detect a user's touch operation and press operation.
  • the earphone may further include a fingerprint sensor, which is used to detect the user's fingerprint, identify the user's identity, and so on.
  • the earphone may further include an ambient light sensor, and the processor 301 of the earphone may adaptively adjust some parameters, such as volume, according to the brightness of the ambient light sensed by the ambient light sensor.
  • the wireless communication module 304 is used to support short-distance data interaction between the left and right earphones of the TWS earphone, and between the earphone and various electronic devices, such as the above-mentioned first terminal.
  • the wireless communication module 304 can be a Bluetooth transceiver.
  • the earphone of the TWS earphone can establish a Bluetooth connection with the above-mentioned first terminal through the Bluetooth transceiver, so as to realize short-distance data interaction between the two.
  • the earbuds of the TWS headset can also establish a Bluetooth connection with another earbud through the Bluetooth transceiver to achieve short-distance data interaction between the two.
  • the receiver 305 also called “earpiece”, can be used to convert audio electrical signals into audio signals and play them.
  • the audio electrical signal is audio data.
  • the receiver 305 can convert the received voice data into a sound signal and play it.
  • the microphone 306 which may also be referred to as “microphone” or “microphone”, is used to convert sound signals into audio electrical signals.
  • the earphone of the TWS earphone is used as the audio input/output device of the first terminal to implement a call
  • the microphone 306 can collect the user's voice signal and convert it into audio electric signal.
  • the power supply 307 can be used to supply power to various components contained in the earphone of the TWS earphone.
  • the power source 307 may be a battery, such as a rechargeable battery.
  • the earphone of the above-mentioned TWS earphone may further include: an input/output interface 308 .
  • the input/output interface 308 can be used to provide any wired connection between the earphone of the TWS earphone and the earphone box.
  • input/output interface 308 may be an electrical connector.
  • the earphone of the TWS earphone when the earphone of the TWS earphone is placed in the cavity of the earphone box, the earphone of the TWS earphone can be electrically connected to the earphone box through the electrical connector. After the electrical connection is established, the earphone box can charge the power source 307 of the earphone of the TWS earphone.
  • the earphone of the TWS earphone can also perform data communication with the earphone box.
  • the processor 301 of the earplug of the TWS earphone can receive the pairing instruction from the earphone box through this electrical connection.
  • the pairing command is used to instruct the processor 301 of the earphone of the TWS earphone to turn on the wireless communication module 304, so that the earphone of the TWS earphone can be paired with the first terminal device using a corresponding wireless communication protocol (such as Bluetooth).
  • a corresponding wireless communication protocol such as Bluetooth
  • the earphone of the above-mentioned TWS earphone may not include the input/output interface 308 .
  • the earphone can implement charging or data communication functions based on the Bluetooth connection established with the earphone box through the wireless communication module 304 .
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the left ear/right ear earphone of the TWS earphone. It may have more or fewer components than shown in FIG. 3 , may combine two or more components, or may have a different configuration of components.
  • the left-ear/right-ear earphones may also include components such as an indicator light (which can indicate the state of the battery, etc.), a dust filter (which can be used in conjunction with the earpiece).
  • the various components shown in Figure 3 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing or application specific integrated circuits.
  • the TWS earphone decoupling and sharing method provided by the embodiment of the present application will be exemplarily described below.
  • the user of mobile phone 1 may be called user 1
  • the user of mobile phone 2 may be called user 2.
  • the TWS headset can establish a connection with the mobile phone 1 through a Bluetooth connection, and the left earphone and the right earphone of the TWS headset can be used as the audio input/output of the mobile phone 1. output device.
  • the user such as user 1 can open the first interface on the mobile phone 1 to trigger the mobile phone 1 to display the first interface.
  • the first interface may be a Bluetooth setting interface.
  • FIG. 4 is a schematic diagram of a Bluetooth setting interface provided by an embodiment of the present application.
  • the bluetooth setting interface may include identification information 401 of the left earphone and identification information 402 of the right earphone of the TWS earphone.
  • the name of the TWS earphone is "Xiaoyi's earphone”
  • the identification information 401 of the left ear earphone may include: the icon of the left ear earphone, "Xiaoyi's earphone-left ear”
  • the identification information 402 of the right ear earphone may include: The icon of the right earphone, "Xiaoyi's earphone-right ear”.
  • the user can click the Bluetooth option in the setting interface of the mobile phone 1, and the mobile phone 1 can respond to the operation of clicking the Bluetooth option in the user setting interface.
  • the Bluetooth setting interface shown in Figure 4 is displayed.
  • the user can also click or long press the Bluetooth icon in the pull-down interface of the mobile phone to trigger the mobile phone 1 to display the Bluetooth setting interface as shown in FIG. 4 .
  • the drop-down interface refers to the display interface that appears after sliding down the top of the main interface (or called the desktop) of the mobile phone, and the buttons of the functions commonly used by the user can be displayed in the drop-down interface, such as: WLAN, Bluetooth, etc., for the convenience of the user Quick access to relevant functions.
  • the user can perform a downward sliding operation on the top of the mobile phone screen to trigger the mobile phone to switch the display interface from the desktop to the drop-down interface (or overlay and display the drop-down interface on the desktop).
  • the Bluetooth setting interface can also include the connection status of the left earphone and the right earphone (such as the connection status of the left earphone and the right earphone are both connected), the left earphone and the power of the right earphone, and the setting button 403 of the left earphone and the setting button 404 of the right earphone.
  • the user can know the current connection status of the left earphone and the right earphone through the connection status of the left earphone and the right earphone respectively, and know the current power of the left earphone and the right earphone through the power of the left earphone and the right earphone respectively.
  • the mobile phone 1 can respond to the operation of the user clicking the setting button 403 of the left earphone, and display the setting interface of the left earphone, for example, the setting interface of the left earphone can include volume setting options , the user can set the playback volume of the left earphone through the volume setting option.
  • the first interface can also be the above-mentioned drop-down interface, negative one screen, or an interface of a certain application program (such as a special earphone application program).
  • the operation mode of opening the first interface is not limited.
  • the first interface is the bluetooth setting interface as shown in FIG. 4 as an example for illustration.
  • the negative screen refers to the display interface that appears after sliding the main interface (or desktop) of the mobile phone to the right.
  • the negative screen can display the user's frequently used applications, functions, subscribed services and information, etc., which is convenient for users to quickly Browse and use. For example, when the current display interface of the mobile phone is the desktop, the user can perform a rightward sliding operation on the screen of the mobile phone to trigger the mobile phone to switch the display interface from the desktop to a negative screen.
  • one negative screen is just a word used in the embodiment of the present application, and its meaning has been recorded in the embodiment of the present application, but its name does not constitute any limitation to the embodiment of the present application; in addition, in some other embodiments, “one negative screen” may also be called other names such as “desktop assistant”, “shortcut menu”, “Widget collection interface”, etc., which is not limited here.
  • FIG. 5 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application. As shown in FIG.
  • the mobile phone 1 may display a share button 405 corresponding to the left earphone above the identification information 401 of the left earphone in response to the user's operation of long pressing or double-clicking the identification information 401 of the left earphone.
  • a text prompt can also be displayed next to the share button 405: "Share this earphone", which is used to prompt the user to click the share button 405 corresponding to the left earphone to share the left earphone.
  • the user's operation of long pressing or double-clicking the identification information 401 of the left-ear earphone, and the operation of the user clicking the share button 405 corresponding to the left-ear earphone are operations performed by the user on the first interface based on the identification information of the left-ear earphone.
  • Headphone sharing operation is operations performed by the user on the first interface based on the identification information of the left-ear earphone.
  • the sharing operation on the first earphone performed on the first interface based on the identification information of the first earphone may be referred to as the first operation, and the first earphone may be a left-ear earphone or a right-ear earphone.
  • the embodiment of this application is The first headphone is the left earphone as an example for description.
  • FIG. 6 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the mobile phone 1 may pop up (display) on the Bluetooth setting interface in response to the user clicking the share button 405 corresponding to the left earphone Secondary menu, the secondary menu can include identification information of at least two sharing methods, such as "Bluetooth” and “wireless local area networks (WLAN)", the user can click "Bluetooth” or " WLAN”.
  • the mobile phone 1 may determine that the mode of sharing the left earphone is Bluetooth in response to the operation of the user clicking "Bluetooth”; or, in response to the operation of the user clicking "WLAN", determine that the mode of sharing the left earphone is WLAN.
  • FIG. 7 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the mobile phone 1 when the user clicks the share button 405 corresponding to the left earphone, the mobile phone 1 responds to the operation of the user clicking the share button 405 corresponding to the left earphone, and pops up (displays) on the Bluetooth setting interface
  • the secondary menu may also only include two types of identification information, "Bluetooth" and "Others”.
  • the mobile phone 1 may determine that the mode of sharing the left earphone is Bluetooth in response to the user's operation of clicking "Bluetooth”.
  • the mobile phone 1 may respond to the user's operation of clicking "Others" and display a sharing method selection interface.
  • the sharing method selection interface may include multiple sharing methods supported by the mobile phone 1. Such as: WLAN, NFC, etc.
  • the user can select the target sharing method on the sharing method selection interface.
  • the mobile phone 1 may determine the way of sharing the left earphone as the target sharing way in response to the user's operation of selecting the target sharing way on the sharing way selection interface.
  • no drawings are used to describe the interface for selecting a sharing method.
  • FIG. 8 is a schematic diagram of a sharing object selection interface provided by an embodiment of the present application.
  • the sharing object selection interface may include: identification information of mobile phone 1: "Xiaoyi's mobile phone”, and identification information of other devices that can be detected by mobile phone 1, such as "mobile phone 2", “mobile phone 3", “Mobile 4", "Mobile 5" and so on.
  • the user can click on the identification information of any other device in the sharing object selection interface to trigger the mobile phone 1 to use the device corresponding to the identification information as the sharing object.
  • the user may click "mobile phone 2" on the sharing object selection interface, and mobile phone 1 may determine mobile phone 2 as the sharing object in response to the user's operation of clicking "mobile phone 2".
  • the mobile phone 1 can also share the TWS earphones with other devices by default using Bluetooth sharing.
  • the mobile phone 1 may respond to the user's operation of clicking the share button 405 corresponding to the left earphone, and directly display the above-mentioned sharing object selection interface.
  • mobile phone 1 in response to the user's operation of clicking "mobile phone 2" on the sharing object selection interface, after mobile phone 1 determines that mobile phone 2 is the sharing object, it can share the TWS headset to mobile phone 2 by default using Bluetooth sharing.
  • the mobile phone 1 can also provide a switch button that uses bluetooth sharing by default, and the user can trigger the mobile phone 1 to turn on or off the function of using bluetooth to share devices by default by turning on or off the switch button.
  • FIG. 9 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the Bluetooth setting interface may also include a switch button 406 that uses Bluetooth sharing by default, and a text prompt: "By default, Bluetooth sharing devices are used.”
  • the user can trigger the mobile phone 1 to turn on or off the function of using bluetooth to share the device by default by clicking the on/off button 406 of using bluetooth sharing by default.
  • Figure 8 shows that the function of using Bluetooth to share devices is turned on by default.
  • the mobile phone 1 When the function of using bluetooth to share the device is turned on by default, after the mobile phone 1 receives an operation in response to the user clicking the share button 405 corresponding to the left earphone, the mobile phone 1 can use bluetooth as the default sharing method without popping up a secondary menu, and the mobile phone 1
  • the sharing object selection interface shown in FIG. 8 above may be directly displayed for the user to select a sharing object.
  • the mobile phone 1 may pop up a secondary menu after receiving an operation in response to the user clicking the share button 405 corresponding to the left earphone.
  • the above-mentioned sharing object selection interface can be called the second interface
  • the above-mentioned secondary menu can be called the first menu
  • the mobile phone 2, mobile phone 3, mobile phone 4, mobile phone 5, etc. can be called the second terminal, wherein the mobile phone 2 may be called the target second terminal.
  • the above operation of selecting the identification information of the mobile phone 2 on the second interface may be referred to as a second operation.
  • the first terminal may display the second interface in response to the foregoing first operation; the second interface includes identification information of at least one second terminal.
  • the first terminal may receive the second operation, and send the first message to the target second terminal in response to the second operation.
  • the target second terminal is one of the at least one second terminal.
  • the displaying the second interface by the first terminal in response to the first operation includes: displaying a first menu by the first terminal in response to the first operation, where the first menu includes identification information of at least two sharing modes.
  • the first terminal may determine the sharing method as the target sharing method in response to the operation of selecting the identification information of the target sharing method; the target sharing method is one of at least two sharing methods; the first terminal displays the second interface.
  • the first terminal may send the first message to the target second terminal in a target sharing manner.
  • the first terminal has the function of using the first sharing method to share the device by default;
  • the second terminal sends the first message.
  • the first sharing method may be the above-mentioned Bluetooth sharing method or other sharing methods.
  • other devices around the mobile phone 1 may broadcast their own service information, for example, the service information may include their own device type.
  • Mobile phone 1 can detect service information broadcast by other devices. When mobile phone 1 displays the sharing object selection interface shown in Figure 8 above, it can filter other detected devices according to the service information broadcast by other devices, and filter out devices that do not support the connection of TWS earphones, only in the sharing object selection interface Displays the identification information of devices that support the connection of TWS headsets. For example, mobile phone 1 may detect mobile phone 2, mobile phone 3, refrigerator, and rice cooker, then mobile phone 1 can determine that the refrigerator and rice cooker are devices that do not support the connection of TWS earphones according to the service information broadcast by mobile phone 2, mobile phone 3, refrigerator, and rice cooker respectively. Therefore, the mobile phone 1 can only display the identification information of the mobile phone 2 and the mobile phone 3 in the sharing object selection interface.
  • the filtering rules for the mobile phone 1 to filter devices that do not support the connection to the TWS headset according to the service information can be manually configured in the mobile phone 1, and this application does not limit the filtering rules.
  • the service information broadcast by other devices detected by the above-mentioned mobile phone 1 may be called the service information broadcast by the third terminal, and the identification information of the device that supports the connection of TWS earphones displayed on the sharing object selection interface may be called the second terminal. Identification information of the terminal.
  • the method further includes: the first terminal receives service information broadcast by at least one third terminal; the first terminal receives service information broadcast by at least one third terminal; information, filtering the identification information of at least one third terminal to obtain the identification information of at least one second terminal that supports connection to the TWS earphone; the identification information of at least one third terminal includes the identification information of at least one second terminal.
  • the service information broadcast by each of the above-mentioned devices may also include a field dedicated to indicating whether the device supports the connection of TWS earphones (such as the first field, the first field is used to indicate the corresponding device (that is, the third terminal ) supports the connection of TWS earphones), after mobile phone 1 receives the service information of other devices, it can judge whether other devices support the connection of TWS earphones based on this field.
  • a field dedicated to indicating whether the device supports the connection of TWS earphones such as the first field, the first field is used to indicate the corresponding device (that is, the third terminal ) supports the connection of TWS earphones
  • FIG. 10 is a schematic diagram of an interaction process between mobile phone 1 and mobile phone 2 provided by the embodiment of the present application.
  • mobile phone 1 determines that mobile phone 2 is the sharing object according to the user's selection operation on the sharing object selection interface, mobile phone 1 can interact with mobile phone 2 through the process shown in Figure 10, and share the left earphone of the TWS headset with mobile phone 2.
  • the interaction process between mobile phone 1 and mobile phone 2 may include:
  • Mobile phone 1 sends a first message to mobile phone 2, where the first message includes identification information of the left earphone.
  • mobile phone 2 receives the first message.
  • the identification information of the left earphone may include the Bluetooth address of the left earphone.
  • the first message is used to notify mobile phone 2 that mobile phone 1 wants to share the left earphone of the TWS headset with mobile phone 2.
  • the mobile phone 1 may send the first message to the mobile phone 2 according to the determined target sharing method or the default Bluetooth sharing method.
  • the mobile phone 2 displays the notification information that the mobile phone 1 shares the left earphone according to the first message, and a reject button and an accept button.
  • the above-mentioned notification information that the mobile phone 1 shares the left earphone may be referred to as first notification information, and the first notification information is used to prompt the mobile phone 2 to accept the left earphone.
  • FIG. 11 is a schematic diagram of the desktop of the mobile phone 2 provided by the embodiment of the present application.
  • the mobile phone 2 after the mobile phone 2 receives the first message, it can display the notification information 1101 of the mobile phone 1 sharing the left earphone, a reject button 1102 and an accept button 1103 on the desktop according to the first message.
  • the notification information 1101 of mobile phone 1 sharing the earphone of the left ear may include: "Xiaoyi's mobile phone wants to share an earphone "Xiaoyi's earphone-left ear" with you".
  • the mobile phone 2 can display the notification information 1101 of the mobile phone 1 sharing the left earphone, the reject button 1102 and the accept button 1103 on the desktop for a preset duration, such as: 5 seconds, 10 seconds, etc. After exceeding the preset duration, The mobile phone 2 can move the notification information 1101 of sharing the left earphone with the mobile phone 1, as well as the reject button 1102 and the accept button 1103 to a negative screen or a pull-down interface.
  • a preset duration such as: 5 seconds, 10 seconds, etc.
  • the mobile phone 2 after the mobile phone 2 receives the first message, it can also directly display the notification information of the left earphone shared by the mobile phone 1 on the drop-down interface or the negative screen according to the first message, as well as a reject button and an accept button . No limitation is imposed here.
  • the interaction process between mobile phone 1 and mobile phone 2 may also include: S1003-S1004.
  • the mobile phone 2 receives an operation of clicking an accept button by the user.
  • the operation of the user clicking the accept button may be referred to as the operation of accepting the left earphone (ie, the first earphone).
  • the mobile phone 2 establishes a connection with the left earphone in response to the user's operation of clicking the accept button, and sends a second message to the mobile phone 1 .
  • the mobile phone 1 can receive the second message.
  • mobile phone 2 can respond to the operation of the user clicking the accept button, and initiate (broadcast) a connection request to the left earphone according to the identification information of the left earphone in the first message. After the left earphone scans the connection request, it can respond to the connection request. Request to establish a connection with mobile phone 2. After the left earphone is connected to the mobile phone 2, it can be used as the audio input/output device of the mobile phone 2.
  • the TWS headset may only support connection to one device.
  • the mobile phone 1 may send a disconnection message to the left earphone to instruct the left earphone to disconnect from the mobile phone 1, or the mobile phone 1 may actively disconnect from the left earphone. After the left earphone is disconnected from mobile phone 1, it can establish a connection with mobile phone 2.
  • the TWS headset may include two links: a control link and a service link; the control link is used to control the TWS headset, such as controlling the volume.
  • Service links are used to carry audio data.
  • the above disconnection message may specifically be used to instruct the left earphone to disconnect the control link and the service link with the mobile phone 1, or only disconnect the service link.
  • the mobile phone 1 may only actively disconnect the service link with the left earphone and keep the control link.
  • the TWS earphone may support connecting multiple devices at the same time.
  • the mobile phone 1 does not need to send a disconnection message to the left earphone, nor does it need to actively disconnect from the left earphone. Both the control link and the service link between mobile phone 1 and the left earphone remain connected.
  • the left earphone needs to be used as the audio input/output device of the mobile phone 1 again, there is no need to establish a connection between the mobile phone 1 and the left earphone, and the data transmission can be resumed directly.
  • mobile phone 1 can know that mobile phone 2 has accepted the left earphone, or mobile phone 1 can know that the left earphone has been shared with mobile phone 2. At this time, mobile phone 1 can determine that the left earphone is the earphone to be shared, and the right earphone is the earphone that can be used by itself. Mobile phone 1 can only send its own business data to the right earphone, and no longer send its own business to the left earphone. data. That is, in this embodiment, the second message may also be used to instruct the mobile phone 1 not to send service data to the left earphone.
  • the mobile phone 1 may also respond to the second operation above and no longer send service data to the left earphone.
  • This application does not limit the timing or conditions for triggering the mobile phone 1 to no longer send service data to the left earphone in the case that the above-mentioned TWS earphone may support simultaneous connection to multiple devices.
  • the mobile phone 2 actively establishes a connection with the left earphone as an example for illustration.
  • the mobile phone 2 may also respond to the user's operation of clicking the accept button 1103, and only send the above-mentioned second message to the mobile phone 1 without actively according to the left
  • the identification information of the earphone is used to establish a connection with the left earphone.
  • mobile phone 1 After receiving the second message, mobile phone 1 can send the identification information of mobile phone 2 (such as the Bluetooth address) to the left earphone, and the left earphone can actively initiate (broadcast) a connection request according to the identification information of mobile phone 2, and mobile phone 2 scans the After the connection request, a connection with the left earphone can be established in response to the connection request.
  • the identification information of mobile phone 2 such as the Bluetooth address
  • the mobile phone 1 can also assist the mobile phone 2 to establish a connection with the left earphone, so as to increase the connection speed between the mobile phone 2 and the left earphone. For example, taking mobile phone 2 initiating a connection request and the left earphone scanning connection request as an example, mobile phone 1 can send indication information to mobile phone 2 and the left earphone respectively, which are used to indicate the time when mobile phone 2 initiates the connection request and the left earphone scanning connection request For example, mobile phone 2 initiates a connection request at intervals of 1 second, and the left earphone scans for connection requests at intervals of 1 second. Similarly, the mobile phone 1 can also indicate the time when the left earphone initiates the connection request and the time when the mobile phone 2 scans the connection request.
  • the information sent by mobile phone 1 to mobile phone 2 to assist in establishing a connection between mobile phone 2 and the left earphone can be referred to as the first auxiliary information
  • the information sent by mobile phone 1 to the left earphone to assist in establishing a connection between mobile phone 2 and the left earphone The information may be referred to as second side information. That is, the first auxiliary information and the second auxiliary information are used to assist the mobile phone 2 to establish a connection with the left earphone.
  • mobile phone 1 may also indicate in the indication information the channel for mobile phone 2 to send the connection request and the channel for the left earphone to receive the connection request, or indicate the channel for the left earphone to send the connection request and the channel for mobile phone 2 to receive the connection request.
  • FIG. 12 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the connection status of the left earphone in the Bluetooth setting interface can be updated from "connected" to "sharing connection” to remind the user of the left earphone connection status changes.
  • the "connected” state may be called the first state
  • the "sharing connection” state may be called the second state.
  • mobile phone 1 after mobile phone 1 sends the first message to mobile phone 2, it can also display a prompt message 1201 in the Bluetooth setting interface that it is waiting for mobile phone 2 to accept the left earphone, such as: "waiting for mobile phone 2 2 accept Xiaoyi's earphone - left ear".
  • FIG. 13 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the mobile phone 1 can continue to update the connection status of the left earphone in the Bluetooth setting interface from "sharing connection" to "shared".
  • the mobile phone 2 can send a notification message to the mobile phone 1 that the mobile phone 2 and the left earphone are successfully connected.
  • the connection status of is updated from "sharing connection” to "shared”.
  • the "shared" state may be referred to as the third state.
  • the mobile phone 2 may also include a first interface, and also take the first interface as an example of a Bluetooth setting interface.
  • FIG. 14 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application. As shown in Figure 14, after the mobile phone 2 and the left earphone are successfully connected, the mobile phone 2 can also display the identification information of the left earphone on its Bluetooth setting interface, the connection status of the left earphone (if connected), and the status of the left earphone.
  • the mobile phone 2 can also display the sharing logo 1401 corresponding to the left earphone on its Bluetooth setting interface.
  • the sharing logo 1401 can include a sharing icon and the text prompt "share the earphone", the sharing mark 1401 is used to indicate to the user that the left ear earphone is the earphone to be shared.
  • the mobile phone 1 may also continue to display the battery level of the left earphone on the first interface, which is not limited here.
  • the above embodiment introduces the process of how to decouple and share the left earphone to the mobile phone 2 .
  • the user (such as user 1) can also perform operations on the mobile phone 1 to actively retract the left-ear earphone.
  • FIG. 15 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the mobile phone 1 may display a stop sharing button 1501 on the Bluetooth setting interface.
  • the stop sharing button 1501 When user 1 wants to take back the left earphone, he can click the stop sharing button 1501 .
  • the mobile phone 1 may retract the left earphone in response to the user's operation of clicking the stop sharing button 1501 .
  • FIG. 16 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the left earphone is shared with the mobile phone 2
  • the user 1 wants to take back the left earphone, he can double-click or long press the identification information of the left earphone (such as Xiaoyi's Headphones - left ear).
  • the mobile phone 1 can respond to the user's operation of double-clicking or long-pressing the identification information of the left earphone to display a retract button 1601, and a text prompt "retract this earphone" can also be displayed next to the retract button 1601.
  • the user can click the retract button 1601, and the mobile phone 1 can retract the left earphone in response to the user's operation of clicking the retract button 1601.
  • the left-ear earphone after the left-ear earphone is shared with the mobile phone 2, when user 1 wants to take back the left-ear earphone, he can double-click or long press the identification information of the left-ear earphone (such as Xiaoyi's earphone-left ear ).
  • the mobile phone 1 may directly retract the left earphone in response to the user's operation of double-clicking or long-pressing the identification information of the left-ear earphone.
  • the present application does not limit the operation method for the user to trigger the mobile phone 1 to retract the left earphone.
  • FIG. 17 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the mobile phone 1 may display a stop sharing button 1501 on the Bluetooth setting interface.
  • the user can click the stop sharing button 1501 to trigger the mobile phone 1 to take back the left earphone.
  • the user can also double-click or long press the identification information of the left earphone (such as Xiaoyi's earphone-left ear), trigger the mobile phone 1 to display the retract button 1601, and click the retract button 1601 to trigger the mobile phone 1 left earphone.
  • the above operation of the user clicking the stop sharing button 1501, and the operation of clicking the retract button 1601 after the user double-clicks or long-presses the identification information of the left earphone to trigger the mobile phone 1 to display the retract button 1601 are all operations that the user actively performs to retract the left earphone .
  • these retracting operations on the first earphone performed on the first interface based on the identification information of the first earphone may be referred to as a third operation, and this application does not limit the specific implementation of the third operation.
  • mobile phone 1 retracting the left earphone can be as follows:
  • the mobile phone 1 after the mobile phone 1 receives the user's initiative to retract the left-ear earphone, it can send a message to the mobile phone 2 to retract the left-ear earphone (such as the second instruction information, the second instruction information is used to instruct the mobile phone 2 Disconnect from the left earphone), after mobile phone 2 receives the message, it can actively disconnect from the left earphone, and the left earphone can be reconnected to mobile phone 1 as the audio input/output device of mobile phone 1.
  • a message to the mobile phone 2 to retract the left-ear earphone such as the second instruction information, the second instruction information is used to instruct the mobile phone 2 Disconnect from the left earphone
  • FIG. 18 is a schematic diagram of another interaction flow between mobile phone 1 and mobile phone 2 provided by the embodiment of the present application.
  • the interaction process between mobile phone 1 and mobile phone 2 may include:
  • Mobile phone 1 sends a message to mobile phone 2 to withdraw the left earphone.
  • the message of taking back the left earphone is used to instruct the mobile phone 2 to disconnect from the left earphone.
  • the mobile phone 2 receives the message of taking back the left earphone.
  • the mobile phone 2 is disconnected from the left earphone.
  • the mobile phone 2 sends a notification message to the mobile phone 1 that the mobile phone 2 is disconnected from the left earphone.
  • the message sent by the mobile phone 1 to the mobile phone 2 to take back the left earphone may include indication information indicating the time or delay for the mobile phone 2 to start disconnecting from the left earphone.
  • the mobile phone 1 may also send a message to the left-ear earphone to withdraw the left-ear earphone (such as the first indication information, the first indication information is used for Instruct the left earphone to disconnect from the mobile phone 2), after receiving the message, the left earphone can actively disconnect from the mobile phone 2, and reconnect with the mobile phone 1 as the audio input/output device of the mobile phone 1.
  • a message such as the first indication information, the first indication information is used for Instruct the left earphone to disconnect from the mobile phone 2
  • the left earphone can actively disconnect from the mobile phone 2, and reconnect with the mobile phone 1 as the audio input/output device of the mobile phone 1.
  • FIG. 19 is a schematic diagram of an interaction process between the mobile phone 1 and the left earphone provided by the embodiment of the present application.
  • the interaction process between the mobile phone 1 and the left earphone may include:
  • the mobile phone 1 sends a message for retracting the left earphone to the left earphone.
  • the message of withdrawing the left earphone is used to indicate that the left earphone is disconnected from the mobile phone 2 .
  • the left-ear earphone receives the message of retracting the left-ear earphone.
  • the left earphone is disconnected from the mobile phone 2.
  • the left earphone sends a notification message to the mobile phone 1 that the left earphone is disconnected from the mobile phone 2.
  • the message sent by the mobile phone 1 to the left earphone to take back the left earphone may include indication information indicating the time or delay for the left earphone to start disconnecting from the left earphone.
  • the mobile phone 1 can update the connection status of the left earphone displayed on the first interface from "shared" to "connecting". ", for example: the first interface can be switched back to the one shown in Figure 4 above.
  • FIG. 20 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application. As shown in Figure 20, when the left earphone is retracted and re-used as the audio input/output device of mobile phone 1, mobile phone 2 can update the Bluetooth setting interface from that shown in Figure 14 to that shown in Figure 20, and change the connection status of the left earphone to Updated from "connected" to "recovered, disconnected".
  • the mobile phone 2 may determine that the left earphone is withdrawn according to the received message of withdrawing the left earphone, so as to update the connection status of the left earphone.
  • the mobile phone 2 since the disconnection is initiated by the left earphone, the mobile phone 2 cannot directly know whether the reason for the disconnection is retraction.
  • an instruction message can be sent to mobile phone 2, indicating that the disconnection is taken back by mobile phone 1, so that mobile phone 2 can update the connection status of the left earphone from "connected” to "recovered, disconnected”. even”.
  • this embodiment of the present application also provides a TWS headset decoupling sharing method.
  • the left earphone is shared with the mobile phone 2
  • the user can also directly operate on the mobile phone 1 to connect the left earphone Decoupling and sharing from mobile phone 2 to other devices, such as mobile phone 3.
  • decoupling and sharing the left earphone from the mobile phone 2 to the mobile phone 3 is used as an example for illustration.
  • FIG. 21 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the user can double-click or long press the left earphone in the Bluetooth setting interface of mobile phone 1 identification information.
  • Mobile phone 1 responds to the user's operation of double-clicking or long-pressing the identification information of the left earphone in the Bluetooth setting interface of mobile phone 1, not only can display the withdrawal button described in the above-mentioned embodiment (the label is not repeated in Figure 21), but also can A share button 2101 is displayed.
  • the sharing button 2101 the mobile phone 1 can control the left earphone to disconnect from the mobile phone 2 in response to the user's operation of clicking the sharing button 2101, and re-share the left earphone to the mobile phone 3.
  • the manner in which the mobile phone 1 controls the disconnection of the left earphone from the mobile phone 2 may refer to the above implementation shown in FIG. 18 or FIG. 19 .
  • the mobile phone 1 After the mobile phone 1 receives the user's click on the share button 2101, it can sequentially display the interface shown in FIG. 6/FIG. 7 and the interface shown in FIG. 8 for the user to choose the sharing method and sharing object (mobile phone 3).
  • the mobile phone may directly display the interface shown in FIG. 8 above for the user to select a sharing object (mobile phone 3).
  • mobile phone 1 can share the left earphone with mobile phone 3.
  • the specific process is similar to the process of sharing the left earphone to the mobile phone 2 described in the foregoing embodiments, and reference may be made to the foregoing embodiments, so details will not be repeated here.
  • the above embodiment is an example of the embodiment of the present application by taking the earphone of the left ear sharing the TWS earphone as an example.
  • the above-mentioned embodiment of sharing the earphone of the left ear is also applicable to the process of sharing the earphone of the right ear, and the principle is the same.
  • the mobile phone 1 can also combine and display the identification information of the left earphone and the right earphone of the TWS earphone on the first interface as the overall identification information of the TWS earphone (or called the TWS earphone’s identification information).
  • the overall identification information the user can operate on the first interface to trigger the mobile phone 1 to decouple the overall identification information of the TWS earphone and display it as the identification information of the left ear earphone and the identification information of the right ear earphone.
  • FIG. 22 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the mobile phone 1 can combine and display the identification information of the left earphone and the right earphone of the TWS earphone in the Bluetooth setting interface as the overall identification information of the TWS earphone: "Xiaoyi's earphone".
  • the user can double-click or long-press the overall identification information of the TWS earphone in the Bluetooth setting interface shown in Figure 22, and the mobile phone 1 can respond to the user's double-click or long-press the operation of the overall identification information of the TWS earphone, as shown in Figure 4 In this way, the overall identification information of the TWS earphone is decoupled and displayed as the identification information of the left-ear earphone and the identification information of the right-ear earphone.
  • FIG. 23 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • mobile phone 1 can combine and display the identification information of the left earphone and the right earphone of the TWS earphone in the Bluetooth setting interface as the overall identification information of the TWS earphone: "Xiaoyi's earphone", and can also display A decoupling button 2301.
  • the user can click the decoupling button 2301 in the Bluetooth setting interface shown in Figure 23, and the mobile phone 1 can respond to the user's operation of clicking the decoupling button 2301, and decouple the overall identification information of the TWS headset as shown in Figure 4 Displayed as the identification information of the left earphone and the identification information of the right earphone.
  • the above-mentioned user clicks the decoupling button 2301, or double-clicks or long-presses the overall identification information of the TWS earphone to trigger the mobile phone 1 to decouple and display the overall identification information of the TWS earphone. Decoupling of identification information.
  • the mobile phone 1 can directly transfer the left earphone and right earphone of the TWS earphone in the first interface.
  • the identification information of the TWS headset is combined and displayed as the overall identification information of the TWS headset.
  • the mobile phone 1 can also decouple and display the identification information of the left earphone and the identification information of the right earphone.
  • An active operation can be performed to trigger the mobile phone 1 to combine and display the identification information of the left earphone and the right earphone of the TWS earphone as the overall identification information of the TWS earphone.
  • FIG. 24 is another schematic diagram of the Bluetooth setting interface provided by the embodiment of the present application.
  • the mobile phone 1 can decouple and display the identification information of the left earphone and the identification information of the right earphone , and a merge button 2401 is displayed.
  • the user can click the merge button 2401, and the mobile phone 1 can respond to the user's operation of the merge button 2401 to merge and display the identification information of the left earphone and the right earphone of the TWS earphone as a TWS earphone in the manner shown in Figure 22 or Figure 23 Overall identification information.
  • the embodiment of the present application provides a TWS earphone decoupling and sharing device, which can be applied to the above-mentioned first terminal to implement the first terminal described in the foregoing embodiments.
  • Method steps performed by a terminal can be realized by hardware, and can also be realized by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the steps in the above display method.
  • FIG. 25 is a schematic structural diagram of a TWS earphone decoupling and sharing device provided in an embodiment of the present application.
  • the device may include: a display module 2501 , a receiving module 2502 , a processing module 2503 , and a sending module 2504 .
  • the display module 2501 , the receiving module 2502 , the processing module 2503 , and the sending module 2504 may be configured to cooperate to implement the method steps performed by the first terminal described in the foregoing embodiments.
  • the display module 2501 is used to display the identification information of the left earphone and the identification information of the right earphone of the TWS earphone in the first interface; the receiving module 2502 is used to receive the first operation, and the first operation is in the first The sharing operation on the first earphone performed by the interface based on the identification information of the first earphone; the first earphone is a left-ear earphone or a right-ear earphone; the processing module 2503 is configured to display the second interface through the display module 2501 in response to the first operation
  • the second interface includes identification information of at least one second terminal;
  • the receiving module 2502 is also configured to receive a second operation, the second operation is an operation of selecting the identification information of the target second terminal on the second interface; the target second terminal is One of the at least one second terminal; the processing module 2503 is further configured to send a first message to the target second terminal through the sending module 2504 in response to the second operation; the first message includes identification information of the first earphone.
  • the processing module 2503 is specifically configured to display a first menu through the display module 2501 in response to the first operation, the first menu includes identification information of at least two sharing methods; The operation determines that the sharing method is the target sharing method; the target sharing method is one of at least two sharing methods; and the second interface is displayed through the display module 2501 .
  • the sending module 2504 is specifically configured to send the first message to the target second terminal in a target sharing manner.
  • the first terminal has the function of sharing the device by default using the first sharing method; the sending module 2504 is specifically used to send the device through the first sharing method when the function of the first terminal to share the device by default using the first sharing method is enabled.
  • the sharing method sends the first message to the target second terminal.
  • the identification information of at least one second terminal included in the second interface is identification information of a second terminal that supports connection to the TWS earphone.
  • the receiving module 2502 is further configured to receive service information broadcast by at least one third terminal;
  • the processing module 2503 is further configured to filter the identification information of at least one third terminal according to the service information broadcast by at least one third terminal to obtain support
  • the identification information of at least one third terminal includes identification information of at least one second terminal.
  • the service information broadcast by each third terminal includes a device type corresponding to the third terminal.
  • the service information broadcast by each third terminal includes a first field, and the first field is used to indicate whether the third terminal supports connecting to the TWS earphone.
  • the receiving module 2502 is further configured to receive a second message sent by the target second terminal, where the second message is used to instruct the target second terminal to accept the first earphone.
  • the processing module 2503 is further configured to control the first terminal to disconnect from the first earphone.
  • the processing module 2503 is specifically configured to control the first terminal to disconnect the service link from the first earphone.
  • the sending module 2504 is further configured to send first auxiliary information to the target second terminal, and send second auxiliary information to the first earphone, where the first auxiliary information and the second auxiliary information are used to assist the target second terminal and the second earphone.
  • a headset is connected.
  • the display module 2501 is further configured to display the connection status of the left earphone and the connection status of the right earphone on the first interface.
  • the connection state of the left earphone and the connection state of the right earphone are both in the first state.
  • the processing module 2503 is further configured to update the connection status of the first earphone to the second status.
  • the processing module 2503 is further configured to update the connection status of the first earphone to the third status.
  • the receiving module 2502 is further configured to receive a third operation, where the third operation is a retraction operation on the first earphone performed on the first interface based on the identification information of the first earphone; the processing module 2503 is also configured to In response to the third operation, the sending module 2504 sends first indication information to the first earphone, where the first indication information is used to instruct the first earphone to disconnect from the target second terminal.
  • the third operation is a retraction operation on the first earphone performed on the first interface based on the identification information of the first earphone
  • the processing module 2503 is also configured to In response to the third operation, the sending module 2504 sends first indication information to the first earphone, where the first indication information is used to instruct the first earphone to disconnect from the target second terminal.
  • the receiving module 2502 is further configured to receive a third operation, the third operation being a withdrawal operation on the first earphone performed on the first interface based on the identification information of the first earphone; the processing module 2503 is also used to In response to the third operation, the sending module 2504 sends second indication information to the target second terminal, where the second indication information is used to instruct the target second terminal to disconnect from the first earphone.
  • the processing module 2503 is further configured to update the connection state of the first earphone to the first state.
  • the display module 2501 is specifically used to display the first interface, the first interface includes the overall identification information of the TWS earphone; in response to the decoupling operation of the overall identification information of the TWS earphone, the TWS earphone is displayed on the first interface The identification information of the earphone of the left ear and the identification information of the earphone of the right ear of the earphone.
  • the first interface includes a Bluetooth setting interface, a pull-down interface or a negative screen.
  • TWS earphone decoupling and sharing device shown in FIG. 25 can be used to implement all the functions of the first terminal described in the above embodiments, and details will not be repeated here.
  • the embodiment of the present application also provides a TWS earphone decoupling and sharing device, which can be applied to the above-mentioned second terminal, and is used to implement the method steps performed by the second terminal described in the foregoing embodiments.
  • the second terminal may refer to the aforementioned target second terminal.
  • the functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the steps in the above display method.
  • FIG. 26 is another schematic structural diagram of the TWS earphone decoupling and sharing device provided by the embodiment of the present application.
  • the device may include: a receiving module 2601, a display module 2602, and a processing module 2603; the receiving module 2601, the display module 2602, and the processing module 2603 may be used to cooperate with implementing the second terminal described in the foregoing embodiments to execute method steps.
  • the receiving module 2601 is used to receive the first message sent by the first terminal, the first message includes the identification information of the first earphone; the first earphone is the left ear earphone or the right ear earphone of the TWS earphone; the display module 2602 is used for According to the first message, the first notification information is displayed, and the first notification information is used to prompt to accept the first earphone, such as prompting the second terminal to accept the first earphone; the processing module 2603 is configured to respond to the operation of accepting the first earphone, and the second terminal A headset is connected.
  • the display module 2602 is further configured to display a first interface, where the first interface includes identification information of the first earphone and a connection status of the first earphone.
  • the first interface further includes a sharing identifier corresponding to the first earphone.
  • the first interface includes a Bluetooth setting interface, a pull-down interface or a negative screen.
  • the display module 2602 is specifically configured to display the first notification information on the desktop, or on a pull-down interface, or on a negative screen, according to the first message.
  • FIG. 27 is another schematic structural diagram of the TWS earphone decoupling and sharing device provided in the embodiment of the present application.
  • the device further includes: a sending module 2604, configured to send a second message to the first terminal, where the second message is used to instruct the second terminal to accept the first earphone.
  • the division of modules (or called units) in the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation.
  • the units in the device can all be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware.
  • each unit can be a separate processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function. In addition, all or part of these units can be integrated together, or implemented independently.
  • the processing element described here may also be referred to as a processor, and may be an integrated circuit with a signal processing capability. In the process of implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
  • the units in the above device may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or, one or more A digital signal processor (DSP), or, one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuit forms.
  • ASIC application specific integrated circuits
  • DSP digital signal processor
  • FPGA field programmable gate arrays
  • the processing element can be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • the units of the above apparatus for implementing each corresponding step in the above method may be implemented in the form of a processing element scheduler.
  • the apparatus may include a processing element and a storage element, and the processing element invokes a program stored in the storage element to execute the methods described in the above method embodiments.
  • the storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.
  • the program for executing the above method may be stored in a storage element on a different chip from the processing element, that is, an off-chip storage element.
  • the processing element invokes or loads a program from the off-chip storage element to the on-chip storage element, so as to invoke and execute the methods described in the above method embodiments.
  • the embodiment of the present application also provides an electronic device.
  • the electronic device may be the first terminal described in the above embodiments.
  • the electronic device includes: a processor, a memory configured to store instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method steps performed by the first terminal as described in the foregoing embodiments.
  • the memory can be located inside the electronic device or outside the electronic device.
  • the processor includes one or more.
  • the embodiment of the present application further provides an electronic device.
  • the electronic device may be the second terminal described in the above embodiments.
  • the electronic device includes: a processor, a memory configured to store instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method steps performed by the second terminal as described in the foregoing embodiments.
  • the memory can be located inside the electronic device or outside the electronic device.
  • the processor includes one or more.
  • the above-mentioned electronic device may be a mobile phone, and may also be a tablet computer, a wearable device, a vehicle-mounted device, an AR/VR device, a notebook computer, a UMPC, a netbook, a PDA, and the like.
  • the unit of the above-mentioned electronic device implementing each step in the above method may be configured as one or more processing elements, where the processing elements may be integrated circuits, for example: one or more ASICs, or one Or multiple DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
  • an embodiment of the present application further provides a chip, and the chip can be applied to the above-mentioned electronic device.
  • the chip includes one or more interface circuits and one or more processors; the interface circuits and processors are interconnected through lines; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuits, so as to realize the The method steps performed by the first terminal, or the method steps performed by the second terminal.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the software product is stored in a program product, such as a computer-readable storage medium, and includes several instructions to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all of the methods described in various embodiments of the present application. or partial steps.
  • the aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
  • an embodiment of the present application also provides a computer-readable storage medium on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device realizes the first terminal described in the above embodiments The executed method steps, or, the method steps executed by the second terminal.
  • an embodiment of the present application further provides a computer program product, including: computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in the electronic device
  • the processor in the electronic device implements the method steps executed by the first terminal as described in the above embodiments, or the method steps executed by the second terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供一种TWS耳机解耦分享方法、装置、设备及存储介质,涉及电子设备领域。该方法包括:第一终端在第一界面中显示TWS耳机的左耳耳机以及右耳耳机的标识信息;第一终端响应于第一操作,显示第二界面;第二界面包括至少一个第二终端的标识信息;第一终端响应于第二操作,向目标第二终端发送第一消息;第一消息包括第一耳机的识别信息。通过本申请实施例提供的TWS耳机解耦分享方法,可以更加简单、便捷地对TWS耳机进行解耦,使TWS耳机的两只耳机可以分别独立使用。

Description

TWS耳机解耦分享方法、装置、设备及存储介质
本申请要求于2021年08月31日提交国家知识产权局、申请号为202111013777.8、申请名称为“TWS耳机解耦分享方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子设备领域,尤其涉及一种TWS耳机解耦分享方法、装置、设备及存储介质。
背景技术
真无线立体声(true wireless stereo,TWS)耳机是一种特殊的蓝牙耳机,其包含两个耳机主体,如,分别称为左耳耳机(或称为左耳塞)和右耳耳机(右耳塞),且左耳耳机和右耳耳机之间不需要线材的连接。TWS耳机的左耳耳机和右耳耳机可以作为一副双耳耳机使用,也可以分别单独使用。
TWS耳机一般是采用自动靠近发现连接的方式与终端设备进行连接。当TWS耳机的左耳耳机和右耳耳机均作为终端1的音频输入/输出设备时,如果想要将TWS耳机中的一只耳机(如左耳耳机或右耳耳机)由终端1的音频输入/输出设备切换为终端2的音频输入/输出设备,则需要对TWS耳机进行解耦。但目前对TWS耳机的解耦操作较为繁琐。
发明内容
本申请实施例提供一种TWS耳机解耦分享方法、装置、设备及存储介质,可以更加简单、便捷地对TWS耳机进行解耦,使TWS耳机的两只耳机可以分别独立使用。
第一方面,本申请实施例提供一种TWS耳机解耦分享方法,应用于第一终端,所述方法包括:第一终端在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息;第一终端接收第一操作,第一操作为在所述第一界面基于第一耳机的标识信息执行的对第一耳机的分享操作;第一耳机为左耳耳机或右耳耳机;第一终端响应于第一操作,显示第二界面;第二界面包括至少一个第二终端的标识信息;第一终端接收第二操作,第二操作为在第二界面选择目标第二终端的标识信息的操作;目标第二终端是所述至少一个第二终端中的一个;第一终端响应于第二操作,向目标第二终端发送第一消息;第一消息包括第一耳机的识别信息。
当TWS耳机的左耳耳机和右耳耳机作为第一终端的音频输入/输出设备时,通过该方法,用户可以更加简单、便捷地对TWS耳机进行解耦,使TWS耳机的两只耳机可以分别独立使用。例如,可以使第一耳机(左耳耳机或右耳耳机)作为目标第二终端的音频输入/输出设备。
一种实现方式中,所述第一终端响应于第一操作,显示第二界面,包括:第一终端响应于第一操作,显示第一菜单,第一菜单包括至少两种分享方式的标识信息;第一终端响应于选择目标分享方式的标识信息的操作,确定分享方式为目标分享方式;目标分享方式是至少两种分享方式中的一种;第一终端显示第二界面。
所述第一终端向目标第二终端发送第一消息,包括:第一终端通过目标分享方式向目标第二终端发送第一消息。
本实现方式中,用户可以基于第一菜单,主动选择想要采用的目标分享方式,以触发第一终端通过目标分享方式向目标第二终端发送第一消息。例如,目标分享方式可以是蓝牙、WLAN等。
另一种实现方式中,第一终端具有默认采用第一分享方式分享设备的功能;所述第一终端向目标第二终端发送第一消息,包括:当第一终端的默认采用第一分享方式分享设备的功能打开时,第一终端通过第一分享方式向目标第二终端发送第一消息。
本实现方式中,第一终端具有默认采用第一分享方式分享设备的功能。当第一终端的默认采用第一分享方式分享设备的功能打开时,用户无需主动选择分享方式,第一终端可以默认通过第一分享方式向目标第二终端发送第一消息。例如,第一分享方式可以是蓝牙。
可选地,所述第一终端响应于第一操作,显示第二界面之前,所述方法还包括:第一终端接收至少一个第三终端广播的服务信息;第一终端根据至少一个第三终端广播的服务信息,对至少一个第三终端的标识信息进行过滤,得到支持连接TWS耳机的至少一个第二终端的标识信息;至少一个第三终端的标识信息包括至少一个第二终端的标识信息。
一种实现方式中,每个第三终端广播的服务信息包括第三终端对应的设备类型。
本实现方式中,第一终端可以根据第三终端广播的服务信息包括的第三终端对应的设备类型,确定每个第三终端是否为支持连接TWS耳机的设备,从而对至少一个第三终端的标识信息进行过滤,得到支持连接TWS耳机的至少一个第二终端的标识信息。
可选地,每个第三终端广播的服务信息包括第一字段,第一字段用于指示第三终端是否支持连接TWS耳机。
本实现方式中,第一终端可以直接根据第三终端广播的服务信息包括的第一字段,确定每个第三终端是否为支持连接TWS耳机的设备,从而对至少一个第三终端的标识信息进行过滤,得到支持连接TWS耳机的至少一个第二终端的标识信息。
可选地,所述方法还包括:第一终端接收目标第二终端发送的第二消息,第二消息用于指示目标第二终端接受第一耳机。
可选地,所述第一终端接收目标第二终端发送的第二消息之后,所述方法还包括:第一终端与第一耳机断开连接。
例如,第一终端接收到第二消息后,可以向第一耳机发送一个断连消息,用于指示第一耳机断开与第一终端的连接,或者,第一终端可以主动断开与第一耳机的连接。
一种实现方式中,所述第一终端与第一耳机断开连接,包括:第一终端与第一耳机断开业务链路。
可选地,所述方法还包括:第一终端向目标第二终端发送第一辅助信息,向第一耳机发送第二辅助信息,第一辅助信息和第二辅助信息用于辅助目标第二终端和第一耳机建立连接。
本实现方式中,第一终端向目标第二终端发送第一辅助信息,向第一耳机发送第二辅助信息,可以提高目标第二终端与第一耳机之间的连接速度。
可选地,所述方法还包括:第一终端在第一界面中显示左耳耳机的连接状态、以及右耳耳机的连接状态;第一终端接收第一操作之前,左耳耳机的连接状态、以及右耳耳机的连接状态均为第一状态。所述第一终端向目标第二终端发送第一消息之后,所述方法还包括:第一终端将第一耳机的连接状态更新为第二状态。
本实现方式中,第一终端将第一耳机的连接状态更新为第二状态,可以向用户提示第一耳机的连接状态变化。
可选地,所述第一终端接收目标第二终端发送的第二消息之后,所述方法还包括:第一终端将第一耳机的连接状态更新为第三状态。
一种实现方式中,所述第一终端接收目标第二终端发送的第二消息之后,所述方法还包括:第一终端接收第三操作,第三操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的收回操作;第一终端响应于第三操作,向第一耳机发送第一指示信息,第一指示信息用于指示第一耳机与目标第二终端断开连接。
本实现方式中,当第一耳机被分享给目标第二终端后,用户可以在第一终端上进行操作,主动收回左耳耳机。
另一种实现方式中,所述第一终端接收目标第二终端发送的第二消息之后,所述方法还包括:第一终端接收第三操作,第三操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的收回操作;第一终端响应于第三操作,向目标第二终端发送第二指示信息,第二指示信息用于指示目标第二终端与第一耳机断开连接。
本实现方式中,当第一耳机被分享给目标第二终端后,用户也可以在第一终端上进行操作,主动收回左耳耳机。与上一种实现方式的区别在于,上一种实现方式中,是第一耳机主动与目标第二终端断开连接,本实现方式中,是目标第二终端主动与第一耳机断开连接。
可选地,所述方法还包括:第一终端将第一耳机的连接状态更新为第一状态。
一种实现方式中,所述第一终端在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息,包括:第一终端显示第一界面,第一界面包括TWS耳机的整体标识信息;第一终端响应于对TWS耳机的整体标识信息的解耦操作,在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息。
可选地,第一界面包括蓝牙设置界面、下拉界面或负一屏。
第二方面,本申请实施例提供一种TWS耳机解耦分享装置,所述装置可以应用于第一终端。所述装置可以包括:显示模块、接收模块、处理模块、发送模块。显示模块,用于在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息;接收模块,用于接收第一操作,第一操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的分享操作;第一耳机为左耳耳机或右耳耳机;处理模块,用于响应于第一操作,通过显示模块显示第二界面;第二界面包括至少一个第二终端的标识信息;接收模块,还用于接收第二操作,第二操作为在第二界面选择目标第二终端的标识信息的操作;目标第二终端是所述至少一个第二终端中的一个;处理模块,还用于响应于第二操作,通过发送模块向目标第二终端发送第一消息;第一消息包括第一耳机的识别信息。
一种实现方式中,处理模块,具体用于响应于第一操作,通过显示模块显示第一 菜单,第一菜单包括至少两种分享方式的标识信息;响应于选择目标分享方式的标识信息的操作,确定分享方式为目标分享方式;目标分享方式是至少两种分享方式中的一种;通过显示模块显示第二界面。
发送模块,具体用于通过目标分享方式向目标第二终端发送第一消息。
另一种实现方式中,第一终端具有默认采用第一分享方式分享设备的功能;发送模块,具体用于当第一终端的默认采用第一分享方式分享设备的功能打开时,通过第一分享方式向目标第二终端发送第一消息。
可选地,第二界面包括的至少一个第二终端的标识信息为支持连接TWS耳机的第二终端的标识信息。接收模块,还用于接收至少一个第三终端广播的服务信息;处理模块,还用于根据至少一个第三终端广播的服务信息,对至少一个第三终端的标识信息进行过滤,得到支持连接TWS耳机的至少一个第二终端的标识信息;至少一个第三终端的标识信息包括至少一个第二终端的标识信息。
一种实现方式中,每个第三终端广播的服务信息包括第三终端对应的设备类型。
可选地,每个第三终端广播的服务信息包括第一字段,第一字段用于指示第三终端是否支持连接TWS耳机。
可选地,接收模块,还用于接收目标第二终端发送的第二消息,第二消息用于指示目标第二终端接受第一耳机。
可选地,接收模块接收目标第二终端发送的第二消息之后,处理模块,还用于控制第一终端与第一耳机断开连接。
一种实现方式中,处理模块,具体用于控制第一终端与第一耳机断开业务链路。
可选地,发送模块,还用于向目标第二终端发送第一辅助信息,向第一耳机发送第二辅助信息,第一辅助信息和第二辅助信息用于辅助目标第二终端和第一耳机建立连接。
可选地,显示模块,还用于在第一界面中显示左耳耳机的连接状态、以及右耳耳机的连接状态。接收模块接收第一操作之前,左耳耳机的连接状态、以及右耳耳机的连接状态均为第一状态。发送模块向目标第二终端发送第一消息之后,处理模块还用于将第一耳机的连接状态更新为第二状态。
可选地,接收模块接收目标第二终端发送的第二消息之后,处理模块还用于将第一耳机的连接状态更新为第三状态。
一种实现方式中,接收模块,还用于接收第三操作,第三操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的收回操作;处理模块,还用于响应于第三操作,通过发送模块向第一耳机发送第一指示信息,第一指示信息用于指示第一耳机与目标第二终端断开连接。
另一种实现方式中,接收模块,还用于接收第三操作,第三操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的收回操作;处理模块,还用于响应于第三操作,通过发送模块向目标第二终端发送第二指示信息,第二指示信息用于指示目标第二终端与第一耳机断开连接。
可选地,处理模块,还用于将第一耳机的连接状态更新为第一状态。
一种实现方式中,显示模块,具体用于显示第一界面,第一界面包括TWS耳机的 整体标识信息;响应于对TWS耳机的整体标识信息的解耦操作,在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息。
可选地,第一界面包括蓝牙设置界面、下拉界面或负一屏。
第三方面,本申请实施例提供一种电子设备,该电子设备可以是上述第一方面中所述的第一终端。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如第一方面及第一方面的任意一种可能的实现方式所述的方法。
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如第一方面及第一方面的任意一种可能的实现方式所述的方法。
第五方面,本申请实施例提供一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如第一方面及第一方面的任意一种可能的实现方式所述的方法。
上述第二方面至第五方面所具备的有益效果,可参考第一方面中所述,在此不再赘述。
第六方面,本申请实施例提供一种TWS耳机解耦分享方法,应用于第二终端,所述方法包括:第二终端接收第一终端发送的第一消息,第一消息包括第一耳机的识别信息;第一耳机为TWS耳机的左耳耳机或右耳耳机;第二终端根据第一消息,显示第一通知信息,第一通知信息用于提示第二终端接受第一耳机;第二终端响应于接受第一耳机的操作,与第一耳机建立连接。
当TWS耳机的左耳耳机和右耳耳机作为第一终端的音频输入/输出设备时,通过该方法,用户可以更加简单、便捷地对TWS耳机进行解耦,使TWS耳机的两只耳机可以分别独立使用。例如,可以使第一耳机(左耳耳机或右耳耳机)作为第二终端的音频输入/输出设备。
一种实现方式中,所述方法还包括:第二终端显示第一界面,第一界面包括第一耳机的标识信息、第一耳机的连接状态。
本实现方式中,第一耳机被分享给第二终端后,用户可以在第二终端上的第一界面中查看第一耳机的连接状态。
可选地,第一界面还包括第一耳机对应的分享标识。
第一耳机对应的分享标识,可以用于提示用户第一耳机为被分享过来的耳机。
可选地,第一界面包括蓝牙设置界面、下拉界面或负一屏。
一种实现方式中,所述第二终端根据第一消息,显示第一通知信息,包括:第二终端根据第一消息,在桌面、或者下拉界面、又或者负一屏显示第一通知信息。
一种实现方式中,所述方法还包括:第二终端向第一终端发送第二消息,第二消息用于指示第二终端接受第一耳机。
第七方面,本申请实施例提供一种TWS耳机解耦分享装置,所述装置可以应用于第二终端。所述装置可以包括:接收模块、显示模块、处理模块;接收模块,用于接收第一终端发送的第一消息,第一消息包括第一耳机的识别信息;第一耳机为TWS 耳机的左耳耳机或右耳耳机;显示模块,用于根据第一消息,显示第一通知信息,第一通知信息用于提示接受第一耳机,如提示第二终端接受第一耳机;处理模块,用于响应于接受第一耳机的操作,与第一耳机建立连接。
一种实现方式中,显示模块,还用于显示第一界面,第一界面包括第一耳机的标识信息、第一耳机的连接状态。
可选地,第一界面还包括第一耳机对应的分享标识。
可选地,第一界面包括蓝牙设置界面、下拉界面或负一屏。
一种实现方式中,显示模块,具体用于根据第一消息,在桌面、或者下拉界面、又或者负一屏显示第一通知信息。
一种实现方式中,所述装置还包括:发送模块,用于向第一终端发送第二消息,第二消息用于指示第二终端接受第一耳机。
第八方面,本申请实施例提供一种电子设备,该电子设备可以是上述第一方面中所述的第一终端。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如第六方面及第六方面的任意一种可能的实现方式所述的方法。
第九方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如第六方面及第六方面的任意一种可能的实现方式所述的方法。
第十方面,本申请实施例提供一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如第十方面及第十方面的任意一种可能的实现方式所述的方法。
上述第七方面至第十方面所具备的有益效果,可参考第六方面中所述,在此不再赘述。
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。
附图说明
图1为本申请实施例提供的应用场景的示意图;
图2为本申请实施例提供的电子设备的结构示意图;
图3为本申请实施例提供的TWS耳机中的左耳/右耳耳机的结构示意图;
图4为本申请实施例提供的蓝牙设置界面的示意图;
图5为本申请实施例提供的蓝牙设置界面的另一示意图;
图6为本申请实施例提供的蓝牙设置界面的又一示意图;
图7为本申请实施例提供的蓝牙设置界面的又一示意图;
图8为本申请实施例提供的分享对象选择界面的示意图;
图9为本申请实施例提供的蓝牙设置界面的又一示意图;
图10为本申请实施例提供的手机1和手机2的交互流程示意图;
图11为本申请实施例提供的手机2的桌面示意图;
图12为本申请实施例提供的蓝牙设置界面的又一示意图;
图13为本申请实施例提供的蓝牙设置界面的又一示意图;
图14为本申请实施例提供的蓝牙设置界面的又一示意图;
图15为本申请实施例提供的蓝牙设置界面的又一示意图;
图16为本申请实施例提供的蓝牙设置界面的又一示意图;
图17为本申请实施例提供的蓝牙设置界面的又一示意图;
图18为本申请实施例提供的手机1和手机2的另一交互流程示意图;
图19为本申请实施例提供的手机1和左耳耳机的交互流程示意图;
图20为本申请实施例提供的蓝牙设置界面的又一示意图;
图21为本申请实施例提供的蓝牙设置界面的又一示意图;
图22为本申请实施例提供的蓝牙设置界面的又一示意图;
图23为本申请实施例提供的蓝牙设置界面的又一示意图;
图24为本申请实施例提供的蓝牙设置界面的又一示意图;
图25为本申请实施例提供的TWS耳机解耦分享装置的结构示意图;
图26为本申请实施例提供的TWS耳机解耦分享装置的另一结构示意图;
图27为本申请实施例提供的TWS耳机解耦分享装置的又一结构示意图。
具体实施方式
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说 明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
真无线立体声(true wireless stereo,TWS)耳机是一种特殊的蓝牙耳机,其包含两个耳机主体,如,分别称为左耳耳机(或称为左耳塞)和右耳耳机(右耳塞),且左耳耳机和右耳耳机之间不需要线材的连接。
TWS耳机的左耳耳机和右耳耳机可以作为一副双耳耳机使用,也可以分别单独使用。例如,TWS耳机的左耳耳机和右耳耳机可以连接同一个终端设备(如手机、平板电脑等),作为一副双耳耳机使用。当想要将其中一只耳机分享给另一个终端设备使用时,用户可以将该耳机与当前正在连接的终端设备断开连接,并将该耳机重新连接到另一个终端设备。然后,左耳耳机和右耳耳机可以分别单独使用,作为各自对应的终端设备的音频输入/输出设备使用实现通话、播放音频等功能。
例如,图1为本申请实施例提供的应用场景的示意图。如图1所示,假设用户1拥有TWS耳机,且TWS耳机的左耳耳机和右耳耳机均连接了用户1的手机1,TWS耳机的左耳耳机和右耳耳机均为手机1的音频输入/输出设备。当用户1想要将左耳耳机(也可以是右耳耳机)分享给用户2的手机2使用,将左耳耳机作为手机2的音频输入/输出设备时,可以断开左耳耳机与手机1之间的连接,并将左耳耳机连接到手机2。此时,用户1可以使用右耳耳机播放手机1的音频数据,用户2可以使用左耳耳机播放手机2的音频数据,即左耳耳机和右耳耳机可以分别单独使用。
在上述图1所示的场景中,将TWS耳机中的左耳耳机由手机1的音频输入/输出设备切换为手机2的音频输入/输出设备时,断开左耳耳机与手机1之间的连接并将左耳耳机连接到手机2的过程,可以称为对TWS耳机进行解耦的过程。
目前,TWS耳机一般是采用自动靠近发现连接的方式与终端设备进行连接,对TWS耳机进行解耦时,解耦操作较为繁琐。
在一些近距离场景下,甚至无法实现对TWS耳机进行解耦。例如,上述图1所示的场景中,如果左耳耳机以及手机2与手机1和右耳耳机之间的距离过近(如处在手机1的蓝牙范围内),则TWS耳机无法实现解耦。
本申请实施例提供了一种TWS耳机解耦分享方法。该方法中,当TWS耳机的左耳耳机和右耳耳机作为第一终端的音频输入/输出设备时,第一终端可以显示第一界面,第一界面可以包括TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息。用户可以在第一界面基于左耳耳机的标识信息执行对左耳耳机的分享操作,或者,基于右耳耳机的标识信息执行对右耳耳机的分享操作。第一终端可以响应于对左耳耳机的分享操作将左耳耳机解耦分享给第二终端,以使得左耳耳机作为第二终端的音频输入/输出设备;或者,响应于对右耳耳机的分享操作,将右耳耳机解耦分享给第二终端,以使得右耳耳机作为第二终端的音频输入/输出设备。
通过本申请实施例提供的TWS耳机解耦分享方法,可以更加简单、便捷地对TWS耳机进行解耦,使TWS耳机的两只耳机可以分别独立使用。
一些实施例中,第一终端和/或第二终端可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、 上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等设备,本申请实施例对第一终端和第二终端的具体形态不作特殊限制。
可选地,本申请实施例中,第一终端和第二终端的设备形态可以相同,如第一终端和第二终端均为手机。第一终端和第二终端的设备形态也可以不同,如第一终端为手机,第二终端为平板电脑。
示例性地,以第一终端或第二终端为手机为例,图2为本申请实施例提供的电子设备的结构示意图。图2所示的电子设备可以是上述第一终端或第二终端。如图2所示,第一终端或第二终端可以包括:处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块240用于从充电器接收充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为电子设备供电。
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221, 外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。电源管理模块241还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。移动通信模块250可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块250或其他功能模块设置在同一个器件中。
无线通信模块260可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。例如,在本申请实施例中,第一终端可以利用无线通信模块260,通过无线通信技术,如蓝牙(BT)与第二终端建立蓝牙连接。基于建立的蓝牙连接,第一终端可以向第二 终端发送信息或消息,还可以接收来自第二终端的信息或消息。
电子设备通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏294,N为大于1的正整数。
电子设备可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。
ISP用于处理摄像头293反馈的数据。在一些实施例中,ISP可以设置在摄像头293中。摄像头293用于捕获静态图像或视频。在一些实施例中,电子设备可以包括1个或N个摄像头293,N为大于1的正整数。视频编解码器用于对数字视频压缩或解压缩。电子设备可以支持一种或多种视频编解码器。
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行电子设备的各种功能应用以及数据处理。例如,在本申请实施例中,当电子设备是第一终端时,处理器210可以通过执行存储在内部存储器221中的指令,通过无线通信模块260与第二终端建立蓝牙连接,以及与第二终端进行短距离数据交互。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。在本申请实施例中,在电子设备与TWS耳机之间采用无线通信技术,如蓝牙建立了蓝牙连接后,电子设备可以将TWS耳机的蓝牙地址存储在内部存储器221中。例如,TWS耳机的左耳耳机和右耳耳机分别有各自的蓝牙地址,当TWS耳机的左耳耳机和右耳耳机作为一副双耳耳机与电子设备建立蓝牙连接时,电子设备可以将TWS耳机的左耳耳机和右耳耳机的蓝牙地址关联存储在内部存储器221中。
电子设备可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如通话,音乐播放,录音等。
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些 实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。
扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器270A收听音乐,或收听免提通话。
受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过将受话器270B靠近人耳接听语音。
麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风270C发声,将声音信号输入到麦克风270C。电子设备可以设置至少一个麦克风270C。在另一些实施例中,电子设备可以设置两个麦克风270C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备还可以设置三个,四个或更多麦克风270C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
在本申请实施例中,当电子设备与TWS耳机建立了蓝牙连接时,TWS耳机可以作为电子设备的音频输入/输出设备使用。示例性的,音频模块270可以接收无线通信模块260传递的音频电信号,实现通过TWS耳机接听电话等功能。例如,在用户打电话的过程中,TWS耳机(如TWS耳机的左耳耳机或右耳耳机)可以采集用户的声音信号,并转换为音频电信号后发送给电子设备的无线通信模块260。无线通信模块260将该音频电信号传输给音频模块270。音频模块270可以将接收到的音频电信号转换为数字音频信号,并进行编码后传递至移动通信模块250。由移动通信模块250传输至通话对端设备,以实现通话。
耳机接口270D用于连接有线耳机。耳机接口270D可以是USB接口230,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
传感器模块280可以包括压力传感器280A,陀螺仪传感器280B,气压传感器280C,磁传感器280D,加速度传感器280E,距离传感器280F,接近光传感器280G,指纹传感器280H,温度传感器280J,触摸传感器280K,环境光传感器280L,骨传导传感器280M等。
可以理解的是,图2所示的电子设备的结构并不构成对第一终端或第二终端的具体限定。在另一些实施例中,当第一终端和/或第二终端是平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、UMPC、上网本,以及蜂窝电话、PDA、AR\VR设备等其他设备,第一终端和/或第二终端可以包括比图2所示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图2所示的部件可以以硬件,软件或软件和硬件的组合实现。本申请实施例对第一终端和第二终端的具体结构不作限制。
示例性地,图3为本申请实施例提供的TWS耳机中的左耳/右耳耳机的结构示意图。如图3所示,TWS耳机的左耳/右耳耳机可以包括:处理器301、存储器302、传感器303、无线通信模块304、至少一个受话器305、至少一个麦克风306以及电源307。
其中,存储器302可以用于存储应用程序代码,如用于与TWS耳机的另一个耳机 建立蓝牙连接,以及使得耳机与第一终端进行配对的应用程序代码。处理器301可以控制执行上述应用程序代码,以实现本申请实施例中TWS耳机的耳机的功能。
存储器302中还可以存储有用于唯一标识该耳机的蓝牙地址,以及存储有TWS耳机的另一个耳机的蓝牙地址。另外,该存储器302中还可以存储有与该耳机之前成功配对过的电子设备的连接数据。例如,该连接数据可以是与该耳机成功配对过的电子设备的蓝牙地址。基于该连接数据,该耳机能够与该电子设备自动配对,而不必配置与其之间的连接,如进行合法性验证等。上述蓝牙地址可以为媒体访问控制(Media Access Control,MAC)地址。
传感器303可以为距离传感器或接近光传感器。耳机的处理器301可以通过该传感器303确定是否被用户佩戴。例如,耳机的处理器301可以利用接近光传感器来检测耳塞附近是否有物体,从而确定耳机是否被用户佩戴。在确定耳机被佩戴时,耳机的处理器301可以打开受话器305。在一些实施例中,该耳机还可以包括骨传导传感器,结合成骨传导耳机。该骨传导传感器可以获取声部振动骨块的振动信号,处理器301解析出语音信号,实现语音信号对应的控制功能。在另一些实施例中,该耳机还可以包括触摸传感器或压力传感器,分别用于检测用户的触摸操作和按压操作。在另一些实施例中,该耳机还可以包括指纹传感器,用于检测用户指纹,识别用户身份等。在另一些实施例中,该耳机还可以包括环境光传感器,耳机的处理器301可以根据该环境光传感器感知的环境光的亮度,自适应调节一些参数,如音量大小。
无线通信模块304,用于支持TWS耳机的左右耳机之间,以及耳机与各种电子设备,如上述第一终端之间的短距离数据交互。在一些实施例中,该无线通信模块304可以为蓝牙收发器。TWS耳机的耳机可以通过该蓝牙收发器与上述第一终端之间建立蓝牙连接,以实现两者之间的短距离数据交互。TWS耳机的耳塞也可以通过该蓝牙收发器与另一个耳塞建立蓝牙连接,以实现两者之间的短距离数据交互。
受话器305,也可以称为“听筒”,可以用于将音频电信号转换成声音信号并播放。该音频电信号即为音频数据。例如,当TWS耳机的耳机作为上述第一终端的音频输入/输出设备实现通话时,受话器305可以将接收到的语音数据转换为声音信号并播放。
麦克风306,也可以称为“话筒”,“传声器”,用于将声音信号转换为音频电信号。例如,当TWS耳机的耳机作为上述第一终端的音频输入/输出设备实现通话时,在用户说话(如通话或发语音消息)时,麦克风306可以采集用户的声音信号,并将其转换为音频电信号。
电源307,可以用于向TWS耳机的耳机包含的各个部件供电。在一些实施例中,该电源307可以是电池,如可充电电池。
在一些实施例中,上述TWS耳机的耳机还可以包括:输入/输出接口308。输入/输出接口308可以用于提供TWS耳机的耳机与耳机盒之间的任何有线连接。在一些实施例中,输入/输出接口308可以为电连接器。例如,当TWS耳机的耳机置于耳机盒的腔体中时,TWS耳机的耳机可以通过该电连接器与耳机盒电连接。在该电连接建立后,耳机盒可以为TWS耳机的耳机的电源307充电。在该电连接建立后,TWS耳机的耳机还可以与耳机盒进行数据通信。例如,TWS耳机的耳塞的处理器301可以通过 该电连接接收来自耳机盒的配对指令。该配对命令用于指示TWS耳机的耳塞的处理器301打开无线通信模块304,从而使得TWS耳机的耳机可以采用对应的无线通信协议(如蓝牙)与第一终端设备进行配对。
当然,上述TWS耳机的耳机也可以不包括输入/输出接口308。在这种情况下,耳机可以基于通过上述无线通信模块304与耳机盒建立的蓝牙连接,实现充电或者数据通信功能。
可以理解的是,本申请实施例示意的结构并不构成对TWS耳机的左耳/右耳耳机的具体限定。其可以具有比图3中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。例如,左耳/右耳耳机还可以包括指示灯(可以指示电量等状态)、防尘网(可以配合听筒使用)等部件。图3中所示出的各种部件可以在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面以第一终端为手机1,第二终端为手机2为例,对本申请实施例提供的TWS耳机解耦分享方法进行示例性说明。其中,手机1的用户可以称为用户1,手机2的用户可以称为用户2。
如上述图1所示的场景中所示,本申请实施例中,TWS耳机可以通过蓝牙连接的方式与手机1建立连接,TWS耳机的左耳耳机和右耳耳机可以作为手机1的音频输入/输出设备。当TWS耳机的左耳耳机和右耳耳机可以作为手机1的音频输入/输出设备时,用户(如用户1)可以在手机1上进行打开第一界面的操作,触发手机1显示第一界面。
一些实施例中,第一界面可以是蓝牙设置界面。示例性地,图4为本申请实施例提供的蓝牙设置界面的示意图。如图4所示,蓝牙设置界面中可以包括TWS耳机的左耳耳机的标识信息401、以及右耳耳机的标识信息402。例如,TWS耳机的名称为“小艺的耳机”,左耳耳机的标识信息401可以包括:左耳耳机的图标、“小艺的耳机-左耳”;右耳耳机的标识信息402可以包括:右耳耳机的图标、“小艺的耳机-右耳”。
可选地,用户可以在手机1的设置界面中点击蓝牙选项,手机1可以响应于用户设置界面中点击蓝牙选项的操作。显示如图4所示的蓝牙设置界面。或者,用户也可以在手机的下拉界面中点击或长按蓝牙图标,触发手机1显示如图4所示的蓝牙设置界面。
其中,下拉界面是指在将手机的主界面(或称为桌面)的顶部向下滑动后出现的显示界面,下拉界面中可以显示用户常用的功能的按键,如:WLAN、蓝牙等,方便用户快速使用相关功能。例如,手机当前显示界面为桌面时,用户可在手机屏幕顶部上执行向下的滑动操作,以触发手机将显示界面由桌面切换至下拉界面(或者在桌面上叠加显示下拉界面)。
可选地,请继续参考图4所示,蓝牙设置界面中还可以包括左耳耳机和右耳耳机的连接状态(如左耳耳机和右耳耳机的连接状态均为已连接)、左耳耳机和右耳耳机的电量、以及左耳耳机的设置按钮403和右耳耳机的设置按钮404。用户可以通过左耳耳机和右耳耳机的连接状态分别了解左耳耳机和右耳耳机的当前连接情况,通过左耳耳机和右耳耳机的电量分别了解左耳耳机和右耳耳机的当前电量。当用户点击左耳 耳机的设置按钮403时,手机1可以响应于用户点击左耳耳机的设置按钮403的操作,显示左耳耳机的设置界面,例如,左耳耳机的设置界面可以包括音量设置选项,用户可以通过音量设置选项设置左耳耳机的播放音量大小。类似地,用户点击右耳耳机的设置按钮404,触发手机1显示右耳耳机的设置界面,在此不再赘述。
其他一些实施例中,第一界面也可以是上述下拉界面、负一屏、又或者某个应用程序(如专门的耳机应用程序)的界面等,本申请对第一界面的具体类型,以及用户打开第一界面的操作方式均不作限制。下面均以第一界面为如图4所示的蓝牙设置界面为例进行说明。
其中,负一屏是指将手机的主界面(或称为桌面)向右滑动后出现的显示界面,负一屏中可以显示用户常用的应用、功能以及订阅的服务和资讯等,方便用户快速浏览和使用。例如,手机当前显示界面为桌面时,用户可在手机屏幕上执行向右的滑动操作,以触发手机将显示界面由桌面切换至负一屏。
可以理解的是,“负一屏”只是本申请实施例中所使用的一个词语,其代表的含义在本申请实施例中已经记载,但其名称并不能对本申请实施例构成任何限制;另外,在其他一些实施例中,“负一屏”也可以被称为例如“桌面助理”、“快捷菜单”、“Widget集合界面”等其他名称,在此不作限制。
以用户1想要将TWS耳机的左耳耳机解耦分享给手机2,作为手机2的音频输入/输出设备为例,本申请实施例中,用户可以在上述图4所示的蓝牙设置界面中长按或双击左耳耳机的标识信息401,如用户可以长按左耳耳机的图标或左耳耳机图标旁的文字“小艺的耳机”。图5为本申请实施例提供的蓝牙设置界面的另一示意图。如图5所示,手机1可以响应于用户长按或双击左耳耳机的标识信息401的操作,在左耳耳机的标识信息401的上方显示左耳耳机对应的分享按钮405。可选地,分享按钮405旁边还可以显示文字提示:“分享这只耳机”,用于提示用户点击左耳耳机对应的分享按钮405,以分享左耳耳机。
其中,用户长按或双击左耳耳机的标识信息401的操作、以及用户点击左耳耳机对应的分享按钮405的操作,即为用户在第一界面基于左耳耳机的标识信息执行的对左耳耳机的分享操作。
在本申请中,在第一界面基于第一耳机的标识信息执行的对第一耳机的分享操作可以称为第一操作,第一耳机可以是左耳耳机或右耳耳机,本申请实施例是以第一耳机为左耳耳机为例进行说明。
示例性地,图6为本申请实施例提供的蓝牙设置界面的又一示意图。如图6所示,一些实施例中,当用户点击左耳耳机对应的分享按钮405时,手机1可以响应于用户点击左耳耳机对应的分享按钮405的操作,在蓝牙设置界面弹出(显示)二级菜单,二级菜单中可以包括至少两种分享方式的标识信息,如“蓝牙”和“无线局域网(wireless local area networks,WLAN)”,用户可以在二级菜单中点击“蓝牙”或“WLAN”。手机1可以响应于用户点击“蓝牙”的操作,确定分享左耳耳机的方式为蓝牙;或者,响应于用户点击“WLAN”的操作,确定分享左耳耳机的方式为WLAN。
示例性地,图7为本申请实施例提供的蓝牙设置界面的又一示意图。如图7所示,另外一些实施例中,当用户点击左耳耳机对应的分享按钮405时,手机1响应于用户 点击左耳耳机对应的分享按钮405的操作,在蓝牙设置界面弹出(显示)二级菜单中也可以只包括“蓝牙”和“其他”两种标识信息。当用户在二级菜单中点击“蓝牙”时,手机1可以响应于用户点击“蓝牙”的操作,确定分享左耳耳机的方式为蓝牙。当用户在二级菜单中点击“其他”时,手机1可以响应于用户点击“其他”的操作,显示一个分享方式选择界面,该分享方式选择界面中可以包括手机1支持的多种分享方式,如:WLAN、NFC等。用户可以在分享方式选择界面选择目标分享方式。手机1可以响应于用户在分享方式选择界面选择目标分享方式的操作,确定分享左耳耳机的方式为目标分享方式。在此不再使用附图对分享方式选择界面进行说明。
当手机1根据用户在二级菜单或者上述分享方式选择界面中的选择操作,确定分享左耳耳机的方式后,可以显示分享对象选择界面。如:可以由蓝牙设置界面或者分享方式选择界面切换至分享对象选择界面。图8为本申请实施例提供的分享对象选择界面的示意图。如图8所示,分享对象选择界面可以包括:手机1的标识信息:“小艺的手机”,以及手机1可以检测到的其他设备的标识信息,如“手机2”、“手机3”、“手机4”、“手机5”等。用户可以在分享对象选择界面点击其中的任意一个其他设备的标识信息,以触发手机1将该标识信息对应的设备作为分享对象。例如,用户可以在分享对象选择界面点击“手机2”,手机1可以响应于用户点击“手机2”的操作,确定手机2为分享对象。
另外一些实施例中,手机1也可以默认采用蓝牙分享方式向其他设备分享TWS耳机。当用户点击左耳耳机对应的分享按钮405时,手机1可以响应于用户点击左耳耳机对应的分享按钮405的操作,直接显示上述分享对象选择界面。该实施例中,响应于用户在分享对象选择界面点击“手机2”的操作,手机1确定手机2为分享对象后,可以默认采用蓝牙分享方式向手机2分享TWS耳机。
还有一些实施例中,手机1也可以提供一个默认采用蓝牙分享的开关按钮,用户可以通过打开或关闭该开关按钮,触发手机1打开或关闭默认采用蓝牙分享设备的功能。
示例性地,图9为本申请实施例提供的蓝牙设置界面的又一示意图。如图9所示,还有一些实施例中,蓝牙设置界面中还可以包括一个默认采用蓝牙分享的开关按钮406,以及文字提示:“默认采用蓝牙分享设备”。用户可以通过点击默认采用蓝牙分享的开关按钮406,触发手机1打开或关闭默认采用蓝牙分享设备的功能。图8中所示为默认采用蓝牙分享设备的功能处于打开状态。当默认采用蓝牙分享设备的功能处于打开状态时,手机1接收到响应于用户点击左耳耳机对应的分享按钮405的操作后,手机1可以默认分享方式为蓝牙,无需弹出二级菜单,手机1可以直接显示上述图8所示的分享对象选择界面,供用户选择分享对象。当默认采用蓝牙分享设备的功能处于关闭状态时,手机1接收到响应于用户点击左耳耳机对应的分享按钮405的操作后,可以弹出二级菜单。
在本申请中,上述分享对象选择界面可以称为第二界面,上述二级菜单可以称为第一菜单,手机2、手机3、手机4、手机5等可以称为第二终端,其中,手机2可以称为目标第二终端。上述在第二界面选择手机2的标识信息的操作,可以称为第二操作。
也即,本申请实施例中,第一终端可以响应于上述第一操作,显示第二界面;第二界面包括至少一个第二终端的标识信息。第一终端可以接收第二操作,并响应于第二操作,向目标第二终端发送第一消息。目标第二终端是至少一个第二终端中的一个。
一种实现方式中,第一终端响应于第一操作,显示第二界面,包括:第一终端响应于第一操作,显示第一菜单,第一菜单包括至少两种分享方式的标识信息。第一终端可以响应于选择目标分享方式的标识信息的操作,确定分享方式为目标分享方式;目标分享方式是至少两种分享方式中的一种;第一终端显示第二界面。第一终端可以通过目标分享方式向目标第二终端发送第一消息。
另一种实现方式中,第一终端具有默认采用第一分享方式分享设备的功能;当第一终端的默认采用第一分享方式分享设备的功能打开时,第一终端通过第一分享方式向目标第二终端发送第一消息。例如,第一分享方式可以是上述蓝牙分享方式或者其他分享方式。
一些实施例中,手机1周边的其他设备可以广播自身的服务信息,如服务信息可以包括自身的设备类型。手机1可以检测到其他设备广播的服务信息。手机1在显示上述图8所示的分享对象选择界面时,可以根据其他设备广播的服务信息对检测到的其他设备进行筛选,过滤掉不支持连接TWS耳机的设备,只在分享对象选择界面中显示支持连接TWS耳机的设备的标识信息。例如,手机1可能检测到手机2、手机3、冰箱、电饭煲,则手机1可以根据手机2、手机3、冰箱、电饭煲分别广播的服务信息,确定冰箱和电饭煲为不支持连接TWS耳机的设备,从而手机1可以在分享对象选择界面中仅显示手机2和手机3的标识信息。
需要说明的是,手机1根据服务信息对不支持连接TWS耳机的设备进行过滤的过滤规则可以是人为配置在手机1中的,本申请对过滤规则并不作限制。
在本申请中,上述手机1检测到的其他设备广播的服务信息,可以称为第三终端广播的服务信息,分享对象选择界面中显示的支持连接TWS耳机的设备的标识信息可以称为第二终端的标识信息。
也即,第一终端响应于第一操作,显示第二界面之前,所述方法还包括:第一终端接收至少一个第三终端广播的服务信息;第一终端根据至少一个第三终端广播的服务信息,对至少一个第三终端的标识信息进行过滤,得到支持连接TWS耳机的至少一个第二终端的标识信息;至少一个第三终端的标识信息包括至少一个第二终端的标识信息。
一些实施例中,上述每个设备广播的服务信息中还可以包括一个专门用于指示该设备是否支持连接TWS耳机的字段(如第一字段,第一字段用于指示对应设备(即第三终端)是否支持连接TWS耳机),手机1接收到其他设备的服务信息后,可以基于该字段判断其他设备是否支持连接TWS耳机。
以手机2为分享对象为例,图10为本申请实施例提供的手机1和手机2的交互流程示意图。手机1根据用户在分享对象选择界面的选择操作确定手机2为分享对象后,手机1可以通过如图10所示的流程与手机2进行交互,将TWS耳机的左耳耳机分享给手机2。如图10所示,手机1和手机2的交互流程可以包括:
S1001、手机1向手机2发送第一消息,第一消息包括左耳耳机的识别信息。
相应地,手机2接收第一消息。
示例性地,左耳耳机的识别信息可以包括左耳耳机的蓝牙地址。第一消息用于通知手机2:手机1想要向手机2分享TWS耳机的左耳耳机。
本申请实施例中,手机1可以按照上述确定的目标分享方式或默认的蓝牙分享方式向手机2发送第一消息。
S1002、手机2根据第一消息显示手机1分享左耳耳机的通知信息、以及拒绝按钮和接受按钮。
在本申请中,上述手机1分享左耳耳机的通知信息可以称为第一通知信息,第一通知信息用于提示手机2接受左耳耳机。
示例性地,图11为本申请实施例提供的手机2的桌面示意图。如图11所示,一些实施例中,手机2接收到第一消息后,可以根据第一消息在桌面显示手机1分享左耳耳机的通知信息1101、以及拒绝按钮1102和接受按钮1103。例如,手机1分享左耳耳机的通知信息1101可以包括:“小艺的手机想要分享一只耳机“小艺的耳机-左耳”给您”。
可选地,手机2可以在桌面将手机1分享左耳耳机的通知信息1101、以及拒绝按钮1102和接受按钮1103显示预设时长,如:5秒,10秒等,在超过预设时长后,手机2可以将手机1分享左耳耳机的通知信息1101、以及拒绝按钮1102和接受按钮1103移动至负一屏或下拉界面。
可选地,另外一些实施例中,手机2接收到第一消息后,也可以根据第一消息直接在下拉界面或负一屏显示手机1分享左耳耳机的通知信息、以及拒绝按钮和接受按钮。在此不作限制。
以手机2在桌面显示手机1分享左耳耳机的通知信息1101、以及拒绝按钮1102和接受按钮1103为例,用户可以点击拒绝按钮1102,手机2可以响应于用户点击拒绝按钮1102的操作,不作任何处理或者向手机1返回拒绝接受左耳耳机的消息。或者,用户可以点击接受按钮1103,手机2可以响应于用户点击接受按钮1103的操作,根据左耳耳机的识别信息与左耳耳机建立连接,并向手机1发送第二消息,第二消息用于向手机1指示手机2接受手机1分享的左耳耳机。以用户点击接受按钮1103的情况为例,请继续参考图10所示,手机1和手机2的交互流程还可以包括:S1003-S1004。
S1003、手机2接收用户点击接受按钮的操作。
在本申请中,用户点击接受按钮的操作可以称为接受左耳耳机(即第一耳机)的操作。
S1004、手机2响应于用户点击接受按钮的操作,与左耳耳机建立连接,并向手机1发送第二消息。
相应地,手机1可以接收第二消息。
例如,手机2可以响应于用户点击接受按钮的操作,根据第一消息中左耳耳机的识别信息向左耳耳机发起(广播)连接请求,左耳耳机扫描到该连接请求后,可以响应该连接请求与手机2建立连接。左耳耳机与手机2建立连接后,即可作为手机2的音频输入/输出设备。
一些实施例中,TWS耳机可能仅支持连接一个设备。手机1接收到第二消息后, 可以向左耳耳机发送一个断连消息,用于指示左耳耳机断开与手机1的连接,或者,手机1可以主动断开与左耳耳机的连接。左耳耳机与手机1断开连接后,才可以与手机2建立连接。
可选地,TWS耳机可以包括控制链路和业务链路两条链路;控制链路用于对TWS耳机进行控制,如控制音量。业务链路用于承载音频数据。上述断连消息具体可以用于指示左耳耳机断开与手机1的控制链路和业务链路,或者,仅断开业务链路。或者,手机1可以仅主动断开与左耳耳机的业务链路,保留控制链路。
另外一些实施例中,TWS耳机可能支持同时连接多个设备。此时,手机1接收到第二消息后,可以不用向左耳耳机发送断连消息,也不用主动断开与左耳耳机的连接。手机1和左耳耳机之间的控制链路和业务链路均保持连接状态。当后续左耳耳机需要重新作为手机1的音频输入/输出设备时,手机1和左耳耳机之间无需在此建立连接,可以直接恢复数据的传输。需要说明的是,本实施例中,对于手机1和左耳耳机之间的控制链路和业务链路均保持连接状态的情况,虽然手机1和左耳耳机之间的业务链路均保持连接状态,但手机1并不会向左耳耳机发送业务数据(如音频数据),左耳耳机仅接收手机2发送的音频数据并进行播放。
例如,手机1接收到第二消息后,可以得知手机2已接受左耳耳机,或者说手机1可以得知左耳耳机已被分享给手机2。此时,手机1可以确定左耳耳机为被分享的耳机,右耳耳机为自身可以使用的耳机,手机1可以仅向右耳耳机发送自身的业务数据,不再向左耳耳机发送自身的业务数据。也即,在本实施例中,第二消息还可以用于指示手机1不再向左耳耳机发送业务数据。
可选地,其他一些示例中,手机1也可以响应于上述第二操作,不再向左耳耳机发送业务数据。本申请对上述TWS耳机可能支持同时连接多个设备的情况中,触发手机1不再向左耳耳机发送业务数据的时机或条件不作限制。
上述图10中所示,是以手机2主动与左耳耳机建立连接为例进行说明。可选地,一些实施例中,手机2接收到用户点击接受按钮1103的操作后,也可以响应于用户点击接受按钮1103的操作,仅向手机1发送上述第二消息,并不需要主动根据左耳耳机的识别信息与左耳耳机建立连接。手机1在接收到第二消息后,可以向左耳耳机发送手机2的识别信息(如蓝牙地址),左耳耳机可以根据手机2的识别信息主动发起(广播)连接请求,手机2扫描到该连接请求后,可以响应于该连接请求与左耳耳机建立连接。
还有一些实施例中,手机1也可以辅助手机2与左耳耳机之间建立连接,以提高手机2与左耳耳机之间的连接速度。例如,以手机2发起连接请求、左耳耳机扫描连接请求为例,手机1可以分别向手机2和左耳耳机发送指示信息,用于指示手机2发起连接请求的时间和左耳耳机扫描连接请求的时间,如:手机2间隔1秒钟发起连接请求,左耳耳机间隔1秒钟扫描连接请求。类似地,手机1也可以指示左耳耳机发起连接请求的时间和手机2扫描连接请求的时间。其中,手机1向手机2发送的辅助手机2与左耳耳机之间建立连接的信息可以称为第一辅助信息,手机1向左耳耳机发送的辅助手机2与左耳耳机之间建立连接的信息可以称为第二辅助信息。也即,第一辅助信息和第二辅助信息用于辅助手机2和左耳耳机建立连接。
可选地,手机1还可以在指示信息中指示手机2发送连接请求的信道以及左耳耳机接收连接请求的信道,或者,指示左耳耳机发送连接请求的信道以及手机2接收连接请求的信道。
本申请实施例中,手机1在向手机2发送第一消息之后,还可以对第一界面中左耳耳机的连接状态进行更新。例如,图12为本申请实施例提供的蓝牙设置界面的又一示意图。如图12所示,手机1在向手机2发送第一消息之后,可以将蓝牙设置界面中左耳耳机的连接状态由“已连接”更新为“分享连接中”,以向用户提示左耳耳机的连接状态变化。其中,“已连接”状态可以称为第一状态,“分享连接中”状态可以称为第二状态。
可选地,请继续参考图12所示,手机1在向手机2发送第一消息之后,还可以在蓝牙设置界面中显示正在等待手机2接受左耳耳机的提示信息1201,如:“等待手机2接受小艺的耳机-左耳”。
图13为本申请实施例提供的蓝牙设置界面的又一示意图。如图13所示,当手机2和左耳耳机连接成功后,手机1可以继续将蓝牙设置界面中左耳耳机的连接状态由“分享连接中”更新为“已分享”。例如,手机2和左耳耳机连接成功后,手机2可以向手机1发送一个手机2和左耳耳机连接成功的通知消息,手机1接收到该通知消息后,可以将蓝牙设置界面中左耳耳机的连接状态由“分享连接中”更新为“已分享”。其中,“已分享”状态可以称为第三状态。
一些实施例中,手机2也可以包括第一界面,同样以第一界面为蓝牙设置界面为例。图14为本申请实施例提供的蓝牙设置界面的又一示意图。如图14所示,手机2和左耳耳机连接成功后,手机2也可以在自己的蓝牙设置界面显示左耳耳机的标识信息,左耳耳机的连接状态(如已连接)、左耳耳机的电量、左耳耳机的设置按钮等,具体功能参见前述实施例中所述。
可选地,请继续参考图14所示,手机2和左耳耳机连接成功后,手机2还可以在自己的蓝牙设置界面显示左耳耳机对应的分享标识1401,分享标识1401可以包括一个分享图标和文字提示“分享耳机”,分享标识1401用于向用户指示左耳耳机为被分享过来的耳机。
一些实施例中,左耳耳机被分享给手机2后,手机1也可以继续在第一界面显示左耳耳机的电量,在此不作限制。
以上实施例介绍了左耳耳机如何解耦分享给手机2的流程。本申请实施例中,当左耳耳机被分享给手机2后,用户(如用户1)也可以在手机1上进行操作,主动收回左耳耳机。
例如,图15为本申请实施例提供的蓝牙设置界面的又一示意图。如图15所示,一些实施例中,当左耳耳机被分享给手机2后,手机1可以在蓝牙设置界面中显示一个停止分享按钮1501。当用户1想要收回左耳耳机时,可以点击停止分享按钮1501。手机1可以响应于用户点击停止分享按钮1501的操作,收回左耳耳机。
又例如,图16为本申请实施例提供的蓝牙设置界面的又一示意图。如图16所示,另外一些实施例中,当左耳耳机被分享给手机2后,当用户1想要收回左耳耳机时,可以双击或长按左耳耳机的标识信息(如小艺的耳机-左耳)。手机1可以响应于用户 双击或长按左耳耳机的标识信息的操作,显示一个收回按钮1601,收回按钮1601旁还可以显示文字提示“收回这只耳机”。用户可以点击收回按钮1601,手机1可以响应于用户点击收回按钮1601的操作,收回左耳耳机。
或者,其他一些实施例中,当左耳耳机被分享给手机2后,当用户1想要收回左耳耳机时,可以双击或长按左耳耳机的标识信息(如小艺的耳机-左耳)。手机1可以响应于用户双击或长按左耳耳机的标识信息的操作,直接收回左耳耳机。本申请在此对用户触发手机1收回左耳耳机的操作方式不作限制。
又例如,图17为本申请实施例提供的蓝牙设置界面的又一示意图。如图17所示,还有一些实施例中,当左耳耳机被分享给手机2后,手机1可以在蓝牙设置界面中显示一个停止分享按钮1501。当用户1想要收回左耳耳机时,用户可以点击停止分享按钮1501,以触发手机1收回左耳耳机。或者,用户也可以双击或长按左耳耳机的标识信息(如小艺的耳机-左耳),触发手机1显示收回按钮1601,并点击收回按钮1601,以触发手机1左耳耳机。
上述用户点击停止分享按钮1501的操作,以及用户双击或长按左耳耳机的标识信息触发手机1显示收回按钮1601后,点击收回按钮1601的操作等,均为用户主动执行收回左耳耳机的操作。在本申请中,这些在第一界面基于第一耳机的标识信息执行的对第一耳机的收回操作可以称为第三操作,本申请对第三操作的具体实现方式不作限制。
手机1收回左耳耳机的具体实现可以如下:
一种实施方式中,手机1接收到上述用户主动执行收回左耳耳机的操作后,可以向手机2发送一个收回左耳耳机的消息(如第二指示信息,第二指示信息用于指示手机2与左耳耳机断开连接),手机2接收到该消息后,可以主动断开与左耳耳机的连接,左耳耳机可以重新与手机1连接,作为手机1的音频输入/输出设备。
例如,图18为本申请实施例提供的手机1和手机2的另一交互流程示意图。如图18所示,本实施方式中,手机1收回左耳耳机时,手机1和手机2的交互流程可以包括:
S1801、手机1向手机2发送收回左耳耳机的消息。
其中,收回左耳耳机的消息用于指示手机2与左耳耳机断开连接。
相应地,手机2接收收回左耳耳机的消息。
S1802、手机2与左耳耳机断开连接。
S1803、手机2向手机1发送手机2与左耳耳机断开连接的通知消息。
可选地,本实施方式中,手机1向手机2发送的收回左耳耳机的消息中,可以包括指示手机2启动与左耳耳机断开连接的时间或延迟的指示信息。
另一种实施方式中,手机1接收到上述用户主动执行收回左耳耳机的操作后,也可以向左耳耳机发送一个收回左耳耳机的消息(如第一指示信息,第一指示信息用于指示左耳耳机与手机2断开连接),左耳耳机接收到该消息后,可以主动断开与手机2的连接,并重新与手机1连接,作为手机1的音频输入/输出设备。
例如,图19为本申请实施例提供的手机1和左耳耳机的交互流程示意图。如图19所示,本实施方式中,手机1收回左耳耳机时,手机1和左耳耳机的交互流程可以 包括:
S1901、手机1向左耳耳机发送收回左耳耳机的消息。
其中,收回左耳耳机的消息用于指示左耳耳机与手机2断开连接。
相应地,左耳耳机接收收回左耳耳机的消息。
S1902、左耳耳机与手机2断开连接。
S1903、左耳耳机向手机1发送左耳耳机与手机2断开连接的通知消息。
可选地,本实施方式中,手机1向左耳耳机发送的收回左耳耳机的消息中,可以包括指示左耳耳机启动与左耳耳机断开连接的时间或延迟的指示信息。
本申请实施例中,当左耳耳机被收回重新作为手机1的音频输入/输出设备后,手机1可以将第一界面中显示的左耳耳机的连接状态由“已分享”更新为“连接中”,如:第一界面可以重新切换为上述图4所示。
另外,当左耳耳机被收回重新作为手机1的音频输入/输出设备后,手机2也可以对自己的第一界面中左耳耳机的状态进行更新。例如,图20为本申请实施例提供的蓝牙设置界面的又一示意图。如图20所示,当左耳耳机被收回重新作为手机1的音频输入/输出设备后,手机2可以将蓝牙设置界面由图14所示更新为图20所示,将左耳耳机的连接状态由“已连接”更新为“已被收回,断连”。
需要说明的是,对于上述图18所示的实施方式,手机2可以根据接收到的收回左耳耳机的消息确定左耳耳机被收回,从而对左耳耳机的连接状态进行更新。而对于上述图19所示的实施方式而言,由于断连是由左耳耳机发起的,所以手机2无法直接获知断连的原因是否为收回,对此,本申请实施例中,左耳耳机在发起断连时,可以向手机2发送一个指示信息,指示本次断连为被手机1收回,从而手机2可以将左耳耳机的连接状态由“已连接”更新为“已被收回,断连”。
可选地,基于前述实施例,本申请实施例还提供一种TWS耳机解耦分享方法,当左耳耳机被分享给手机2时,用户还可以在手机1上直接进行操作,将左耳耳机从手机2解耦分享给其他设备,如手机3。下面以左耳耳机被分享给手机2时,将左耳耳机从手机2解耦分享给手机3为例进行示例性说明。
示例性地,图21为本申请实施例提供的蓝牙设置界面的又一示意图。如图21所示,当左耳耳机已经被分享给手机2时,如果用户想要重新将左耳耳机分享给手机3,则用户可以在手机1的蓝牙设置界面中双击或长按左耳耳机的标识信息。手机1响应于用户在手机1的蓝牙设置界面中双击或长按左耳耳机的标识信息的操作,不仅可以显示上述实施例中所述的收回按钮(图21中未再重复标号),还可以显示一个分享按钮2101。当用户点击分享按钮2101时,手机1可以响应于用户点击分享按钮2101的操作,控制左耳耳机与手机2断开连接,并将左耳耳机重新分享给手机3。
其中,手机1控制左耳耳机与手机2断开连接的方式可以参考上述图18或图19所示的实施方式。手机1接收到用户点击分享按钮2101后,可以依次显示上述图6/图7所示的界面、以及图8所示的界面供用户选择分享方式及分享对象(手机3)。或者,当默认分享方式为蓝牙时,手机可以直接显示上述图8所示的界面供用户选择分享对象(手机3)。用户选择分享对象为手机3后,手机1即可将左耳耳机分享给手机3。具体过程与前述实施例中所述的向手机2分享左耳耳机的过程类似,可以参 考前述实施例,此处不再详细赘述。
应当理解,以上实施例是以分享TWS耳机的左耳耳机为例,对本申请实施例进行了示例性说明。上述分享左耳耳机的实施例同样适用于分享右耳耳机的过程,原理相同。
可选地,本申请一些实施例中,手机1也可以在第一界面中将TWS耳机的左耳耳机和右耳耳机的标识信息合并显示为TWS耳机整体的标识信息(或称为TWS耳机的整体标识信息),用户可以在第一界面进行操作,触发手机1将TWS耳机整体的标识信息解耦显示为左耳耳机的标识信息和右耳耳机的标识信息。
例如,图22为本申请实施例提供的蓝牙设置界面的又一示意图。如图22所示,手机1可以在蓝牙设置界面中将将TWS耳机的左耳耳机和右耳耳机的标识信息合并显示为TWS耳机整体的标识信息:“小艺的耳机”。用户可以在图22所示的蓝牙设置界面中双击或长按TWS耳机整体的标识信息,手机1可以响应于用户双击或长按TWS耳机整体的标识信息的操作,按照如图4中所示的方式将TWS耳机整体的标识信息解耦显示为左耳耳机的标识信息和右耳耳机的标识信息。
又例如,图23为本申请实施例提供的蓝牙设置界面的又一示意图。如图23所示,手机1可以在蓝牙设置界面中将将TWS耳机的左耳耳机和右耳耳机的标识信息合并显示为TWS耳机整体的标识信息:“小艺的耳机”,同时还可以显示一个解耦按钮2301。用户可以在图23所示的蓝牙设置界面中点击解耦按钮2301,手机1可以响应于用户点击解耦按钮2301的操作,按照如图4中所示的方式将TWS耳机整体的标识信息解耦显示为左耳耳机的标识信息和右耳耳机的标识信息。
在本申请中,上述用户点击解耦按钮2301,或者,双击或长按TWS耳机整体的标识信息,触发手机1将TWS耳机整体的标识信息解耦显示的操作,可以称为对TWS耳机的整体标识信息的解耦操作。
可选地,当TWS耳机的左耳耳机或右耳耳机被分享给其他设备,又被收回至手机1时,手机1可以直接将在第一界面中将TWS耳机的左耳耳机和右耳耳机的标识信息合并显示为TWS耳机整体的标识信息。或者,当TWS耳机的左耳耳机或右耳耳机被分享给其他设备,又被收回至手机1时,手机1也可以先解耦显示左耳耳机的标识信息和右耳耳机的标识信息,用户可以进行主动操作,触发手机1将TWS耳机的左耳耳机和右耳耳机的标识信息合并显示为TWS耳机整体的标识信息。
例如,图24为本申请实施例提供的蓝牙设置界面的又一示意图。如图24所示,当TWS耳机的左耳耳机或右耳耳机被分享给其他设备,又被收回至手机1时,手机1可以解耦显示左耳耳机的标识信息和右耳耳机的标识信息,并显示一个合并按钮2401。用户可以点击合并按钮2401,手机1可以响应于用户合并按钮2401的操作,按照如图22或图23中所示的方式将TWS耳机的左耳耳机和右耳耳机的标识信息合并显示为TWS耳机整体的标识信息。
应当理解,以上各实施例中所述仅为对本申请实施例提供的TWS耳机解耦分享方法的示例性说明。在其他一些可能的实现方式中,以上所述的各实施例也可以删减或增加某些执行步骤,或者以上实施例中所述的部分步骤的顺序也可以进行调整,本申请对此均不作限制。
对应于前述实施例中所述的TWS耳机解耦分享方法,本申请实施例提供一种TWS耳机解耦分享装置,该装置可以应用于上述第一终端,用于实现前述实施例所述的第一终端所执行的方法步骤。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述显示方法中的步骤相对应的模块或单元。
例如,图25为本申请实施例提供的TWS耳机解耦分享装置的结构示意图。如图25所示,该装置可以包括:显示模块2501、接收模块2502、处理模块2503、以及发送模块2504。显示模块2501、接收模块2502、处理模块2503、以及发送模块2504可以用于配合实现前述实施例所述的第一终端所执行的方法步骤。
如:显示模块2501,用于在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息;接收模块2502,用于接收第一操作,第一操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的分享操作;第一耳机为左耳耳机或右耳耳机;处理模块2503,用于响应于第一操作,通过显示模块2501显示第二界面;第二界面包括至少一个第二终端的标识信息;接收模块2502,还用于接收第二操作,第二操作为在第二界面选择目标第二终端的标识信息的操作;目标第二终端是所述至少一个第二终端中的一个;处理模块2503,还用于响应于第二操作,通过发送模块2504向目标第二终端发送第一消息;第一消息包括第一耳机的识别信息。
一种实现方式中,处理模块2503,具体用于响应于第一操作,通过显示模块2501显示第一菜单,第一菜单包括至少两种分享方式的标识信息;响应于选择目标分享方式的标识信息的操作,确定分享方式为目标分享方式;目标分享方式是至少两种分享方式中的一种;通过显示模块2501显示第二界面。
发送模块2504,具体用于通过目标分享方式向目标第二终端发送第一消息。
另一种实现方式中,第一终端具有默认采用第一分享方式分享设备的功能;发送模块2504,具体用于当第一终端的默认采用第一分享方式分享设备的功能打开时,通过第一分享方式向目标第二终端发送第一消息。
可选地,第二界面包括的至少一个第二终端的标识信息为支持连接TWS耳机的第二终端的标识信息。接收模块2502,还用于接收至少一个第三终端广播的服务信息;处理模块2503,还用于根据至少一个第三终端广播的服务信息,对至少一个第三终端的标识信息进行过滤,得到支持连接TWS耳机的至少一个第二终端的标识信息;至少一个第三终端的标识信息包括至少一个第二终端的标识信息。
一种实现方式中,每个第三终端广播的服务信息包括第三终端对应的设备类型。
可选地,每个第三终端广播的服务信息包括第一字段,第一字段用于指示第三终端是否支持连接TWS耳机。
可选地,接收模块2502,还用于接收目标第二终端发送的第二消息,第二消息用于指示目标第二终端接受第一耳机。
可选地,接收模块2502接收目标第二终端发送的第二消息之后,处理模块2503,还用于控制第一终端与第一耳机断开连接。
一种实现方式中,处理模块2503,具体用于控制第一终端与第一耳机断开业务链路。
可选地,发送模块2504,还用于向目标第二终端发送第一辅助信息,向第一耳机发送第二辅助信息,第一辅助信息和第二辅助信息用于辅助目标第二终端和第一耳机建立连接。
可选地,显示模块2501,还用于在第一界面中显示左耳耳机的连接状态、以及右耳耳机的连接状态。接收模块2502接收第一操作之前,左耳耳机的连接状态、以及右耳耳机的连接状态均为第一状态。发送模块2504向目标第二终端发送第一消息之后,处理模块2503还用于将第一耳机的连接状态更新为第二状态。
可选地,接收模块2502接收目标第二终端发送的第二消息之后,处理模块2503还用于将第一耳机的连接状态更新为第三状态。
一种实现方式中,接收模块2502,还用于接收第三操作,第三操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的收回操作;处理模块2503,还用于响应于第三操作,通过发送模块2504向第一耳机发送第一指示信息,第一指示信息用于指示第一耳机与目标第二终端断开连接。
另一种实现方式中,接收模块2502,还用于接收第三操作,第三操作为在第一界面基于第一耳机的标识信息执行的对第一耳机的收回操作;处理模块2503,还用于响应于第三操作,通过发送模块2504向目标第二终端发送第二指示信息,第二指示信息用于指示目标第二终端与第一耳机断开连接。
可选地,处理模块2503,还用于将第一耳机的连接状态更新为第一状态。
一种实现方式中,显示模块2501,具体用于显示第一界面,第一界面包括TWS耳机的整体标识信息;响应于对TWS耳机的整体标识信息的解耦操作,在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息。
可选地,第一界面包括蓝牙设置界面、下拉界面或负一屏。
应当理解,图25所示的TWS耳机解耦分享装置可以用于实现以上实施例所述的第一终端的全部功能,在此不再一一赘述。
本申请实施例还提供一种TWS耳机解耦分享装置,该装置可以应用于上述第二终端,用于实现前述实施例所述的第二终端所执行的方法步骤。例如,第二终端可以是指上述目标第二终端。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述显示方法中的步骤相对应的模块或单元。
例如,图26为本申请实施例提供的TWS耳机解耦分享装置的另一结构示意图。如图26所示,该装置可以包括:接收模块2601、显示模块2602、处理模块2603;接收模块2601、显示模块2602、处理模块2603可以用于配合实现前述实施例所述的第二终端所执行的方法步骤。
如:接收模块2601,用于接收第一终端发送的第一消息,第一消息包括第一耳机的识别信息;第一耳机为TWS耳机的左耳耳机或右耳耳机;显示模块2602,用于根据第一消息,显示第一通知信息,第一通知信息用于提示接受第一耳机,如提示第二终端接受第一耳机;处理模块2603,用于响应于接受第一耳机的操作,与第一耳机建立连接。
一种实现方式中,显示模块2602,还用于显示第一界面,第一界面包括第一耳机的标识信息、第一耳机的连接状态。
可选地,第一界面还包括第一耳机对应的分享标识。
可选地,第一界面包括蓝牙设置界面、下拉界面或负一屏。
一种实现方式中,显示模块2602,具体用于根据第一消息,在桌面、或者下拉界面、又或者负一屏显示第一通知信息。
应当理解,图26所示的TWS耳机解耦分享装置仅为示例性说明,该装置还可以用于实现前述实施例中所述的第二终端的其他功能,或者,还可以包括用于实现前述实施例中所述的第二终端的其他功能的结构模块,如:图27为本申请实施例提供的TWS耳机解耦分享装置的又一结构示意图。如图27所示,一种实现方式中,所述装置还包括:发送模块2604,用于向第一终端发送第二消息,第二消息用于指示第二终端接受第一耳机。
应理解以上装置中模块(或称为单元)的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。
例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以称为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。
在一个例子中,以上装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个数字信号处理器(digital signal process,DSP),或,一个或者多个现场可编辑逻辑门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。
再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
在一种实现中,以上装置实现以上方法中各个对应步骤的单元可以通过处理元件调度程序的形式实现。例如,该装置可以包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例所述的方法。存储元件可以为与处理元件处于同一芯片上的存储元件,即片内存储元件。
在另一种实现中,用于执行以上方法的程序可以在与处理元件处于不同芯片上的存储元件,即片外存储元件。此时,处理元件从片外存储元件调用或加载程序于片内存储元件上,以调用并执行以上方法实施例所述的方法。
例如,本申请实施例还提供一种电子设备。该电子设备可以是以上实施例中所述的第一终端。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如前述实施例所述的第一终端所执行的 方法步骤。该存储器可以位于该电子设备之内,也可以位于该电子设备之外。且该处理器包括一个或多个。
又例如,本申请实施例还提供一种电子设备。该电子设备可以是以上实施例中所述的第二终端。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如前述实施例所述的第二终端所执行的方法步骤。该存储器可以位于该电子设备之内,也可以位于该电子设备之外。且该处理器包括一个或多个。
示例性地,上述电子设备可以是手机,也可以是平板电脑、可穿戴设备、车载设备、AR/VR设备、笔记本电脑、UMPC、上网本、PDA等。
在又一种实现中,上述电子设备实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。
例如,本申请实施例还提供一种芯片,该芯片可以应用于上述电子设备。芯片包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;处理器通过接口电路从电子设备的存储器接收并执行计算机指令,以实现如前述实施例所述的第一终端所执行的方法步骤,或者,第二终端所执行的方法步骤。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。
基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,如:程序。该软件产品存储在一个程序产品,如计算机可读存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
例如,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如以上实施例所述的第一终端所执行的方法步骤,或者,第二终端所执行的方法步骤。
又例如,本申请实施例还提供一种计算机程序产品,包括:计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如以上实施例所述的第一终端所执行的方法步骤,或者,第二终端所执行的方法步骤。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (28)

  1. 一种真无线立体声TWS耳机解耦分享方法,应用于第一终端,其特征在于,所述方法包括:
    所述第一终端在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息;
    所述第一终端接收第一操作,所述第一操作为在所述第一界面基于第一耳机的标识信息执行的对所述第一耳机的分享操作;所述第一耳机为所述左耳耳机或所述右耳耳机;
    所述第一终端响应于所述第一操作,显示第二界面;所述第二界面包括至少一个第二终端的标识信息;
    所述第一终端接收第二操作,所述第二操作为在所述第二界面选择目标第二终端的标识信息的操作;所述目标第二终端是所述至少一个第二终端中的一个;
    所述第一终端响应于所述第二操作,向所述目标第二终端发送第一消息;所述第一消息包括所述第一耳机的识别信息。
  2. 根据权利要求1所述的方法,其特征在于,所述第一终端响应于所述第一操作,显示第二界面,包括:
    所述第一终端响应于所述第一操作,显示第一菜单,所述第一菜单包括至少两种分享方式的标识信息;
    所述第一终端响应于选择目标分享方式的标识信息的操作,确定分享方式为所述目标分享方式;所述目标分享方式是所述至少两种分享方式中的一种;
    所述第一终端显示第二界面;
    所述第一终端向所述目标第二终端发送第一消息,包括:
    所述第一终端通过所述目标分享方式向所述目标第二终端发送第一消息。
  3. 根据权利要求1所述的方法,其特征在于,所述第一终端具有默认采用第一分享方式分享设备的功能;所述第一终端向所述目标第二终端发送第一消息,包括:
    当所述第一终端的默认采用第一分享方式分享设备的功能打开时,所述第一终端通过所述第一分享方式向所述目标第二终端发送第一消息。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第二界面包括的所述至少一个第二终端的标识信息为支持连接TWS耳机的第二终端的标识信息;所述第一终端响应于所述第一操作,显示第二界面之前,所述方法还包括:
    所述第一终端接收至少一个第三终端广播的服务信息;
    所述第一终端根据所述至少一个第三终端广播的服务信息,对所述至少一个第三终端的标识信息进行过滤,得到支持连接TWS耳机的所述至少一个第二终端的标识信息;所述至少一个第三终端的标识信息包括所述至少一个第二终端的标识信息。
  5. 根据权利要求4所述的方法,其特征在于,每个所述第三终端广播的服务信息包括所述第三终端对应的设备类型。
  6. 根据权利要求4或5所述的方法,其特征在于,每个所述第三终端广播的服务信息包括第一字段,所述第一字段用于指示所述第三终端是否支持连接TWS耳机。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:
    所述第一终端接收所述目标第二终端发送的第二消息,所述第二消息用于指示所述目标第二终端接受所述第一耳机。
  8. 根据权利要求7所述的方法,其特征在于,所述第一终端接收所述目标第二终端发送的第二消息之后,所述方法还包括:
    所述第一终端与所述第一耳机断开连接。
  9. 根据权利要求8所述的方法,其特征在于,所述第一终端与所述第一耳机断开连接,包括:
    所述第一终端与所述第一耳机断开业务链路。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:
    所述第一终端向所述目标第二终端发送第一辅助信息,向所述第一耳机发送第二辅助信息,所述第一辅助信息和所述第二辅助信息用于辅助所述目标第二终端和所述第一耳机建立连接。
  11. 根据权利要求7-9任一项所述的方法,其特征在于,所述方法还包括:
    所述第一终端在所述第一界面中显示所述左耳耳机的连接状态、以及所述右耳耳机的连接状态;
    所述第一终端接收所述第一操作之前,所述左耳耳机的连接状态、以及所述右耳耳机的连接状态均为第一状态;
    所述第一终端向所述目标第二终端发送第一消息之后,所述方法还包括:
    所述第一终端将所述第一耳机的连接状态更新为第二状态。
  12. 根据权利要求11所述的方法,其特征在于,所述第一终端接收所述目标第二终端发送的第二消息之后,所述方法还包括:
    所述第一终端将所述第一耳机的连接状态更新为第三状态。
  13. 根据权利要求11或12所述的方法,其特征在于,所述第一终端接收所述目标第二终端发送的第二消息之后,所述方法还包括:
    所述第一终端接收第三操作,所述第三操作为在所述第一界面基于所述第一耳机的标识信息执行的对所述第一耳机的收回操作;
    所述第一终端响应于所述第三操作,向所述第一耳机发送第一指示信息,所述第一指示信息用于指示所述第一耳机与所述目标第二终端断开连接。
  14. 根据权利要求11或12所述的方法,其特征在于,所述第一终端接收所述目标第二终端发送的第二消息之后,所述方法还包括:
    所述第一终端接收第三操作,所述第三操作为在所述第一界面基于所述第一耳机的标识信息执行的对所述第一耳机的收回操作;
    所述第一终端响应于所述第三操作,向所述目标第二终端发送第二指示信息,所述第二指示信息用于指示所述目标第二终端与所述第一耳机断开连接。
  15. 根据权利要求13或14所述的方法,其特征在于,所述方法还包括:
    所述第一终端将所述第一耳机的连接状态更新为所述第一状态。
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述第一终端在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息,包括:
    所述第一终端显示第一界面,所述第一界面包括TWS耳机的整体标识信息;
    所述第一终端响应于对所述TWS耳机的整体标识信息的解耦操作,在所述第一界面中显示所述TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息。
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述第一界面包括蓝牙设置界面、下拉界面或负一屏。
  18. 一种真无线立体声TWS耳机解耦分享方法,应用于第二终端,其特征在于,所述方法包括:
    所述第二终端接收第一终端发送的第一消息,所述第一消息包括第一耳机的识别信息;所述第一耳机为TWS耳机的左耳耳机或右耳耳机;
    所述第二终端根据所述第一消息,显示第一通知信息,所述第一通知信息用于提示所述第二终端接受所述第一耳机;
    所述第二终端响应于接受所述第一耳机的操作,与所述第一耳机建立连接。
  19. 根据权利要求18所述的方法,其特征在于,所述方法还包括:
    所述第二终端显示第一界面,所述第一界面包括所述第一耳机的标识信息、所述第一耳机的连接状态。
  20. 根据权利要求19所述的方法,其特征在于,所述第一界面还包括所述第一耳机对应的分享标识。
  21. 根据权利要求18-20任一项所述的方法,其特征在于,所述第一界面包括蓝牙设置界面、下拉界面或负一屏。
  22. 根据权利要求18-21任一项所述的方法,其特征在于,所述第二终端根据所述第一消息,显示第一通知信息,包括:
    所述第二终端根据所述第一消息,在桌面、或者下拉界面、又或者负一屏显示第一通知信息。
  23. 根据权利要求18-22任一项所述的方法,其特征在于,所述方法还包括:
    所述第二终端向所述第一终端发送第二消息,所述第二消息用于指示所述第二终端接受所述第一耳机。
  24. 一种真无线立体声TWS耳机解耦分享装置,其特征在于,所述装置包括:显示模块、接收模块、处理模块、发送模块;
    所述显示模块,用于在第一界面中显示TWS耳机的左耳耳机的标识信息、以及右耳耳机的标识信息;
    所述接收模块,用于接收第一操作,所述第一操作为在所述第一界面基于第一耳机的标识信息执行的对所述第一耳机的分享操作;所述第一耳机为所述左耳耳机或所述右耳耳机;
    所述处理模块,用于响应于所述第一操作,通过所述显示模块显示第二界面;所述第二界面包括至少一个第二终端的标识信息;
    所述接收模块,还用于接收第二操作,所述第二操作为在所述第二界面选择目标第二终端的标识信息的操作;所述目标第二终端是所述至少一个第二终端中的一个;
    所述处理模块,还用于响应于所述第二操作,通过所述发送模块向所述目标第二终端发送第一消息;所述第一消息包括所述第一耳机的识别信息。
  25. 一种真无线立体声TWS耳机解耦分享装置,其特征在于,所述装置包括:接 收模块、显示模块、处理模块;
    所述接收模块,用于接收第一终端发送的第一消息,所述第一消息包括第一耳机的识别信息;所述第一耳机为TWS耳机的左耳耳机或右耳耳机;
    所述显示模块,用于根据所述第一消息,显示第一通知信息,所述第一通知信息用于提示接受所述第一耳机;
    处理模块,用于响应于接受所述第一耳机的操作,与所述第一耳机建立连接。
  26. 一种电子设备,其特征在于,包括:处理器,用于存储所述处理器可执行指令的存储器;
    所述处理器被配置为执行所述指令时,使得所述电子设备实现如权利要求1-17任一项所述的方法,或者,如权利要求18-23任一项所述的方法。
  27. 一种计算机可读存储介质,其上存储有计算机程序指令;其特征在于,当所述计算机程序指令被电子设备执行时,使得电子设备实现如权利要求1-17任一项所述的方法,或者,如权利要求18-23任一项所述的方法。
  28. 一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,其特征在于,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如权利要求1-17任一项所述的方法,或者,如权利要求18-23任一项所述的方法。
PCT/CN2022/111860 2021-08-31 2022-08-11 Tws耳机解耦分享方法、装置、设备及存储介质 WO2023029938A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111013777.8 2021-08-31
CN202111013777.8A CN115733921A (zh) 2021-08-31 2021-08-31 Tws耳机解耦分享方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023029938A1 true WO2023029938A1 (zh) 2023-03-09

Family

ID=85291912

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/111860 WO2023029938A1 (zh) 2021-08-31 2022-08-11 Tws耳机解耦分享方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN115733921A (zh)
WO (1) WO2023029938A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170289329A1 (en) * 2014-09-23 2017-10-05 Lg Electronics Inc. Mobile terminal and method for controlling same
CN108271143A (zh) * 2018-01-08 2018-07-10 维沃移动通信有限公司 一种蓝牙设备连接方法及移动终端
CN110191442A (zh) * 2019-04-18 2019-08-30 华为技术有限公司 一种蓝牙连接方法、设备及系统
CN110267145A (zh) * 2019-07-09 2019-09-20 维沃移动通信有限公司 一种状态显示方法及终端设备
CN111182518A (zh) * 2019-12-31 2020-05-19 联想(北京)有限公司 一种处理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170289329A1 (en) * 2014-09-23 2017-10-05 Lg Electronics Inc. Mobile terminal and method for controlling same
CN108271143A (zh) * 2018-01-08 2018-07-10 维沃移动通信有限公司 一种蓝牙设备连接方法及移动终端
CN110191442A (zh) * 2019-04-18 2019-08-30 华为技术有限公司 一种蓝牙连接方法、设备及系统
CN110267145A (zh) * 2019-07-09 2019-09-20 维沃移动通信有限公司 一种状态显示方法及终端设备
CN111182518A (zh) * 2019-12-31 2020-05-19 联想(北京)有限公司 一种处理方法及装置

Also Published As

Publication number Publication date
CN115733921A (zh) 2023-03-03

Similar Documents

Publication Publication Date Title
WO2020249098A1 (zh) 蓝牙通信方法、tws蓝牙耳机及终端
US11653398B2 (en) Bluetooth connection method and device
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
WO2021036809A1 (zh) 一种sim模块的管理方法及电子设备
WO2021013156A1 (zh) 蓝牙切换方法及蓝牙设备
WO2020133183A1 (zh) 音频数据的同步方法及设备
US20220256626A1 (en) Device Control Method and Terminal
CN114499587B (zh) 音频同步的通信方法、系统、无线耳机、终端及存储介质
WO2022068513A1 (zh) 无线通信方法和终端设备
WO2022001147A1 (zh) 一种定位方法及电子设备
WO2020124371A1 (zh) 一种数据信道的建立方法及设备
WO2022262387A1 (zh) 音量管理的方法及电子设备
CN112789934B (zh) 一种蓝牙服务的查询方法及电子设备
WO2021197071A1 (zh) 无线通信系统及方法
WO2022213689A1 (zh) 一种音频设备间语音互通的方法及设备
CN113365274B (zh) 一种网络接入方法和电子设备
WO2021043277A1 (zh) 配置蓝牙连接参数的方法和电子设备
WO2021027623A1 (zh) 一种设备能力发现方法及p2p设备
WO2024037025A1 (zh) 无线通信电路、蓝牙通信切换方法和电子设备
CN115175159B (zh) 一种蓝牙耳机播放方法及设备
WO2022160967A1 (zh) 通信方法、移动设备、电子设备和计算机可读存储介质
WO2023029938A1 (zh) Tws耳机解耦分享方法、装置、设备及存储介质
WO2021218544A1 (zh) 一种提供无线上网的系统、方法及电子设备
WO2023051204A1 (zh) 跨设备连接方法、电子设备及存储介质
WO2023165513A1 (zh) 通信方法、电子设备及装置

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: 22863078

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE