CN115412387A - Audio playing method and system and electronic equipment - Google Patents

Audio playing method and system and electronic equipment Download PDF

Info

Publication number
CN115412387A
CN115412387A CN202110587662.3A CN202110587662A CN115412387A CN 115412387 A CN115412387 A CN 115412387A CN 202110587662 A CN202110587662 A CN 202110587662A CN 115412387 A CN115412387 A CN 115412387A
Authority
CN
China
Prior art keywords
audio
terminal
event
audio output
message
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.)
Pending
Application number
CN202110587662.3A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110587662.3A priority Critical patent/CN115412387A/en
Publication of CN115412387A publication Critical patent/CN115412387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2838Distribution of signals within a home automation network, e.g. involving splitting/multiplexing signals to/from different paths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type
    • H04B5/72
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2805Home Audio Video Interoperability [HAVI] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/2847Home automation networks characterised by the type of home appliance used
    • H04L2012/285Generic home appliances, e.g. refrigerators

Abstract

The application provides an audio playing method, an audio playing system and electronic equipment, relates to the technical field of terminals, and can play audio of other electronic equipment which is not connected with the audio output equipment through the audio output equipment, so that the use experience of a user is improved. The system comprises: the system comprises a first terminal, a second terminal and audio output equipment, wherein the first terminal is in Bluetooth connection with the audio output equipment, and the second terminal is not in Bluetooth connection with the audio output equipment; the second terminal is used for: generating a first event, wherein the first event is any event generated when the intelligent home equipment works when the second terminal is the intelligent home equipment, and the first event is an event that the mobile terminal occupies the functional resources of the audio output equipment when the second terminal is the mobile terminal; sending a first message corresponding to the first event to the first terminal; the first terminal is used for: sending a first audio corresponding to the first message to an audio output device; the audio output device is to: the first audio is played.

Description

Audio playing method and system and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to an audio playing method and system, and an electronic device.
Background
Currently, bluetooth headsets are widely used in the daily life of users. For example, after the bluetooth connection is established between the bluetooth headset and the terminal such as the mobile phone, the mobile phone may play the audio in the mobile phone to the user through the bluetooth headset.
With the rapid development of smart home technologies, one user or a home may be provided with one or more smart home devices. For example, a user may set smart home devices such as a television, a tablet computer, and an electric cooker in a home. Then, when the user uses the bluetooth headset to play the audio in the mobile phone at home, the sound played in the bluetooth headset may cover the sound played by the smart home device at home. For example, when the electric cooker gives a prompt sound after the soup is cooked, if the user is playing the song in the mobile phone by using the bluetooth headset, the user is likely to be unable to hear the prompt sound given by the electric cooker, thereby omitting the information conveyed by the smart home devices such as the electric cooker and the like, and reducing the user experience.
Disclosure of Invention
The application provides an audio playing method, an audio playing system and electronic equipment, which can play audio of other electronic equipment which is not connected with a Bluetooth headset through the Bluetooth headset, and improve the use experience of a user.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides an audio system, including a first terminal, a second terminal, and an audio output device, where the first terminal establishes a bluetooth connection with the audio output device, the second terminal does not establish a bluetooth connection with the audio output device, and a wireless communication connection is established between the first terminal and the second terminal; wherein the content of the first and second substances,
the second terminal is used for: generating a first event, wherein when the second terminal is an intelligent household device (such as a microwave oven and the like), the first event is any event generated when the intelligent household device works, and when the second terminal is a mobile terminal (such as a tablet personal computer and the like), the first event is an event that the mobile terminal occupies a functional resource of the audio output device; further, a first message corresponding to the first event may be transmitted to the first terminal using the wireless communication connection; the first terminal is used for: receiving a first message sent by a second terminal; further, a first audio corresponding to the first message may be sent to an audio output device using the bluetooth connection; the audio output device is to: and receiving a first audio sent by the first terminal, and playing the first audio.
That is to say, when the smart home device or the mobile terminal that is not bluetooth-connected to the audio output device (e.g., a bluetooth headset) needs to play an audio corresponding to an event, the event may be reported to the first terminal that is bluetooth-connected to the audio output device, and then the first terminal broadcasts the corresponding audio to the user by using the audio output device. Therefore, the intelligent household equipment or the mobile terminal which is not connected with the audio output equipment can indirectly realize the communication function with the audio output equipment. The method and the device avoid the omission of events reported by other electronic equipment which is not connected with the audio output equipment when the user wears the audio output equipment, and improve the use experience of the user.
Meanwhile, when no mobile terminal connected with the audio output device needs to occupy the functional resource of the audio output device, the audio generated by the mobile terminal can be sent to the first terminal connected with the audio output device, and then the audio output device is used by the first terminal to play the audio, so that the function of the multimode audio output device (such as a multimode Bluetooth headset) is realized.
In a possible implementation manner, when the first event is any event generated when the smart home device operates, the first message includes: audio information and/or textual information corresponding to the first event. For example, the first event may be a heating end event generated by a microwave oven, and the corresponding first message may include an alert tone of the heating end event. For another example, the first event may be a ringing event generated by the smart door lock, and the corresponding first message may include a text message of "guest visit", and the like.
In one possible implementation, when the first message includes audio information, the first audio may include the audio information, e.g., the first audio may be the same as the audio information in the first message; and/or, when the text information is included in the first message, the first terminal may be further configured to convert the text information in the first message into the first audio.
In one possible implementation, before sending the first audio corresponding to the first message to the audio output device, the first terminal is further configured to: if the audio output device does not execute the audio playing service, which indicates that the sound channel on the audio output device is idle at the moment, the first audio can be directly sent to the audio output device; if the audio output device is executing a certain audio playing service, the first audio can be sent to the audio output device according to the type of the audio playing service.
Illustratively, the sending of the first audio to the audio output device according to the type of the audio playing service includes: when the type of the audio playing service is a call service or a ringing service, due to the fact that the priority of the call service and the priority of the ringing service are high, the audio of the first audio and the audio playing service can be mixed and then sent to the audio output device; when the type of the audio playing service is the multimedia service, the sending of the audio playing service to the audio output device can be suspended due to the lower priority of the multimedia service, and the first audio can be sent to the audio output device. After the first audio is sent to the audio output device, the first terminal may continue to send the audio in the audio playing service to the audio output device.
In a possible implementation manner, the first event may be an event that the mobile terminal occupies a functional resource of the audio output device, that is, a certain mobile terminal also needs to use the audio output device to play audio. The functional resources may include audio playing functional resources and/or call functional resources, where the call functional resources are used to complete a call function of a certain terminal, and the audio playing functional resources are used to implement a function of playing audio for a certain terminal.
In the foregoing scenario, before the second terminal generates the first event, the second terminal is further configured to: displaying a preset control, wherein the control is used for prompting a user to use a second terminal to occupy the functional resource of the audio output equipment; at this time, the second terminal generates a first event including: the second terminal may generate a first event in response to a preset operation (e.g., a click operation, etc.) input by the user to the control.
Illustratively, the second terminal displays the preset control, including: when the second terminal acquires an audio playing operation input by the user (for example, when the user clicks a playing button of music), the second terminal can display the control; or when the second terminal acquires the message that the audio output device is connected with the first terminal through the Bluetooth, the second terminal can display the control.
In addition, in the above scenario, after the second terminal sends the first message to the first terminal, the second terminal may send all the generated audio data to the first terminal; at this time, the first terminal is further configured to receive audio data sent by the second terminal, where the audio data is a first audio that needs to be played by the audio output device.
In a possible implementation manner, after the first terminal establishes the bluetooth connection with the audio output device, the first terminal is further configured to: and sending a broadcast message in the audio system, wherein the broadcast message is used for indicating the first terminal to establish Bluetooth connection with the audio output equipment. In this way, a terminal (e.g., the second terminal) in the audio system that receives the broadcast message may transmit a corresponding first message to a first terminal to which an audio output device is connected when a first event occurs.
In a second aspect, the present application provides an audio playing method, including: the first terminal and the second terminal establish wireless communication connection, for example, the first terminal and the second terminal can establish wireless communication connection by accessing the same W-fi network; after the Bluetooth connection is established between the first terminal and the audio output equipment, the first terminal can receive a first message sent by the second terminal through the wireless communication connection, wherein the first message is used for indicating the second terminal to generate a first event, and the Bluetooth connection is not established between the second terminal and the audio output equipment; when the second terminal is an intelligent household device, the first event is any event generated when the intelligent household device works, and when the second terminal is a mobile terminal, the first event is an event that the mobile terminal occupies the functional resources of the audio output device; further, the first terminal may determine a first audio corresponding to the first message; and the first audio is sent to the audio output equipment through the Bluetooth connection, so that the audio output equipment plays the first audio.
Therefore, the intelligent household equipment or the mobile terminal which is not connected with the audio output equipment can indirectly realize the communication function with the audio output equipment. The method and the device avoid the omission of events reported by other electronic equipment which is not connected with the audio output equipment when the user wears the audio output equipment, and improve the use experience of the user.
In one possible implementation, the first message may include first audio; alternatively, the first message may include text information corresponding to the first audio.
In one possible implementation, a method for transmitting a first audio to an audio output device by a first terminal includes: if the audio output equipment does not execute the audio playing service, the first terminal can send the first audio to the audio output equipment; if the audio output device is executing the audio playing service, the first terminal may send the first audio to the audio output device according to the type of the audio playing service.
Illustratively, the first terminal sends the first audio to the audio output device according to the type of the audio playing service, including: when the type of the audio playing service is a call service or a ringing service, mixing the first audio and the audio of the audio playing service and then sending the mixed audio to audio output equipment; and when the type of the audio playing service is the multimedia service, stopping sending the audio of the audio playing service to the audio output equipment, and sending the first audio to the audio output equipment.
In a possible implementation manner, the functional resources specifically include an audio playing functional resource and/or a call functional resource, where the call functional resource is used to complete a call function of a certain terminal, and the audio playing functional resource is used to implement a function of playing audio for the certain terminal; at this time, the first audio is audio data sent by the second terminal after sending the first message.
In a possible implementation manner, after the first terminal receives the first message sent by the second terminal, the method further includes: the first terminal may transmit a connection success message to the second terminal so that the second terminal transmits subsequently generated audio data to the first terminal in response to the connection success message.
In a possible implementation manner, before the first terminal receives the first message sent by the second terminal, the method further includes: the first terminal accesses a local area network where the second terminal is located, so that wireless communication connection is established with the second terminal; when the first terminal establishes Bluetooth connection with the audio output device, the first terminal is connected to the local area network to send broadcast messages, and the broadcast messages are used for indicating the first terminal to establish Bluetooth connection with the audio output device.
In a third aspect, the present application provides an audio playing method, including: the first terminal and the second terminal establish wireless communication connection; the second terminal receives a broadcast message sent by the first terminal, wherein the broadcast message is used for indicating the first terminal to establish Bluetooth connection with the audio output equipment, and the second terminal does not establish Bluetooth connection with the audio output equipment at the moment; when the second terminal generates the first event, a first message corresponding to the first event may be transmitted to the first terminal, so that the first terminal plays corresponding audio using the audio output device. When the second terminal is an intelligent household device, the first event is any event generated when the intelligent household device works, and when the second terminal is a mobile terminal, the first event is an event that the mobile terminal occupies the functional resources of the audio output device.
Therefore, the intelligent household equipment or the mobile terminal which is not connected with the audio output equipment can indirectly realize the communication function with the audio output equipment. The method and the device avoid the omission of events reported by other electronic equipment which is not connected with the audio output equipment when the user wears the audio output equipment, and improve the use experience of the user.
In a possible implementation manner, the sending, by the second terminal, the first message corresponding to the first event to the first terminal includes: the second terminal acquires a communication address (such as an IP address) of the first terminal; and the second terminal sends a first message corresponding to the first event to the first terminal according to the communication address.
In a possible implementation manner, after the second terminal receives the broadcast message sent by the first terminal, the method further includes: and the second terminal displays a preset control, and the control is used for prompting a user to use the second terminal to occupy the functional resources of the audio output equipment. In this scenario, the second terminal may generate a first event occupying functional resources of the audio output device in response to a preset operation input by the user on the control.
In a fourth aspect, the present application provides a terminal (e.g., the first terminal or the second terminal described above), including: a communication module, memory, and one or more processors; the memory, the communication module and the processor are coupled. Wherein the memory is configured to store computer program code, the computer program code comprising computer instructions; the processor is configured to execute the one or more computer instructions stored by the memory when the terminal is operating to cause the terminal to perform the audio playback method as described in any of the above.
In a fifth aspect, the present application provides a computer storage medium including computer instructions, which when executed on a terminal (such as the first terminal or the second terminal), cause the terminal (such as the first terminal or the second terminal) to execute any one of the audio playing methods described above.
In a sixth aspect, the present application provides a computer program product for causing a terminal (e.g., the first terminal or the second terminal) to execute any of the audio playing methods described above when the computer program product is run on the terminal (e.g., the first terminal or the second terminal).
It is understood that the terminal, the computer storage medium and the computer program product provided above are all used for executing the corresponding method provided above, and therefore, the beneficial effects achieved by the terminal, the computer storage medium and the computer program product may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Drawings
Fig. 1 is a schematic diagram of an audio system according to an embodiment of the present application;
fig. 2 is a schematic view of a first application scenario of an audio playing method according to an embodiment of the present application;
fig. 3A is a schematic structural diagram of a bluetooth headset according to an embodiment of the present application;
fig. 3B is a schematic structural diagram of a bluetooth headset according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
fig. 5 is an interaction diagram of an audio playing method according to an embodiment of the present application;
fig. 6 is a schematic view of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 7 is a schematic view of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 8 is a schematic view illustrating an application scenario of an audio playing method according to an embodiment of the present application;
fig. 9 is a schematic view of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 10 is a schematic view sixth of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 11 is a schematic view seventh of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 12 is a schematic view eight of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 13 is a schematic view nine illustrating an application scenario of an audio playing method according to an embodiment of the present application;
fig. 14 is a schematic view of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 15 is an eleventh application scenario schematic diagram of an audio playing method according to an embodiment of the present application;
fig. 16 is a schematic view twelve of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 17 is a schematic view thirteen of an application scenario of an audio playing method according to an embodiment of the present application;
fig. 18 is a first schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
Embodiments of the present embodiment will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, an audio playing method provided in an embodiment of the present application may be applied to the audio system 100 shown in fig. 1.
Illustratively, an electronic device having bluetooth functionality (which may be referred to as a bluetooth device) such as a cell phone 101, a tablet 102, etc. may be included in the audio system 100. Optionally, electronic devices (which may be referred to as non-bluetooth devices) without bluetooth function, such as the microwave oven 103, the air conditioner 104, and the like, may also be included in the audio system 100.
Of course, the audio system 100 may further include a sound box, a car mounted device (also referred to as a car machine), a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device, a virtual reality device, and other devices.
Among them, the devices in the audio system 100 may be classified into bluetooth devices and non-bluetooth devices according to whether they have a bluetooth function. Alternatively, the devices in the audio system 100 may be further divided into smart home devices and mobile terminals. The smart home devices may also be referred to as internet of things (IOT) devices. For example, the smart home devices may include a microwave oven 103, an air conditioner 104, and the like, and the smart home devices are usually disposed in a user's home and are not carried around by the user. The mobile terminal may include a mobile phone 101, a tablet computer 102, and the like, and the mobile terminal is generally small in size and convenient for a user to carry around.
Wherein, the electronic devices in the audio system 100 may be interconnected through a communication network. Illustratively, the communication network may be a wired network or a wireless network. For example, the communication network may be a Local Area Network (LAN) or a Wide Area Network (WAN), such as the internet. The communication network may be implemented using any known network communication protocol, which may be any wired or wireless communication protocol, such as ethernet, universal Serial Bus (USB), FIREWIRE (FIREWIRE), global system for mobile communications (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), WCDMA, time division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), bluetooth, wireless fidelity (Wi-Fi), NFC, voice over Internet protocol (VoIP), voIP architecture, or any other suitable communication protocol.
That is, each electronic device in the audio system 100 may establish a network (i.e., networking) according to a certain communication protocol and a networking policy, so that each electronic device in the audio system 100 may communicate with each other.
Illustratively, each electronic device in the audio system 100 may access a Wi-Fi network provided by an Access Point (AP), such as a router, so that a Wi-Fi connection is established between each electronic device. As another example, each electronic device in the audio system 100 may log into the same account (e.g., hua is account), and then be interconnected through one or more servers.
In the present embodiment, as also shown in fig. 1, any device in the audio system 100 that has bluetooth functionality may also establish a bluetooth connection with the bluetooth headset 200. For example, after the mobile phone 101 establishes a bluetooth connection with the bluetooth headset 200, the user can listen to the audio played by the mobile phone 101 using the bluetooth headset 200 after the mobile phone 101 establishes a bluetooth connection with the bluetooth headset 200. In such a scenario, other devices in the audio system 100 may need to play an alert tone of a certain event while in operation. For example, when the user listens to a song played by the cellular phone 101 using the bluetooth headset 200, the microwave oven 103 is heating food. When the microwave oven 103 finishes heating, a warning tone of a heating end event needs to be played. At this time, if the microwave oven 103 directly plays the warning tone of the heating end event according to the existing manner, the user using the bluetooth headset 200 may not hear the warning tone, and thus the heating end event reported by the microwave oven 103 is missed.
In this regard, in the embodiment of the present application, still taking the above scenario as an example, after the mobile phone 101 establishes the bluetooth connection with the bluetooth headset 200, as shown in fig. 2, when the microwave oven 103 finishes heating, the microwave oven 103 may send a heating end event (or an alert tone of the heating end event) to the mobile phone 101 in the networking. For example, the microwave oven 103 may transmit the heating end event (or an alert tone of the heating end event) to the handset 101 through the currently accessed Wi-Fi network. Further, the mobile phone 101 transmits the heating end event (or the warning sound of the heating end event) to the bluetooth headset 200 through the bluetooth connection with the bluetooth headset 200, and the bluetooth headset 200 plays the heating end event (or the warning sound of the heating end event) in a form of voice. Thus, when the user uses the bluetooth headset 200 connected to the mobile phone 101, the user can directly sense the events reported by other devices (e.g., the microwave oven 103) that are not connected to the bluetooth headset 200 through the bluetooth headset 200, and thus, the related messages reported by each electronic device in the network to the user are prevented from being omitted.
That is to say, when an electronic device (for example, the microwave oven 103) that is not connected to the bluetooth headset 200 in the audio system 100 needs to report an event to a user, the event may be reported to an electronic device (for example, the mobile phone 101) connected to the bluetooth headset 200 in the network, and the electronic device may report the corresponding event to the user through the bluetooth headset 200.
In this way, a non-bluetooth device that does not have a bluetooth function can also indirectly implement a communication function with the bluetooth headset 200. After the bluetooth headset 200 is connected to one bluetooth device in the audio system 100, events reported by each electronic device in the audio system 100 can be received, so that the user is prevented from missing events reported by other electronic devices that are not connected to the bluetooth headset 200 when wearing the bluetooth headset 200, and the user experience is improved.
It should be noted that the above embodiment is illustrated by using the heating end event of the microwave oven 103 as an example, and it is understood that there may be many specific events reported to the user by different electronic devices in the audio system 100. For example, a program reminding event reported by a television, a ringing event reported by a doorbell, a washing program completion event reported by a washing machine, and the like, which are not limited in this application.
Additionally, some bluetooth headsets may support establishing point-to-point bluetooth connections with multiple bluetooth devices, respectively (i.e., multi-mode bluetooth headsets). For example, for a dual mode bluetooth headset, the bluetooth headset may establish a bluetooth connection with both bluetooth device 1 and bluetooth device 2. At this moment, both the bluetooth device 1 and the bluetooth device 2 can send the audio to the bluetooth headset for playing.
However, due to the limitations of frequency resources and hardware configuration, some bluetooth headsets only support establishing a point-to-point bluetooth connection with one bluetooth device (i.e., single mode bluetooth headsets), and the cost of such bluetooth headsets is generally lower than that of multi-mode bluetooth headsets. In the embodiment of the present application, if a single-mode bluetooth headset is used to connect with a bluetooth device (for example, the foregoing mobile phone 101) in the audio system 100, the single-mode bluetooth headset may still receive and play audio transmitted by other electronic devices in the audio system 100 according to the foregoing method, so that a function of a multi-mode bluetooth headset with a higher cost may be implemented by using a single-mode bluetooth headset with a lower cost, and a user experience may also be improved.
It should be noted that, in the above embodiment, a bluetooth headset (for example, the bluetooth headset 200) is used as an example of the audio output device of the bluetooth device in the audio system 100, and it can be understood that the bluetooth headset may also be an audio output device with a bluetooth function, such as a bluetooth speaker, a bluetooth television, and the like, which is not limited in this embodiment of the present application.
For example, fig. 3A shows a schematic diagram of a bluetooth headset (e.g., the bluetooth headset 200 described above). As shown in fig. 3A, the bluetooth headset may include: a left earplug 201-1, a right earplug 201-2 and an earplug box 201-3. This earplug box can be used for accomodating bluetooth headset's left and right sides earplug. Fig. 3A is a schematic diagram illustrating an example product form of a bluetooth headset by way of example only, and the product form of the peripheral device provided by the embodiment of the present application includes, but is not limited to, the bluetooth headset shown in fig. 3A.
Please refer to fig. 3B, which is a schematic structural diagram of an earplug (a left earplug or a right earplug) of a bluetooth headset according to an embodiment of the present disclosure. As shown in fig. 3B, an ear plug (e.g., a right ear plug or a left ear plug) of the bluetooth headset may include: a processor 210, a memory 220, a sensor 230, a wireless communication module 240, a receiver 250, a microphone 260, and a power supply 270.
The memory 220 may be used for storing application program codes, such as application program codes for establishing a wireless connection with another ear plug of a bluetooth headset (e.g., the right ear plug 201-2) and enabling the ear plug to make a pairing connection with the electronic device 100 (e.g., the mobile phone 200). The processor 210 can control and execute the application program codes to realize the functions of the bluetooth headset in the embodiment of the present application.
The memory 220 may also have stored therein a bluetooth address for uniquely identifying the earpiece and a bluetooth address of another earpiece of the bluetooth headset. In addition, the memory 220 may also store connection data with an electronic device that the earplug has been successfully paired with before. The bluetooth address may be a Media Access Control (MAC) address.
The sensor 230 may be a distance sensor or a proximity light sensor. The ear bud may determine whether it is being worn by the user via the sensor 230. For example, the earbud may utilize a proximity light sensor to detect whether an object is near the earbud to determine whether the earbud is being worn by the user. Upon determining that the earbud is worn, the earbud can open the receiver 250. In some embodiments, the earplug may further include a bone conduction sensor incorporated into a bone conduction earpiece. By utilizing the bone conduction sensor, the earplug can acquire the vibration signal of the sound part vibration bone block, analyze the voice signal and realize the voice function. In other embodiments, the ear bud may further include a touch sensor for detecting a touch operation of a user. In other embodiments, the ear bud may further include a fingerprint sensor for detecting a user's fingerprint, identifying the user's identity, and the like. In other embodiments, the earplug may further comprise an ambient light sensor that adaptively adjusts parameters, such as volume, based on the perceived brightness of the ambient light.
The wireless communication module 240 is used to support short-distance data exchange between the earphone of the bluetooth headset and various electronic devices, such as the electronic device 100. In some embodiments, the wireless communication module 240 may be a bluetooth transceiver. The earpiece of the bluetooth headset may establish a wireless connection with the electronic device 100 via the bluetooth transceiver to enable short-range data exchange therebetween.
At least one receiver 250, which may also be referred to as a "headset," may be used to convert the electrical audio signal into a sound signal and play it. For example, when an ear plug of a bluetooth headset is used as the audio output device of the electronic device 100, the receiver 250 may convert the received audio electrical signal into a sound signal and play the sound signal.
At least one microphone 260, which may also be referred to as a "microphone," is used to convert sound signals into electrical audio signals. For example, when the earphone of the bluetooth headset is used as the audio input device of the electronic device 100, the microphone 260 may collect the voice signal of the user and convert the voice signal into an audio electrical signal during the process of speaking (e.g., talking or sending voice message) of the user. The audio electrical signal is audio data in the embodiment of the present application.
A power supply 270 may be used to power the various components contained in the earpiece of the bluetooth headset. In some embodiments, the power supply 270 may be a battery, such as a rechargeable battery.
Typically, a bluetooth headset will be equipped with a case of earplugs (e.g., 201-3 shown in fig. 3A). This earplug box can be used for accomodating bluetooth headset's left and right sides earplug. As shown in FIG. 3A, the earplug case 201-3 can be used to receive the left earplug 201-1 and the right earplug 201-2 of a Bluetooth headset. In addition, the earplug box can also charge the left and right earplugs of the Bluetooth headset. Accordingly, in some embodiments, the above-described earplug may further comprise: an input/output interface 280. The input/output interface 280 may be used to provide any connection between the earplugs of a bluetooth headset and an earpiece box, such as the earpiece box 201-3 described above.
In some embodiments, the input/output interface 280 may be an electrical connector. When the earplugs of the bluetooth headset are placed in the earplug box, the earplugs of the bluetooth headset can be electrically connected with the earplug box (such as with an input/output interface of the earplug box) through the electrical connector. After this electrical connection is established, the earbud cartridge can charge the power supply 270 for the earbuds of the bluetooth headset. The earplugs of the bluetooth headset may also be in data communication with the earpiece box after the electrical connection is established. For example, an earbud of a bluetooth headset may receive pairing instructions from an earbud box through the electrical connection. The pairing command is used to instruct the earpiece of the bluetooth headset to turn on the wireless communication module 240, so that the earpiece of the bluetooth headset can be paired with the electronic device 100 using a corresponding wireless communication protocol (e.g., bluetooth).
Of course, the above-described earplug for a bluetooth headset may not include the input/output interface 280. In this case, the ear buds may implement a charging or data communication function based on the wireless connection established with the ear bud case through the above-described wireless communication module 240.
Additionally, in some embodiments, an earbud cartridge (such as earbud cartridge 301 described above) may also include a processor, memory, and the like. The memory may be used to store application program code and be controlled in execution by the processor of the earplug case to implement the functionality of the earplug case. For example. When the user opens the lid of the earplug case, the processor of the earplug case may send a pairing command or the like to the earplugs of the bluetooth headset in response to the user opening the lid by executing application program code stored in the memory.
It is understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the ear plug of the bluetooth headset. It may have more or fewer components than shown in fig. 3B, may combine two or more components, or may have a different configuration of components. For example, the earplug may further include an indicator light (which may indicate the status of the earplug, such as its power level), a dust screen (which may be used with the earpiece), and the like. The various components shown in fig. 3B may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
It should be noted that the left and right earplugs of the bluetooth headset may have the same structure. For example, the left and right earplugs of a bluetooth headset may both include the components shown in fig. 3B. Or the structures of the left and right earplugs of the Bluetooth headset can be different. For example, one earpiece (e.g., the right earpiece) of a bluetooth headset may include the components shown in fig. 3B, while the other earpiece (e.g., the left earpiece) may include components other than microphone 260 in fig. 3B.
Illustratively, fig. 4 shows a schematic structural diagram of a mobile phone (e.g., the mobile phone 101 described above).
As shown in fig. 4, the mobile phone may include a processor 410, an external memory interface 420, an internal memory 421, a Universal Serial Bus (USB) interface 430, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a camera 493, a display screen 494, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention is not to be specifically limited to a mobile phone. In other embodiments of the present application, the handset may include more or fewer components than illustrated, or combine certain components, or split certain components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 410 may include one or more processing units, such as: the processor 410 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. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
A memory may also be provided in processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 410. If the processor 410 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 410, thereby increasing the efficiency of the system.
In some embodiments, processor 410 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 (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 wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in a handset 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 450 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to a mobile phone. The mobile communication module 450 may include at least one filter, switch, power amplifier, low Noise Amplifier (LNA), and the like. The mobile communication module 450 can 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 450 can 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 450 may be disposed in the processor 410. In some embodiments, at least some of the functional blocks of the mobile communication module 450 may be disposed in the same device as at least some of the blocks of the processor 410.
The wireless communication module 460 may provide solutions for wireless communication applied to a mobile phone, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 460 may be one or more devices integrating at least one communication processing module. The wireless communication module 460 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 410. The wireless communication module 460 may also receive a signal to be transmitted from the processor 410, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the handset antenna 1 is coupled to the mobile communication module 450 and the handset antenna 2 is coupled to the wireless communication module 460, such that the handset can communicate with the network and other devices via 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), 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 satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The mobile phone realizes the display function through the GPU, the display screen 494, the application processor and the like. The GPU is an image processing microprocessor connected to a display screen 494 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 494 is used to display images, videos, and the like. The display screen 494 includes a display panel. The display panel may be 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), or the like. In some embodiments, the cell phone may include 1 or N display screens 494, N being a positive integer greater than 1.
The mobile phone can realize the shooting function through the ISP, the camera 493, the video codec, the GPU, the display screen 494, the application processor, and the like.
The ISP is used to process the data fed back by the camera 493. 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 493.
The camera 493 is used to capture still images or video. In some embodiments, the handset may include 1 or N cameras, N being a positive integer greater than 1. The camera 493 may be a front camera or a rear camera.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the mobile phone selects the frequency point, the digital signal processor is used for performing fourier transform and the like on the frequency point energy.
Video codecs are used to compress or decompress digital video. The handset may support one or more video codecs. Thus, the mobile phone can play or record videos in various encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The external memory interface 420 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the mobile phone. The external memory card communicates with the processor 410 through the external memory interface 420 to implement data storage functions. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 421 may be used to store computer-executable program code, including instructions. The processor 410 executes various functional applications of the cellular phone and data processing by executing instructions stored in the internal memory 421. The internal memory 421 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The data storage area can store data (such as audio data, a phone book and the like) created in the use process of the mobile phone. In addition, the internal memory 421 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 mobile phone can implement audio functions through the audio module 470, the speaker 470A, the receiver 470B, the microphone 470C, the earphone interface 470D, and the application processor. Such as music playing, recording, etc.
The audio module 470 is used to convert digital audio information into an analog audio signal output and also used to convert an analog audio input into a digital audio signal. The audio module 470 may also be used to encode and decode an audio signal. In some embodiments, the audio module 470 may be disposed in the processor 410, or some functional modules of the audio module 470 may be disposed in the processor 410.
The speaker 470A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The handset can listen to music through speaker 470A or listen to hands-free talk.
Receiver 470B, also referred to as a "handset," is used to convert electrical audio signals into acoustic signals. When the handset receives a call or voice information, it can receive voice by placing receiver 470B close to the ear.
The microphone 470C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending voice information, the user can input a voice signal to the microphone 470C by speaking into his mouth near the microphone 470C. The handset may be provided with at least one microphone 470C. In other embodiments, the mobile phone may be provided with two microphones 470C, which may also implement a noise reduction function in addition to collecting sound signals. In other embodiments, the mobile phone may further include three, four or more microphones 470C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
The earphone interface 470D is used to connect a wired earphone. The headset interface 470D may be the USB interface 430, 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 sensor module 480 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
Certainly, the mobile phone may further include a charging management module, a power management module, a battery, a key, an indicator, 1 or more SIM card interfaces, and the like, which is not limited in this embodiment of the present application.
The following describes a specific embodiment of the present application in conjunction with the audio system 100 shown in fig. 1, and it is understood that the application scenario of the audio playing method provided in the present application is not limited thereto. In the scenario shown in fig. 1, the bluetooth headset 200 may be connected to the handset 101 as an audio output device of the handset 101, while other electronic devices in the audio system 100 are not connected to the bluetooth headset 200.
Specifically, referring to fig. 5, the audio playing method provided in this embodiment may include the following steps:
s501, the mobile phone 101 accesses a first local area network, where the first local area network includes N devices (N is an integer greater than 0).
For example, the first local area network may be a local area network formed by IOT devices (i.e., smart home devices) in a user's home and/or a mobile terminal of the user. The IOT device may be a television, a refrigerator, a microwave oven, or an air conditioner, and the mobile terminal may be a tablet computer, a mobile phone, or the like. In addition, the device in the first local area network may have a bluetooth function or may not have a bluetooth function, which is not limited in this embodiment of the present application.
In some embodiments, a user may access a mobile terminal of the user and one or more IOT devices in the home to a Wi-Fi network provided by a router, so as to form a local area network, where the Wi-Fi network in the home is a first local area network.
For example, the first local area network is a Wi-Fi network in the home of the user, and the devices located in the Wi-Fi network can communicate with each other. When the mobile phone 101 enters the area covered by the Wi-Fi network, as shown in fig. 6, the mobile phone 101 may also access the Wi-Fi network, that is, access the first local area network. After joining the first local area network, the handset 101 can communicate with each device in the first local area network as a member of the first local area network. At this time, the handset 101 establishes wireless communication connections with the respective devices in the first local area network through the first local area network.
In addition, the local area network may be formed by the mobile phone 101 of the user and each IOT device in the home through a Wi-Fi function, and the local area network may be formed by the mobile phone 101 of the user and each IOT device in the home through bluetooth, zigBee (ZigBee protocol), ultra Wide Band (UWB), or other manners.
S502, the mobile phone 101 and the Bluetooth headset 200 establish Bluetooth connection.
The mobile phone 101 is generally provided with a bluetooth function, and in step S502, when the user wishes to play audio provided by the mobile phone 101 using the bluetooth headset 200, as shown in fig. 7, the mobile phone 101 can establish a bluetooth connection with the bluetooth headset 200 using its own bluetooth function. Of course, if the mobile phone 101 establishes the bluetooth connection with the bluetooth headset 200 for the first time, the mobile phone 101 may also perform processes such as pairing with the bluetooth headset 200 before establishing the bluetooth connection with the bluetooth headset 200.
It should be noted that, in the embodiment of the present application, the order between the above steps S501 and S502 is not limited. That is, the mobile phone 101 may first access a first local area network (e.g., a Wi-Fi network), and then establish a bluetooth connection with the bluetooth headset 200; or, the mobile phone 101 may establish a bluetooth connection with the bluetooth headset 200 first, and then access the first local area network; or, the mobile phone 101 may establish a bluetooth connection with the bluetooth headset 200 at the same time and access the first local area network, which is not limited in this embodiment.
S503, the mobile phone 101 sends a broadcast message in the first local area network, where the broadcast message is used to instruct the mobile phone 101 to establish a bluetooth connection with the bluetooth headset 200.
In some embodiments, after the mobile phone 101 accesses the first local area network, if the mobile phone 101 establishes a bluetooth connection with the bluetooth headset 200, the mobile phone 101 may be triggered to send a broadcast message in the first local area network. The broadcast message is used to indicate that the bluetooth connection between the mobile phone 101 and the bluetooth headset 200 has been established, so that the device in the first local area network knows that the audio output device of the bluetooth headset 200 is the mobile phone 101.
Or, if the mobile phone 101 has already established a bluetooth connection with the bluetooth headset 200 when accessing the first local area network, after accessing the first local area network, the mobile phone 101 may be triggered to send the broadcast message in the first local area network, so that the device in the first local area network knows that the audio output device of the bluetooth headset 200 is the mobile phone 101.
Still taking the first local area network as an example of a Wi-Fi network in the home of the user, as shown in fig. 7, after the bluetooth connection is established between the mobile phone 101 and the bluetooth headset 200, a message 1 may be broadcasted in the Wi-Fi network currently accessed. At this time, other electronic devices in the Wi-Fi network except the handset 101 may receive the message 1.
For example, the mobile phone 101 may carry the device identifier of the mobile phone 101 in a preset field of the message 1, for example, the device identifier of the mobile phone 101 may be a MAC (Media Access Control) address, a name, and the like of the mobile phone 101. In this way, after the device in the Wi-Fi network that receives the message 1 parses the device identifier of the mobile phone 101 from the preset field, it can be known that the device currently connected to the bluetooth headset 200 is the mobile phone 101, that is, the audio output device of the bluetooth headset 200 is the mobile phone 101.
Illustratively, any device in the Wi-Fi network may record the audio output device of the bluetooth headset 200 after knowing that the audio output device of the current bluetooth headset 200 is a certain device (e.g., the cell phone 101) in the Wi-Fi network. For example, a preset flag bit may be set in the device 1, and when a variable in the flag bit is 1, it indicates that no device is connected to the bluetooth headset in the current Wi-Fi network; and when the variable in the marking bit is 0, indicating that a device in the current Wi-Fi network is connected with the Bluetooth headset. Then, when the device 1 knows that the current audio output device of the bluetooth headset 200 is the mobile phone 101, the variable in the flag bit may be modified to 0, and the device identifier of the mobile phone 101 may be recorded.
Subsequently, when the IOT device 1 in the Wi-Fi network needs to report an event to the user, it can be determined that there is a device in the current Wi-Fi network connected to the bluetooth headset by querying the flag bit and the device identifier, and determine the device identifier of the device (i.e., the mobile phone 101) connected to the bluetooth headset.
In other embodiments, for example, after the mobile phone 101 accesses the first local area network to establish the bluetooth connection with the bluetooth headset 200, if the subsequent mobile phone 101 detects that the bluetooth connection with the bluetooth headset 200 is disconnected, the mobile phone 101 may send a message 2 in the form of broadcast within the first local area network, where the message 2 is used to indicate that the bluetooth connection between the mobile phone 101 and the bluetooth headset 200 is disconnected. Therefore, the devices in the Wi-Fi network can timely acquire the connection condition of the Bluetooth headset 200 and other devices in the current Wi-Fi network.
Similarly, if the bluetooth headset 200 is connected to another bluetooth device (e.g., a tablet) in the Wi-Fi network after the bluetooth connection between the mobile phone 101 and the bluetooth headset 200 is disconnected, the tablet may broadcast a message that the tablet establishes the bluetooth connection with the bluetooth headset 200 in the first local area network as the latest audio output device of the bluetooth headset 200, so that the device in the first local area network knows that the audio output device of the bluetooth headset 200 is the tablet currently.
S504, when the IOT device generates the first event, the IOT device sends a first message corresponding to the first event to the mobile phone 101.
For example, for different IOT devices, specific events to be reported to the user may be preset. For example, an on/off event and a heating end event can be set as events of the microwave oven which need to be reported to a user; the on/off event of the lamp can be set as an on/off event of the intelligent bulb; the alarm clock event and the schedule reminding event can be set as events needing to be reported to the user by the sound box, and the like.
Or, the IOT device may also automatically determine whether to report a corresponding event to the user when executing different work tasks. For example, when the tablet computer is operating as an IOT device, if a video call request of a contact is received, the tablet computer may determine that an incoming call event corresponding to the video call request needs to be reported to a user. If the tablet computer receives the advertisement push of a certain application, the tablet computer can determine that a push event corresponding to the advertisement push does not need to be reported to the user. The strategy for determining whether the corresponding event needs to be reported to the user by different IOT devices may be different, and those skilled in the art may set this according to actual needs or actual application scenarios.
In step S504, during the operation of any IOT device in the first local area network, the specific event to be reported to the user may be determined in real time according to the method described above. When a first event needs to be reported to a user, if the IOT device knows that the current bluetooth headset is connected to the mobile phone 101 in the first local area network, the IOT device may first obtain a communication address of the mobile phone 101, and then send a first message corresponding to the first event to the mobile phone 101 according to the communication address of the mobile phone 101.
For example, still taking the first local area network as a Wi-Fi network in the home of the user, as shown in fig. 8, after the mobile phone 101 broadcasts a message that the mobile phone 101 establishes a bluetooth connection with the bluetooth headset 200 to the IOT device in the Wi-Fi network, if the smart door lock 801 in the Wi-Fi network receives a ringing event, which indicates that a guest visits, at this time, the smart door lock 801 may determine that the ringing event needs to be reported to the user. Further, the smart door lock 801 can acquire a communication address such as an IP address of the mobile phone 101 from the device identifier of the mobile phone 101.
For example, the router 802 providing the Wi-Fi network generally maintains, in real time, a correspondence between the device identifier of each device in the Wi-Fi network and the IP address of each device. As also shown in fig. 8, after receiving the ring event, the smart door lock 801 may send a query request to the router 802, where the query request may carry the device identifier of the mobile phone 101, such as the MAC address of the mobile phone 101. Further, the router 802 may query, in response to the query request, the IP address currently corresponding to the MAC address of the handset 101, i.e., the IP address of the handset 101. In addition, the router 802 may carry the IP address of the mobile phone 101 in a response message and send the response message to the smart door lock 801, so that the smart door lock 801 acquires the IP address (i.e., the communication address) of the mobile phone 101.
Besides the IP address, the communication address of the mobile phone 101 may also be a bluetooth MAC address of the mobile phone 101, and the like, which is not limited in this embodiment. For example, if the smart door lock 801 and the mobile phone 101 are networked through bluetooth connection, after receiving the ringing event, the smart door lock 801 may communicate with the mobile phone 101 using the bluetooth MAC address of the mobile phone 101 as a communication address.
Alternatively, the smart door lock 801 may also interact with the cell phone 101 directly according to the device identifier of the cell phone 101. For example, the smart door lock 801 may send information to the router 802 that needs to be sent to the cell phone 101, along with the device identification of the cell phone 101. In this way, the router 802 can send the information that the smart door lock 801 needs to send to the mobile phone 101 according to the device identifier of the mobile phone 101. At this time, the smart door lock 801 can communicate with the mobile phone 101 without acquiring a communication address such as an IP address of the mobile phone 101.
Still taking the first local area network as an example of a Wi-Fi network in the home of the user, as shown in fig. 9, after the smart door lock 801 acquires the IP address of the mobile phone 101, the message 1 corresponding to the ring event of this time may be encapsulated as the network message 1. For example, the smart door lock 801 may encapsulate message 1 as network message 1 according to a protocol such as TCP or UDP. Further, the smart door lock 801 may send the network message 1 to the mobile phone 101 according to the IP address of the mobile phone 101 in the networking, so that the mobile phone 101 obtains the message 1 corresponding to the current ringing event.
The message 1 corresponding to the current ringing event is used for notifying the user of the current ringing event. The message 1 may specifically include audio information, and may also include content such as text information. For example, a warning tone set by the smart door lock 801 for a ringing event may be included in message 1. As another example, message 1 may include voice content of "host, guest visit". For another example, message 1 may include text content of "host, guest visit". Alternatively, the message 1 may be a flag corresponding to the current ringing event, for example 001. Subsequently, the mobile phone 101 can know that the smart door lock 801 receives the ringing event according to the received message 1.
In addition, the message 1 corresponding to the current alarm event may further include information related to the alarm event time, the alarm frequency, and the like. When the smart door lock 801 captures an image of a visitor, the message 1 may further include the image of the visitor or feature information of the age, sex, and the like of the visitor, which is not limited in this embodiment of the present application.
S505, after receiving the first message, the mobile phone 101 sends a first audio corresponding to the first message to the bluetooth headset 200.
For example, after receiving the network message 1 sent by the intelligent door lock 801 in the networking, the mobile phone 101 may analyze the message 1 corresponding to the ringing event in the network message 1 according to a corresponding protocol such as TCP or UDP, so as to know that the intelligent door lock 801 receives the ringing event. At this time, on the one hand, the mobile phone 101 may determine the specific audio content (i.e. the first audio) to be sent to the bluetooth headset 200 according to the message 1, and on the other hand, the mobile phone 101 may determine the playing policy for playing the first audio according to the audio playing service currently executed by the bluetooth headset 200. Further, the mobile phone 101 may send the first audio to the bluetooth headset 200 according to the determined play policy, so as to transfer the ring event indicated by the first audio to the bluetooth headset 200.
For example, if the message 1 carries audio information (e.g. voice content of "host, guest visit"), the handset 101 may determine the audio information carried in the message 1 as the corresponding first audio. As another example, the mobile phone 101 may convert the text content carried in the message 1 (e.g., "host, guest visiting" text content) into audio information in an audio format, and determine the audio information as the corresponding first audio.
Also for example, correspondence between events of different IOT devices and corresponding audio may be stored in the handset 101. For example, a ringing event of the smart door lock corresponds to audio a, a heating end event of the microwave oven corresponds to audio B, a power-on event of the air conditioner corresponds to audio C, and the like. Then, when the mobile phone 101 acquires the identifier of the ring event from the message 1, the audio a corresponding to the ring event may be determined as the corresponding first audio.
For another example, the message 1 received by the mobile phone 101 from the smart door lock 801 may include a voice content of "the owner, the guest has visited", and may further include a plurality of contents, such as the time of the ringing event, the age and the sex of the guest. At this time, the mobile phone 101 may also extract important information in the message 1 by using a neural network algorithm or the like, and generate a corresponding first audio. For example, the first audio may be "there is a visitor at 15.
In addition to determining the first audio to be sent to the bluetooth headset 200, the mobile phone 101 may also determine how to play the first audio, that is, the play policy of the first audio, according to the audio play service currently executed by the bluetooth headset 200.
Illustratively, the handset 101 may query whether an audio play service is currently being performed on the bluetooth headset 200. For example, the handset 101 may query whether audio data is being transmitted over the bluetooth connection with the bluetooth headset 200, if audio data is being transmitted, then the handset 101 is performing an audio playing service on the bluetooth headset 200 at this time, otherwise, the handset 101 is not performing an audio playing service on the bluetooth headset 200 at this time.
If the mobile phone 101 does not perform the audio playing service on the bluetooth headset 200, which indicates that the sound channel on the bluetooth headset 200 is idle at this time, the mobile phone 101 may determine that the playing policy of the first audio is to directly play the first audio. At this time, as also shown in fig. 9, the mobile phone 101 may encapsulate the first audio into a bluetooth packet according to the bluetooth protocol, and send the bluetooth packet to the bluetooth headset 200 through the bluetooth connection.
If the mobile phone 101 is executing the audio playing service on the bluetooth headset 200, it indicates that the sound channel on the bluetooth headset 200 is occupied by the audio playing service at this time. At this time, the handset 101 may further acquire the type of audio playing service performed on the bluetooth headset 200. For example, the service identifier of the CALL service is MODE _ IN _ CALL, the service identifier of the incoming CALL service is MODE _ IN _ RING, and the service identifier of the media service is MODE _ IN _ MUSIC.
For example, when the mobile phone 101 acquires that the service identifier of the current audio playing service is MODE _ IN _ CALL, it is described that the audio playing service executed on the bluetooth headset 200 is a CALL service of a telephone, and because the priority of the CALL service is higher, the mobile phone 101 may determine that the playing policy of the first audio is the mixed-sound playing of the first audio and the CALL voice. At this time, the mobile phone 101 may mix the current call voice with the first audio in real time, and then send the mixed second audio (the second audio includes the first audio) to the bluetooth headset 200 in real time through the bluetooth connection.
For another example, when the mobile phone 101 acquires that the service identifier of the current audio playing service is MODE _ IN _ RING, it is described that the audio playing service executed on the bluetooth headset 200 is a ringing service of a phone, and similarly, the priority of the ringing service of the phone is also higher, so that the mobile phone 101 may determine that the playing policy of the first audio is the RING tone mixing playing of the first audio and a ringing. At this time, the mobile phone 101 may mix the current ringtone and the first audio in real time, and then send a third audio (the third audio includes the first audio) after mixing to the bluetooth headset 200 in real time through the bluetooth connection.
Certainly, since the priority of the ringing service and the calling service of the phone is higher, the mobile phone 101 may also set that when the bluetooth headset 200 executes the ringing service or the calling service, the first audio playing policy is to wait for the ringing service or the calling service to be ended and then play the first audio.
For another example, when the mobile phone 101 acquires that the service identifier of the current audio playing service is MODE _ IN _ MUSIC, it indicates that the audio playing service executed on the bluetooth headset 200 is a multimedia service. The multimedia service is generally lower in priority, and therefore, the handset 101 may determine that the play policy for the first audio is: and pausing the current audio playing service and playing the first audio. At this time, the mobile phone 101 may stop sending the multimedia data stream of the current audio playing service to the bluetooth headset 200, and instead send the first audio to the bluetooth headset 200 in real time through the bluetooth connection. After the first audio is sent to the bluetooth headset 200, the mobile phone 101 may continue to send the multimedia data stream in the audio playing service to the bluetooth headset 200.
Certainly, the types of the audio playing services may also include types of navigation, notification, and the like, and a person skilled in the art may set a playing policy of the first audio when the bluetooth headset 200 executes different types of audio playing services according to an actual application scenario and an actual need, which is not limited in this embodiment of the application.
S506, after the Bluetooth headset 200 receives the first audio, the first audio is played.
Illustratively, as also shown in fig. 9, the bluetooth headset 200 may receive the first audio transmitted by the handset 101 in the form of bluetooth packets. In addition, the bluetooth headset 200 may analyze the received bluetooth data packet in real time, and play audio data in the bluetooth data packet through a speaker in the bluetooth headset 200, so that after the intelligent door lock 801 receives a ringing event, a first audio associated with the ringing event of the intelligent door lock 801 is played through the bluetooth headset 200.
Therefore, when the user uses the bluetooth headset 200 connected to the mobile phone 101, the audio played by the bluetooth headset 200 can sense an event that is not reported by other devices (e.g., the smart door lock 801) connected to the bluetooth headset 200 in the networking in time, and thus, related messages reported by each electronic device in the networking to the user are prevented from being omitted. In addition, the method does not need the devices such as the intelligent door lock 801 which are not connected with the Bluetooth headset 200 to have the Bluetooth function, so that the non-Bluetooth devices without the Bluetooth function can indirectly realize the communication function with the Bluetooth headset 200.
The above embodiment is exemplified by the bluetooth headset 200 that the smart door lock 801 in the Wi-Fi network (i.e., the first local area network) notifies the user of the ring event. It can be understood that when the smart door lock 801 needs to report other events to the user, the corresponding audio may also be sent to the bluetooth headset 200 for playing according to the above method. Certainly, when other devices (such as a microwave oven and the like) which are not connected with the bluetooth headset 200 in the Wi-Fi network need to report an event to the user, the corresponding audio can also be sent to the bluetooth headset 200 for playing according to the above method.
In addition, if the audio output device of the bluetooth headset 200 is switched from the mobile phone 101 to another bluetooth device in the Wi-Fi network, that is, the device connected to the bluetooth headset 200 is switched from the mobile phone 101 to another bluetooth device in the Wi-Fi network, the IOT device that is not connected to the bluetooth headset 200 in the Wi-Fi network may still send the audio corresponding to the event that needs to be reported to the user to the bluetooth headset 200 for playing through the latest audio output device according to the above method, which is not limited in this embodiment of the present application.
In other embodiments, still taking the audio output device of the bluetooth headset 200 as the example of the mobile phone 101, when the user desires that the bluetooth headset 200 can play not only the audio of the mobile phone 101 but also the audio of one or more other mobile terminals in the Wi-Fi network (i.e., the first local area network), the audio generated by one or more mobile terminals can also be sent to the bluetooth headset 200 for playing by using the above method, so that the bluetooth headset 200 can implement the function of a multi-mode bluetooth headset.
As will be described in detail below in conjunction with the following steps S507-S509, it will be understood that steps S507-S509 may be performed after steps S501-S503.
And S507, when the mobile terminal generates a second event, the mobile terminal sends a second message corresponding to the second event to the mobile phone 101.
Taking the mobile terminal as the tablet computer 1001 in the Wi-Fi network as an example, as shown in fig. 10, by executing steps S501 to S503, the mobile phone 101 and the tablet computer 1001 access the same Wi-Fi network (i.e., the first local area network), and the mobile phone 101 has already established a bluetooth connection with the bluetooth headset 200. Of course, the IOT devices such as the smart door lock 801 and the microwave oven may also access the Wi-Fi network as members of the Wi-Fi network. In this scenario, if the user desires that the bluetooth headset 200 can play the audio in the mobile phone 101 and also desires that the bluetooth headset 200 can play the audio in the tablet pc 1001, the user may input a preset operation to the tablet pc 1001. At this time, the tablet pc 1001 may generate a corresponding second event in response to a preset operation input by the user, where the second event is used to indicate that the tablet pc 1001 needs to occupy the functional resource of the bluetooth headset 200.
For example, the functional resources of the bluetooth headset 200 may include an audio play functional resource and/or a talk functional resource. The call function resource is used to complete a call function (for example, a call function or a video call function) of a certain terminal, and the audio playing function resource is used to implement a function of playing audio for a certain terminal (for example, a music playing function).
For example, in step S503, after the mobile phone 101 establishes a bluetooth connection with the bluetooth headset 200, the device in the current Wi-Fi network may be notified that the mobile phone 101 is connected with the bluetooth headset 200 in a broadcast manner. As shown in fig. 11 (a), after the tablet pc 1001 learns that the mobile phone 101 is connected to the bluetooth headset 200, a prompt message 1102 (also referred to as a preset control) may be displayed in the current display interface 1101, and the prompt message 1102 may be used to prompt the user to play audio of the tablet pc 1001 using the functional resource of the bluetooth headset 200. As also shown in fig. 11 (a), a connection button 1103 may be provided in the prompt message 1102. If it is detected that the user selects the connect button 1103, which indicates that the user inputs a preset operation, the tablet 1001 generates a second event for occupying the functional resources of the bluetooth headset 200.
While the prompt information 1102 is displayed in the form of a dialog box in fig. 11 (a), it is understood that the tablet pc 1001 may also display the prompt information 1102 in the form of a floating window or a floating button. As shown in fig. 11 (b), after the tablet pc 1001 learns that the mobile phone 101 is connected to the bluetooth headset 200, a float button 1104 may be displayed in the current display interface 1101, where the float button 1104 is used to prompt the user to play the audio of the tablet pc 1001 by using the functional resources of the bluetooth headset 200. If it is detected that the user clicks the hover button 1104, indicating that the user inputs a preset operation, the tablet 1001 generates a second event for occupying functional resources of the bluetooth headset 200.
Or after the tablet pc 1001 learns that the mobile phone 101 is connected to the bluetooth headset 200, and when the tablet pc 1001 detects an audio playing operation input by a user, the tablet pc 1001 may prompt the user to use the tablet pc 1001 to occupy a functional resource of the bluetooth headset 200 by displaying the preset control, so as to play an audio on the tablet pc 1001 by using the bluetooth headset 200.
For example, as shown in (a) in fig. 12, after the user opens the music APP in the tablet pc 1001, the tablet pc 1001 may display a display interface 1201 of the music APP. When an operation of playing a certain audio (for example, song a) input by the user in the display interface 1201 is detected, the display interface 1201 may display the above-mentioned prompt information 1102 in the form of a dialog box or a floating window, or the like. For another example, as shown in fig. 12 (b), after the tablet pc 1001 learns that the mobile phone 101 is connected to the bluetooth headset 200, when the display interface 1201 of the music APP is displayed, a control 1202 may be added to the display interface 1201, and the user is prompted to connect the tablet pc 1001 to the bluetooth headset 200 through the control 1202. If it is detected that the user clicks the control 1202, which indicates that the user inputs a preset operation, the tablet pc 1001 generates a second event for occupying the functional resources of the bluetooth headset 200.
Or, after the tablet pc 1001 knows that the mobile phone 101 is connected to the bluetooth headset 200, if the user turns on the bluetooth function in the tablet pc 1001, as shown in fig. 13, the tablet pc 1001 may display an identifier 1301 such as a name of the bluetooth headset 200 in an optional device list 1302, that is, the tablet pc 1001 may use the bluetooth headset 200 as a searched bluetooth device. Subsequently, if it is detected that the user clicks the identifier 1301, indicating that the user inputs a preset operation, the tablet pc 1001 generates a second event for occupying the functional resources of the bluetooth headset 200.
After the tablet pc 1001 generates the second event, similar to step S504, the tablet pc 1001 may send a second message corresponding to the second event to the audio output device (i.e., the mobile phone 101) currently connected to the bluetooth headset 200. For example, the tablet 1001 may first obtain the communication address of the mobile phone 101, and then interact with the mobile phone 101 according to the communication address of the mobile phone 101.
Still taking the tablet pc 1001 as an example of the mobile terminal in the Wi-Fi network, after the tablet pc 1001 acquires the communication address (for example, the IP address) of the mobile phone 101 in response to the second event, the second message may be sent to the mobile phone 101 according to the IP address of the mobile phone 101. The second message corresponds to the second event, and is used to instruct the tablet pc 1001 to wait for using the function resource of the bluetooth headset 200.
S508, after receiving the second message, the mobile phone 101 sends a second audio sent by the subsequent mobile terminal to the bluetooth headset 200.
For example, after receiving the second message sent by the tablet pc 1001, the mobile phone 101 may learn that the tablet pc 1001 needs to occupy the functional resource of the bluetooth headset 200 (i.e., the second event) by parsing the second message.
At this time, unlike step S505, the mobile phone 101 may determine that the specific audio content (i.e., the second audio) transmitted to the bluetooth headset 200 is: the audio data sent from the tablet computer 1001 follows. Optionally, the mobile phone 101 may also send a connection success message to the tablet 1001. In this way, for the tablet pc 1001, after receiving the connection success message sent by the mobile phone 101, the tablet pc 1001 may think that the function resource of the bluetooth headset 200 is successfully occupied. At this time, as shown in fig. 14, the tablet 1001 may display a prompt message 1401 to prompt the user that the audio in the tablet 1001 will be subsequently played through the bluetooth headset 200.
And, the handset 101 may set a playback policy for the second audio. At this time, the bluetooth headset 200 may play the audio data from the mobile phone 101 and the tablet pc 1001, so the second audio playing policy may be set as follows: the audio data from the handset 101 is preferentially played. Alternatively, the playing strategy of the second audio may be: the audio data from the tablet 1001 is preferentially played. Alternatively, the playing strategy of the second audio may be: audio data from the handset 101 and tablet 1001 is played simultaneously.
For example, if the playback policy for the second audio is: if the mobile phone 101 receives the audio data sent from the tablet computer 1001, and the bluetooth headset 200 is executing the audio playing service 1 of the mobile phone 101, the mobile phone 101 may suspend sending the audio data of the audio playing service 1 to the bluetooth headset 200, and instead send the audio data from the tablet computer 1001 to the bluetooth headset 200, so that the bluetooth headset 200 executes the audio playing service 2 of the tablet computer 1001. After the audio playing service 2 is finished, the mobile phone 101 can continue to send audio data from the mobile phone 101 to the bluetooth headset 200, so that the bluetooth headset 200 continues to execute the audio playing service 1.
For another example, if the playback policy for the second audio is: if the audio playing service 1 of the mobile phone 101 is being executed by the bluetooth headset 200 after the audio data from the tablet pc 1001 is preferentially played, the mobile phone 101 may temporarily not send the audio data from the tablet pc 1001 to the bluetooth headset 200, but send the audio data from the tablet pc 1001 to the bluetooth headset 200 after the audio playing service 1 is executed, so that the bluetooth headset 200 executes the audio playing service 2 of the tablet pc 1001 after the audio playing service 1 of the mobile phone 101 is executed.
For another example, if the playback strategy of the second audio is: meanwhile, the audio data from the mobile phone 101 and the tablet pc 1001 are played, after the mobile phone 101 receives the audio data sent by the tablet pc 1001, if the bluetooth headset 200 is executing the audio playing service 1 of the mobile phone 101, the mobile phone 101 may mix the audio data from the tablet pc 1001 and the audio data of the mobile phone 101, and then send the mixed audio data to the bluetooth headset 200, so that the bluetooth headset 200 may execute the audio playing service 1 of the mobile phone 101 and the audio playing service 2 of the tablet pc 1001 at the same time.
Of course, if the bluetooth headset 200 is in an idle state (i.e., the bluetooth headset 200 does not perform any audio playing task) when the mobile phone 101 receives the audio data sent by the tablet pc 1001, the mobile phone 101 may directly send the audio data from the tablet pc 1001 to the bluetooth headset 200, which is not limited in this embodiment.
After the mobile phone 101 determines that the audio data (i.e., the second audio) sent by the tablet pc 1001 needs to be sent to the bluetooth headset 200, and determines the playing policy of the second audio, when the subsequent mobile phone 101 receives the audio data sent by the tablet pc 1001, the mobile phone 101 may send the audio data sent by the tablet pc 1001 to the bluetooth headset 200 through bluetooth connection according to the playing policy.
S509, after receiving the second audio, the bluetooth headset 200 plays the second audio.
Similar to the step S506, after the bluetooth headset 200 receives the audio data (i.e., the second audio) sent by the tablet pc 1001 through the mobile phone 101, the received audio data can be played through the speaker in the bluetooth headset 200.
Thus, although the bluetooth headset 200 establishes the bluetooth connection only with the mobile phone 101 in the Wi-Fi network, according to the above method, the bluetooth headset 200 may be used as the audio output device of the mobile phone 101 to perform the audio playing task of the mobile phone 101, and may also be used as the audio output device of the tablet pc 1001 to perform the audio playing task of the tablet pc 1001, thereby implementing the function of the multi-mode bluetooth headset and improving the user experience.
Certainly, in addition to the tablet computer 1001, other mobile terminals in the Wi-Fi network (i.e., the first local area network) that are not connected to the bluetooth headset 200 may also communicate with the bluetooth headset 200 according to the method described above, so as to simulate a use effect of multiple devices connected to the bluetooth headset 200, and implement a function of a multi-mode bluetooth headset, which is not limited in this embodiment of the present application.
In the above embodiment, the mobile phone 101 is taken as an example of the audio output device connected to the bluetooth headset 200 in the Wi-Fi network (i.e., the first local area network), and it can be understood that the audio output device connected to the bluetooth headset 200 may also be other audio output devices (e.g., a bluetooth speaker, a bluetooth television, etc.) with a bluetooth function in the first local area network, which is not limited in this embodiment.
In other embodiments, still taking the Wi-Fi network as an example of the first local area network, there may be multiple devices connected to different bluetooth headsets in the Wi-Fi network. For example, as shown in fig. 15, devices such as a mobile phone 1, a mobile phone 2, a tablet computer, and a microwave oven 1501 may be accessed in a Wi-Fi network, where the mobile phone 1 may establish a bluetooth connection with a bluetooth headset a of a user 1, and the mobile phone 2 may establish a bluetooth connection with a bluetooth headset B of a user 2.
In this scenario, the IOT device or the mobile terminal not connected to the bluetooth headset in the Wi-Fi network may still communicate with the bluetooth headset according to the above method, so that the IOT device or the mobile terminal not connected to the bluetooth headset realizes a bluetooth function. For example, after the mobile phone 1 establishes a bluetooth connection with the bluetooth headset a, the mobile phone 1 may broadcast a message that the mobile phone 1 establishes a bluetooth connection with the bluetooth headset a in the Wi-Fi network. And after the mobile phone 2 establishes the bluetooth connection with the bluetooth headset B, the mobile phone 2 may also broadcast a message that the mobile phone 2 establishes the bluetooth connection with the bluetooth headset B in the Wi-Fi network.
In contrast, when a device that is not connected to a bluetooth headset in the Wi-Fi network needs to report an event, for example, when the microwave oven 1501 generates a heating end event, as shown in fig. 15, if both the mobile phone 1 and the mobile phone 2 are connected to the bluetooth headset, the microwave oven 1501 may send a message a corresponding to the heating end event to the mobile phone 1 and the mobile phone 2, respectively, according to the method in the foregoing embodiment. In this way, multiple devices connected to the Bluetooth headset within the Wi-Fi network can all perceive the heating end event.
Furthermore, after receiving the message a, the mobile phone 1 may send the audio corresponding to the message a to the bluetooth headset a for playing according to the method in the foregoing embodiment. Similarly, after receiving the message a, the mobile phone 2 may also send the audio corresponding to the message a to the bluetooth headset B for playing according to the method in the foregoing embodiment. Therefore, a user using any Bluetooth headset can sense the events reported by the devices which are not connected with the Bluetooth headset in the Wi-Fi network, and the condition that the messages reported by other devices in the networking are omitted when the user uses the Bluetooth headset is avoided.
Or, after the microwave oven 1501 sends the message a corresponding to the heating end event to the mobile phone 1 and the mobile phone 2 respectively according to the method in the foregoing embodiment, as shown in fig. 16, the mobile phone 1 and the mobile phone 2 may determine, in a negotiation manner, which bluetooth headset reports the heating end event to the user at this time. For example, the mobile phone 1 and the mobile phone 2 may respectively determine the audio playing service that are executed on the corresponding bluetooth headsets. Furthermore, after the mobile phone 1 and the mobile phone 2 pass the negotiation, the bluetooth headset with idle or audio playing service having lower priority can be determined as the target bluetooth headset, and the target bluetooth headset notifies the user of the heating end event. Therefore, when the target Bluetooth headset notifies the user of the heating end event, the audio playing service which is executed by other Bluetooth headsets can not be interfered.
For example, if the bluetooth headset a connected to the mobile phone 1 is in an idle state, and the bluetooth headset B connected to the mobile phone 2 is executing an audio playing service, the mobile phone 1 may send the audio corresponding to the current heating end event to the bluetooth headset a for playing, that is, the bluetooth headset a prompts the user about the heating end event of the microwave oven. At this time, the mobile phone 2 does not need to send the audio corresponding to the heating end event to the bluetooth headset B, and the mobile phone 2 may continue to execute the audio playing service.
For another example, if the bluetooth headset a connected to the mobile phone 1 is performing a call service and the bluetooth headset B connected to the mobile phone 2 is performing a multimedia playing service, if the priority of the multimedia playing service is lower than that of the call service, the mobile phone 2 may suspend performing the multimedia playing service and send the audio corresponding to the current heating end event to the bluetooth headset a for playing. At this time, the mobile phone 1 does not need to send the audio corresponding to the heating end event to the bluetooth headset a, and the mobile phone 1 may continue to execute the call service.
In other embodiments, as shown in FIG. 17, a central node 1701 of a Wi-Fi network may also be pre-configured in the Wi-Fi network. For example, the central node 1701 may be a router or any device in a Wi-Fi network. At this time, the microwave oven 150 may transmit a message a corresponding to the heating end event to the central node 1701, and the central node 1701 decides a target bluetooth headset to notify the user of the current heating end event. Further, the central node 1701 may send message a to the device connected to the target bluetooth headset. For example, the central node 1701 may also determine a target bluetooth headset by comparing whether the bluetooth headset a and the bluetooth headset B perform an audio playback service and the priority of the performed audio playback service. Further, the central node 1701 may send a message a to a device (e.g., the mobile phone 1) connected to the target bluetooth headset, and the mobile phone 1 may respond to the message a to send the audio corresponding to the heating end event to the bluetooth headset a for playing, so as to avoid interfering with the audio playing service being executed by other bluetooth headsets.
It should be noted that, no matter the central node 1701 decides the target bluetooth headset reporting the relevant event to the user at this time, or the mobile phone 1 and the mobile phone 2 decide the target bluetooth headset reporting the relevant event to the user at this time in a negotiation manner, a person skilled in the art may set the specific policy in the decision according to actual needs and actual application scenarios, and the embodiment of the present application does not limit this. Illustratively, the priority order of the various devices in a Wi-Fi network may be preset. In this way, the central node 1701 may select, as a target bluetooth headset, a bluetooth headset connected to a device having the highest priority among a plurality of devices connected to bluetooth headsets at the time of decision making. For example, if dad's handset 1 has a priority greater than child's handset 2, the central node 1701 can determine the bluetooth headset a connected to handset 1 as the target bluetooth headset.
As shown in fig. 18, the present embodiment discloses a terminal, which may be a device (e.g., a mobile phone 101) connected to a bluetooth headset in the audio system 100. The terminal may specifically include: a touch screen 1801, the touch screen 1801 including a touch sensor 1806 and a display screen 1807; one or more processors 1802; a memory 1803; a communication module 1808; one or more applications (not shown); and one or more computer programs 1804, which may be connected via one or more communication buses 1805. Wherein the one or more computer programs 1804 are stored in the memory 1803 and configured to be executed by the one or more processors 1802, the one or more computer programs 1804 include instructions that may be used to perform the steps associated with the mobile phone 101 of the embodiments described above.
As shown in fig. 19, the embodiment of the present application discloses a terminal, which may be an IOT device or a mobile terminal that is not connected to a bluetooth headset in the audio system 100. The terminal may specifically include: a communication module 1901; one or more processors 1902; a memory 1903; one or more applications (not shown); and one or more computer programs 1904, which may be connected via one or more communication buses 1905. Of course, the terminal may further include a touch screen or the like, and similarly, the touch screen may include a touch sensor and a display screen. Wherein the one or more computer programs 1904 are stored in the memory 1903 and configured to be executed by the one or more processors 1902, the one or more computer programs 1904 including instructions that may be used to perform the associated steps performed by the IOT device or the mobile terminal in the embodiments described above.
Through the description of the foregoing embodiments, it will be clear to those skilled in the art that, for convenience and simplicity of description, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media that can store program code, such as flash memory, removable hard drive, read-only memory, random-access memory, magnetic or optical disk, etc.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered within the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. An audio system is characterized by comprising a first terminal, a second terminal and an audio output device, wherein the first terminal is connected with the audio output device in a Bluetooth mode, the second terminal is not connected with the audio output device in the Bluetooth mode, and a wireless communication connection is established between the first terminal and the second terminal; wherein the content of the first and second substances,
the second terminal is configured to: when a first event is generated, transmitting a first message corresponding to the first event to the first terminal using the wireless communication connection; when the second terminal is an intelligent household device, the first event is any event generated when the intelligent household device works, and when the second terminal is a mobile terminal, the first event is an event that the mobile terminal occupies a functional resource of the audio output device;
the first terminal is configured to: receiving the first message sent by the second terminal; sending a first audio corresponding to the first message to the audio output device using the Bluetooth connection;
the audio output device is to: receiving the first audio sent by the first terminal; and playing the first audio.
2. The system according to claim 1, wherein when the first event is any event generated when the smart home device works, the first message comprises: audio information and/or textual information corresponding to the first event.
3. The system of claim 2,
when audio information is included in the first message, the first audio includes the audio information; and/or the presence of a gas in the gas,
when the first message comprises text information, the first terminal is further used for converting the text information into the first audio.
4. The system of any of claims 1-3, wherein prior to sending the first audio corresponding to the first message to the audio output device, the first terminal is further configured to:
if the audio output equipment does not execute audio playing service, the first audio is sent to the audio output equipment;
and if the audio output equipment is executing the audio playing service, sending the first audio to the audio output equipment according to the type of the audio playing service.
5. The system of claim 4, wherein sending the first audio to the audio output device according to the type of the audio playing service comprises:
when the type of the audio playing service is a call service or a ringing service, mixing the first audio and the audio of the audio playing service and then sending the mixed audio to the audio output equipment;
when the type of the audio playing service is a multimedia service, stopping sending the audio of the audio playing service to the audio output device, and sending the first audio to the audio output device.
6. The system according to claim 1, wherein when the first event is an event that the mobile terminal occupies a functional resource of the audio output device, the functional resource includes an audio playing functional resource and/or a call functional resource, the call functional resource is used to complete a call function of a certain terminal, and the audio playing functional resource is used to implement a function of playing audio for a certain terminal.
7. The system of claim 6, wherein prior to the second terminal generating the first event, the second terminal is further configured to:
displaying a preset control, wherein the control is used for prompting a user to use the second terminal to occupy functional resources of the audio output equipment;
wherein the second terminal generates a first event, including:
and responding to the preset operation input by the user on the control, and generating the first event by the second terminal.
8. The system of claim 7, wherein the second terminal displays a preset control comprising:
when the second terminal acquires the audio playing operation input by the user, the second terminal displays the control; alternatively, the first and second electrodes may be,
and when the second terminal acquires the message that the audio output equipment is connected with the first terminal through the Bluetooth, the second terminal displays the control.
9. The system according to any of claims 6-8, wherein after receiving the first message sent by the second terminal, the first terminal is further configured to:
and receiving audio data sent by the second terminal, wherein the audio data is the first audio.
10. The system according to any of claims 1-9, wherein after the first terminal establishes a bluetooth connection with the audio output device, the first terminal is further configured to:
and sending a broadcast message in the audio system, wherein the broadcast message is used for indicating the first terminal to establish Bluetooth connection with the audio output equipment.
11. An audio playing method, comprising:
the first terminal and the second terminal establish wireless communication connection;
after the first terminal establishes Bluetooth connection with audio output equipment, the first terminal receives a first message sent by the second terminal through the wireless communication connection, wherein the first message is used for indicating the second terminal to generate a first event, and the second terminal does not establish Bluetooth connection with the audio output equipment; when the second terminal is an intelligent household device, the first event is any event generated when the intelligent household device works, and when the second terminal is a mobile terminal, the first event is an event that the mobile terminal occupies a functional resource of the audio output device;
the first terminal determines a first audio corresponding to the first message;
and the first terminal sends the first audio to the audio output equipment through the Bluetooth connection, so that the audio output equipment plays the first audio.
12. The method of claim 11, wherein the first audio is included in the first message; or the first message comprises text information corresponding to the first audio.
13. The method of claim 12, wherein the first terminal sending the first audio to the audio output device comprises:
if the audio output equipment does not execute audio playing service, the first terminal sends the first audio to the audio output equipment;
and if the audio output equipment is executing an audio playing service, the first terminal sends the first audio to the audio output equipment according to the type of the audio playing service.
14. The method of claim 13, wherein the first terminal sends the first audio to the audio output device according to the type of the audio playing service, and wherein the method comprises:
when the type of the audio playing service is a call service or a ringing service, mixing the first audio and the audio of the audio playing service and then sending the mixed audio to the audio output equipment;
when the type of the audio playing service is a multimedia service, stopping sending the audio of the audio playing service to the audio output device, and sending the first audio to the audio output device.
15. The method according to claim 11, wherein the functional resources include an audio playing functional resource and/or a call functional resource, the call functional resource is used for completing a call function of a certain terminal, and the audio playing functional resource is used for realizing a function of playing audio for a certain terminal;
and the first audio is audio data sent by the second terminal.
16. The method of claim 15, further comprising, after the first terminal receives the first message sent by the second terminal:
and the first terminal sends a connection success message to the second terminal, so that the second terminal responds to the connection success message and sends audio data to the first terminal.
17. The method according to any of claims 11-16, wherein before the first terminal receives the first message sent by the second terminal, further comprising:
the first terminal accesses a local area network where the second terminal is located;
and after the first terminal establishes Bluetooth connection with the audio output equipment, the first terminal is connected in the local area network to send broadcast messages, and the broadcast messages are used for indicating the first terminal to establish Bluetooth connection with the audio output equipment.
18. A terminal, comprising:
one or more processors;
a communication module;
a memory;
wherein the memory has stored therein one or more computer programs, the one or more computer programs comprising instructions, which when executed by the terminal, cause the terminal to perform an audio playback method as claimed in any one of claims 11-17.
19. A computer-readable storage medium having instructions stored therein, which when run on a terminal, cause the terminal to perform an audio playback method as claimed in any one of claims 11-17.
20. A computer program product, characterized in that it causes a terminal to execute an audio playback method according to any of claims 11-17, when said computer program product is run on said terminal.
CN202110587662.3A 2021-05-27 2021-05-27 Audio playing method and system and electronic equipment Pending CN115412387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110587662.3A CN115412387A (en) 2021-05-27 2021-05-27 Audio playing method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110587662.3A CN115412387A (en) 2021-05-27 2021-05-27 Audio playing method and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN115412387A true CN115412387A (en) 2022-11-29

Family

ID=84156086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110587662.3A Pending CN115412387A (en) 2021-05-27 2021-05-27 Audio playing method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN115412387A (en)

Similar Documents

Publication Publication Date Title
CN112868244B (en) Point-to-multipoint data transmission method and device
JP2022529033A (en) Bluetooth connection method, device, and system
CN110519131B (en) Method for controlling equipment and terminal
CN112469013B (en) Bluetooth connection method and related device
CN112822663B (en) Bluetooth connection method and related device
WO2020132818A1 (en) Wireless short-distance audio sharing method and electronic device
EP4132098A1 (en) Implementation method for wi-fi peer-to-peer service and related device
WO2021043219A1 (en) Bluetooth reconnection method and related apparatus
CN113039822B (en) Method and equipment for establishing data channel
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
CN114079892A (en) Bluetooth communication method, wearable device and system
CN111010693A (en) Method for providing wireless fidelity WiFi network access service and electronic equipment
CN112469011A (en) Bluetooth pairing method and related device
CN113038627B (en) File sharing method, mobile device and computer storage medium
CN113301544B (en) Method and equipment for voice intercommunication between audio equipment
US20220368754A1 (en) Bluetooth communication method and related apparatus
CN113382460A (en) Method and device for determining minimum time slot offset value
CN112335294B (en) Emergency call method and user terminal
WO2022174746A1 (en) Event notification method, bluetooth device and bluetooth system
CN116261124A (en) Data transmission method and device, electronic equipment and intelligent terminal
CN115412387A (en) Audio playing method and system and electronic equipment
US20230337147A1 (en) Device Configuration Method and Device
CN114449492B (en) Data transmission method and terminal equipment
WO2023061217A1 (en) Data transmission method and apparatus
CN116074986B (en) Bluetooth 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