CN113132959B - Wireless audio system, wireless communication method and device - Google Patents

Wireless audio system, wireless communication method and device Download PDF

Info

Publication number
CN113132959B
CN113132959B CN201911425119.2A CN201911425119A CN113132959B CN 113132959 B CN113132959 B CN 113132959B CN 201911425119 A CN201911425119 A CN 201911425119A CN 113132959 B CN113132959 B CN 113132959B
Authority
CN
China
Prior art keywords
audio
output device
audio output
connection
bluetooth
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911425119.2A
Other languages
Chinese (zh)
Other versions
CN113132959A (en
Inventor
钟金云
刘渝进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN201911425119.2A priority Critical patent/CN113132959B/en
Publication of CN113132959A publication Critical patent/CN113132959A/en
Application granted granted Critical
Publication of CN113132959B publication Critical patent/CN113132959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • H04R2201/103Combination of monophonic or stereophonic headphones with audio players, e.g. integrated in the headphone
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application relates to a wireless audio system, a wireless communication method and equipment, which are used for controlling the audio connection between electronic equipment and a magnetic type Bluetooth earphone under the condition of not disconnecting the Bluetooth connection based on the attraction/separation state of a left ear and a right ear. Specifically, when the left ear and the right ear are in an attraction state, the existing audio connection between the magnetic type Bluetooth headset and the electronic equipment is disconnected; when the left ear and the right ear are in a separated state, audio connection can be established between the magnetic type Bluetooth headset and the electronic equipment. Like this, when the user separates the left and right ears of actuation, magnetism is inhaled formula earphone and electronic equipment and only need reestablish the audio frequency and connect, and need not to carry out the bluetooth and return to the company, can effectively reduce magnetism and inhale the response time delay of formula bluetooth earphone when controlling the ear to switch from the actuation state to the separation state, can satisfy the demand that the user divides left and right ears just to use the earphone.

Description

Wireless audio system, wireless communication method and device
Technical Field
The embodiment of the application relates to the field of wireless technologies, in particular to a wireless audio system, a wireless communication method and a device.
Background
Bluetooth (Bluetooth) wireless technology is a short-range communication system intended to replace cable connections between portable and/or stationary electronic devices. The bluetooth headset based on the bluetooth line communication technology is popular with consumers in a wireless connection mode and good sound quality. Wherein, formula bluetooth headset is inhaled to magnetism, its left ear and right ear can be in the same place because of built-in magnetic part is inhaled when being close to each other, and the user of being convenient for accomodates, further receives the consumer and likes.
At present, besides supporting the attraction of left and right ears, the magnetic part can further support the magnetic attraction type Bluetooth headset to realize some control functions.
One existing scheme is to control the bluetooth headset to turn on or off according to whether the left ear and the right ear are attracted or not. In the scheme, a sensor is arranged in the earphone to detect the opening and closing states of the left ear and the right ear. The Bluetooth headset executes power-on or power-off according to the open-close state of the left ear and the right ear: if the left ear and the right ear are separated, the Bluetooth headset is started and connected back to the sound source equipment (such as a mobile phone); if the left ear and the right ear are attracted, the Bluetooth headset is powered off. When the left ear and the right ear are separated, the bluetooth headset in the scheme needs to be powered on again and perform bluetooth connection, and the duration (generally more than 5 seconds) is long.
Disclosure of Invention
The technical scheme of the application provides a wireless audio system, a wireless communication method and equipment, response time delay of the magnetic type Bluetooth headset can be effectively reduced, and the requirement that a user can use the headset by separating the headset can be met.
The method provided by the first aspect may comprise: and a Bluetooth connection is established between the audio receiving party and the audio source. The audio receiver detects whether a first audio output device of the audio receiver and a second audio output device of the audio receiver are in an engaged state or an disengaged state. When detecting that the first audio output device and the second audio output device are switched from the separated state to the pull-in state, the audio receiving party and the audio source can keep the Bluetooth connection.
Therefore, when the left ear and the right ear are switched from the attraction state to the separation state, the profile connection can be quickly established on the premise that the Bluetooth connection between the audio receiving party and the audio source is not disconnected, the Bluetooth return connection is not needed, and the response time delay of the Bluetooth headset can be effectively reduced.
The first aspect provides a method wherein if there is an existing audio connection between the audio recipient and the audio source, the existing audio connection may be disconnected; if there is no existing audio connection between the audio recipient and the audio source, the audio recipient may refuse (not accept) to establish an audio connection with the audio source. The audio recipient may accept (accept) the audio connection with the audio source when it is detected that the first audio output device and the second audio output device are in the separate state.
The method provided in the first aspect, the audio receiving party may be a bluetooth headset. The audio receiver may include a first audio output device and a second audio output device, the first audio output device and the second audio output device having magnetic components. The magnetic component can be used for attracting the first audio output device and the second audio output device. The first audio output device and the second audio output device can be a left earphone and a right earphone of the Bluetooth earphone respectively. The audio source can be an electronic device such as a mobile phone and a tablet computer.
In the following, the audio receiving side is a bluetooth headset, the first audio output device and the second audio output device are left and right bluetooth headsets, and the audio source is an electronic device such as a mobile phone.
Implementing the method provided by the first aspect, the bluetooth headset may have two states of use: in the state 1, the left earphone and the right earphone are attracted, and audio connection does not exist between the Bluetooth earphone and the electronic equipment; and 2, the left earphone and the right earphone are separated, and the Bluetooth earphone and the electronic equipment maintain audio connection or accept to establish audio connection. When the left earphone and the right earphone are switched from the attraction state to the separation state, the Bluetooth earphone and the electronic equipment can establish audio connection according to actual audio playing requirements on the premise that Bluetooth connection is not disconnected, response time delay of the Bluetooth earphone can be reduced, and the purpose that a user can use the earphones by separating the left earphone and the right earphone is met.
In combination with the first aspect, in some embodiments, the audio recipient may be a bluetooth neck headset, and the first audio output device and the second audio output device may be a left earphone and a right earphone of the bluetooth neck headset, respectively. The neck-wearing type Bluetooth headset further comprises a line control, and a processor and a Bluetooth communication processing module can be integrated in the line control. The left earphone and the right earphone can be integrated with a sensor which can be used for detecting whether the left earphone and the right earphone are in a suction state or a separation state. The Bluetooth communication processing module in the wire control can control the connection state of audio connection based on the opening and closing state between the left earphone and the right earphone on the premise of not disconnecting the Bluetooth connection between the Bluetooth earphone and the electronic equipment.
In combination with the first aspect, in some embodiments, the audio recipient may be a single earpiece of a tws (true Wireless stereo) bluetooth earpiece. The audio recipient may be a left earpiece or a right earpiece of a TWS bluetooth headset. The first audio output device and the second audio output device may be a left earphone and a right earphone of a TWS Bluetooth earphone, respectively. The left earphone and the right earphone of the TWS Bluetooth earphone can be integrated with a sensor and a Bluetooth communication processing module. The sensor can be used for detecting whether the left earphone and the right earphone are in an attraction state or a separation state. The Bluetooth communication processing module can control the connection state of audio connection based on the opening and closing state between the left earphone and the right earphone on the premise of not disconnecting the Bluetooth connection between the Bluetooth earphone and the electronic equipment.
In conjunction with the first aspect, in some embodiments, disconnecting the existing audio connection may include two implementations: mode 1. the bluetooth headset sends an audio connection disconnection request to the electronic equipment, and the electronic equipment receives the request and actively disconnects the audio connection by the bluetooth headset; mode 2. the electronic device sends an audio connection disconnection request to the bluetooth headset, and the bluetooth headset receives the request and the electronic device actively disconnects the audio connection. In the mode 2, the electronic device may send an audio disconnection request when receiving the indication information (e.g., the first indication information) of the open/close state of the left and right ears sent by the bluetooth headset.
With reference to the first aspect, in some embodiments, rejecting establishing the audio connection with the electronic device may refer to that the bluetooth headset returns a rejection response of the audio connection establishment request to the electronic device to reject the audio connection establishment request when receiving the audio connection establishment request from the electronic device. When detecting that the left earphone and the right earphone are in the suction state, no audio connection exists between the Bluetooth earphone and the electronic equipment. Therefore, when the electronic equipment has audio (call audio or media audio) to be played, the audio is not routed to the Bluetooth headset but routed to the electronic equipment (such as a mobile phone) to be played, so that the use scene of a user who does not use the headset when the left headset and the right headset are pulled in is adapted.
In conjunction with the first aspect, in some embodiments, accepting (accept) and the electronic device establishing the audio connection may include, but is not limited to, the following two ways: mode 1. the bluetooth headset actively initiates audio connection establishment and sends an audio connection establishment request to an audio source; mode 2. the bluetooth headset may return an acceptance response of the audio connection establishment request to the electronic device to accept the audio connection establishment request when receiving the audio connection establishment request from the electronic device. And when the left earphone and the right earphone are detected to be in the separated state, the Bluetooth earphone can accept the audio connection with the electronic equipment. Thus, when the electronic device has audio (call audio or media audio) to be played, the audio is routed to the bluetooth headset for playing, so as to adapt to the user usage scenario of the user using the headset when the left and right headsets are separated.
Where if the audio connection is a media audio connection (e.g., A2DP connection), then approach 1 may be employed. When the left and right earphones are in the separated state, the Bluetooth earphone can send an audio connection establishment request to the electronic equipment. If the audio connection is a conversational audio connection (e.g., an SCO connection), then approach 2 may be employed. The SCO connection needs to be established when the call traffic arrives. For example, when a user places or receives a call to trigger a call service to arrive, the electronic device may send an audio connection establishment request to the bluetooth headset. At this time, if the left and right earphones are in the separated state, the bluetooth earphone can receive the audio connection establishment request sent by the electronic device.
With reference to the first aspect, in some embodiments, the bluetooth headset may send status indication information to the electronic device to indicate the open/close status of the left headset and the right headset, so that the electronic device may display an indicator of the open/close status of the left headset and the right headset according to the status indication information. Specifically, the method comprises the following steps: when detecting that the left earphone and the right earphone are in the attraction state, the Bluetooth earphone can send first indication information to the electronic equipment, and the first indication information can be used for indicating that the left earphone and the right earphone are in the attraction state. When it is detected that the left earphone and the right earphone are in the separated state, the bluetooth earphone may send second indication information to the electronic device, where the second indication information may be used to indicate that the left earphone and the right earphone are in the separated state.
In conjunction with the first aspect, in some embodiments, the audio connection may be a media audio connection (e.g., an A2DP connection).
In some embodiments, in combination with the first aspect, the bluetooth headset may specifically disconnect the media audio connection (e.g., A2DP connection) between the left and right headsets and the electronic device (e.g., a mobile phone) when detecting that the left and right headsets are switched from the separated state to the closed state. In particular, the bluetooth headset may disconnect the media audio connection by sending a media audio connection (e.g., A2DP connection) disconnect request to the electronic device (e.g., a cell phone). Therefore, the left earphone and the right earphone are changed from separated to attracted, the Bluetooth earphone can be disconnected from A2DP, and the Bluetooth earphone is suitable for a scene that the left earphone and the right earphone are temporarily stopped using by a user when the user attracts.
In conjunction with the first aspect, in some embodiments, the bluetooth headset may reject the media audio connection establishment request after receiving the media audio connection (e.g., A2DP connection) establishment request from the electronic device while the left and right headsets are in the engaged state.
With reference to the first aspect, in some embodiments, the bluetooth headset may specifically send a media audio connection (e.g., A2DP connection) establishment request to an electronic device (e.g., a mobile phone) when it is detected that the left and right headsets are switched from the closed state to the open state. Thus, the left earphone and the right earphone are changed from attraction to separation, the Bluetooth earphone can initiate the establishment of media audio connection (such as A2DP connection) so as to meet the requirement that the user needs to use the earphones when separating the left earphone and the right earphone.
In conjunction with the first aspect, in some embodiments, the bluetooth headset may accept a media audio connection (e.g., A2DP connection) to be established with the electronic device after receiving a media audio connection (e.g., A2DP connection) establishment request from the electronic device while the left and right headsets are in a separated state.
In conjunction with the first aspect, in some embodiments, the bluetooth headset may enable media audio playback after receiving media audio data from the electronic device over the established media audio connection while the left and right headsets are in the separated state.
In conjunction with the first aspect, in some embodiments, the audio connection may be a conversational audio connection (e.g., SCO connection).
With reference to the first aspect, in some embodiments, the bluetooth headset may specifically disconnect a call audio connection if there is an existing call audio connection (e.g., SCO connection) between the bluetooth headset and the electronic device when it is detected that the left and right headsets are switched from the separated state to the attached state. For example, a bluetooth headset may disconnect a call audio connection by sending a call audio connection (e.g., SCO connection) disconnect request to an electronic device (e.g., a cell phone). Therefore, the left earphone and the right earphone are changed from separated to attracted, the existing SCO connection can be disconnected by the Bluetooth earphone, and the Bluetooth earphone can adapt to the scene that the left earphone and the right earphone are suspended from using the Bluetooth earphone when the user attracts.
In conjunction with the first aspect, in some embodiments, when the left earphone and the right earphone are in the pull-in state, the bluetooth earphone may reject the call audio connection establishment request after receiving the call audio connection (e.g., SCO connection) establishment request from the electronic device.
In combination with the first aspect, in some embodiments, the bluetooth headset may send a call audio connection (e.g., SCO connection) establishment request to an electronic device (e.g., a mobile phone) in response to detecting a user operation to make or receive a call while the left and right headsets are in the separated state. Therefore, the left earphone and the right earphone are separated from the attraction, the Bluetooth earphone initiates the establishment of the call audio connection (such as SCO connection), and the requirement that the user needs to use the earphones when separating the left earphone and the right earphone can be met.
In conjunction with the first aspect, in some embodiments, the bluetooth headset may accept a call audio connection (e.g., SCO connection) to be established with the electronic device after receiving a call audio connection (e.g., SCO connection) establishment request from the electronic device while the left and right headsets are in the separated state.
In conjunction with the first aspect, in some embodiments, the bluetooth headset may perform call audio playback after receiving call audio data from the electronic device over an established call audio connection (e.g., SCO connection) while the left and right headsets are in the separated state.
In combination with the first aspect, in some embodiments, the bluetooth headset may maintain the connection with the electronic device (e.g., HFP connection) for controlling the audio frequency of the call regardless of whether the left headset and the right headset are in the engaged state or the disengaged state, without disconnecting the HFP connection
In conjunction with the first aspect, in some embodiments, the bluetooth headset maintains the HFP connection with the electronic device while the left and right headsets are in the engaged state. If there is an existing A2DP connection between the Bluetooth headset and the electronic device, the A2DP connection is broken. Similarly, if there is an existing SCO connection between the bluetooth headset and the electronic device, the SCO connection is disconnected.
In a second aspect, the present disclosure provides a wireless communication method, which may include: and a Bluetooth connection is established between the audio receiving party and the audio source. And when the audio receiver detects that the first audio output device of the audio receiver and the second audio output device of the audio receiver are in a suction state, the Bluetooth connection is kept. For further explanation of the method provided by the second aspect, reference may be made to the first aspect, which is not described herein again.
In a third aspect, a wireless communication method is provided in the present disclosure, where the method includes: the electronic equipment can also present the opening and closing state of the left earphone and the right earphone through a User Interface (UI) so as to realize the visualization of the opening and closing state on the electronic equipment side. For example, the electronic device may receive status indication information from a bluetooth headset to indicate the open and closed status of the left and right headsets. The electronic device may display an indicator of the open and closed states of the left and right earphones. For example: when the electronic device receives the first indication information, the electronic device may display a first indicator. When the electronic device receives the second indication information, the electronic device may display the second indicator. In addition, the electronic device may display a third indicator in the status bar when bluetooth of the electronic device is on but the bluetooth headset is not connected. The first indicator, the second indicator, and the third indicator may be different to indicate different states of the bluetooth headset differently. The first indication information and the second indication information may be transmitted to the electronic device by a bluetooth headset.
In a fourth aspect, an audio receiving device is provided, comprising a plurality of functional units for performing the method provided in any of the possible implementations of the first or second aspect, respectively.
In a fifth aspect, an electronic device is provided, which comprises a plurality of functional units for performing the method provided in any of the possible embodiments of the third aspect.
In a sixth aspect, an audio receiving device is provided for performing the wireless communication method described in the first aspect. The audio recipient device may include: the Bluetooth communication processing module, the first sensor, the first audio output device and the second audio output device are provided with magnetic components; the magnetic component can be used for attracting the first audio output device and the second audio output device; the Bluetooth communication processing module can be used for establishing Bluetooth connection with an audio source; the first sensor may be configured to detect whether the first audio output device and the second audio output device are in an engaged state or a disengaged state; when the first sensor detects that the first audio output device and the second audio output device are switched from the separated state to the attraction state, the Bluetooth communication processing module can also be used for keeping Bluetooth connection.
In the sixth aspect, the bluetooth communication processing module maintaining the bluetooth connection may mean that the bluetooth communication processing module does not send a bluetooth connection disconnection request to the audio source when the first audio output device and the second audio output device are in the attraction state. In addition, the bluetooth communication processing module may not receive a command to disconnect the bluetooth connection from the processor of the audio receiver device.
With reference to the sixth aspect, in some embodiments, the bluetooth communication processing module may be further configured to disconnect an existing audio connection if the existing audio connection exists between the audio receiver and the audio source when the first sensor detects that the first audio output device and the second audio output device are in the pull-in state.
In combination with the sixth aspect, in some embodiments, the bluetooth communication processing module may be further configured to, when the first sensor detects that the first audio output device and the second audio output device are in the pull-in state, refuse to establish an audio connection with the audio source if there is no existing audio connection between the audio recipient and the audio source.
In combination with the sixth aspect, in some embodiments, the bluetooth communication processing module may be further configured to accept establishment of an audio connection with the audio source when the first sensor detects that the first audio output device and the second audio output device are in the separated state.
With reference to the sixth aspect, in some embodiments, the bluetooth communication processing module may be further configured to send first indication information to the electronic device when the first sensor detects that the first audio output device and the second audio output device are in the attraction state; the first indication information can be used for indicating that the first audio output device and the second audio output device are in a pull-in state.
In combination with the sixth aspect, in some embodiments, the bluetooth communication processing module is further configured to send, to the electronic device, second indication information to the audio receiving side when the first sensor detects the separated state; the second indication information may be used to indicate that the first audio output device and the second audio output device are in a separate state.
In a seventh aspect, an electronic device is provided, which is configured to perform the wireless communication method described in the third aspect. The electronic device may include: bluetooth communication processing module, display screen, wherein:
the display screen can be used for displaying a first indicator when the Bluetooth communication processing module receives first indication information from the audio receiver, and the first indicator can be used for indicating that a first audio output device of the audio receiver and a second audio output device of the audio receiver are in an attraction state. The display screen is used for displaying a second indicator when the Bluetooth communication processing module receives second indication information from the audio receiver, and the second indicator can be used for indicating that the first audio output device of the audio receiver and the second audio output device of the audio receiver are in a separated state.
In an eighth aspect, a wireless audio system is provided, the wireless audio may include: an electronic device and an audio recipient device, wherein: the audio sink device may be the audio sink device described in the fourth or sixth aspect. The electronic device may be the electronic device described in the fifth or seventh aspect.
In a ninth aspect, a computer-readable storage medium is provided, which has instructions stored thereon, and when the instructions are executed on a computer, the computer is enabled to execute the wireless communication method described in the first aspect or the second aspect.
A tenth aspect provides another computer-readable storage medium having stored thereon instructions, which, when run on a computer, cause the computer to perform the wireless communication method described in the third aspect.
In an eleventh aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the wireless communication method described in the first or second aspect above.
In a twelfth aspect, another computer program product containing instructions is provided, which when run on a computer, causes the computer to perform the wireless communication method described in the third aspect above.
In a thirteenth aspect, a wireless communication method is provided, which is applied to an audio receiving side, where the audio receiving side includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device include a magnetic component; the magnetic component is used for attracting the first audio output device and the second audio output device;
the method comprises the following steps:
the audio receiving party is connected with an audio source through Bluetooth;
and when the first audio output device and the second audio output device are switched from the separated state to the attraction state, the audio receiving party and the audio source keep the Bluetooth connection.
In one implementation, when the first audio output device and the second audio output device are in the pull-in state, if there is an existing audio connection between the audio receiver and the audio source, the existing audio connection is disconnected.
In one implementation, when the first audio output device and the second audio output device are in the pull-in state, the audio receiver rejects to establish an audio connection with the audio source when receiving a connection establishment request of the audio source.
In one implementation, when the first audio output device and the second audio output device are in the separate state, the audio receiver establishes an audio connection with the audio source upon receiving a connection establishment request of the audio source.
In one implementation, when the first audio output device and the second audio output device are in the separate state, the audio recipient initiates establishment of an audio connection, and the audio recipient and the audio source establish an audio connection.
In one implementation manner, when the first audio output device and the second audio output device are in a pull-in state, the audio receiving direction sends first indication information to the audio source; the first indication information is used for indicating that the first audio output device and the second audio output device are in a pull-in state.
In one implementation, when the first audio output device and the second audio output device are in a separated state, the audio receiving direction sends second indication information to the audio source; the second indication information is used for indicating that the first audio output device and the second audio output device are in a separated state.
In a fourteenth aspect, an audio receiving apparatus is provided, comprising: the Bluetooth communication processing module comprises a Bluetooth communication processing module, a first sensor, a first audio output device and a second audio output device, wherein the first audio output device and the second audio output device comprise magnetic components; the magnetic component is used for attracting the first audio output device and the second audio output device; wherein the content of the first and second substances,
the Bluetooth communication processing module is used for Bluetooth connection with an audio source;
when the first sensor detects that the first audio output device and the second audio output device are switched from the separated state to the attraction state, the Bluetooth communication processing module keeps the Bluetooth connection. In one implementation, the bluetooth communication processing module is further configured to disconnect an existing audio connection if the existing audio connection exists between the audio receiving side and the audio source when the first sensor detects that the first audio output device and the second audio output device are in the pull-in state.
In one implementation manner, the bluetooth communication processing module is further configured to, when the first sensor detects that the first audio output device and the second audio output device are in the attraction state, refuse to establish an audio connection with the audio source upon receiving a connection establishment request of the audio source.
In one implementation, the bluetooth communication processing module is further configured to, when the first sensor detects that the first audio output device and the second audio output device are in the separated state, receive a connection establishment request of the audio source, and establish an audio connection with the audio source.
In one implementation, the bluetooth communication processing module is further configured to initiate establishment of an audio connection with the audio source when the first sensor detects that the first audio output device and the second audio output device are in the separated state.
In one implementation manner, the bluetooth communication processing module is further configured to send first indication information to the audio source when the first sensor detects that the first audio output device and the second audio output device are in an attraction state; the first indication information is used for indicating that the first audio output device and the second audio output device are in a pull-in state.
In one implementation, the bluetooth communication processing module is further configured to send second indication information to the audio source when the first sensor detects that the first audio output device and the second audio output device are in a separated state; the second indication information is used for indicating that the first audio output device and the second audio output device are in a separated state.
It will be appreciated that the audio receiving device may be a neckband headset or may be a TWS headset.
In one implementation, the bluetooth communication processing module may include a bluetooth transceiver module and a processing module. The processing module controls the Bluetooth transceiving module. For example, the processing module controls the bluetooth transceiver module to be connected with the audio source bluetooth, the processing module controls the bluetooth transceiver module to maintain bluetooth connection, the processing module controls the bluetooth transceiver module to disconnect the existing audio connection, the processing module controls the bluetooth transceiver module to refuse to establish audio connection with the audio source, and the like. It can be understood that the bluetooth transceiver module and the processing module may be two independent modules, or may be integrated into one body.
In one implementation, the bluetooth communication processing module may include a bluetooth transceiver module, and the audio recipient device may include a processor that may control functions of the bluetooth communication processing module. For example, the processor controls the bluetooth communication processing module to be connected with the audio source bluetooth, the processor controls the bluetooth communication processing module to keep bluetooth connection, the processor controls the bluetooth communication processing module to disconnect the existing audio connection, the processing module controls the bluetooth communication processing module to refuse to establish audio connection with the audio source, and the like.
In a fifteenth aspect, an electronic device is provided that is wirelessly connected with an audio recipient; the electronic device includes: bluetooth communication processing module, display screen, wherein:
the display screen is used for displaying a first indicator when the Bluetooth communication processing module receives first indication information from the audio receiver, wherein the first indicator is used for indicating that a first audio output device of the audio receiver and a second audio output device of the audio receiver are in an attraction state;
the display screen is used for displaying a second indicator when the Bluetooth communication processing module receives second indication information from the audio receiver, and the second indicator is used for indicating that the first audio output device and the second audio output device are in a separated state.
In one implementation, the wireless connection may be a bluetooth connection, a wifi connection, or a mobile communication connection, such as a 4G or 5G connection.
In one implementation, the electronic device may further include a processor that controls the display screen to display the first indicator and the second indicator. In addition, the processor can also control the functions of the Bluetooth communication processing module.
In one implementation, the bluetooth communication processing module may include a bluetooth transceiver module and a processing module, and the processing module may control functions of the bluetooth transceiver module. It can be understood that the bluetooth transceiver module and the processing module may be two independent modules, or may be integrated into one body.
In a sixteenth aspect, there is provided a wireless audio system comprising: an electronic device and an audio recipient device, wherein the audio recipient device includes a first audio output device and a second audio output device, the first audio output device and the second audio output device including magnetic components; the magnetic component is used for attracting the first audio output device and the second audio output device; wherein the content of the first and second substances,
the audio receiver equipment is connected with the electronic equipment through Bluetooth;
when the first audio output device and the second audio output device are switched from the separated state to the attraction state, the audio receiving device and the electronic device are kept in the Bluetooth connection.
In one implementation, when the first audio output device and the second audio output device are in the pull-in state, if there is an existing audio connection between the audio receiver and the electronic device, the audio receiver device disconnects the existing audio connection.
In one implementation manner, when the first audio output device and the second audio output device are in the pull-in state, the audio receiver device refuses to establish audio connection with the electronic device when receiving a connection establishment request of the electronic device.
In one implementation, when the first audio output device and the second audio output device are in the separated state, the audio receiver device establishes an audio connection with the electronic device after receiving a connection establishment request from the electronic device.
In one implementation, when the first audio output device and the second audio output device are in the separate state, the audio receiver device initiates establishment of the audio connection, and the audio receiver device establishes an audio connection with the electronic device.
The above beneficial effects can be referred to the first aspect, and are not described herein.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
FIG. 1A illustrates a wireless audio system to which embodiments of the present application relate;
FIG. 1B illustrates the structure of an audio output device in the wireless audio system shown in FIG. 1A;
FIG. 2A illustrates another wireless audio system to which embodiments of the present application relate;
FIG. 2B illustrates the structure of an audio output device in the wireless audio system shown in FIG. 2A;
fig. 3 illustrates a process of establishing a media audio connection according to an embodiment of the present application;
fig. 4 illustrates a call audio connection establishment process according to an embodiment of the present application;
fig. 5 illustrates a call audio control connection establishment process according to an embodiment of the present application;
fig. 6 shows an overall flow of a wireless communication method according to an embodiment of the present disclosure;
FIG. 7A illustrates one user operation to turn on the Bluetooth function of the electronic device;
FIG. 7B illustrates another user operation to turn on the Bluetooth function of the electronic device;
fig. 8 shows two usage states of the bluetooth headset provided in the present application;
FIG. 9A illustrates an indicator displayed by an electronic device with a left ear and a right ear in a separated state;
FIG. 9B illustrates an indicator displayed by the electronic device with the left and right ears in an engaged state;
FIG. 9C illustrates the electronic device displaying an indicator that Bluetooth is on but a Bluetooth headset is not connected;
FIG. 10 illustrates a wireless communication method according to an embodiment;
fig. 11 illustrates a wireless communication method according to the second embodiment;
fig. 12 shows two usage states of the bluetooth headset in the second embodiment;
fig. 13 illustrates a wireless communication method according to a third embodiment;
fig. 14 shows two usage states of the bluetooth headset in the third embodiment;
fig. 15A shows a structure of an electronic apparatus;
FIG. 15B illustrates the software architecture loaded by the electronic device;
fig. 16 shows the structure of the audio output apparatus.
Detailed Description
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
Fig. 1A illustrates a wireless audio system 100 according to an embodiment of the present application. As shown in fig. 1A, the wireless audio system 100 may include an electronic device 101, an audio output device 106. Wherein the content of the first and second substances,
the electronic device 101 may be implemented as any one of the following electronic devices: a cellular phone, a portable game machine, a portable media playback device, a personal computer, a vehicle-mounted media playback device, and the like.
The audio output device 106 may be responsible for converting audio data into sound. The audio output device 106 may be a neck headphone, an in-ear headphone, a sound box, or the like audio output device. Taking headphones as an example, as shown in fig. 1A, the audio output devices 106 may include a left headphone 102, a right headphone 103, and a drive-by-wire 104. The left earphone 102 is connected with the drive-by-wire 104 through an earphone line, and the right earphone 103 is connected with the drive-by-wire 104 through an earphone line. The line control 104 may be configured with keys such as a volume up key, a volume down key, a play control key, etc. The drive-by-wire 104 may also be configured with a sound collection device such as a receiver/microphone. Magnetic components can be arranged in the left earphone 102 and the right earphone 103. The audio output device 106 may be referred to as a magnetically-attractable audio output device, such as a magnetically-attractable bluetooth headset. When the left earphone 102 and the right earphone 103 are close to each other (for example, the distance is less than 2 mm) or in contact with each other, the left earphone 102 and the right earphone 103 can be attracted together due to the respective built-in magnetic components, so that the audio output device 106 can be conveniently received by the user.
A wireless communication connection 105 may be established between the electronic device 101 and the audio output device 106.
In the transmission direction of the electronic device 101 to the audio output device 106, the electronic device 101 may transmit audio data to the audio output device 106 over the wireless communication connection 105. At this time, the role of the electronic device 101 is an audio source (audio source), and the role of the audio output device 106 is an audio sink (audio sink). In this way, the audio output device 106 may convert the received audio data into sound so that the user wearing the audio output device 106 can hear the sound.
In addition to audio data, control (e.g., previous, next, etc.) messages, call control (e.g., answer, hang up) messages, volume control messages (e.g., volume up, volume down), etc. may be played, or otherwise interacted between the electronic device 101 and the audio output device 106 based on the wireless communication connection 105. Specifically, the electronic device 101 may send a play control message and a call control message to the audio output device 106 through the wireless communication connection 105, so that play control and call control may be performed on the electronic device 101 side. For example, when a user clicks a music play key on the electronic device 101, the electronic device may send an audio play command to the audio output device 106 over the wireless communication connection 105, triggering the audio output device 106 to play music. Specifically, the audio output device 106 may send a play control message and a call control message to the electronic device 101 through the wireless communication connection 105, so that play control and call control may be performed on the audio output device 106 side. For example, when the user presses the volume up key on drive-by-wire 104, audio output device 106 may send a volume up command to electronic device 101 over wireless communication connection 105, triggering electronic device 101 to increase the volume of music playing.
The physical forms and sizes of the electronic device 101 and the audio output device 106 may also be different from those shown in fig. 1A, and the present application does not limit the physical forms and sizes.
The wireless audio system 100 shown in fig. 1A may be a wireless audio system implemented based on the bluetooth protocol. For example, the wireless communication connection 105 between the electronic device 101 and the audio output device 106 may be a bluetooth communication connection.
The structure of the audio output device 106 in fig. 1A may be as shown in fig. 1B. Wherein the content of the first and second substances,
the left earphone 102 and the right earphone 103 may each include: audio module, magnetic component and sensor. The audio module may be used to convert audio data into sound, and may be specifically an electro-acoustic transducer (electro-acoustic transducer). The magnetic component may have a magnetic material. The magnetic components in the left earphone 102 and the magnetic components in the right earphone 103 may exhibit opposite magnetic properties and thus attract each other. If the left earphone 102 and the right earphone 103 are close to each other, the magnetic components in the left earphone 102 and the right earphone 103 may attract each other to attract the left earphone 102 and the right earphone 103 together. The sensor may be used to detect whether the left earphone 102 and the right earphone 103 are drawn together. The sensor may be a hall sensor, a proximity light sensor, or the like. The sensor may be referred to as a first sensor. If the left earphone 102 and the right earphone 103 are attracted together, it can be said that the left earphone 102 and the right earphone 103 are in an attraction state; otherwise, the left earphone 102 and the right earphone 103 may be said to be in a separated state.
Drive-by-wire 104 may include: bluetooth module, treater and battery. The bluetooth module may be used to receive or transmit bluetooth signals. The audio output device 106 may establish a bluetooth communication connection with the electronic device 101 through a bluetooth module and transmit a bluetooth signal to the electronic device 101 or receive a bluetooth signal transmitted by the electronic device 101 through the bluetooth communication connection. The processor may couple the bluetooth module and the audio modules, sensors in the left and right earphones 102, 103. The processor can be responsible for reading the instructions in the memory, decoding the instructions and executing the instructions so as to realize the wireless communication method provided by the technical scheme of the application. The battery may be used to power various components in the audio output device 106, such as a processor, audio module, sensor, bluetooth module, etc.
Without being limited to that shown in fig. 1B, the audio output device 106 may also include other components, such as a memory, a receiver, an indicator light, etc. that may be configured in the drive-by-wire 104.
Not limited to the bluetooth headset shown in fig. 1A, the left and right headsets 102, 103 in the wireless audio system 100 may also be other types of audio output devices. For example, in a home theater scenario, the left earphone 102 and the right earphone 103 in the wireless audio system 100 may also be two speakers in the home theater scenario: left sound channel audio amplifier, right sound channel audio amplifier. A control device similar to the drive-by-wire 104 can also be connected between the two sound boxes.
Fig. 2A illustrates another wireless audio system 200 according to embodiments of the present application. As shown in fig. 2A, the wireless audio system 200 may include an electronic device 201, an audio output device 202, and an audio output device 203. The audio output device 202 and the audio output device 203 may be a left earphone and a right earphone of a set of bluetooth earphones, respectively.
Unlike the wireless audio system 100 shown in fig. 1A, there is no cable connection between the audio output device 202 and the audio output device 203. The two may communicate via a wireless communication connection 206 rather than a wired communication connection. The audio output device 202 and the audio output device 203 may be True Wireless Stereo (TWS) headphones, which may be a left headphone and a right headphone, respectively, in a set of TWS headphones.
In the wireless audio system 200, the audio output device 202 and the audio output device 203 may establish wireless communication connections with the electronic device 201, respectively. For example, the audio output device 202 may establish a wireless communication connection 204 with the electronic device 201, and may interact audio data, play control messages, talk control messages, and the like through the wireless communication connection 204. Similarly, a wireless communication connection 205 may be established between the electronic device 201 and the audio output device 203, and audio data, play control messages, talk control messages, and the like may be interacted through the wireless communication connection 205.
The physical forms and sizes of the electronic device 201, the audio output device 202, and the audio output device 203 may also be different from those shown in fig. 2A, and this is not limited in this embodiment of the application.
The wireless audio system 200 shown in fig. 2A may be a wireless audio system implemented based on the bluetooth protocol. For example, the wireless communication connections (e.g., wireless communication connection 204, wireless communication connection 205, wireless communication connection 206) between the electronic device 201, the audio output device 202, and the audio output device 203 may employ bluetooth communication connections.
The audio output device 202 and the audio output device 203 in fig. 2A may have a structure as shown in fig. 2B. The audio output device 202, the audio output device 203 may each include: bluetooth module, magnetic part, audio module, sensor and processor. It can be seen that, unlike the audio output device 106 in the wireless audio system 100 shown in fig. 1A, the audio output device 202 and the audio output device 203 respectively integrate the functions of the drive-by-wire 104 of the audio output device 106.
Not limited to that shown in fig. 2B, the audio output devices 202 and 203 may also include other components, such as configurable memory, headphones, indicator lights, and the like.
Not limited to the bluetooth headset shown in fig. 2A, the audio output devices 202 and 203 in the wireless audio system 200 may be other types of audio output devices. For example, in a home theater scenario, the audio output devices 202 and 203 in the wireless audio system 200 may also be two speakers in the home theater scenario: left sound channel audio amplifier, right sound channel audio amplifier.
Based on the foregoing wireless audio system, an embodiment of the present application provides a wireless communication method, which is applicable to a pair of magnetic bluetooth headsets, where the pair of magnetic bluetooth headsets includes a left headset (left bud) and a right headset (right bud).
In the wireless communication method provided by the embodiment of the application, after the magnetic type Bluetooth headset is successfully matched with the electronic equipment, the electronic equipment is controlled to be connected with the audio frequency between the magnetic type Bluetooth headset based on the attraction/separation state of the left headset and the right headset under the condition that the Bluetooth connection is not disconnected. Specifically, when the left earphone and the right earphone are in an attraction state, the existing audio connection between the magnetic type Bluetooth earphone and the electronic equipment is disconnected; when the left earphone and the right earphone are in a separated state, audio connection can be established between the magnetic type Bluetooth earphone and the electronic equipment. Like this, when the user is with the left and right sides earphone of actuation separately, magnetism is inhaled formula earphone and electronic equipment and only need be rebuild the audio frequency and be connected, and need not to carry out the bluetooth and return to the company, can effectively reduce magnetism and inhale the response time delay of formula bluetooth earphone when controlling the earphone and switching from the actuation state to the separation state, can satisfy the user and separately control the demand that the earphone just can use the earphone.
The attracting/separating states of the left earphone and the right earphone of the magnetic type Bluetooth earphone correspond to different user use scenes. Specifically, when the left and right earphones are closed, it means that the user does not use the bluetooth earphone for the moment. At this time, if the electronic device has audio to be played, the audio can be routed to an audio output device (such as a speaker, a receiver, etc.) of the electronic device for playing. When the left and right headsets are separated, this means that the user is using a bluetooth headset. At this time, if the electronic device has audio to play, the audio can be routed to the bluetooth headset for playing.
The bluetooth connection and audio connection according to the embodiment of the present application will be described below.
(1) Bluetooth connection
Bluetooth connections are bluetooth physical connections, such as connectionless Asynchronous Connections (ACL). A bluetooth connection may be established by a master device (e.g., the device that initiated the connection request) and a slave device (e.g., the device that received the connection request) via an inquiry (inquiry), paging (paging) process. In one case, the master device is an electronic device (e.g., a cell phone) and the slave device is a bluetooth headset. In another case, the master device is a bluetooth headset and the slave device is an electronic device (e.g., a cell phone).
(2) Audio connection
The audio connection (audio connection) may include: call audio connection (call audio connection), media audio connection (media audio connection). Wherein the call audio connection may be used to transmit voice data and the media audio connection may be used to transmit media audio data. The call audio connection may be a connection oriented Synchronous Connection (SCO) for call scenarios. The media audio connection may be an advanced audio distribution profile (A2 DP) connection.
Different audio connections are also correspondingly configured with different application profile connections for audio control. Specifically, the call audio connection may be configured with a call audio control connection, and may be used to transmit call control (e.g., answer, hang-up, etc.) signaling. The call audio control connection may be a hands-free profile (HFP) connection. The media audio connection may be configured with a media audio control connection and may be used to transmit media audio playback control (e.g., previous, next, pause, play, volume control, etc.) signaling. The media audio control connection may be an audio/video remote control profile (AVRCP) connection.
The application profile connection is established based on a logical link control and adaptation protocol (L2 CAP) channel. The L2CAP is located above a baseband (baseband), and is responsible for converting baseband data into a data packet format that is easy for application decoding, and provides functions such as protocol multiplexing and quality of service switching. The establishment of bluetooth physical connection is described in (1) above, but if an upper layer application (e.g. A2DP) needs to communicate between the master device and the slave device, it also needs to establish corresponding L2CAP channels on the L2CAP layer, and these channels are used for various application profiles to communicate. At the L2CAP layer, an L2CAP channel corresponding to an application profile may be represented by a Channel Identity (CID). When a profile is no longer used, the L2CAP channel corresponding to the profile is to be cleared.
However, L2CAP supports only ACL data transfer and does not support SCO data transfer.
(3) Media audio connection establishment procedure
Taking the A2DP connection as an example, as shown in fig. 3, the establishment process of the media audio connection may include the following steps:
step 1, the master device and the slave device establish an L2CAP channel based on ACL connection. Among them, the L2CAP channel for A2DP may include: l2CAP channel for transmitting signaling (signaling), L2CAP channel for transmitting stream (stream). Wherein, the L2CAP channel for signaling may be referred to as AVDTP signaling L2CAP channel, and the L2CAP channel for stream may be referred to as AVDTP stream L2CAP channel.
And 2, the master device and the slave device establish the A2DP connection based on the L2CAP channel used for the A2DP, and specifically, the method can comprise the steps 2-1 to 2-5.
Step 2-1. stream endpoints (stream endpoints) discovery process.
For example, through the AVDTP signaling L2CAP channel, the master device may send an AVDPT _ DISCOVER command to the slave device for discovering Stream Endpoints (SEPs) in the device. Accordingly, the slave device returns a response that carries an identification of the SEP (SEID) that the slave device can provide.
Step 2-2. capability (capabilities) query process.
For example, after discovering the SEP, the master device may send an AVDPT _ GET _ CAPABILITIES command to the slave device over the AVDTP signaling L2CAP channel for obtaining services that the SEP of the slave device is capable of providing. Accordingly, the slave device feeds back the services that the SEP can provide to the master device.
Step 2-3. stream configuration (stream configuration) process.
For example, after querying the services that can be provided by the SEP of the slave device, through the AVDTP signaling L2CAP channel, the master device may send an AVDPT _ SET _ CONFIGURATION command to the slave device for configuring the services provided by the SEP of the slave device, such as configuring channels of audio, sampling rate, and so on.
And 2-4, establishing a stream (stream) process.
For example, after the stream configuration is completed, the master device may send an AVDPT OPEN command to the slave device for creating a stream through an AVDTP signaling L2CAP channel. The created stream may also be referred to as a stream connection (streaming connection), e.g., an A2DP connection. To this end, the A2DP connection establishment is complete.
Step 2-5. stream start (stream start) process.
For example, over the AVDTP signaling L2CAP channel, the master device may send an AVDPT _ START command to the slave device for starting the stream. After streaming is initiated, the streaming media audio data is available. Here, media audio refers to mono (mono) and stereo (stereo) audio, as distinguished from speech audio transmitted over SCO connections. Subsequently, the master and slave devices may CLOSE the stream, e.g., disconnect the A2DP connection, via an AVDPT _ CLOSE command.
Similar to the establishment of the A2DP connection, the AVRCP connection is also established based on bluetooth connection (ACL) and L2CAP channels, and details are not repeated here. The AVRCP specification may be referred to for the AVRCP connection establishment procedure.
(4) Call audio connection establishment procedure
Taking the SCO connection as an example, as shown in fig. 4, the establishment process of the call audio connection may include the following steps:
step 1, the master device sends an SCO connection establishment request to the slave device, and the establishment of the SCO connection is initiated.
And 2, the slave equipment returns an acceptance response of the SCO connection establishment request to the master equipment.
The SCO connection establishment request may be LMP _ SCO _ link _ req signaling, and the SCO connection establishment request acceptance response may be LMP _ accepted signaling. If the slave device is not able to establish the SCO connection, LMP _ not _ accepted (reject answer to SCO connection establishment request) may be returned indicating that the SCO connection cannot be established.
Not limited to that shown in fig. 4, the establishment of the SCO connection may also be initiated by the slave device. Subsequently, the master and slave devices may disconnect (or remove) the SCO connection by removing the SCO connection establishment request (e.g., LMP _ remove _ SCO _ link _ req signaling).
In particular, an SCO connection may be established by the master and slave devices in response to an internal event or user action (making or receiving a call). When the call is switched from the answering state of the Bluetooth earphone to the answering of the earphone and the loudspeaker of the electronic equipment, the SCO connection is disconnected. The SCO connection may be used to transfer voice data as an adjunct to the HFP connection. How to establish HFP connection will be mentioned later, and will not be described in detail here. The SCO connection can be established only after the ACL connection has been established. Because, the HFP connection establishment needs ACL-based connection.
(5) Call audio control connection establishment
Taking HFP connection as an example, as shown in fig. 5, the establishment process of the call audio control connection may include the following steps:
step 1, the master device and the slave device establish an L2CAP channel for Radio Frequency Communication (RFCOMM) based on ACL connection.
And 2, the master device and the slave device establish RFCOMM connection based on the L2CAP channel. For the establishment process of the RFCOMM connection, General Access Profile (GAP) and Serial Port Profile (SPP) may be referred to.
And 3, responding to user operation (making a call or receiving a call) or an internal event, and establishing a service level connection (establish service level connection) between the master device and the slave device based on the existing RFCOMM connection. By this point, HFP connection establishment is completed.
Subsequently, the master device and the slave device may release the service level connection (e.g., disconnect HFP connection) through a service level connection removal procedure (service level connection removal procedure). The established service level connection is released and its corresponding RFCOMM connection is removed. Likewise, the audio connection (SCO connection) corresponding to the service level connection is also removed.
With regard to the service level connection establishment process and the service level connection removal process, HFP specification may be referred to.
Fig. 6 shows an overall flow of a wireless communication method provided in an embodiment of the present application. The following is developed.
S101, the Bluetooth headset and the electronic equipment are successfully paired and Bluetooth connection is established.
Wherein the pairing may create a shared key between the bluetooth headset and the electronic device: link Key (Link Key). The Link Key (Link Key) is used for the bluetooth headset and the electronic device to authenticate each other and encrypt exchanged data.
The bluetooth connection may refer to a bluetooth physical connection, such as an ACL connection. The Bluetooth headset and the electronic equipment can establish ACL connection through inquiry (inquiry) and paging (paging) processes.
When the bluetooth of the bluetooth headset and the electronic device is turned on, the bluetooth headset and the electronic device start to execute S101.
In one approach, as shown in FIG. 7A, a user may click on the Bluetooth option 401 in a drop-down status bar 400 displayed by the electronic device to turn on Bluetooth of the electronic device. Alternatively, as shown in fig. 7B, the user may also turn on bluetooth of the electronic device through the bluetooth switch 405 in the "setup" interface 403 of the electronic device. The "setting" is an application or service on the electronic device, and may be responsible for configuring various functions of the electronic device, such as an airplane mode, wireless fidelity (Wi-Fi), bluetooth, a mobile network, and the like. Not limited to the two ways shown in fig. 7A and 7B, the bluetooth of the electronic device may be triggered to be turned on by an internal event. The internal event may be, for example, an open event of a sharing service such as "Huawei". The opening of sharing service of 'Huawei' triggers the opening of Bluetooth and Wi-Fi.
The Bluetooth headset can generally start Bluetooth after being started, and a user does not need to manually start the Bluetooth additionally.
And S102, the Bluetooth headset (through a proximity optical sensor, a Hall sensor and the like) can detect the opening and closing state between the left headset and the right headset. The open-close state can comprise the following two states: a pull-in state and a separate state. If the left earphone and the right earphone are attracted together, the left earphone and the right earphone can be called to be in an attraction state; otherwise, the left earphone and the right earphone can be said to be in a separated state.
S103, when the left earphone and the right earphone are detected to be in the suction state, the Bluetooth earphone judges whether audio connection exists between the Bluetooth earphone and the electronic equipment or not under the condition that Bluetooth connection (ACL connection) between the Bluetooth earphone and the electronic equipment is not disconnected. Disconnecting the existing audio connection if the existing audio connection exists; otherwise, the audio connection with the electronic equipment is refused to be established.
Here, the rejecting of the audio connection with the electronic device may mean that the bluetooth headset returns a rejection response of the audio connection establishment request to the electronic device to reject the audio connection establishment request when receiving the audio connection establishment request from the electronic device.
For example, when the left earphone and the right earphone are detected to be in the attraction state, no audio connection exists between the Bluetooth earphone and the electronic device. Therefore, when the electronic equipment has audio (call audio or media audio) to be played, the audio is not routed to the Bluetooth headset but is played by the electronic equipment (such as a mobile phone) so as to adapt to the use scene of a user who does not use the headset when the left headset and the right headset are pulled in.
And S104, when the left earphone and the right earphone are detected to be in the separated state, the Bluetooth earphone judges whether audio connection exists between the Bluetooth earphone and the electronic equipment under the condition that Bluetooth connection (ACL connection) between the Bluetooth earphone and the electronic equipment is not disconnected, and if the audio connection does not exist, the Bluetooth earphone accepts (accept) to establish audio connection with the electronic equipment.
Here, accepting (accept) and the electronic device to establish the audio connection may include, but is not limited to, the following two ways:
mode 1. the bluetooth headset actively initiates audio connection establishment, for example, sends an audio connection establishment request to the electronic device;
mode 2. the bluetooth headset may return an acceptance response of the audio connection establishment request to the electronic device to accept the audio connection establishment request when receiving the audio connection establishment request from the electronic device.
For example, when the left earphone and the right earphone are detected to be in the separated state, the Bluetooth earphone accepts to establish audio connection with the electronic device. Thus, when the electronic device has audio (call audio or media audio) to be played, the audio is routed to the bluetooth headset for playing, so as to adapt to the user usage scenario of the user using the headset when the left and right headsets are separated.
The audio connection in the overall flow shown in fig. 6 may be a call audio connection (e.g., SCO connection), a media audio connection (e.g., A2DP connection). The following embodiments will explain in detail how to control the connection status (disconnection or not) of the media audio connection (such as A2DP connection) and the call audio connection (such as SCO connection) between the electronic device and the magnetic-type bluetooth headset based on the engaging/disengaging status of the left headset and the right headset.
It can be seen that, in the wireless communication method provided in the embodiment of the present application, the bluetooth headset may have two usage states as shown in fig. 8: in the state 1, the left earphone and the right earphone are attracted, and audio connection does not exist between the Bluetooth earphone and the electronic equipment; and 2, the left earphone and the right earphone are separated, and the Bluetooth earphone and the electronic equipment are in audio connection or accept to establish audio connection. When the left earphone and the right earphone are switched from the attraction state to the separation state, the Bluetooth earphone and the electronic equipment can quickly establish audio connection according to actual audio playing requirements (if media audio needs to be played) on the premise that the Bluetooth connection is not disconnected, the response time delay of the Bluetooth earphone can be effectively reduced, and the purpose that the user uses the earphones by separating the left earphone and the right earphone is met.
In addition, the electronic device can also present the opening and closing state of the ear and the right earphone through a User Interface (UI) so as to realize the visualization of the opening and closing state on the electronic device side. Specifically, the bluetooth headset may send status indication information to the electronic device to indicate the open/close status of the left headset and the right headset. The electronic device may then display an indicator of the open and closed state of the left and right earphones. As shown in fig. 9A-9B, the electronic device may specifically display the indicator in a status bar. Wherein:
as exemplarily shown in fig. 9B, when the left earphone and the right earphone are in the attraction state, the electronic device may display an indicator 503 on the status bar, and the indicator 503 may be used to indicate that the left earphone and the right earphone of the bluetooth earphone are in the attraction state. The indicator 503 may be referred to as a first indicator.
As exemplarily shown in fig. 9A, when the left earphone and the right earphone are in the separated state, the electronic device may display an indicator 501A on the status bar, where the indicator 501A may be used to indicate that the left earphone and the right earphone of the bluetooth earphone are in the separated state. The indicator 501A may be referred to as a second indicator. Additionally, while displaying the indicator 501A, the electronic device can also display the indicator 501B. Indicator 501B may be used to indicate the remaining power of the bluetooth headset.
In addition, as exemplarily shown in fig. 9C, when the bluetooth of the electronic device is turned on but the bluetooth headset is not connected, the electronic device may display an indicator 505 in the status bar, and the indicator 505 may be used to indicate that the bluetooth of the electronic device is turned on but the bluetooth headset is not connected. The indicator 505 may be referred to as a third indicator.
The first indicator, the second indicator, and the third indicator are different to distinctively indicate different states of the bluetooth headset. The first indicator, the second indicator and the third indicator may also present other appearances, which are not limited to the appearances shown in fig. 9A to 9C, and the embodiment of the present application does not limit this.
In this embodiment, when the bluetooth headset is a TWS headset, the implementation of the wireless communication method provided in this embodiment of the present application on the bluetooth headset side may be performed by a left headset or a right headset in the TWS headset, or may be performed independently by the left headset and the right headset at the same time.
The wireless communication method provided by various embodiments of the present application will be described in detail below.
Example one
This embodiment will discuss how to control the media audio connection between the bluetooth headset and the electronic device (e.g., a mobile phone) based on the open/close states of the left and right magnetic attraction type bluetooth headsets. Here, the media audio connection may be, for example, an A2DP connection.
In this embodiment, for media audio connection (e.g., A2DP connection), when the left earphone and the right earphone are in the pull-in state, the bluetooth earphone may determine whether a media audio connection exists between the bluetooth earphone and the electronic device, and if the media audio connection exists, the media audio connection may be disconnected; otherwise, the media audio connection establishment request may be denied upon receipt of the media audio connection establishment request from the electronic device.
Fig. 10 illustrates a wireless communication method according to a first embodiment. In the method shown in fig. 10, a bluetooth connection (ACL connection) is established and maintained between the bluetooth headset and the electronic device. As shown in fig. 10, taking the example that the media audio connection is an A2DP connection, the method may include:
stage 1 (stage 1A to stage 1C): the left and the right earphones are in a suction state
Stage 1A (S201-S202): the electronic equipment displays an indicator that the left earphone and the right earphone of the Bluetooth earphone are in the suction state.
S201, when the left earphone and the right earphone are detected to be attracted, the Bluetooth earphone can also send state indicating information to the electronic equipment (such as a mobile phone), and the state indicating information can be used for indicating that the left earphone and the right earphone are in the attraction state. The status indication information may be referred to as first indication information.
Specifically, when the left earphone and the right earphone are detected to be sucked, the bluetooth earphone can firstly send the first indication information to the electronic device through the connection of A2DP, and then disconnect the connection of A2DP between the bluetooth earphone and the electronic device. Not limited to this, if there is another application level (profile) connection, for example, HFP connection, between the bluetooth headset and the electronic device, the bluetooth headset may also send the first indication information to the electronic device through the other application level connection, and at this time, the bluetooth headset may also disconnect the A2DP connection with the electronic device first and then send the first indication information through the other application level connection.
S202, after the first indication information sent by the Bluetooth headset is received in S201, the electronic equipment can display an indicator for attracting the left headset and the right headset. The indicator is the first indicator. As shown in fig. 9B, the electronic device may specifically display a first indicator in the status bar.
The bluetooth headset may specifically send the first indication information to the electronic device (e.g., a mobile phone) when detecting that the left and right headsets are switched from the detached state to the attached state. Therefore, the left earphone and the right earphone are switched from separation to suction, the electronic equipment can receive the state indication information and display the first indicator, and a user can immediately sense the state switching of the left earphone and the right earphone through the electronic equipment. The bluetooth headset may periodically transmit the indication information of the open/close states of the left and right headsets to the electronic device at a short period (for example, 5 milliseconds), not only when the open/close states of the left and right headsets are switched.
Stage 1B (S203-S204): the bluetooth headset disconnects A2DP between it and the electronic device.
S203, when the left earphone and the right earphone are detected to be sucked, if there is an A2DP connection between the bluetooth earphone and the electronic device, the bluetooth earphone may disconnect an A2DP connection between the bluetooth earphone and the electronic device. Specifically, the bluetooth headset may send an A2DP disconnect request to an electronic device (e.g., a cell phone). The A2DP disconnect request may be the AVDPT _ CLOSE command mentioned in the foregoing description of fig. 3. Not shown, the electronic device may accept the disconnection request after receiving the A2DP disconnection request from the bluetooth headset. To this end, the A2DP connection is broken. However, the bluetooth connection between the bluetooth headset and the electronic device is not disconnected, and remains connected when the left and right headsets are attached.
The bluetooth headset may specifically send an A2DP disconnection request to an electronic device (e.g., a mobile phone) when detecting that the left and right headsets are switched from the detached state to the attached state. Therefore, the left earphone and the right earphone are changed from separated to attracted, the Bluetooth earphone is disconnected from A2DP, and the Bluetooth headset is suitable for a scene that the user attracts the left earphone and the right earphone to suspend using the Bluetooth earphone.
S204, after the connection of A2DP is disconnected, if the media audio is not played completely, the electronic device may play the remaining media audio.
That is to say, the left earphone and the right earphone of the bluetooth earphone are attracted, the A2DP connection between the bluetooth earphone and the electronic device is disconnected, and the media audio which is not played can be played by the electronic device.
Stage 1C (S205-S208): media audio is played.
S205, the electronic device can determine that media audio is to be played.
Specifically, a media audio application (e.g., a media player, a voice assistant, etc.) on the electronic device may generate a media audio play event in response to a user operation (e.g., a media audio play operation) or an internal event, at which point the electronic device may determine that there is media audio to play.
S206, after determining that there is media audio to play, the electronic device may send an A2DP connection establishment request to the bluetooth headset.
S207, upon detecting the left and right headset puffs, the bluetooth headset may reject the A2DP connection establishment request.
S208, after the bluetooth headset refuses to establish the A2DP connection, the electronic device may play the media audio.
For example, when the left and right earphones of the bluetooth earphone are attracted, the A2DP connection between the bluetooth earphone and the electronic device is disconnected, and a media audio service comes, so that the media audio can be played by the electronic device.
Stage 2 (stage 2A to stage 2C): the left and right earphones are in a separated state
Stage 2A (S209-S211): the bluetooth headset accepts an A2DP connection to be established with the electronic device.
S209, upon detecting that the left earphone and the right earphone are separated, if there is no existing A2DP connection between the bluetooth earphone and the electronic device, the bluetooth earphone may transmit an A2DP connection request to the electronic device (e.g., a cell phone). The A2DP connection request may be an AVDPT _ OPEN command sent by the bluetooth headset to the electronic device during stream setup (stream setup) described in step 2-4 of fig. 3.
The bluetooth headset may specifically send an A2DP connection request to an electronic device (e.g., a mobile phone) when detecting that the left and right headsets are switched from the closed state to the open state. Therefore, the left earphone and the right earphone are separated from the attraction, the Bluetooth earphone initiates the connection establishment of A2DP, and the requirement that the user needs to use the earphones when separating the left earphone and the right earphone is met more quickly.
The connection establishment of the A2DP is not actively initiated when the opening and closing states of the left earphone and the right earphone of the Bluetooth earphone are switched, and the electronic equipment can periodically send connection establishment requests of the A2DP to the electronic equipment. For example, the electronic device sends an A2DP connection establishment request to the bluetooth headset once every 0.1 second. Accordingly, after receiving an A2DP connection establishment request from the electronic device, the bluetooth headset may accept or refuse to establish an A2DP connection depending on left and right headset states. When the left earphone and the right earphone are separated, the Bluetooth earphone can accept to establish A2DP connection; when the left and right earpieces are engaged, the bluetooth earpiece may refuse to establish an A2DP connection.
Upon detecting that the left and right earpieces are separated, the bluetooth headset may maintain an A2DP connection with the electronic device if there is an existing A2DP connection between the bluetooth headset and the electronic device.
S210, accordingly, after receiving the A2DP connection establishment request from the bluetooth headset, the electronic device may accept the A2DP connection establishment request. Specifically, the electronic device may return a response to the bluetooth device, which may indicate that the electronic device accepts to establish the A2DP connection.
S211, the connection establishment of A2DP is completed. Referring to the foregoing description of fig. 3, the A2DP connection may be a streaming connection established based on a bluetooth connection for the L2CAP channel of A2 DP. Because the bluetooth connection is kept between bluetooth headset and the electronic equipment, consequently, when left and right earphone parts, can establish A2DP based on existing bluetooth connection between bluetooth headset and the electronic equipment and connect, need not to carry out the bluetooth and return to the company, reduced bluetooth headset's response delay.
For the connection establishment procedure of A2DP, reference may be made to the related content of fig. 3, which is not described herein again.
Stage 2B (S212-S213): the electronic device displays an indicator that the left and right earpieces of the bluetooth earpiece are in a separated state.
S212, when the left earphone and the right earphone are detected to be separated, the bluetooth earphone may further send status indication information to the electronic device (e.g., a mobile phone), where the status indication information may be used to indicate that the left earphone and the right earphone are in the separated state. The status indication information may be referred to as second indication information.
Specifically, upon detecting that the left and right earphones are separated, the bluetooth headset may send the second indication information to the electronic device through the A2DP connection. Without being limited thereto, if there is another application level (profile) connection, for example, HFP connection, between the bluetooth headset and the electronic device, the bluetooth headset may also send the second indication information to the electronic device through the other application level connection.
S213, after receiving the second indication information transmitted by the bluetooth headset in S212, the electronic device may display an indicator that the left and right headsets are separated. The indicator is the aforementioned second indicator. As shown in fig. 9A, the electronic device may specifically display a second indicator in the status bar.
The bluetooth headset may specifically send the second indication information to the electronic device (e.g., a mobile phone) when detecting that the left and right headsets are switched from the closed state to the open state. Therefore, the left earphone and the right earphone are separated from the attraction state, the electronic equipment can receive the state indication information and display the second indicator, and a user can immediately sense the state switching of the left earphone and the right earphone through the electronic equipment. The bluetooth headset may periodically transmit the indication information of the open/close states of the left and right headsets to the electronic device at a short period (e.g., 5 milliseconds), not only when the open/close states of the left and right headsets are switched.
Stage 2C (S214-S216): media audio is played.
S214, the electronic device can determine that media audio is available to be played.
Specifically, a media audio application (e.g., a media player, a voice assistant, etc.) on the electronic device may generate a media audio play event in response to a user operation (e.g., a media audio play operation) or an internal event, at which point the electronic device may determine that there is media audio to play.
After determining that there is media audio to play, the electronic device may send the media audio data to the bluetooth headset over the A2DP connection S215.
S216, after the media audio data from the electronic equipment is received, the Bluetooth headset can play the media audio.
It can be seen that, the method provided in the first embodiment can realize that the usage scene of the bluetooth headset switches along with the switching of the open/close states of the left and right headsets: when the left earphone and the right earphone are attracted, the A2DP connection is disconnected, and the Bluetooth earphone is suspended from playing the media audio; when the left and right earpieces are separated, the A2DP connection is established and the media audio is played using the bluetooth earpiece.
Similarly, the bluetooth headset may also control the connection state (disconnection or not) of the media audio control connection (such as AVRCP connection) between the electronic device and the magnetic bluetooth headset without disconnecting the bluetooth connection based on the pull-in/pull-out states of the left and right headsets. Specifically, when the left earphone and the right earphone are attracted, if AVRCP connection exists between the Bluetooth earphone and the electronic equipment, the AVRCP connection can be disconnected; when the left and right headsets are separated, the bluetooth headset may create an AVRCP connection with the electronic device or may maintain an existing AVRCP connection. Therefore, when the left earphone and the right earphone are switched from the attraction state to the separation state, the AVRCP connection is established, and the requirements of a user for controlling media audio playing by using the Bluetooth earphone, such as volume increase/decrease, playing/pause and the like, can be met.
In a particular case, during a period of time (e.g., 1 minute) after the bluetooth headset is paired with the electronic device and the bluetooth connection is established, whether the left and right headsets of the bluetooth headset are in the detached state or the attached state, the bluetooth headset maintains the initially established A2DP connection with the electronic device without disconnecting the A2DP connection. After this time, if the left and right earphones are in the pull-in state, the bluetooth earphone may disconnect the A2DP connection; if the left and right earpieces are in the separated state, the bluetooth earpiece may continue to maintain the A2DP connection.
Example two
The present embodiment will discuss how to control a call audio connection (call audio connection) between a bluetooth headset and an electronic device (e.g., a mobile phone) based on the open/close states of left and right magnetic earphones of the bluetooth headset. Here, the call audio connection may be, for example, an SCO connection. Unlike media audio connections, the establishment of an SCO connection requires user action (answering a call) or internal event triggering. For example, a call audio connection needs to be established when there is call audio service.
In this embodiment, for a call audio connection (e.g., SCO connection), when the left earphone and the right earphone are in the attraction state, the bluetooth earphone determines whether a call audio connection exists between the bluetooth earphone and the electronic device, and if the call audio connection exists, the call audio connection may be disconnected; otherwise, the call audio connection establishment request may be rejected upon receiving the call audio connection establishment request from the electronic device.
Fig. 11 illustrates a wireless communication method according to a first embodiment. In the method shown in fig. 11, a bluetooth connection (ACL connection) is established and maintained between the bluetooth headset and the electronic device. As shown in fig. 11, taking the call audio connection as an example of an SCO connection, the method may include:
stage 1 (stage 1A to stage 1C): the left and the right earphones are in a suction state
Stage 1A (S301-S302): the electronic equipment displays an indicator that the left earphone and the right earphone of the Bluetooth earphone are in the suction state.
S301, when the left earphone and the right earphone are detected to be attracted, the Bluetooth earphone can also send state indicating information to the electronic equipment (such as a mobile phone), and the state indicating information can be used for indicating that the left earphone and the right earphone are in the attraction state. The status indication information may be referred to as first indication information.
Specifically, when the left earphone and the right earphone are detected to be engaged, the bluetooth earphone may first transmit the first indication information to the electronic device through an application level (profile) connection, such as HFP connection or A2DP connection.
S302, after the first indication information sent by the Bluetooth headset is received in S301, the electronic device can display an indicator for attracting the left headset and the right headset. The indicator is the first indicator. As shown in fig. 9B, the electronic device may specifically display a first indicator in the status bar. For a specific description of S301, refer to S202 in the first embodiment, which is not described herein again.
Stage 1B (S303-S304): the bluetooth headset disconnects the SCO connection between the bluetooth headset and the electronic device.
And S303, when the suction of the left earphone and the right earphone is detected, if the existing SCO connection exists between the Bluetooth earphone and the electronic equipment, the Bluetooth earphone can disconnect the existing SCO connection. Specifically, the bluetooth headset may send an SCO disconnection request to an electronic device (e.g., a mobile phone). Not shown, the electronic device may accept the disconnection request upon receiving the SCO disconnection request from the bluetooth headset. To this end, the SCO connection is broken. However, the bluetooth connection between the bluetooth headset and the electronic device is not disconnected, and the connection is still maintained when the left and right headsets are attracted.
The bluetooth headset may specifically send an SCO disconnection request to the electronic device (e.g., a mobile phone) when detecting that the left and right headsets are switched from the detached state to the attached state. Therefore, the left earphone and the right earphone are changed from separated to attracted, the Bluetooth earphone is disconnected with the SCO, and the Bluetooth earphone is suitable for a scene that the left earphone and the right earphone are suspended to use the Bluetooth earphone when the user attracts.
S304, after the SCO connection is disconnected, if the call is not ended, the electronic equipment can play the call audio.
For example, the left earphone and the right earphone of the bluetooth earphone are attracted, the SCO connection between the bluetooth earphone and the electronic device is disconnected, and the call audio of the call which is not ended can be routed to the electronic device side for playing.
Stage 1C (S305-S308): and playing the call audio.
S305, the electronic equipment detects user operations such as answering or making a call.
Specifically, a Phone application (Phone) on the electronic device may receive such user operations.
After detecting the user operation, the electronic device may send an SCO connection establishment request to the bluetooth headset S306. Specifically, the SCO connection establishment request may be the LMP _ SCO _ link _ req signaling mentioned in fig. 4.
S307, when the left earphone and the right earphone are detected to be engaged, the bluetooth earphone may refuse to establish an SCO connection with the electronic device. Specifically, the bluetooth headset may send a rejection response of the SCO connection establishment request to the electronic device to reject establishment of the SCO connection with the electronic device. The reject reply of the SCO connection establishment request may be the LMP _ not _ accepted signaling mentioned in the foregoing fig. 4.
S308, after the Bluetooth headset refuses to establish the SCO connection, the electronic equipment can play conversation audio.
For example, when the left and right earphones of the bluetooth earphone are attracted, the bluetooth earphone refuses to establish the SCO connection with the electronic device, and when a call service arrives, the electronic device can play the call audio of the call service.
Stage 2 (stage 2A to stage 2C): the left and right earphones are in a separated state
Stage 2A (S309-S310): the electronic device displays an indicator that the left and right earpieces of the bluetooth earpiece are in a separated state.
S309, when it is detected that the left earphone and the right earphone are separated, the bluetooth earphone may further send status indication information to the electronic device (e.g. a mobile phone), where the status indication information may be used to indicate that the left earphone and the right earphone are in a separated state. The status indication information may be referred to as second indication information.
Specifically, upon detecting that the left and right headsets are separated, the bluetooth headset may send the second indication information to the electronic device via an application level (profile) connection (e.g., HFP connection, A2DP connection).
After receiving the second indication information transmitted by the bluetooth headset in S309, the electronic device may display an indicator that the left and right headsets are separated S310. The indicator is the aforementioned second indicator. As shown in fig. 9A, the electronic device may specifically display a second indicator in the status bar.
The bluetooth headset may specifically send the second indication information to the electronic device (e.g., a mobile phone) when detecting that the left and right headsets are switched from the closed state to the open state. Therefore, the left earphone and the right earphone are separated from the attraction state, the electronic equipment can receive the state indication information and display the second indicator, and a user can immediately sense the state switching of the left earphone and the right earphone through the electronic equipment. The bluetooth headset may periodically transmit the indication information of the open/close states of the left and right headsets to the electronic device at a short period (for example, 5 milliseconds), not only when the open/close states of the left and right headsets are switched.
Stage 2B (S311-S316): the Bluetooth headset receives SCO connection with the electronic equipment and plays conversation audio.
S311, the electronic device may detect a user operation such as answering a call or making a call.
After detecting the user operation, the electronic device may send an SCO connection establishment request to the bluetooth headset S312.
S313, upon detecting that the left and right earphones are engaged, the bluetooth earphone may accept to establish an SCO connection with the electronic device. Specifically, the bluetooth headset may send an acceptance response of the SCO connection establishment request to the electronic device to accept establishment of the SCO connection with the electronic device. The SCO connection establishment request acceptance answer may be the LMP _ accepted signaling mentioned in the foregoing fig. 4.
And S314, the SCO connection is established.
Not limited to the SCO connection establishment initiated by the electronic device, the bluetooth headset may also initiate the SCO connection establishment upon detecting that the left and right headsets are separated. For example, when a user places a call using a bluetooth headset, the bluetooth headset may actively initiate an SCO connection setup. For the SCO connection establishment procedure, reference may be made to the related content of fig. 4, which is not described herein again.
S315, the electronic device can send the call audio data to the Bluetooth headset through SCO connection.
And S316, after receiving the call audio data from the electronic equipment, the Bluetooth headset can play the call audio.
Stage 2C (S317-S318): and disconnecting the SCO connection after the call is finished.
S317, the electronic device may detect that the call is ended.
In particular, a Phone application (Phone) on the electronic device may monitor for an end of a call, such as a user operation to hang up the Phone or other internal events.
S318, the electronic device may disconnect the SCO connection between the electronic device and the bluetooth headset. Specifically, the electronic device may disconnect (or remove) the SCO connection by sending a remove SCO connection establishment request to the bluetooth headset. The request to remove SCO connection establishment may be LMP _ remove _ SCO _ link _ req signaling mentioned in the foregoing fig. 4.
Not only when the call is ended, but also when the call is switched from the answering state of the Bluetooth headset to the answering state of the earphone and the loudspeaker of the electronic equipment, the SCO connection is disconnected.
It can be seen that the method provided by the second embodiment can realize that the usage scene of the bluetooth headset is rapidly switched along with the switching of the open and close states of the left and right headsets: when the left earphone and the right earphone are attracted, the Bluetooth earphone refuses to establish SCO connection with the electronic equipment, and the Bluetooth earphone is not used for playing the call audio temporarily; when the left earphone and the right earphone are separated, the Bluetooth earphone receives SCO connection with the electronic equipment, and the Bluetooth earphone is used for playing conversation audio.
The SCO connection is attached to the HFP connection, which can be used to transmit call control (e.g., listen, hang up, etc.) signaling. In order to further reduce the response delay, especially improve the response delay in a call scenario, the bluetooth headset can maintain HFP connection with the electronic device regardless of whether the left headset and the right headset are engaged or disengaged. When the bluetooth headset and the electronic device are paired and the bluetooth connection is established, the two may establish HFP connection. Regarding the HFP connection establishment process, reference may be made to the related content of fig. 5, which is not described herein again.
In the second embodiment, the bluetooth headset may have two usage states as shown in fig. 12: in the state 1, the left earphone and the right earphone are attracted, the Bluetooth earphone keeps HFP connection with the electronic equipment, and SCO connection with the electronic equipment is refused; state 2. left and right earphones are separated and the bluetooth earphone maintains HFP connection with the electronic device, accepts SCO connection with the electronic device. When the left earphone and the right earphone are switched from the attracting state to the separating state, the Bluetooth earphone and the electronic equipment can respond to a call requirement (such as a user calls a telephone) and quickly establish call audio connection on the premise that the Bluetooth connection is not disconnected, the response time delay of the Bluetooth earphone can be effectively reduced, and the purpose that the user uses the earphones by separating the left earphone and the right earphone is met.
EXAMPLE III
In this embodiment, above-mentioned embodiment one and above-mentioned embodiment two can combine to implement, and bluetooth headset also can be based on the actuation/the part state of left earphone and right earphone, and the connection status that two kinds of audios between the formula bluetooth headset are connected is inhaled to simultaneous control electronic equipment and magnetism under the circumstances that does not break bluetooth connection: media audio connection (e.g., A2DP connection), and connection status of conversation audio connection (disconnected or not).
Fig. 13 shows a wireless communication method provided in the third embodiment. In the method shown in fig. 13, a bluetooth connection (ACL connection) is established and maintained between the bluetooth headset and the electronic device. As shown in fig. 13, the method may include:
stage 1 (stage 1A to stage 1C): the left and the right earphones are in a suction state
Stage 1A (S401-S402): the electronic equipment displays an indicator that the left earphone and the right earphone of the Bluetooth earphone are in the suction state. Specifically, reference may be made to the stage 1A in the first embodiment or the stage 1A in the second embodiment, which is not described herein again.
Stage 1B (S403): the bluetooth headset maintains HFP connection between it and the electronic device. If there is an existing A2DP connection between the Bluetooth headset and the electronic device, the A2DP connection is broken. Similarly, if there is an existing SCO connection between the bluetooth headset and the electronic device, the SCO connection is disconnected.
After the connection of A2DP is disconnected, if the playing of the media audio is not finished, the rest of the media audio can be played on the electronic equipment side. Specifically, reference may be made to stage 1B in the first embodiment, which is not described herein again.
Similarly, after the SCO connection is disconnected, if the call is not ended, the subsequent call audio can be played on the electronic device side. Specifically, reference may be made to stage 1B in embodiment two, which is not described herein again.
Stage 1C: when the left and right earphones are in the attraction state, the following two situations may exist in audio playing.
In case 1(S404-S407), when the left and right earphones are in the closed state, the electronic device determines that there is media audio to play. In this case, the electronic device may send an A2DP connection establishment request to the bluetooth headset to initiate an A2DP connection establishment. However, the bluetooth headset refuses to establish an A2DP connection with the electronic device. Therefore, the media audio can be routed to the electronic equipment side for playing, and the requirement that the user attracts the left earphone and the right earphone to pause the use of the Bluetooth earphone is met.
In case 2(S408-S411), when the left and right earphones are in the closed state, the electronic device detects a user operation to answer or make a call. In this case, the electronic device may send an SCO connection establishment request to the bluetooth headset to initiate SCO connection establishment. However, the bluetooth headset refuses to establish an SCO connection with the electronic device. Therefore, the call audio can be routed to the electronic equipment side for playing, and the requirement that the user separates the left earphone from the right earphone and then suspends the use of the Bluetooth earphone is met.
Stage 2 (stage 2A to stage 2C): the left and right earphones are in a separated state
Stage 2A (S412): the bluetooth headset accepts an A2DP connection to be established with the electronic device. Specifically, reference may be made to the stage 1A in the first embodiment, which is not described herein again.
Stage 2B (S413-S414): the electronic device displays an indicator that the left and right earpieces of the bluetooth earpiece are in a separated state. Specifically, reference may be made to the stage 2B in the first embodiment or the stage 2A in the second embodiment, which is not described herein again.
And (2C): when the left and right earphones are in the separated state, the audio playing may have the following two cases.
Case 3(S415-S417), the electronic device determines that there is media audio to play while the left and right earphones are in the separated state. In this case, the electronic device may send an A2DP connection establishment request to the bluetooth headset to initiate an A2DP connection establishment. Accordingly, the bluetooth headset accepts the establishment of an A2DP connection with the electronic device. Therefore, the media audio can be routed to the Bluetooth headset side for playing, and the requirement that the user separates the left headset from the right headset and then uses the Bluetooth headset to play the media audio is met.
Case 4(S408-S411), when the left and right earphones are in the separated state, the electronic device detects a user operation of answering or making a call. In this case, the electronic device may send an SCO connection establishment request to the bluetooth headset to initiate SCO connection establishment. Accordingly, the bluetooth headset accepts the SCO connection with the electronic device. Therefore, the call audio can be routed to the Bluetooth headset side for playing, and the requirement that the user separates the left headset from the right headset to use the Bluetooth headset to play the media audio is met.
In the third embodiment, the bluetooth headset may have two usage states as shown in fig. 14: in the state 1, the left earphone and the right earphone are attracted, the Bluetooth earphone is disconnected or refuses to establish A2DP connection, maintains HFP connection between the Bluetooth earphone and the electronic equipment, and refuses to establish SCO connection with the electronic equipment; state 2. left and right headsets are separated, the bluetooth headset remains or accepts the A2DP connection, maintains its HFP connection with the electronic device, accepts the SCO connection with the electronic device. When the left earphone and the right earphone are switched from the attracting state to the separating state, the Bluetooth earphone and the electronic equipment can respond to audio playing requirements (such as conversation, music listening and the like) on the premise that the Bluetooth connection is not disconnected to quickly establish media audio connection and conversation audio connection, the response time delay of the Bluetooth earphone can be effectively reduced, and the purpose that a user uses the earphones by separating the left earphone and the right earphone is met.
It can be seen that, according to the method provided in the third embodiment, on the premise of not disconnecting the bluetooth connection and the HFP connection, the connection states of the media audio connection (for example, A2DP connection) and the call audio connection (for example, SCO connection) can be controlled based on the open/close states of the left and right earphones of the bluetooth earphones. When the left earphone and the right earphone are switched from the attraction state to the separation state, the Bluetooth earphone quickly establishes audio connection according to the actual audio playing requirement (if media audio needs to be played), the response time delay of the Bluetooth earphone can be effectively reduced, and the purpose that a user uses the earphones by separating the left earphone and the right earphone is met.
In the wireless communication method provided in the foregoing embodiments, the left earphone may be summarized as the first audio output device, and the right earphone may be summarized as the second audio output device. The wireless communication method provided by the above embodiments is not limited to be performed by a bluetooth headset, but may be performed by other types of audio output devices, such as a pair of bluetooth speakers. Wherein, the left earphone and the right earphone can be replaced by a left sound channel sound box and a right sound channel sound box in a pair of Bluetooth sound boxes respectively. Or the left earphone and the right earphone can be replaced by sound boxes with other two sound channels. The left sound channel sound box and the right sound channel sound box can be internally provided with magnetic components, and the connection state of audio connection can be controlled based on the opening and closing state between the left sound channel sound box and the right sound channel sound box.
In addition, the embodiment of the application also provides a wireless communication method, and on the premise of not disconnecting the bluetooth connection and the A2DP connection, the media audio is controlled to be played by the bluetooth headset or the electronic device based on the opening and closing states of the left and right earphones of the bluetooth headset. Specifically, if the left and right earphones are separated, the media audio is played by the Bluetooth earphone. Specifically, after the bluetooth headset receives the media audio data from the electronic device through the A2DP connection, the media audio can be played. If the left earphone and the right earphone are attracted, the media audio is played by the electronic equipment. Specifically, the bluetooth headset may send feedback to the electronic device rejecting playing audio after receiving some or all of the media audio data from the electronic device via the A2DP connection. After receiving this feedback from the bluetooth headset, the electronic device may play media audio.
An exemplary electronic device 200 provided in an embodiment of the present application is described below. The electronic device 200 may be implemented as the first audio output device mentioned in the above embodiments, and may be the electronic device 101 in the wireless audio system 100 shown in fig. 1A or the electronic device 201 in the wireless audio system 200 shown in fig. 2A. The electronic device 200 may be generally used as an audio source (audio source), such as a mobile phone, a tablet computer, etc., and may transmit audio data to other audio sink (audio sink), such as an earphone, a sound box, etc., so that the other audio sink may convert the audio data into sound. In some scenarios, the electronic device 200 may also be used as an audio sink (audio sink) to receive audio data (e.g., audio data captured by a headset into which a user's spoken voice is converted) transmitted by another device audio source (e.g., a headset with a microphone).
Fig. 15A shows a schematic structural diagram of the electronic apparatus 200.
The electronic device 200 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. In some embodiments, the electronic device 200 may also include one or more processors 110.
The controller may be, among other things, a neural center and a command center of the electronic device 200. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the electronic device 200.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 200.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 200. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 200.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 200, and may also be used to transmit data between the electronic device 200 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 200. In other embodiments, the electronic device 200 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device 200. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio output device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves. Illustratively, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 200 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 200 may implement display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute instructions to generate or change display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 200 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 200 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV and other formats. In some embodiments, the electronic device 200 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 200 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 200 may support one or more video codecs. In this way, the electronic device 200 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) -1, MPEG-2, MPEG-3, MPEG-4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the electronic device 200, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, data such as music, photos, video, etc. are stored in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121, so as to enable the electronic device 200 to perform the data sharing method provided in some embodiments of the present application, and various functional applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage area may also store one or more application programs (e.g., gallery, contacts, etc.), etc. The storage data area may store data (e.g., photos, contacts, etc.) created during use of the electronic device 200. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 200 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headset interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 200 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 200 receives a call or voice information, it is possible to receive a voice by placing the receiver 170B close to the human ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 200 may be provided with at least one microphone 170C. In other embodiments, the electronic device 200 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 200 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and the like.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 200 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 200 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 200. In some embodiments, the angular velocity of the electronic device 200 about three axes (e.g., x, y, and z axes) may be determined by the gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 200, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 200 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 200 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by the barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 200 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 200 is a flip, the electronic device 200 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 200 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 200 is stationary. The method can also be used for identifying the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The electronic device 200 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, the electronic device 200 may utilize the distance sensor 180F to range to achieve fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic apparatus 200 emits infrared light to the outside through the light emitting diode. The electronic device 200 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 200. When insufficient reflected light is detected, the electronic device 200 may determine that there are no objects near the electronic device 200. The electronic device 200 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 200 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. The electronic device 200 may adaptively adjust the brightness of the display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 200 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 200 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 200 implements a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 200 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 200 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 200 to shut down abnormally. In other embodiments, the electronic device 200 performs boosting of the output voltage of the battery 142 when the temperature is below a further threshold value to avoid abnormal shutdown due to low temperature.
Touch sensor 180K, which may also be referred to as a touch panel or touch sensitive surface. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the electronic device 200 at a different position than the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 200 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 200.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 200 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards can be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 200 employs esims, such as: an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.
The electronic device 200 exemplarily shown in fig. 15A may display various user interfaces described in various embodiments below through the display screen 194. The electronic device 200 may detect a touch operation in each user interface through the touch sensor 180K, such as a click operation in each user interface (e.g., a touch operation on an icon, a double-click operation), an upward or downward sliding operation in each user interface, or an operation of performing a circle-making gesture, and so on. In some embodiments, the electronic device 200 may detect a motion gesture performed by the user holding the electronic device 200, such as shaking the electronic device, through the gyro sensor 180B, the acceleration sensor 180E, or the like. In some embodiments, the electronic device 200 may detect the non-touch gesture operation through the camera 193 (e.g., 3D camera, depth camera).
In some implementations, a terminal Application Processor (AP) included in the electronic device 200 may implement a Host in a bluetooth protocol framework, and a Bluetooth (BT) module included in the electronic device 200 may implement a controller in the bluetooth protocol framework, communicating between them through the HCI. For example, the functionality of the bluetooth protocol framework is distributed over two chips.
In still other embodiments, the electronic device 200 terminal Application Processor (AP) may implement Host and controller in the bluetooth protocol framework. For example, all functions of the bluetooth protocol framework are placed on one chip, that is, the host and the controller are placed on the same chip, and since the host and the controller are both on the same chip, there is no necessity for a physical HCI, and the host and the controller interact directly through an application programming interface API.
The software system of the electronic device 200 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 200.
Fig. 15B is a block diagram of the software configuration of the electronic apparatus 200 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in FIG. 15B, the application packages may include games, voice assistants, music players, video players, mailboxes, conversations, navigation, file browsers, and like applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 15B, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 200. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes exemplary workflow of the software and hardware of the electronic device 200 in connection with capturing a photo scene.
When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch operation, and taking a control corresponding to the touch operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer to start the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video by using the camera 193.
An exemplary audio sink device 300 provided in embodiments of the present application is described below. The audio sink device 300 may be implemented as a bluetooth headset as mentioned in the above embodiments, and may be the audio output device 106 in the wireless audio system 100 shown in fig. 1A or the audio output device 202 or 203 in the wireless audio system 200 shown in fig. 2A. The audio sink 300 (e.g., an earphone or a speaker) may transmit audio data to other audio sources (e.g., a mobile phone or a tablet computer), and may convert the received audio data into sound. In some scenarios, if a sound collection device such as a microphone/receiver is configured, the audio sink device 300 may also be used as an audio source (audio source) to transmit audio data (e.g., audio data converted from a user's speech collected by a headset) to an audio sink (e.g., a mobile phone) of another device.
Referring to the foregoing embodiments, the audio sink device 300 may include a first audio output device and a second audio output device. The first audio output device and the second audio output device may be integrated with magnetic components. The magnetic components in the first audio output device and the second audio output device may exhibit opposite magnetic properties and thus attract each other. If the first audio output device and the second audio output device are close to each other, the magnetic parts in the first audio output device and the second audio output device can attract each other to attract the first audio output device and the second audio output device together.
The audio recipient device 300 may be a pair of bluetooth headsets including a left headset and a right headset. The bluetooth headset may be a neck worn bluetooth headset or a TWS bluetooth headset.
Fig. 16 schematically shows a structure of an audio receiving device 300 according to an embodiment of the present disclosure.
As shown in fig. 16, the audio recipient device 300 may include a processor 302, a memory 303, a bluetooth communication processing module 304, a power source 305, a sensor 306, a microphone 307, and an electric/acoustic transducer 308. These components may be connected by a bus.
Wherein:
both the first audio output device and the second audio output device may be integrated with a sensor 306, a microphone 307 and an electric/acoustic transducer 308. If the audio recipient device 300 is a neck-worn bluetooth headset, the audio recipient device 300 may also include drive-by-wire. The processor 302, memory 303, bluetooth communication processing module 304, power supply 305 may be integrated in line control. If the audio recipient device 300 is a TWS Bluetooth headset, both the first audio output device and the second audio output device may also be integrated with a processor 302, a memory 303, a Bluetooth communication processing module 304, and a power supply 305.
Processor 302 may be used to read and execute computer readable instructions. In particular implementations, processor 302 may primarily include a controller, an operator, and registers. The controller is mainly responsible for instruction decoding and sending out control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for executing fixed-point or floating-point arithmetic operation, shift operation, logic operation and the like, and can also execute address operation and conversion. The register is mainly responsible for storing register operands, intermediate operation results and the like temporarily stored in the instruction execution process. In a Specific implementation, the hardware architecture of the processor 302 may be an Application Specific Integrated Circuits (ASIC) architecture, an MIPS architecture, an ARM architecture, or an NP architecture, for example.
In some embodiments, the processor 302 may be configured to parse signals received by the bluetooth communication processing module 304, such as signals encapsulating audio data, content control messages, flow control messages, and so forth. The processor 302 may be configured to perform corresponding processing operations according to the parsing result, such as driving the electric/acoustic converter 308 to start or pause or stop converting the audio data into sound, and so on.
In some embodiments, the processor 302 may also be configured to generate signals sent out by the bluetooth communication processing module 304, such as bluetooth broadcast signals, beacon signals, and audio data converted from collected sounds.
Memory 303 is coupled to processor 302 for storing various software programs and/or sets of instructions. In particular implementations, memory 303 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The memory 303 may store an operating system, such as an embedded operating system like uCOS, VxWorks, RTLinux, etc. The memory 303 may also store communication programs that may be used to communicate with the electronic device 200, one or more servers, or additional devices.
The Bluetooth (BT) communication processing module 304 may receive signals transmitted by other devices, such as the electronic device 200, such as scanning signals, broadcast signals, signals encapsulating audio data, content control messages, flow control messages, and so forth. The Bluetooth (BT) communication processing module 304 may also transmit signals such as broadcast signals, scanning signals, signals encapsulating audio data, content control messages, flow control messages, and the like.
The power supply 305 may be used to power the processor 302, memory 303, bluetooth communication processing module 304, sensors 306, electric/acoustic transducer 308, and other internal components.
The sensor 306 may be used to detect whether the first audio output device and the second audio output device are engaged together. The sensor may be a hall sensor, a proximity light sensor, or the like. The sensor may be referred to as a first sensor. If the first audio output device and the second audio output device are attracted together, the first audio output device and the second audio output device can be called to be in an attraction state; otherwise, the first audio output device and the second audio output device may be said to be in a separated state.
The microphone 307 may be used to collect sounds, such as the voice of a user speaking, and may output the collected sounds to the electric/acoustic transducer 308, so that the electric/acoustic transducer 308 may convert the sounds collected by the microphone 307 into audio data.
The electric/acoustic transducer 308 may be used to convert sound into an electrical signal (audio data), for example, convert sound collected by the microphone 307 into audio data, and may transmit the audio data to the processor 302. In this way, the processor 302 may trigger the Bluetooth (BT) communication processing module 304 to transmit the audio data. The electric/acoustic transducer 308 may also be used to convert electrical signals (audio data) into sound, for example, audio data output by the processor 302 into sound. The audio data output by the processor 302 may be received by a Bluetooth (BT) communication processing module 304.
In some implementations, the processor 302 may implement Host in a bluetooth protocol framework and the Bluetooth (BT) communication processing module 304 may implement controller in a bluetooth protocol framework, communicating between them via HCI. For example, the functionality of the bluetooth protocol framework is distributed over two chips.
In other embodiments, the processor 302 may implement Host and controller in the Bluetooth protocol framework. For example, all functions of the bluetooth protocol framework are placed on one chip, that is, the host and the controller are placed on the same chip, and since the host and the controller are both on the same chip, there is no necessity for a physical HCI, and the host and the controller interact directly through an application programming interface API.
It is to be understood that the configuration illustrated in fig. 16 does not constitute a specific limitation of the audio sink apparatus 300. In other embodiments of the present application, the audio sink device 300 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (21)

1. The wireless communication method is applied to an audio receiver, and is characterized in that the audio receiver comprises a first audio output device and a second audio output device, and the first audio output device and the second audio output device comprise magnetic components; the magnetic component is used for attracting the first audio output device and the second audio output device;
the method comprises the following steps:
the audio receiving party is connected with an audio source through Bluetooth;
the audio receiving party detects whether the first audio output device and the second audio output device are in an attraction state or a separation state;
when the first audio output device and the second audio output device are in a pull-in state, the audio receiving direction sends first indication information to the audio source; the first indication information is used for triggering the audio source to display a first indicator, and the first indicator is used for indicating that the first audio output device and the second audio output device are in an attraction state;
when the first audio output device and the second audio output device are in a separated state, the audio receiving direction sends second indication information to the audio source; the second indication information is used for triggering the audio source to display a second indicator, and the second indicator is used for indicating that the first audio output device and the second audio output device are in a separated state;
and when the first audio output device and the second audio output device are switched from the separated state to the attraction state, the audio receiving party and the audio source keep the Bluetooth connection.
2. The method of claim 1, further comprising: and when the first audio output device and the second audio output device are in the pull-in state, if the existing audio connection exists between the audio receiver and the audio source, the existing audio connection is disconnected.
3. The method of claim 1, further comprising: and when the first audio output device and the second audio output device are in the attraction state, the audio receiver refuses to establish audio connection with the audio source when receiving a connection establishment request of the audio source.
4. The method of claim 1, further comprising: when the first audio output device and the second audio output device are in the separated state, the audio receiver receives a connection establishment request of the audio source, and the audio receiver establishes audio connection with the audio source.
5. The method of claim 1, further comprising: when the first audio output device and the second audio output device are in the separated state, the audio receiving party initiates the establishment of audio connection, and the audio receiving party and the audio source establish audio connection.
6. The method of claim 1, wherein the audio connection comprises a media audio connection; the audio receiver and the audio source establishing the audio connection, comprising:
when the first audio output device and the second audio output device are detected to be switched from the pull-in state to the separate state, the audio receiving party initiates the establishment of the media audio connection, and the audio receiving party and the audio source establish the media audio connection.
7. A wireless communication method is applied to an audio source, and is characterized in that the audio source is wirelessly connected with an audio receiver;
the method comprises the following steps:
when the audio source receives first indication information from the audio receiving party, the audio source displays a first indicator, and the first indicator is used for indicating that a first audio output device of the audio receiving party and a second audio output device of the audio receiving party are in a pull-in state;
when the audio source receives second indication information from the audio recipient, the audio source displays a second indicator indicating that the first audio output device and the second audio output device are in a separate state.
8. An audio receiving device, comprising: the Bluetooth communication processing module comprises a Bluetooth communication processing module, a first sensor, a first audio output device and a second audio output device, wherein the first audio output device and the second audio output device comprise magnetic components; the magnetic component is used for attracting the first audio output device and the second audio output device; wherein, the first and the second end of the pipe are connected with each other,
the Bluetooth communication processing module is used for Bluetooth connection with an audio source;
the first sensor is used for detecting whether the first audio output device and the second audio output device are in a pull-in state or a separate state;
when the first audio output device and the second audio output device are in a pull-in state, the audio receiving direction sends first indication information to the audio source; the first indication information is used for triggering the audio source to display a first indicator, and the first indicator is used for indicating that the first audio output device and the second audio output device are in an attraction state;
when the first audio output device and the second audio output device are in a separated state, the audio receiving direction sends second indication information to the audio source; the second indication information is used for triggering the audio source to display a second indicator, and the second indicator is used for indicating that the first audio output device and the second audio output device are in a separated state;
when the first sensor detects that the first audio output device and the second audio output device are switched from the separated state to the attraction state, the Bluetooth communication processing module keeps the Bluetooth connection.
9. The apparatus of claim 8,
the Bluetooth communication processing module is further configured to disconnect the existing audio connection if the existing audio connection exists between the audio receiver and the audio source when the first sensor detects that the first audio output device and the second audio output device are in the attraction state.
10. The apparatus of claim 8,
the Bluetooth communication processing module is further configured to, when the first sensor detects that the first audio output device and the second audio output device are in the attraction state, refuse to establish audio connection with the audio source upon receiving a connection establishment request of the audio source.
11. The apparatus of claim 8,
the bluetooth communication processing module is further configured to, when the first sensor detects that the first audio output device and the second audio output device are in the separated state, receive a connection establishment request of the audio source, and establish an audio connection with the audio source.
12. The device of claim 8, wherein the bluetooth communication processing module is further to initiate establishment of an audio connection with the audio source when the first sensor detects that the first audio output device and the second audio output device are in the separate state.
13. The apparatus of claim 8,
the Bluetooth communication processing module is further used for sending first indication information to the audio source when the first sensor detects that the first audio output device and the second audio output device are in an attraction state; the first indication information is used for triggering the audio source to display a first indicator, and the first indicator is used for indicating that the first audio output device and the second audio output device are in a pull-in state.
14. The apparatus according to any one of claims 8-13,
the Bluetooth communication processing module is further used for sending second indication information to the audio source when the first sensor detects that the first audio output device and the second audio output device are in a separated state; the second indication information is used to trigger the audio source to display a second indicator, the second indicator being used to indicate that the first audio output device and the second audio output device are in a separate state.
15. The device according to claim 11 or 12, wherein the bluetooth communication processing module is specifically configured to initiate establishment of a media audio connection with the audio source when it is detected that the first audio output device and the second audio output device are switched from the pull-in state to the separate state.
16. An electronic device, wherein the electronic device is wirelessly connected to an audio recipient; the electronic device includes: bluetooth communication processing module, display screen, wherein:
the display screen is used for displaying a first indicator when the Bluetooth communication processing module receives first indication information from the audio receiver, wherein the first indicator is used for indicating that a first audio output device of the audio receiver and a second audio output device of the audio receiver are in an attraction state;
the display screen is used for displaying a second indicator when the Bluetooth communication processing module receives second indication information from the audio receiver, and the second indicator is used for indicating that the first audio output device and the second audio output device are in a separated state.
17. A wireless audio system, comprising: an electronic device and an audio recipient device, wherein the audio recipient device includes a first audio output device and a second audio output device, the first audio output device and the second audio output device including magnetic components; the magnetic component is used for attracting the first audio output device and the second audio output device; wherein the content of the first and second substances,
the audio receiver equipment is connected with the electronic equipment through Bluetooth;
the audio receiving side equipment detects whether the first audio output equipment and the second audio output equipment are in an attraction state or a separation state;
when the first audio output device and the second audio output device are in a pull-in state, the audio receiving direction sends first indication information to the audio source; the first indication information is used for triggering the audio source to display a first indicator, and the first indicator is used for indicating that the first audio output device and the second audio output device are in an attraction state;
when the first audio output device and the second audio output device are in a separated state, the audio receiving direction sends second indication information to the audio source; the second indication information is used for triggering the audio source to display a second indicator, and the second indicator is used for indicating that the first audio output device and the second audio output device are in a separated state;
when the first audio output device and the second audio output device are switched from the separated state to the attracted state, the audio receiving device and the electronic device keep the Bluetooth connection.
18. The system of claim 17, wherein when the first audio output device and the second audio output device are in the engaged state, the audio recipient device disconnects an existing audio connection if the existing audio connection exists between the audio recipient and the electronic device.
19. The system of claim 17, wherein when the first audio output device and the second audio output device are in the engaged state, the audio recipient device refuses to establish an audio connection with the electronic device upon receiving a connection establishment request from the electronic device.
20. The system of any of claims 17-19, wherein the audio recipient device establishes an audio connection with the electronic device upon receiving a connection establishment request from the electronic device when the first audio output device and the second audio output device are in the separate state.
21. The system of any of claims 17-19, wherein when the first audio output device and the second audio output device are in the separate state, the audio recipient device initiates establishment of the audio connection, the audio recipient device and the electronic device establishing an audio connection.
CN201911425119.2A 2019-12-31 2019-12-31 Wireless audio system, wireless communication method and device Active CN113132959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911425119.2A CN113132959B (en) 2019-12-31 2019-12-31 Wireless audio system, wireless communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911425119.2A CN113132959B (en) 2019-12-31 2019-12-31 Wireless audio system, wireless communication method and device

Publications (2)

Publication Number Publication Date
CN113132959A CN113132959A (en) 2021-07-16
CN113132959B true CN113132959B (en) 2022-08-09

Family

ID=76770939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911425119.2A Active CN113132959B (en) 2019-12-31 2019-12-31 Wireless audio system, wireless communication method and device

Country Status (1)

Country Link
CN (1) CN113132959B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950037B (en) * 2021-12-10 2022-05-06 荣耀终端有限公司 Audio playing method and terminal equipment
CN116074986B (en) * 2023-01-28 2023-08-29 荣耀终端有限公司 Bluetooth connection method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108141655A (en) * 2016-09-06 2018-06-08 华为技术有限公司 Smart machine with separable ontology
CN109451387A (en) * 2018-11-15 2019-03-08 佳禾智能科技股份有限公司 Earphone shutdown process control method, computer readable storage medium and earphone
CN109788387A (en) * 2019-01-28 2019-05-21 深圳市傲基电子商务股份有限公司 Control method, bluetooth headset and the computer readable storage medium of bluetooth headset
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9402124B2 (en) * 2013-04-18 2016-07-26 Xiaomi Inc. Method for controlling terminal device and the smart terminal device thereof
US20160299739A1 (en) * 2015-04-13 2016-10-13 Lg Electronics Inc. Method for controlling data streaming using bluetooth communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108141655A (en) * 2016-09-06 2018-06-08 华为技术有限公司 Smart machine with separable ontology
CN109451387A (en) * 2018-11-15 2019-03-08 佳禾智能科技股份有限公司 Earphone shutdown process control method, computer readable storage medium and earphone
CN109788387A (en) * 2019-01-28 2019-05-21 深圳市傲基电子商务股份有限公司 Control method, bluetooth headset and the computer readable storage medium of bluetooth headset
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system

Also Published As

Publication number Publication date
CN113132959A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN113225693B (en) Bluetooth connection method, equipment and system
CN113228701B (en) Audio data synchronization method and device
CN113169915B (en) Wireless audio system, audio communication method and equipment
CN113169760B (en) Wireless short-distance audio sharing method and electronic equipment
CN111602379B (en) Voice communication method, electronic equipment and system
CN111601199A (en) Wireless earphone box and system
CN113923230B (en) Data synchronization method, electronic device, and computer-readable storage medium
CN113542839A (en) Screen projection method of electronic equipment and electronic equipment
CN114710768B (en) Bluetooth connection method and related device
CN112119641B (en) Method and device for realizing automatic translation through multiple TWS (time and frequency) earphones connected in forwarding mode
CN113438354B (en) Data transmission method and device, electronic equipment and storage medium
US20230189366A1 (en) Bluetooth Communication Method, Terminal Device, and Computer-Readable Storage Medium
WO2021031865A1 (en) Call method and apparatus
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
CN115002934A (en) Audio service processing system, electronic equipment and Bluetooth headset
WO2022257563A1 (en) Volume adjustment method, and electronic device and system
CN113132959B (en) Wireless audio system, wireless communication method and device
WO2022105674A1 (en) Incoming call answering method, electronic device, and storage medium
CN113126948A (en) Audio playing method and related equipment
CN115119336A (en) Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium
CN113678481B (en) Wireless audio system, audio communication method and equipment
CN114915747A (en) Video call method and related equipment
CN115515112A (en) Bluetooth communication method and system
CN115703006A (en) Equipment connection method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant