WO2022174746A1 - Event notification method, bluetooth device and bluetooth system - Google Patents

Event notification method, bluetooth device and bluetooth system Download PDF

Info

Publication number
WO2022174746A1
WO2022174746A1 PCT/CN2022/075512 CN2022075512W WO2022174746A1 WO 2022174746 A1 WO2022174746 A1 WO 2022174746A1 CN 2022075512 W CN2022075512 W CN 2022075512W WO 2022174746 A1 WO2022174746 A1 WO 2022174746A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
bluetooth device
message
event
audio
Prior art date
Application number
PCT/CN2022/075512
Other languages
French (fr)
Chinese (zh)
Inventor
李明旭
朱珂
崔晓青
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022174746A1 publication Critical patent/WO2022174746A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/16Communication-related supplementary services, e.g. call-transfer or call-hold
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present application relates to the technical field of Bluetooth communication, and in particular, to an event notification method, a Bluetooth device, a Bluetooth system, and a computer-readable storage medium.
  • the first Bluetooth-based phone headset also known as "Bluetooth headset”
  • Bluetooth headset Since the introduction of Bluetooth headsets, it has greatly facilitated people's daily life. For example, after the user connects the Bluetooth headset to the tablet, the user can play/pause the music on the tablet through the Bluetooth headset, or answer/hang up an incoming call on the tablet.
  • the sound of the Bluetooth headset may cover other sounds in the environment, which may cause the user to miss some messages.
  • the ringtone on the mobile phone may be obscured by the sound in the Bluetooth headset, causing the user to miss the call.
  • Some embodiments of the present application provide an event notification method, a Bluetooth device, a Bluetooth system, and a computer-readable storage medium.
  • the present application is described below from various aspects, and the embodiments and beneficial effects of the following aspects can be referred to each other.
  • an embodiment of the present application provides a Bluetooth system
  • the Bluetooth system includes a first Bluetooth device and a second Bluetooth device that do not establish a Bluetooth connection with each other, wherein: the first Bluetooth device is configured to receive a first event. and, in response to receiving the first event, send a first message to the second Bluetooth device through the Bluetooth broadcast channel, where the first message is used to notify the second Bluetooth device of the first event; the second Bluetooth device is configured to broadcast on the Bluetooth The first message is received on the channel, and a response action in response to the first message is performed, wherein the response action at least includes an action for prompting the user of the first event.
  • the second Bluetooth device may notify the user of the first event, so as to prevent the user from missing the first event.
  • the first bluetooth sends an event notification message to the second bluetooth device through the bluetooth broadcast channel, and there is no need to establish a bluetooth connection between the first bluetooth device and the second bluetooth device, so it can be applied to various bluetooth devices (for example, only one bluetooth connection is supported) channel equipment), with better adaptability.
  • the first Bluetooth device sends an event notification message to a second Bluetooth device that meets a preset condition.
  • the preset conditions may include specific conditions, for example, the preset conditions are: the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device; the preset conditions may also not include additional conditions, for example, the first Bluetooth device 2.
  • the Bluetooth device is any device.
  • sending the first message to the second Bluetooth device through the Bluetooth broadcast channel includes: the first Bluetooth device, based on determining that the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device, sending the first message to the second Bluetooth device. Two Bluetooth devices send the first message.
  • the second Bluetooth device when the second Bluetooth device establishes a Bluetooth connection with other Bluetooth devices, it indicates that the user is currently using the second Bluetooth device, and therefore, it can be further ensured that the first message is notified to the user.
  • the prompt action includes playing prompt audio for the first event.
  • the first message sent by the first Bluetooth device includes description information of the first event; and the prompt audio played by the second Bluetooth device includes the first audio, and the prompt audio carries the description information.
  • playing the prompt audio by the second Bluetooth device includes: the second Bluetooth device determines the service type of its currently playing service; when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device determines The Bluetooth device plays the first audio after the current playback service ends; when the Bluetooth device determines that the service type of the current playback service is other than the call service, the second Bluetooth device plays the first audio at the current moment.
  • the second Bluetooth device When the current audio playback service of the second Bluetooth device is a call service, it means that the user is using the second Bluetooth device to conduct a real-time call with other users. If the user's real-time call is interrupted, there will be a bad experience. Therefore, in the embodiment of the present application, the second Bluetooth device does not play the first audio for the time being, but plays the first audio after the call service ends.
  • the prompt audio includes a second audio, and the duration of the second audio is shorter than that of the first audio; and, when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device is currently playing The second audio is played at all times, and the first audio is played after the current playing service ends.
  • it can not only play a certain prompting role, but also avoid affecting the normal conversation of the user.
  • the description information of the first event includes device identification information of the first device, device type information of the first device, event type information of the first event, and/or time information when the first device receives the first event .
  • performing the response action by the second Bluetooth device further comprises: sending a response message to the first message to the first Bluetooth device. In this way, it is beneficial for the first Bluetooth device to confirm that the second Bluetooth device has received the first message.
  • the first Bluetooth device sends the first message to the second Bluetooth device, further comprising: if the first Bluetooth device does not receive a response message from the second Bluetooth device within a predetermined time after sending the first message , the first message is retransmitted successively according to the set time interval until a response message from the second Bluetooth device is received, or until the number of times of retransmission of the first message exceeds the set threshold.
  • the embodiments of the present application are beneficial to ensure that the second Bluetooth device does not miss the first message from the first Bluetooth device.
  • the second Bluetooth device performing a response action in response to the first message includes: the second Bluetooth device performing a response action based on determining that it is a target receiving device of the first message.
  • the second Bluetooth device performs the response action only when it determines that it is the target receiving device of the first message; otherwise, the second Bluetooth device ignores the first message to avoid erroneously leaking user information.
  • the first message carries the device identifier of the target receiving device of the first message; the second Bluetooth device determines that it is the target receiving device of the first message, including: the second Bluetooth device matches its own device identifier with the device identifier. The device identifier carried in the first message is matched to determine that it is the target receiving device of the first message.
  • the first Bluetooth device sends the first message to the second Bluetooth device, comprising: the first Bluetooth device sends the second Bluetooth device to the second Bluetooth device based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device Send the first message.
  • the first Bluetooth device sends the first message to the second Bluetooth device, comprising: the first Bluetooth device is based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device, and determining that the second Bluetooth device is The device satisfies at least one of the following conditions, and sends the first message to the second Bluetooth device: in the historical communication process of the first Bluetooth device, the number of times that the second Bluetooth device establishes a Bluetooth connection with the first Bluetooth device exceeds the set threshold; The second Bluetooth device is designated by the user as a legitimate device to receive the first message.
  • the embodiments of the present application can further ensure the security of information user information.
  • the first event is an incoming call event.
  • the second Bluetooth device is a Bluetooth headset, a Bluetooth speaker, or a wearable device.
  • the embodiments of the present application provide an event notification method for a first Bluetooth device, the method includes: receiving a first event; in response to receiving the first event, sending a Bluetooth broadcast channel to the second Bluetooth device The first message is used to notify the second Bluetooth device of the first event, wherein the second Bluetooth device has not established a Bluetooth connection with the first Bluetooth device.
  • the second Bluetooth device may notify the user of the first event, so as to prevent the user from missing the first event.
  • the first bluetooth sends an event notification message to the second bluetooth device through the bluetooth broadcast channel, and there is no need to establish a bluetooth connection between the first bluetooth device and the second bluetooth device, so it can be applied to various bluetooth devices (for example, only one bluetooth connection is supported) channel equipment), with better adaptability.
  • sending the first message to the second Bluetooth device through a Bluetooth broadcast channel includes: based on determining that the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device, sending the first message to the second Bluetooth device First news.
  • the second Bluetooth device when the second Bluetooth device establishes a Bluetooth connection with other Bluetooth devices, it indicates that the user is currently using the second Bluetooth device, and therefore, it can be further ensured that the first message is notified to the user.
  • the first message includes descriptive information of the first event.
  • the description information of the first event includes device identification information of the first Bluetooth device, device type information of the first Bluetooth device, event type information of the first event, and/or the first Bluetooth device receives the first event time information.
  • sending the first message to the second Bluetooth device through a Bluetooth broadcast channel further includes: if no response message is received from the second Bluetooth device within a predetermined time after sending the first message, according to the setting The first message is successively retransmitted at the time interval until a response message from the second Bluetooth device is received, or until the number of times of retransmission of the first message exceeds the set threshold.
  • the embodiments of the present application are beneficial to ensure that the second Bluetooth device does not miss the first message from the first Bluetooth device.
  • sending the first message to the second Bluetooth device through a Bluetooth broadcast channel includes: based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device, sending the first message to the second Bluetooth device .
  • sending the first message to the second Bluetooth device through the Bluetooth broadcast channel includes: based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device, and determining that the second Bluetooth device satisfies the following At least one of the conditions is to send the first message to the second Bluetooth device: in the historical communication process of the first Bluetooth device, the number of times that the second Bluetooth device establishes a Bluetooth connection with the first Bluetooth device exceeds a set threshold; the second Bluetooth device is designated by the user as a legitimate device to receive the first message.
  • the embodiments of the present application can further ensure the security of information user information.
  • the first event is an incoming call event.
  • the first Bluetooth device sends an event notification message to a second Bluetooth device that meets a preset condition.
  • the preset conditions may include specific conditions, for example, the preset conditions are: the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device, and/or, the second Bluetooth device has been connected to the first Bluetooth device.
  • the Bluetooth device is a device that completes Bluetooth pairing; the preset condition may also not include additional conditions, for example, the second Bluetooth device is any device.
  • the embodiments of the present application provide an event notification method for a second Bluetooth device, the method includes: receiving a first message from the first Bluetooth device on a Bluetooth broadcast channel, where the first message is used to notify the second Bluetooth device.
  • the Bluetooth device notifies the first event received by the first Bluetooth device, wherein the second Bluetooth device has not established a Bluetooth connection with the first Bluetooth device; and executes a response action in response to the first message, wherein the response action at least includes an action for sending a message to the user. Action that prompts the first event.
  • the second Bluetooth device may notify the user of the first event, so as to prevent the user from missing the first event.
  • the first bluetooth sends an event notification message to the second bluetooth device through the bluetooth broadcast channel, and there is no need to establish a bluetooth connection between the first bluetooth device and the second bluetooth device, so it can be applied to various bluetooth devices (for example, only one bluetooth connection is supported) channel equipment), with better adaptability.
  • the second Bluetooth device establishes a Bluetooth connection with other devices than the first Bluetooth device.
  • the prompt action includes playing prompt audio for the first event.
  • the first message includes description information of the first event; and the prompt audio played by the second Bluetooth device includes the first audio, and the prompt audio carries the description information.
  • playing the prompt audio by the second Bluetooth device includes: the second Bluetooth device determines the service type of its currently playing service; when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device determines The Bluetooth device plays the first audio after the current playback service ends; when the Bluetooth device determines that the service type of the current playback service is other than the call service, the second Bluetooth device plays the first audio at the current moment.
  • the second Bluetooth device When the current audio playback service of the second Bluetooth device is a call service, it means that the user is using the second Bluetooth device to conduct a real-time call with other users. If the user's real-time call is interrupted, there will be a bad experience. Therefore, in the embodiment of the present application, the second Bluetooth device does not play the first audio for the time being, but plays the first audio after the call service ends.
  • the prompt audio includes a second audio, and the duration of the second audio is shorter than that of the first audio; and, when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device is currently playing The second audio is played at all times, and the first audio is played after the current playing service ends.
  • it can not only play a certain prompting role, but also avoid affecting the normal conversation of the user.
  • the description information of the first event includes device identification information of the first device, device type information of the first device, event type information of the first event, and/or time information when the first device receives the first event .
  • performing a response action in response to the first message further includes: sending a response message to the first message to the first Bluetooth device. In this way, it is beneficial for the first Bluetooth device to confirm that the second Bluetooth device has received the first message.
  • performing the response action in response to the first message includes: the second Bluetooth device performing the response action based on determining that it is a target receiving device of the first message.
  • the second Bluetooth device performs the response action only when it determines that it is the target receiving device of the first message; otherwise, the second Bluetooth device ignores the first message to avoid erroneously leaking user information.
  • the first message carries the device identifier of the target receiving device of the first message; the second Bluetooth device determines that it is the target receiving device of the first message, including: the second Bluetooth device matches its own device identifier with the device identifier. The device identifier carried in the first message is matched to determine that it is the target receiving device of the first message.
  • the first event is an incoming call event.
  • the second Bluetooth device is a Bluetooth headset, a Bluetooth speaker, or a wearable device.
  • a Bluetooth device including: a memory for storing instructions executed by one or more processors of the Bluetooth device; a processor, when the processor executes the memory
  • the Bluetooth device can be made to execute the event notification method provided by any one of the implementation manners of the second aspect of this application.
  • embodiments of the present application provide a Bluetooth device, including: a memory for storing instructions executed by one or more processors of the Bluetooth device; a processor, when the processor executes the memory When the instruction in , the Bluetooth device can be made to execute the event notification method provided by any one of the implementation manners of the third aspect of the present application.
  • a Bluetooth device including: a memory for storing instructions executed by one or more processors of the Bluetooth device; a processor, when the processor executes the memory
  • the Bluetooth device can be made to execute the event notification method provided by any one of the implementation manners of the third aspect of the present application.
  • an embodiment of the present application provides a Bluetooth system, including a first Bluetooth device and a second Bluetooth device that do not establish a Bluetooth connection with each other, wherein the first Bluetooth device is used to perform any one of the second aspects of the present application.
  • the second Bluetooth device is configured to execute the event notification method provided by any embodiment of the third aspect of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and when the instruction is executed on a computer, the computer can execute any one of the embodiments of the second aspect of the present application or The event notification method provided by any method of the third aspect of the present application.
  • the beneficial effects that can be achieved in the seventh aspect reference may be made to the beneficial effects of any embodiment of the second aspect of the present application or the beneficial effects of any embodiment of the third aspect of the present application, which will not be repeated here.
  • FIG. 1a is a schematic diagram of an application scenario of an event notification method provided by an embodiment of the present application
  • 1b is a schematic diagram of a terminal interface for enabling an event notification function provided by an embodiment of the present application
  • 2a is a schematic structural diagram of a Bluetooth device provided by an embodiment of the application.
  • FIG. 2b is a software architecture diagram of a Bluetooth device provided by an embodiment of the application.
  • FIG. 3 is an exemplary structural diagram of a Bluetooth broadcast data packet provided by an embodiment of the present application.
  • FIG. 4 is an exemplary flowchart 1 of an event notification method provided by an embodiment of the present application.
  • FIG. 5 is an interface diagram 1 for specifying a user-trusted device provided by an embodiment of the present application
  • FIG. 6 is an interface diagram 2 for specifying a user-trusted device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a broadcast packet sent by a first Bluetooth device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a broadcast packet replied by a second Bluetooth device according to an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a second Bluetooth device playing a prompt audio provided by an embodiment of the present application.
  • FIG. 10 is an exemplary flowchart 2 of an event notification method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a module structure of a Bluetooth system provided by an embodiment of the application.
  • FIG. 12 shows a block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 13 shows a schematic structural diagram of a system on chip (System on Chip, SOC) provided by an embodiment of the present application.
  • SOC System on Chip
  • VoIP Voice over Internet Protocol
  • more and more electronic devices currently have telephone functions.
  • users can also make calls through tablets, laptops, etc.
  • the electronic device can access the Internet and has a microphone (Microphone, MIC) and an earpiece, the telephone function can be realized. Therefore, users can often have multiple electronic devices with telephone functions.
  • VoIP Voice over Internet Protocol
  • a user has multiple electronic devices such as a mobile phone 100 , a tablet 110 , and a notebook computer 130 , and each electronic device is connected to the gateway 140 through its own WiFi module to form a local area network 150 .
  • FIG. 1 a also includes a Bluetooth headset 120 , and the Bluetooth headset 120 is added to the local area network 150 through a Bluetooth connection with the tablet 110 . After the Bluetooth headset 120 and the tablet 110 are connected via Bluetooth, the user can listen to audio content (eg, music, answer voice calls, etc.) on the tablet 110 through the Bluetooth headset 120 .
  • audio content eg, music, answer voice calls, etc.
  • the mobile phone 100 receives an incoming call at this time, the ringtone of the incoming call on the mobile phone 100 may be covered by the sound played by the Bluetooth headset 120 . Therefore, the user may not hear the incoming call on the mobile phone 100 , and thus may miss the call on the mobile phone 100 . call.
  • the embodiments of the present application are used to solve this technical problem. Specifically, the embodiments of the present application are used to provide an event notification method.
  • the mobile phone 100 (as the first Bluetooth device) receives an incoming call event (as the first event or the event to be notified)
  • the mobile phone 100 (as the first event or the event to be notified) sends a notification to the Bluetooth headset 120 through the Bluetooth broadcast channel.
  • the second Bluetooth device sends an event notification message (as the first message)
  • the event notification message is used to notify the Bluetooth headset 120 of an incoming call event.
  • the Bluetooth headset 120 receives the event notification message sent by the mobile phone 100 on the Bluetooth broadcast channel, and executes a response action in response to the event notification message, wherein the response action includes an action for prompting the user of an incoming call event (eg, playing a prompt audio) .
  • the mobile phone 100 when the mobile phone 100 receives an incoming call event, the mobile phone 100 can notify the user of the incoming call event through the Bluetooth headset 120 to prevent the user from missing an incoming call.
  • the number of point-to-point Bluetooth connections supported by Bluetooth devices is often limited. Especially for a device with a relatively simple hardware configuration such as the Bluetooth headset 120, it may only support one point-to-point Bluetooth communication channel.
  • the first Bluetooth device sends an event notification message to the second Bluetooth device through the Bluetooth broadcast channel, and there is no need to establish a Bluetooth connection between the first Bluetooth device and the second Bluetooth device, so it can be applied to various Bluetooth devices. good adaptability.
  • the mobile phone 100 is used as an example of the first Bluetooth device (or terminal device) in FIG. 1a, the present application is not limited to this.
  • the first Bluetooth device may be a tablet, a notebook computer, a smart screen, a smart home appliance (eg, a microwave oven, a smart door lock, an alarm clock), a car machine, etc., as long as it has a Bluetooth communication function.
  • FIG. 1a uses a Bluetooth headset as an example of the second Bluetooth device
  • the present application is not limited to this.
  • the second Bluetooth device may be a Bluetooth speaker, a wearable device (eg, a smart bracelet/watch, smart glasses, smart helmet, etc.), etc., as long as it has an audio playback function and a Bluetooth communication function.
  • the incoming electricity event is used as an example of the first event in FIG. 1a, the present application is not limited to this.
  • the first event may be an event to be notified other than an incoming call event, for example, a smart speaker playing schedule reminder event, a doorbell ringing event, a washing machine washing program completion event, a timer ending event, and the like.
  • the pull-down menu of the first Bluetooth device includes an event notification switch 100a. If the user turns on the event notification switch 100a, when the first Bluetooth device receives the first event, it sends a notification to the second Bluetooth device. The device sends an event notification message; if the user turns off the event notification switch 100a, after the first Bluetooth device receives the first event, it does not send the event notification message to the outside.
  • the user can manage the device through a device management application (for example, Smart LifeTM ) installed on a smart terminal (for example, a mobile phone). ) to set whether to enable the device to send event notification messages to the outside world.
  • a device management application for example, Smart LifeTM
  • Smart LifeTM installed on a smart terminal (for example, a mobile phone).
  • the first Bluetooth device when it receives the first event, it can play a prompt tone associated with the first event. For example, when the mobile phone receives an incoming call event, it will play the incoming call ringtone; it may also not play the sound associated with the first event. For example, when the phone is set to silent mode, the phone will not play the ringtone even if it receives an incoming call event.
  • FIG. 2 a shows a schematic structural diagram of the mobile phone 100 .
  • the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user Identity module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone 100 .
  • the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the processor can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, so as to realize the touch function of the mobile phone 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication .
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the shooting function of the mobile phone 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the mobile phone 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 100 .
  • the mobile phone 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in handset 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile phone 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves
  • the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the mobile phone 100 realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the handset 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the mobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the mobile phone 100 may include one or N cameras 193 , where N is a positive integer greater than one.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the mobile phone 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and the like.
  • Video codecs are used to compress or decompress digital video.
  • the handset 100 may support one or more video codecs.
  • the mobile phone 100 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the mobile phone 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • the Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the mobile phone 100 by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor.
  • the instructions stored in the memory 121 may include instructions that, when executed by at least one of the processors, cause the mobile phone 100 to perform the steps performed by the mobile phone in the event notification method provided in the embodiment of the present application.
  • the mobile phone 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the mobile phone 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the mobile phone 100 may be provided with at least one microphone 170C.
  • the mobile phone 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals.
  • the mobile phone 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB connector 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the software system of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present invention take an Android system with a layered architecture as an example to illustrate the software structure of the mobile phone 100 as an example.
  • FIG. 2b is a block diagram of the software structure of the mobile phone 100 according to the embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor.
  • the communication between the layers is through the software interface.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, content provider, view system, telephony manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the mobile phone 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • Bluetooth communication method There are two types of Bluetooth communication methods, one is point-to-point communication and the other is broadcast communication.
  • the process of establishing a Bluetooth connection may include steps such as sending/confirming a connection request, and/or negotiating connection parameters (eg, connection interval).
  • connection parameters eg, connection interval
  • the two communicating parties communicate on a dedicated physical channel (with dedicated communication time slot and communication frequency). Therefore, the physical channel is also called "point-to-point Bluetooth communication channel”.
  • the number of Bluetooth connections (or peer-to-peer Bluetooth communication channels) supported by an electronic device is limited, for example, some Bluetooth headsets may only support one Bluetooth connection.
  • the communicating party is on several fixed physical channels (the physical channel is the Bluetooth broadcast channel, and each physical channel has a fixed frequency, which is determined by The Bluetooth protocol stipulates that the data is sent over the Bluetooth broadcast channel, and the other party of the communication listens on the Bluetooth broadcast channel to receive the broadcast data.
  • the party sending data is called “advertiser”, and the party receiving data is called “observer”.
  • a pair of Bluetooth devices can communicate on a Bluetooth broadcast channel before establishing a Bluetooth connection. For example, in the process of establishing a Bluetooth connection, both parties of the communication can send/confirm a connection request on the Bluetooth broadcast channel, negotiate connection parameters, and so on.
  • a Bluetooth device When a Bluetooth device communicates in a broadcast communication manner, it performs data interaction with other Bluetooth devices by sending a Bluetooth broadcast data packet (hereinafter referred to as a broadcast packet) on a Bluetooth broadcast channel.
  • a Bluetooth broadcast data packet hereinafter referred to as a broadcast packet
  • the broadcast packet needs to conform to a certain format (specified by the Bluetooth protocol), so that the content in the broadcast packet can be recognized by other devices.
  • Figure 3 shows a schematic structural diagram of a broadcast packet.
  • the broadcast packet includes a type field, a broadcast device address field, and a data field.
  • the "type" field (Adv PDU Type) is used to write the type of the broadcast packet.
  • the Bluetooth protocol specifies multiple types of broadcast packets, and different types of broadcast packets are identified by different type values. For example, when the type value is 0000, it means that the broadcast packet is a general type of broadcast packet (ADV_IND), and any Bluetooth device can use this type of data packet when sending broadcast data to the outside world; when the value of the type field is 0100 , indicating that the broadcast packet is a scan reply data packet (ADV_SCAN_RSP). When the scan device receives a broadcast message, it can use this type of data packet to send a reply message to the broadcast device.
  • ADV_IND general type of broadcast packet
  • ADV_SCAN_RSP scan reply data packet
  • the "Broadcasting device address” field (AdvA) is used to write the physical address of the broadcasting device, which can be either the public address of the broadcasting device or the random address of the broadcasting device;
  • the "Data” field (Data) is used to write business data. For example, when the mobile phone 100 sends an event notification message to the Bluetooth headset 120, the description information of the incoming call event may be written in the "data" field of the broadcast packet.
  • FIG. 3 only shows some fields in the broadcast packet, and other fields in the broadcast packet may refer to the provisions of the Bluetooth protocol, and will not be repeated.
  • the Bluetooth headset 120 establishes a Bluetooth connection with the tablet 110 , and the terminal device (eg, mobile phone 100 ) does not establish a Bluetooth connection with the Bluetooth headset 120 .
  • the terminal device receives the incoming call event E (the figure is 10086 incoming calls).
  • This embodiment is used to provide an event notification method.
  • the specific technical solution of this embodiment is described below with reference to the scene in FIG. 1a.
  • the terminal device eg, the mobile phone 100
  • receives the incoming call event E In order to prevent the user from missing an incoming call, the terminal device notifies the user of the incoming call event E through the Bluetooth headset 120 .
  • the event notification method provided by this embodiment includes the following steps:
  • the terminal device (as the first Bluetooth device) receives the incoming call event E (as the first event).
  • the terminal device is a device with a telephone function (for example, the mobile phone 100 ).
  • the terminal device implements the phone function through a call application installed on the terminal device, and the call application may be a system phone application or a third-party application (for example, WeChat TM ).
  • the "incoming call" can be a voice call or a video call; it can be an incoming call received by the system phone application, or an incoming call received by a third-party application (for example, WeChat TM , Facetime TM , etc.); It may be an incoming call received based on circuit switching (Circuit Switching, CS), or it may be an incoming call received based on VoIP.
  • CS Circuit Switching
  • the terminal device When the terminal device receives the incoming call event, it will play the incoming call ringtone to prompt the user to answer the incoming call.
  • the incoming call ringtone on the terminal device may be covered by the music sound played in the Bluetooth headset 120, so the user may not hear the incoming call ringtone, As a result, incoming calls on the terminal device will be missed.
  • the terminal device pushes the incoming call event message to the Bluetooth headset 120 to remind the user of the incoming call event through the Bluetooth headset 120 to prevent the user from missing an incoming call on the terminal device.
  • the following steps S120 to S150 will introduce the process in detail.
  • step S120 In response to receiving the incoming call event E, the terminal device queries whether there is a Bluetooth headset in a Bluetooth connection state in the local area network 150 where the terminal device is located. If it exists, step S130 is executed to further judge whether the Bluetooth headset is a user-trusted device; if not, the method ends. When the Bluetooth headset is in the Bluetooth connection state, it means that the user is using the Bluetooth headset. Therefore, this step is beneficial to ensure that the incoming call event E is notified to the user through the Bluetooth headset.
  • the terminal device can query whether there is a Bluetooth headset 120 in the Bluetooth connection state in the local area network 150 by any of the following methods:
  • Example 1 The terminal device sends a Bluetooth connection request to the Bluetooth headset 120. Since the Bluetooth headset 120 has already connected with the tablet 110, the Bluetooth headset 120 sends a reply rejecting the connection request to the mobile phone. The reply carries the reason for rejecting the connection request, such as information indicating that a connection has been established with other devices. In this way, the terminal device can know that the Bluetooth headset 120 is in the Bluetooth connection state.
  • Example 2 After the Bluetooth headset 120 establishes a Bluetooth connection with the tablet 110, it discloses its own communication status information in the form of Bluetooth broadcast, such as information indicating that the Bluetooth headset itself has established a Bluetooth connection with a specific device (eg, tablet 200). In this way, the terminal device can learn that the Bluetooth headset 120 is in the Bluetooth connection state by monitoring the Bluetooth broadcast.
  • a specific device eg, tablet 200
  • Example 3 After the Bluetooth headset 120 establishes a Bluetooth connection with the tablet 110, the tablet 110 reports the connection event to the gateway 140, the hub device in the local area network 150, so that the gateway 140 can record the communication status information of the Bluetooth headset 120: "with Tablet 110 establishes a Bluetooth connection". After receiving the incoming call event E, the terminal device sends a query request to the gateway 140 to query whether the local area network 150 has a Bluetooth headset in a Bluetooth connection state.
  • the gateway 140 After receiving the query request, the gateway 140 replies to the terminal device the device identification of the Bluetooth headset 120 (for example, the device name of the Bluetooth headset 120, the MAC address, etc.) and the communication status information of the Bluetooth headset 120: "establish a Bluetooth connection with the tablet 110" , in this way, the terminal device can know that the Bluetooth headset 120 is in the Bluetooth connection state.
  • the device identification of the Bluetooth headset 120 for example, the device name of the Bluetooth headset 120, the MAC address, etc.
  • the communication status information of the Bluetooth headset 120 "establish a Bluetooth connection with the tablet 110"
  • the terminal device may also query whether there is a Bluetooth headset in the Bluetooth connection state in the local area network 150 in other ways, which will not be described in detail.
  • step S130 The terminal device determines whether the Bluetooth headset 120 is a device trusted by the user. If the Bluetooth headset 120 is a user-trusted device, step S140 is executed to notify the Bluetooth headset 120 that the terminal device has received a message of the incoming call event E (hereinafter referred to as "incoming call time notification message” or “notification message”); if the Bluetooth headset 120 If 120 is not a user trusted device, the terminal device will not send a notification message, and the method ends. Therefore, this embodiment can avoid unnecessary information leakage, thereby improving the security of user information.
  • incoming call time notification message hereinafter referred to as "incoming call time notification message” or “notification message”
  • the following exemplarily provides a method for the terminal device to determine whether the Bluetooth headset 120 is a device trusted by the user.
  • Example 1 When the Bluetooth headset 120 is a device that has completed Bluetooth pairing with the terminal device, the terminal device considers the Bluetooth headset 120 to be a user-trusted device; otherwise, the terminal device considers that the Bluetooth headset 120 is not a user-trusted device. In this embodiment, the terminal device determines the Bluetooth headset 120 by matching the device identifier of the Bluetooth headset 120 (for example, the MAC address of the Bluetooth headset 120 obtained in step S120 ) with the device list of paired devices stored in the terminal device. For the device that has completed Bluetooth pairing with the end device.
  • the device identifier of the Bluetooth headset 120 for example, the MAC address of the Bluetooth headset 120 obtained in step S120
  • Example 2 When the Bluetooth headset 120 is a device that has completed Bluetooth pairing with the terminal device, and the Bluetooth headset 120 satisfies at least one of the following conditions, the terminal device considers the Bluetooth headset 120 to be a user-trusted device; otherwise, the terminal device considers the Bluetooth headset The 120 is not a device that users trust.
  • Condition A During the historical communication process of the terminal device, the number of times that the Bluetooth headset 120 successfully establishes a Bluetooth connection with the terminal device exceeds the set threshold M1. When the number of times that the Bluetooth headset 120 establishes a Bluetooth connection with the terminal device exceeds a certain number of times, it indicates that the Bluetooth headset 120 is a device frequently used by the user, thus indicating that the Bluetooth headset 120 is a device trusted by the user.
  • This embodiment does not limit the value of the set threshold M1, for example, the set threshold M1 may be 3 times, 10 times, or the like. It can be understood that the larger the value of the set threshold M1 is, the more beneficial it is to improve the security of information.
  • the terminal device in the historical communication process of the terminal device, after the terminal device establishes a Bluetooth connection with the Bluetooth headset 120 , the terminal device records the number of times that the terminal device establishes the Bluetooth connection with the Bluetooth headset 120 . By comparing the recorded times with the set threshold M1, the terminal device determines that the number of times it establishes a Bluetooth connection with the Bluetooth headset 120 is greater than the set threshold M1. Therefore, the Bluetooth headset 120 satisfies the condition A.
  • the Bluetooth headset 120 is designated by the user as a legitimate device to receive the "incoming call event notification message". After the user specifies the validity of the Bluetooth headset 120, it means that the user confirms that the Bluetooth headset 120 is a trusted device.
  • Figures 5 and 6 illustrate exemplary methods for a user to designate a device as a legitimate device to receive an "incoming call event notification message".
  • Figure 5(a) is the Bluetooth setting interface in the terminal device setting application.
  • area A of the interface displays the device list of paired Bluetooth devices
  • area B displays the device list of available Bluetooth devices.
  • the terminal device pops up a selection box 160 as shown in Figure 5(b).
  • the terminal device adds the device identification (eg, MAC address) of the device to the trust list, so as to designate the device (device “HUAWEI FreeBuds Pro”) as receiving the “Incoming Call Event” Notify message” legitimate device.
  • the device identification eg, MAC address
  • FIG. 6( a ) is the same interface as FIG. 5( a ), that is, the meanings of area A and area B in FIG. 6( a ) are the same as those of FIG. 5( a ), and will not be repeated.
  • the terminal device pops up a pairing prompt box 170 as shown in FIG. 6(b).
  • the terminal device pops up a selection box 180 as shown in Fig. 6(c). Same as FIG.
  • the terminal device when the user clicks the “Allow” button in the selection box 180, the terminal device adds the device identification (eg, MAC address) of the device to the trust list, so as to add the device (device “S3”) to the trust list Designated as a legitimate device to receive Incoming Call Event Notification Messages.
  • the device identification eg, MAC address
  • the terminal device when the user does not call up the interfaces shown in Fig. 5(b) and Fig. 6(c), or the user clicks the "Reject” or “Close” button on the prompt box 160 and the prompt box 180, the terminal device will not The corresponding device is added to the trusted list. That is to say, the default setting of the terminal device is not to designate the device as a legitimate device to receive "incoming call event notification messages", and to designate the device as a legitimate device to receive "incoming call event notification messages" only with the explicit permission of the user , so as to further ensure the security of information. In addition, the terminal device can also encrypt the trust list to further ensure the security of the information.
  • the terminal device determines that the Bluetooth headset 120 is a legitimate device designated by the user to receive the "incoming call event notification message" by matching the device identifier of the Bluetooth headset 120 with the trust list. Therefore, the Bluetooth headset 120 satisfies the condition B.
  • Example 2 the reason for adding judgment on condition A and condition B is: in some scenarios, the user may borrow other people's Bluetooth headset 120, at this time, the user needs to connect other people's Bluetooth headset with his own device (for example, terminal device) to pair. Therefore, if the Bluetooth headset 120 is determined to be a user-trusted device only based on the condition of "paired", it is still possible to send personal information to the Bluetooth headsets of other users. For this reason, in Example 2, the judgment of condition A and/or condition B is added to further ensure that the Bluetooth headset 120 is a device trusted by the user.
  • S140 The terminal device sends an incoming call event notification message (as the first message) on the Bluetooth broadcast channel to notify the Bluetooth headset 120 (as the second Bluetooth device) of the "incoming call event E".
  • the terminal device sends the incoming call event notification message by sending the broadcast packet A on the Bluetooth broadcast channel.
  • the description information of the incoming call event E is written in the broadcast packet A, so that when the Bluetooth headset 120 receives the broadcast packet A, the incoming call event E can be known.
  • the description information of the event to be notified includes one or more of the following:
  • Device identification information of the first Bluetooth device for example, the device name (for example, the most handsome boy), the MAC address of the device (for example, the MAC address of the Bluetooth chip of the mobile phone), and the serial number of the device in the local area network (for example, Node 001);
  • Device type information of the first Bluetooth device for example, a mobile phone, a tablet, a car device, a smart speaker, a smart home appliance (eg, a washing machine, a microwave oven, a smart door lock, etc.), and a smart ornament (eg, an alarm clock, a thermometer, etc.).
  • a mobile phone for example, a mobile phone, a tablet, a car device, a smart speaker, a smart home appliance (eg, a washing machine, a microwave oven, a smart door lock, etc.), and a smart ornament (eg, an alarm clock, a thermometer, etc.).
  • a smart home appliance eg, a washing machine, a microwave oven, a smart door lock, etc.
  • a smart ornament eg, an alarm clock, a thermometer, etc.
  • Event time information the time when the event to be notified occurs, for example, the time "12:08" when the terminal device receives the incoming call event E.
  • Event type information for example, an incoming call event, a schedule reminder event, a doorbell time, a task completion event (for example, the washing program of the washing machine is completed, the timer is completed), and the like.
  • broadcast packet A is given in FIG. 7 .
  • the broadcast packet A is a general type of broadcast packet (ADV_IND), and the description information of the incoming call event E is written in the "data" field, which specifically includes: the device name of the terminal device "the most beautiful boy", the terminal device receives an incoming call Time "12:08" of event E and event type "Incoming call event".
  • the event description information in the broadcast packet A may be more or less than the above-mentioned information.
  • the Bluetooth headset 120 receives the incoming call event notification message, and determines whether it is the target receiving device of the incoming call event notification message.
  • the Bluetooth headset 120 scans the Bluetooth broadcast channel to receive an incoming call event notification message (ie, broadcast packet A) sent by the terminal device. After receiving the incoming call event notification message, the Bluetooth headset 120 further determines whether it is the target receiving device of the incoming call event notification message.
  • an incoming call event notification message ie, broadcast packet A
  • the device identifier of the Bluetooth headset 120 (specifically, the MAC address of the Bluetooth headset 120 ) is written in the “data” field of the broadcast packet A, which is the transmission carrier of the incoming call event notification message, and the Bluetooth headset 120 Determine whether it is the target receiving device of the incoming call event notification message according to the MAC address in the broadcast packet A. Specifically, when the MAC address of the Bluetooth headset 120 is the same as the MAC address in the broadcast packet A, the Bluetooth headset 120 determines that it is the target receiving device of the incoming call event notification message; otherwise, the Bluetooth headset 120 determines that it is not the target of the incoming call event notification message receiving device.
  • step S160 is further performed to respond to the incoming call event notification message (for example, play the prompt audio for prompting the incoming call event E); otherwise, the Bluetooth headset 120 Ignore incoming call event notification messages to avoid false disclosure of user information.
  • the terminal device will prepare multiple broadcast packets A in this way, and the "data" field of each broadcast packet A is written in The MAC address of one of the second Bluetooth devices, and the multiple broadcast packets A are sent in sequence, but the present application is not limited to this.
  • the broadcast packet A may include multiple MAC addresses of the second Bluetooth device that meet the conditions described in steps S120 and S130 (that is, the "data" field of the broadcast packet A includes multiple MAC addresses).
  • the terminal device can select one of them as the target receiving device of the broadcast packet A (as the second Bluetooth device) device), and write the MAC address of the target receiving device in the "Data" field of the broadcast packet A.
  • This embodiment does not limit the method for the terminal device to select a target receiving device from a plurality of available Bluetooth devices, and several examples are given below.
  • Example 1 The terminal device selects the nearest device among multiple available Bluetooth devices as the target receiving device. Specifically, the terminal device can obtain the distance between the terminal device and multiple available Bluetooth devices through the Bluetooth proximity sensing technology, and select the device with the smallest distance among them as the target receiving device.
  • Example 2 The terminal device selects the device that has established the most Bluetooth connections with the terminal device from among multiple available Bluetooth devices as the target receiving device. It can be understood that the device that establishes the most Bluetooth connections with the terminal device should be the device most commonly used by the user. In this example, the device is used as the target receiving device, which is beneficial to ensure the user who is notified of the incoming call event E.
  • Example 3 The terminal device selects the device with the best compatibility with the terminal device among multiple available Bluetooth devices as the target receiving device. For example, the device belonging to the same brand (for example, HUAWEI TM ) as the terminal device is used as the target receiving device. equipment. Specifically, the terminal device may also store the usage priorities of multiple available Bluetooth devices (for example, the usage priorities determined according to the compatibility of each available Bluetooth device and the terminal device). When the terminal device receives the incoming call event E , and select the device with the highest priority from the multiple available second Bluetooth devices as the target receiving device.
  • the device belonging to the same brand for example, HUAWEI TM
  • the terminal device may also store the usage priorities of multiple available Bluetooth devices (for example, the usage priorities determined according to the compatibility of each available Bluetooth device and the terminal device).
  • the terminal device performs a response action in response to the incoming call event notification message.
  • the process of performing the response action by the Bluetooth headset 120 includes:
  • S161 The Bluetooth headset 120 sends a response message to the terminal device.
  • the Bluetooth headset 120 sends a response message to the terminal device by sending a broadcast packet B to the terminal device on the Bluetooth broadcast channel.
  • broadcast packet B An example of broadcast packet B is given in FIG. 8 .
  • the Bluetooth headset 120 sends a response message to the terminal device by scanning the reply data packet. Therefore, the value of the “Type” field (Adv PDU Type) of the broadcast packet B is 0100; ) is the MAC address of the terminal device (the MAC address can be parsed from the broadcast packet A sent by the terminal device), so the broadcast packet B is the data packet replied to the terminal device; the "data" field of the broadcast packet B includes The acknowledgment message "NOTICE ACKNOWLEDGE", when the terminal device receives the broadcast packet B, can determine that the Bluetooth headset 120 has received the broadcast packet A.
  • FIG. 8 is an exemplary illustration of broadcast packet B, and other modifications may be made by those skilled in the art.
  • the "Data" field of the broadcast packet B not only includes “NOTICE ACKNOWLEDGE", but may also include the content in the "Data" field of the broadcast packet A. In this way, the terminal device can more accurately confirm that the broadcast packet B is a reply to the broadcast packet A.
  • the Bluetooth headset 120 plays a prompt audio, and the prompt audio is used to prompt the user of "call event E". Specifically, referring to FIG. 9 , the process of playing the prompt audio by the Bluetooth headset 120 includes the following steps:
  • S162a The Bluetooth headset 120 determines whether its current audio playback service is a call service.
  • the Bluetooth protocol supports two types of audio playback services, namely call service and communication service.
  • the tablet 110 When the tablet 110 outputs audio to the Bluetooth headset 120, it will provide the Bluetooth headset 120 with the service identifier of the audio playback service.
  • the service identifier of the call service is MODE_IN_CALL
  • the service identifier of the communication service is MODE_IN_COMMUNICATION
  • the Bluetooth headset 120 sends the service identifier according to the tablet 110.
  • the service identifier of the current audio playback service can determine the service type of the current audio playback service.
  • the Bluetooth headset 120 When the current audio playback service of the Bluetooth headset 120 is a call service, it means that the user is using the Bluetooth headset 120 to make a real-time call with other users. If the user's real-time call is interrupted, there will be a bad experience. Therefore, in this scenario, the Bluetooth headset 120 does not play the prompt audio for the time being, but executes steps S162e to S162g to delay playing the prompt audio.
  • the Bluetooth headset 120 When the current audio playback service of the Bluetooth headset 120 is other than the call service (eg, communication service, no audio is played), the Bluetooth headset 120 performs steps S162b to S162d to play the prompt audio at the current moment.
  • the call service e.g, communication service, no audio is played
  • S162b The Bluetooth headset 120 sends a playback pause instruction to the tablet 110, so that the tablet 110 pauses the current audio playback service.
  • the Bluetooth headset 120 sends a pause play instruction to the tablet 110 through the point-to-point Bluetooth communication channel between the Bluetooth headset 120 and the tablet 110 .
  • the tablet 110 suspends the currently running audio playback application (eg, Youku Video TM , Kuwo Music TM ) to suspend the output of audio signals to the Bluetooth headset 120 .
  • the Bluetooth headset 120 may omit this step.
  • S162c The Bluetooth headset 120 plays a prompt audio (as the first audio), and the prompt audio is used to prompt the user of "call event E".
  • the Bluetooth headset 120 After suspending the current audio playing service, the Bluetooth headset 120 starts playing the prompt audio.
  • the prompt audio carries one or more items of event description information.
  • the prompt audio is audio preset in the Bluetooth headset 120 .
  • a plurality of prompt audios are preset in the Bluetooth headset 120, and different prompt audios correspond to different event types.
  • the Bluetooth headset 120 After receiving the broadcast packet A, the Bluetooth headset 120 parses the broadcast packet A to determine the event type information carried in the data packet A. Furthermore, the Bluetooth headset 120 plays the prompt audio corresponding to the event type information carried by the data packet A.
  • the Bluetooth headset 120 has a preset voice library. After receiving the broadcast packet A, the Bluetooth headset 120 parses and obtains the event description information contained in the broadcast packet A, and converts the text of the event description information into a prompt voice according to a preset voice library.
  • the content of the prompt audio is not limited in this embodiment, and some examples are given below.
  • the prompt audio carries event type information. For example, when the event type is an incoming call event, the prompt audio is the preset phone ringtone; when the event type is the timer task completion, the preset prompt audio is played, or the prompt tone including the voice content "timer is up” is played. ;
  • Example 2 The prompt audio carries device identification information and event type information. For example, referring to Figure 7, when the device is identified as “the most beautiful boy” and the event type is "incoming call event", the prompt audio includes the voice content "the most beautiful boy has received an incoming call, please deal with it in time”;
  • Example 3 The prompt audio carries the device type information. For example, when the device type is "laptop”, the prompt audio includes the voice content "new message on laptop, please check”.
  • the prompt audio carries one or more pieces of event description information, but the application is not limited to this.
  • the prompt audio may be formatted audio unrelated to the event description information (for example, the prompt audio is a formatted voice "please check the new message"); for another example, in order to improve user experience, the prompt audio may also have interesting audio (eg, personality audio, funny audio), etc.
  • the prompt audio played by the Bluetooth headset 120 may be audio downloaded from the terminal device side.
  • S162d The Bluetooth headset 120 sends a playback resume instruction to the tablet 110, so that the tablet 110 resumes the audio playback service.
  • the Bluetooth headset 120 After playing the prompt audio, the Bluetooth headset 120 sends an instruction to resume playing to the tablet 110 . After the tablet 110 receives the instruction, the audio playback application on the tablet 110 (the application suspended in step S162b ) resumes outputting audio signals to the Bluetooth headset 120 .
  • S162e The Bluetooth headset 120 adds a prompt audio playback task to the task queue, so as to play the prompt audio after the current call service is completed.
  • S162f The Bluetooth headset 120 receives a signaling that the call ends.
  • the tablet 110 After the call service on the tablet 110 ends (for example, after the user hangs up the current call on the tablet 110), the tablet 110 sends a call end signaling to the headset, so that the terminal device terminal device receives the call end signaling.
  • S162g The Bluetooth headset 120 plays the prompt audio.
  • the Bluetooth headset 120 After receiving the signaling of the end of the call, the Bluetooth headset 120 starts to play the prompt audio.
  • the content of the prompt audio reference may be made to the description in step S162c, and details are not repeated here.
  • the prompt audio is played with a delay (that is, the prompt audio is played after the end of the call service)
  • the time information of the incoming call event E can be added to the prompt audio, so that the user is informed of the incoming call event E.
  • the prompt audio includes a voice "the most beautiful boy received a call at 12:08, please deal with it in time".
  • step S162a if the Bluetooth headset 120 judges that its current audio playback service is a call service, it can first play a shorter audio (as the second audio, shorter than the prompt audio in step S162c or step S162g), for example , "Di Di Di Di" sound to alert the user that there is a new event. After the current call service ends, the prompt audio determined in step S162g is played again. In this way, it can not only play a certain prompting role, but also avoid affecting the normal conversation of the user.
  • a shorter audio as the second audio, shorter than the prompt audio in step S162c or step S162g
  • the prompt audio determined in step S162g is played again. In this way, it can not only play a certain prompting role, but also avoid affecting the normal conversation of the user.
  • this embodiment provides an event notification method.
  • an incoming call event E is received on the terminal device
  • an incoming call event notification message is sent to the Bluetooth headset 120 through a Bluetooth broadcast channel.
  • the Bluetooth headset 120 plays a prompt audio to prompt the user of "incoming call event E", so as to prevent the user from missing an incoming call.
  • the terminal device sends an incoming call event notification message to the Bluetooth headset 120 through the Bluetooth broadcast channel, so that a Bluetooth connection does not need to be established between the terminal device and the Bluetooth headset 120, so it can be applied to various Bluetooth devices (for example, only one Bluetooth connection is supported) channel Bluetooth headset), with better adaptability.
  • the terminal device sends an incoming call event notification message to the Bluetooth headset 120 that meets the preset condition, where the preset condition includes the conditions described in step S120 (that is, the Bluetooth headset 120 is a headset in a Bluetooth connection state), As well as the conditions described in step S130 (that is, the Bluetooth headset 120 is a device trusted by the user), the present application is not limited to this.
  • the preset condition may only include one of the conditions described in step S120 and the condition described in step S130; or, the preset condition may not include additional conditions, for example, the terminal device sends an incoming call event to any Bluetooth device notification message.
  • the Bluetooth headset 120 prompts the user "incoming call event E" by means other than "playing prompt audio".
  • the Bluetooth headset 120 is provided with a flashlight or a vibration motor.
  • the Bluetooth headset 120 receives the incoming call event notification message, it prompts the user "calling event E" by flashing the flashlight or vibrating the motor.
  • the terminal device determines in step S130 that the Bluetooth headset 120 is a user-trusted device, it provides the Bluetooth headset 120 with a key B, where the key B matches the key A stored by the terminal device itself right key.
  • the key A is used to encrypt the MAC address of the Bluetooth headset 120 in the broadcast packet A and/or the description information of the incoming call event E. Since only the Bluetooth headset 120 has the key B paired with the key A, only the Bluetooth headset 120 can decrypt the valid information in the broadcast package A, and other devices cannot know the valid information in the broadcast package A, so that they can decrypt the valid information in the broadcast package A. To further ensure the security of information.
  • the execution order of some steps may be changed, for example, the execution order of steps S120 and S130 may be changed; or some steps may be omitted, for example, step S161 and the like may be omitted.
  • this embodiment improves the actions on the side of the terminal device, specifically, adding a message retransmission mechanism of the terminal device.
  • the terminal device after sending the incoming call event notification message, the terminal device resends the incoming call event notification message if it does not receive a response message from the Bluetooth headset 120 within the set time. This embodiment is beneficial to ensure that the Bluetooth headset 120 does not miss the notification message from the terminal device.
  • this embodiment includes the following steps:
  • S210 The terminal device receives the incoming call event E.
  • step S220 In response to receiving the incoming call event E, the terminal device queries whether there is a Bluetooth headset 120 in a Bluetooth connection state in the local area network where the terminal device is located. If it exists, step S230 is executed to further judge whether the Bluetooth headset 120 is a user-trusted device; if not, the method ends.
  • step S230 The terminal device determines whether the Bluetooth headset 120 is a device trusted by the user. If the Bluetooth headset 120 is a user-trusted device, step S240 is executed to notify the Bluetooth headset 120 that the terminal device has received the incoming call event E; if the Bluetooth headset 120 is not a user-trusted device, the terminal device will not send a notification message. method ends.
  • the terminal device sends an incoming call event notification message on the Bluetooth broadcast channel to notify the Bluetooth headset 120 of the "incoming call event E".
  • the terminal device records the number of times i that the terminal device sends an incoming call event notification message, and the terminal device adds 1 to the number of times i after each sending an incoming call event notification message.
  • Steps S210 to S240 are substantially the same as steps S110 to S140 in the first embodiment. Therefore, the details not described in the steps may refer to the description in the first embodiment, and will not be repeated.
  • the terminal device starts a timer.
  • the terminal device starts a timer program after sending the broadcast message.
  • This embodiment does not limit the time duration of the timer, for example, 3s, 7s, and the like.
  • step S260 The terminal device determines whether it has received a response message from the Bluetooth headset 120 before the timer expires. If so, the terminal device executes step S270 to close the timer; if not, the terminal device executes step S280.
  • S270 The terminal device closes the timer.
  • the terminal device terminates the timer program started in step S250, and the method ends.
  • the terminal device determines whether the number of times the incoming call event notification message is sent reaches the set threshold M2. If it is reached, the terminal device does not re-send the notification message, and the method ends; if not, the terminal device returns to step S240 to re-send the notification message.
  • This embodiment does not limit the specific value of the set threshold value M2.
  • the set threshold value M2 may be set to 2 times, 5 times, or the like.
  • the terminal device performs a limited number of message retransmissions.
  • the number of times the terminal device sends the notification message reaches the set threshold M2, even if no response message from the Bluetooth headset 120 is received, the notification message will not be resent, thereby saving energy consumption of the terminal device.
  • this embodiment is beneficial to ensure that the Bluetooth headset 120 does not miss the notification message from the terminal device.
  • the Bluetooth system 200 includes a Bluetooth device 210 (eg, a mobile phone) and a Bluetooth device 220 (eg, a Bluetooth headset).
  • a Bluetooth device 210 eg, a mobile phone
  • a Bluetooth device 220 eg, a Bluetooth headset
  • the Bluetooth device 210 includes:
  • System framework layer 211 for receiving incoming call events, and notifying the phone application 212 of the incoming incoming call events; and, determining that there is a Bluetooth device 220 in a Bluetooth connection state and paired with the Bluetooth device 210 in the local area network; and, generating an incoming call event notification message, and send the incoming call event notification message through the Bluetooth module 213 .
  • the functions performed by the system framework layer 211 may correspond to steps S110 to S140 in FIG. 4 and steps S210 to S280 in FIG. 10 .
  • Phone application 212 used to generate an incoming call interface (eg, the interface displayed by the mobile phone 100 in FIG. 1a).
  • Bluetooth module 213 used to send an incoming call event notification message to the Bluetooth device 220 through a Bluetooth broadcast channel.
  • the functions performed by the Bluetooth module 213 may correspond to step S140 in FIG. 4 and step S240 in FIG. 10 .
  • Bluetooth device 220 includes:
  • Bluetooth module 221 used for receiving incoming call event notification messages on the Bluetooth broadcast channel; and determining whether the Bluetooth device 220 is the target receiving device of the incoming call event notification message; and, sending a response message to the Bluetooth device 210 on the Bluetooth broadcast channel.
  • the functions performed by the Bluetooth module 221 may correspond to steps S150 and S161 in FIG. 4 .
  • Audio playing module 222 used to play prompt audio.
  • the functions performed by the audio playback module 222 may correspond to step S162 in FIG. 4 and steps S162a ⁇ S162g in FIG. 9 .
  • Electronic device 400 may include one or more processors 401 coupled to controller hub 403 .
  • the controller hub 403 is connected to 406 via a multidrop bus such as a Front Side Bus (FSB), a point-to-point interface such as a QuickPath Interconnect (QPI), or the like
  • the processor 401 communicates.
  • Processor 401 executes instructions that control general types of data processing operations.
  • the controller hub 403 includes, but is not limited to, a Graphics & Memory Controller Hub (GMCH) (not shown) and an Input/Output Hub (IOH) (which may be on a separate chip) (not shown), where the GMCH includes the memory and graphics controller and is coupled to the IOH.
  • GMCH Graphics & Memory Controller Hub
  • IOH Input/Output Hub
  • Electronic device 400 may also include a coprocessor 402 and memory 404 coupled to controller hub 403 .
  • a coprocessor 402 and memory 404 coupled to controller hub 403 .
  • one or both of the memory and GMCH may be integrated within the processor (as described in this application), with the memory 404 and coprocessor 402 coupled directly to the processor 401 and to the controller hub 403, the controller hub 403 and IOH are in a single chip.
  • the memory 404 may be, for example, Dynamic Random Access Memory (DRAM), Phase Change Memory (PCM), or a combination of the two.
  • Memory 404 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • the computer-readable storage medium stores instructions, in particular temporary and permanent copies of the instructions.
  • the electronic device 400 shown in FIG. 12 may be implemented as a first Bluetooth device and a second Bluetooth device, respectively.
  • the instructions stored in the memory 404 may include: when executed by at least one of the processors, causing the first Bluetooth device to implement the methods shown in FIG. 4 , FIG. 9 , and FIG. 10 Instructions for the steps performed by the terminal device in .
  • the instructions stored in the memory 404 may include: when executed by at least one of the processors, causing the second Bluetooth device to implement the methods shown in FIG. 4 , FIG. 9 , and FIG. 10 Instructions for the steps implemented by the Bluetooth headset.
  • the coprocessor 402 is a special purpose processor, such as, for example, a high-throughput Many Integrated Core (MIC) processor, a network or communications processor, a compression engine, a graphics processor, a graphics processing unit General-purpose computing on graphics processing units (GPGPU), or embedded processors, etc.
  • MIC Many Integrated Core
  • GPGPU General-purpose computing on graphics processing units
  • embedded processors etc.
  • Optional properties of the coprocessor 402 are shown in Figure 12 with dashed lines.
  • the electronic device 400 may further include a network interface (Network Interface Controller, NIC) 406 .
  • the network interface 406 may include a transceiver for providing a radio interface for the electronic device 400 to communicate with any other suitable devices (eg, front-end modules, antennas, etc.).
  • network interface 406 may be integrated with other components of electronic device 400 .
  • the network interface 406 can implement the functions of the communication unit in the above-mentioned embodiments.
  • the electronic device 400 may further include an input/output (I/O) device 405 .
  • I/O 405 may include: a user interface designed to enable a user to interact with electronic device 400 ; a peripheral component interface designed to enable peripheral components to also interact with electronic device 400 ; and/or sensors designed to determine association with electronic device 400 environmental conditions and/or location information.
  • Figure 12 is exemplary only. That is, although FIG. 12 shows that the electronic device 400 includes multiple devices such as the processor 401, the controller center 403, the memory 404, etc., in practical applications, the device using each method of the present application may only include the electronic device 400 Some of the devices, for example, may include only the processor 401 and the network interface 406 . The properties of the optional device in Figure 12 are shown in dashed lines.
  • SoC 500 includes: interconnect unit 550 coupled to processor 510 ; system proxy unit 580 ; bus controller unit 590 ; integrated memory controller unit 540 ; , which may include integrated graphics logic, image processor, audio processor and video processor; Static Random Access Memory (SRAM) unit 530; Direct Memory Access (Direct Memory Access, DMA) unit 560.
  • coprocessor 520 comprises a special purpose processor, such as, for example, a network or communications processor, a compression engine, general-purpose computing on graphics processing units (GPGPU), a high-throughput MIC processor, or embedded processor, etc.
  • Static random access memory unit 530 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • the computer-readable storage medium stores instructions, in particular temporary and permanent copies of the instructions.
  • the SoC shown in FIG. 13 may be provided in the first Bluetooth device and the second Bluetooth device, respectively.
  • the static random access memory unit 530 stores instructions, the instructions may include: when executed by at least one of the processors, causing the first Bluetooth device to implement as shown in FIG. 4 and FIG. 9 . Instructions for steps implemented by the terminal device in the method shown in FIG. 10 .
  • the static random access memory unit 530 stores instructions, the instructions may include: when executed by at least one of the processors, causing the second Bluetooth device to implement as shown in FIG. 4 and FIG. 9 . Instructions for steps implemented by the Bluetooth headset in the method shown in FIG. 10 .
  • Program code may be applied to input instructions to perform the functions described herein and to generate output information.
  • the output information can be applied to one or more output devices in a known manner.
  • a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
  • DSP Digital Signal Processor
  • ASIC application specific integrated circuit
  • the program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system.
  • the program code may also be implemented in assembly or machine language, if desired.
  • the mechanisms described herein are not limited to the scope of any particular programming language. In either case, the language may be a compiled language or an interpreted language.
  • IP Intelligent Property
  • an instruction converter may be used to convert instructions from a source instruction set to a target instruction set.
  • an instruction translator may transform (e.g., using static binary transform, dynamic binary transform including dynamic compilation), warp, emulate, or otherwise convert an instruction into one or more other instructions to be processed by the core.
  • Instruction translators can be implemented in software, hardware, firmware, or a combination thereof.
  • the instruction translator may be on-processor, off-processor, or partially on-processor and partially off-processor.

Abstract

The present application provides an event notification method, a Bluetooth device and a Bluetooth system. The Bluetooth system comprises a first Bluetooth device and a second Bluetooth device having no Bluetooth connection established therebetween, wherein the first Bluetooth device is configured to receive a first event, and in response to receiving the first event, send a first message to the second Bluetooth device by means of a Bluetooth broadcast channel, the first message being used to notify the second Bluetooth device of the first event; and the second Bluetooth device is configured to receive the first message on the Bluetooth broadcast channel, and perform a response action in response to the first message, the response action at least comprising an action for prompting the first event to a user. The present application avoids a user missing a first event.

Description

事件通知方法、蓝牙设备以及蓝牙系统Event notification method, Bluetooth device, and Bluetooth system
本申请要求2021年02月22日提交中国专利局、申请号为202110198696.3、申请名称为“事件通知方法、蓝牙设备以及蓝牙系统”的中国专利申请的优先权,上述申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on February 22, 2021 with the application number 202110198696.3 and the application title is "Event Notification Method, Bluetooth Device and Bluetooth System", the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及蓝牙通信技术领域,尤其涉及一种事件通知方法、蓝牙设备、蓝牙系统以及计算机可读存储介质。The present application relates to the technical field of Bluetooth communication, and in particular, to an event notification method, a Bluetooth device, a Bluetooth system, and a computer-readable storage medium.
背景技术Background technique
2000年,出现了第一款基于蓝牙技术的通话耳机(也就是大家熟知的“蓝牙耳机”)。蓝牙耳机自面世以来,极大的便利了人们的日常生活。例如,当用户将蓝牙耳机与平板进行蓝牙连接后,用户可以通过蓝牙耳机播放/暂停平板上的音乐,或者,接听/挂断平板上的来电等。In 2000, the first Bluetooth-based phone headset (also known as "Bluetooth headset") appeared. Since the introduction of Bluetooth headsets, it has greatly facilitated people's daily life. For example, after the user connects the Bluetooth headset to the tablet, the user can play/pause the music on the tablet through the Bluetooth headset, or answer/hang up an incoming call on the tablet.
但是,当用户在使用蓝牙耳机时,蓝牙耳机的声音可能会覆盖环境中的其他声音,这会使得用户遗漏一些消息。例如,当用户正在使用蓝牙耳机收听平板上的音乐时,如果用户的手机接收到来电,手机上的来电铃声可能会被蓝牙耳机中的声音遮盖,使得用户漏接该来电。However, when a user is using a Bluetooth headset, the sound of the Bluetooth headset may cover other sounds in the environment, which may cause the user to miss some messages. For example, when a user is using a Bluetooth headset to listen to music on a tablet, if the user's mobile phone receives an incoming call, the ringtone on the mobile phone may be obscured by the sound in the Bluetooth headset, causing the user to miss the call.
发明内容SUMMARY OF THE INVENTION
本申请的一些实施方式提供了一种事件通知方法、蓝牙设备、蓝牙系统以及计算机可读存储介质,以下从多个方面介绍本申请,以下多个方面的实施方式和有益效果可互相参考。Some embodiments of the present application provide an event notification method, a Bluetooth device, a Bluetooth system, and a computer-readable storage medium. The present application is described below from various aspects, and the embodiments and beneficial effects of the following aspects can be referred to each other.
第一方面,本申请实施方式提供了一种蓝牙系统,蓝牙系统包括相互之间未建立蓝牙连接的第一蓝牙设备和第二蓝牙设备,其中:第一蓝牙设备配置为,接收到第一事件;并且,响应于接收到第一事件,通过蓝牙广播信道向第二蓝牙设备发送第一消息,第一消息用于向第二蓝牙设备通知第一事件;第二蓝牙设备配置为,在蓝牙广播信道上接收第一消息,并执行响应于第一消息的响应动作,其中,响应动作至少包括用于向用户提示第一事件的动作。In a first aspect, an embodiment of the present application provides a Bluetooth system, the Bluetooth system includes a first Bluetooth device and a second Bluetooth device that do not establish a Bluetooth connection with each other, wherein: the first Bluetooth device is configured to receive a first event. and, in response to receiving the first event, send a first message to the second Bluetooth device through the Bluetooth broadcast channel, where the first message is used to notify the second Bluetooth device of the first event; the second Bluetooth device is configured to broadcast on the Bluetooth The first message is received on the channel, and a response action in response to the first message is performed, wherein the response action at least includes an action for prompting the user of the first event.
根据本申请实施方式,当第一蓝牙设备接收到第一事件时,可以通过第二蓝牙设备将第一事件通知用户,以避免用户遗漏该第一事件。另外,第一蓝牙通过蓝牙广播信道向第二蓝牙设备发送事件通知消息,第一蓝牙设备和第二蓝牙设备之间无需建立蓝牙连接,因此可以适用各种蓝牙设备(例如,仅支持一条蓝牙连接信道的设备),具有较好的适应性。According to the embodiment of the present application, when the first Bluetooth device receives the first event, the second Bluetooth device may notify the user of the first event, so as to prevent the user from missing the first event. In addition, the first bluetooth sends an event notification message to the second bluetooth device through the bluetooth broadcast channel, and there is no need to establish a bluetooth connection between the first bluetooth device and the second bluetooth device, so it can be applied to various bluetooth devices (for example, only one bluetooth connection is supported) channel equipment), with better adaptability.
在一些实施方式中,第一蓝牙设备向符合预设条件的的第二蓝牙设备发送事件通知消息。其中,预设条件可以包括特定条件,例如,预设条件为:第二蓝牙设备已与第一蓝牙设备之外的其他蓝牙设备建立蓝牙连接;预设条件也可以不包括额外条件,例如,第二蓝牙设备为任意设备。In some embodiments, the first Bluetooth device sends an event notification message to a second Bluetooth device that meets a preset condition. The preset conditions may include specific conditions, for example, the preset conditions are: the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device; the preset conditions may also not include additional conditions, for example, the first Bluetooth device 2. The Bluetooth device is any device.
在一些实施方式中,通过蓝牙广播信道向第二蓝牙设备发送第一消息,包括:第一蓝牙设备基于确定第二蓝牙设备已与第一蓝牙设备之外的其他蓝牙设备建立蓝牙连接,向第二蓝牙设备发送第一消息。In some embodiments, sending the first message to the second Bluetooth device through the Bluetooth broadcast channel includes: the first Bluetooth device, based on determining that the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device, sending the first message to the second Bluetooth device. Two Bluetooth devices send the first message.
根据本申请实施方式,当第二蓝牙设备以与其他蓝牙设备建立蓝牙连接时,说明用户目前正在使用第二蓝牙设备,因此,可以进一步保证将第一消息通知至用户。According to the embodiment of the present application, when the second Bluetooth device establishes a Bluetooth connection with other Bluetooth devices, it indicates that the user is currently using the second Bluetooth device, and therefore, it can be further ensured that the first message is notified to the user.
在一些实施方式中,提示动作包括播放第一事件的提示音频。In some implementations, the prompt action includes playing prompt audio for the first event.
在一些实施方式中,第一蓝牙设备发送的第一消息中包括第一事件的描述信息;以及,第二蓝牙设备播放的提示音频中包括第一音频,提示音频中携带有描述信息。In some embodiments, the first message sent by the first Bluetooth device includes description information of the first event; and the prompt audio played by the second Bluetooth device includes the first audio, and the prompt audio carries the description information.
在一些实施方式中,第二蓝牙设备播放提示音频,包括:第二蓝牙设备确定其当前播放业务的业务类型;当第二蓝牙设备确定其当前播放业务的业务类型为通话业务时,所第二蓝牙设备在当前播放业务结束之后播放第一音频;当蓝牙设备确定其当前播放业务的业务类型为通话业务之外的其他类型时,第二蓝牙设备在当前时刻播放第一音频。In some embodiments, playing the prompt audio by the second Bluetooth device includes: the second Bluetooth device determines the service type of its currently playing service; when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device determines The Bluetooth device plays the first audio after the current playback service ends; when the Bluetooth device determines that the service type of the current playback service is other than the call service, the second Bluetooth device plays the first audio at the current moment.
当第二蓝牙设备的当前音频播放业务是通话业务时,说明用户正在使用第二蓝牙设备与其他用户进行实时通话。如果用户的实时通话被中断,将会产生的不良的体验。因此,本申请实施方式中,第二蓝牙设备暂不播放第一音频,而是待通话业务结束后再播放第一音频。When the current audio playback service of the second Bluetooth device is a call service, it means that the user is using the second Bluetooth device to conduct a real-time call with other users. If the user's real-time call is interrupted, there will be a bad experience. Therefore, in the embodiment of the present application, the second Bluetooth device does not play the first audio for the time being, but plays the first audio after the call service ends.
在一些实施方式中,提示音频包括第二音频,第二音频的时长短于第一音频;并且,当第二蓝牙设备确定其当前播放业务的业务类型为通话业务时,第二蓝牙设备在当前时刻播放第二音频,并在当前播放业务结束之后播放第一音频。In some embodiments, the prompt audio includes a second audio, and the duration of the second audio is shorter than that of the first audio; and, when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device is currently playing The second audio is played at all times, and the first audio is played after the current playing service ends.
根据本申的实施方式,不仅可以起到一定的提示作用,也可以避免影响用户的正常通话。According to the embodiments of the present application, it can not only play a certain prompting role, but also avoid affecting the normal conversation of the user.
在一些实施方式中,第一事件的描述信息包括第一设备的设备标识信息、第一设备的设备类型信息、第一事件的事件类型信息和/或第一设备接收到第一事件的时间信息。In some embodiments, the description information of the first event includes device identification information of the first device, device type information of the first device, event type information of the first event, and/or time information when the first device receives the first event .
在一些实施方式中,第二蓝牙设备执行响应动作进一步包括:向第一蓝牙设备发送对第一消息的应答消息。这样,有利于第一蓝牙设备确认第二蓝牙设备接收到第一消息。In some embodiments, performing the response action by the second Bluetooth device further comprises: sending a response message to the first message to the first Bluetooth device. In this way, it is beneficial for the first Bluetooth device to confirm that the second Bluetooth device has received the first message.
在一些实施方式中,第一蓝牙设备向第二蓝牙设备发送第一消息,还包括:第一蓝牙设备,若在发送第一消息后的预定时间内未接收到来自第二蓝牙设备的应答消息,则按照设定的时间间隔逐次重发第一消息,直至接收到来自第二蓝牙设备的应答消息,或者直至重发第一消息的次数超过设定阈值。In some embodiments, the first Bluetooth device sends the first message to the second Bluetooth device, further comprising: if the first Bluetooth device does not receive a response message from the second Bluetooth device within a predetermined time after sending the first message , the first message is retransmitted successively according to the set time interval until a response message from the second Bluetooth device is received, or until the number of times of retransmission of the first message exceeds the set threshold.
本申请实施方式有利于保证第二蓝牙设备不遗漏来自第一蓝牙设备的第一消息。The embodiments of the present application are beneficial to ensure that the second Bluetooth device does not miss the first message from the first Bluetooth device.
在一些实施方式中,第二蓝牙设备执行响应于第一消息的响应动作,包括:第二蓝牙设备基于确定自身是第一消息的目标接收设备,执行响应动作。In some embodiments, the second Bluetooth device performing a response action in response to the first message includes: the second Bluetooth device performing a response action based on determining that it is a target receiving device of the first message.
根据本申请实施方式,第二蓝牙设备确定自身是第一消息的目标接收设备时,才执行响应动作;否则,第二蓝牙设备忽略第一消息,以避免错误泄露用户信息。According to the embodiment of the present application, the second Bluetooth device performs the response action only when it determines that it is the target receiving device of the first message; otherwise, the second Bluetooth device ignores the first message to avoid erroneously leaking user information.
在一些实施方式中,第一消息中携带有第一消息的目标接收设备的设备标识;第二蓝牙设备确定自身是第一消息的目标接收设备,包括:第二蓝牙设备将自身的设备标识与第一消息中携带的设备标识进行匹配,以确定自身是第一消息的目标接收设备。In some embodiments, the first message carries the device identifier of the target receiving device of the first message; the second Bluetooth device determines that it is the target receiving device of the first message, including: the second Bluetooth device matches its own device identifier with the device identifier. The device identifier carried in the first message is matched to determine that it is the target receiving device of the first message.
在一些实施方式中,第一蓝牙设备向第二蓝牙设备发送第一消息,包括:第一蓝牙设备基于确定第二蓝牙设备为已与第一蓝牙设备完成蓝牙配对的设备,向第二蓝牙设备发送第一消息。In some implementations, the first Bluetooth device sends the first message to the second Bluetooth device, comprising: the first Bluetooth device sends the second Bluetooth device to the second Bluetooth device based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device Send the first message.
根据本申请实施方式,可以避免不必要的信息泄露,从而可提高用户信息的安全性。According to the embodiments of the present application, unnecessary information leakage can be avoided, thereby improving the security of user information.
在一些实施方式中,第一蓝牙设备向第二蓝牙设备发送第一消息,包括:第一蓝牙设备基于确定第二蓝牙设备为已与第一蓝牙设备完成蓝牙配对的设备,且确定第二蓝牙设备满足下述条件的至少之一,向第二蓝牙设备发送第一消息:在第一蓝牙设备的历史通信过程中,第二蓝牙设备与第一蓝牙设备建立蓝牙连接的次数超过设定阈值;第二蓝牙设备被用户指定为接收第一消息的 合法设备。In some implementations, the first Bluetooth device sends the first message to the second Bluetooth device, comprising: the first Bluetooth device is based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device, and determining that the second Bluetooth device is The device satisfies at least one of the following conditions, and sends the first message to the second Bluetooth device: in the historical communication process of the first Bluetooth device, the number of times that the second Bluetooth device establishes a Bluetooth connection with the first Bluetooth device exceeds the set threshold; The second Bluetooth device is designated by the user as a legitimate device to receive the first message.
当第二蓝牙设备与第一蓝牙设备建立蓝牙连接的次数超过一定次数时,说明第二蓝牙设备是用户经常使用的设备,从而表示第二蓝牙设备是用户信任的设备。另外,当用户对第二蓝牙设备的合法性进行指定后,说明用户确认第二蓝牙设备是信任设备。因此,本申请实施方式可以进一步保证信息用户信息的安全性。When the number of times that the second Bluetooth device establishes a Bluetooth connection with the first Bluetooth device exceeds a certain number of times, it indicates that the second Bluetooth device is a device frequently used by the user, thereby indicating that the second Bluetooth device is a device trusted by the user. In addition, after the user specifies the validity of the second Bluetooth device, it means that the user confirms that the second Bluetooth device is a trusted device. Therefore, the embodiments of the present application can further ensure the security of information user information.
在一些实施方式中,第一事件为来电事件。In some embodiments, the first event is an incoming call event.
在一些实施方式中,第二蓝牙设备为蓝牙耳机、蓝牙音箱或可穿戴设备。In some embodiments, the second Bluetooth device is a Bluetooth headset, a Bluetooth speaker, or a wearable device.
第二方面,本申请实施方式提供了一种事件通知方法,用于第一蓝牙设备,方法包括:接收到第一事件;响应于接收到第一事件,通过蓝牙广播信道向第二蓝牙设备发送第一消息,第一消息用于向第二蓝牙设备通知第一事件,其中,第二蓝牙设备未与第一蓝牙设备建立蓝牙连接。In a second aspect, the embodiments of the present application provide an event notification method for a first Bluetooth device, the method includes: receiving a first event; in response to receiving the first event, sending a Bluetooth broadcast channel to the second Bluetooth device The first message is used to notify the second Bluetooth device of the first event, wherein the second Bluetooth device has not established a Bluetooth connection with the first Bluetooth device.
根据本申请实施方式,当第一蓝牙设备接收到第一事件时,可以通过第二蓝牙设备将第一事件通知用户,以避免用户遗漏该第一事件。另外,第一蓝牙通过蓝牙广播信道向第二蓝牙设备发送事件通知消息,第一蓝牙设备和第二蓝牙设备之间无需建立蓝牙连接,因此可以适用各种蓝牙设备(例如,仅支持一条蓝牙连接信道的设备),具有较好的适应性。According to the embodiment of the present application, when the first Bluetooth device receives the first event, the second Bluetooth device may notify the user of the first event, so as to prevent the user from missing the first event. In addition, the first bluetooth sends an event notification message to the second bluetooth device through the bluetooth broadcast channel, and there is no need to establish a bluetooth connection between the first bluetooth device and the second bluetooth device, so it can be applied to various bluetooth devices (for example, only one bluetooth connection is supported) channel equipment), with better adaptability.
在一些实施方式中,通过蓝牙广播信道向第二蓝牙设备发送第一消息,包括:基于确定第二蓝牙设备已与第一蓝牙设备之外的其他蓝牙设备建立蓝牙连接,向第二蓝牙设备发送第一消息。In some embodiments, sending the first message to the second Bluetooth device through a Bluetooth broadcast channel includes: based on determining that the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device, sending the first message to the second Bluetooth device First news.
根据本申请实施方式,当第二蓝牙设备以与其他蓝牙设备建立蓝牙连接时,说明用户目前正在使用第二蓝牙设备,因此,可以进一步保证将第一消息通知至用户。According to the embodiment of the present application, when the second Bluetooth device establishes a Bluetooth connection with other Bluetooth devices, it indicates that the user is currently using the second Bluetooth device, and therefore, it can be further ensured that the first message is notified to the user.
在一些实施方式中,第一消息包括第一事件的描述信息。In some embodiments, the first message includes descriptive information of the first event.
在一些实施方式中,第一事件的描述信息包括第一蓝牙设备的设备标识信息、第一蓝牙设备的设备类型信息、第一事件的事件类型信息和/或第一蓝牙设备接收到第一事件的时间信息。In some embodiments, the description information of the first event includes device identification information of the first Bluetooth device, device type information of the first Bluetooth device, event type information of the first event, and/or the first Bluetooth device receives the first event time information.
在一些实施方式中,通过蓝牙广播信道向第二蓝牙设备发送第一消息,进一步包括:若在发送第一消息后的预定时间内未接收到来自第二蓝牙设备的应答消息,则按照设定的时间间隔逐次重发第一消息,直至接收到来自第二蓝牙设备的应答消息,或者直至重发第一消息的次数超过设定阈值。In some implementations, sending the first message to the second Bluetooth device through a Bluetooth broadcast channel further includes: if no response message is received from the second Bluetooth device within a predetermined time after sending the first message, according to the setting The first message is successively retransmitted at the time interval until a response message from the second Bluetooth device is received, or until the number of times of retransmission of the first message exceeds the set threshold.
本申请实施方式有利于保证第二蓝牙设备不遗漏来自第一蓝牙设备的第一消息。The embodiments of the present application are beneficial to ensure that the second Bluetooth device does not miss the first message from the first Bluetooth device.
在一些实施方式中,通过蓝牙广播信道向第二蓝牙设备发送第一消息,包括:基于确定第二蓝牙设备为已与第一蓝牙设备完成蓝牙配对的设备,向第二蓝牙设备发送第一消息。In some embodiments, sending the first message to the second Bluetooth device through a Bluetooth broadcast channel includes: based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device, sending the first message to the second Bluetooth device .
根据本申请实施方式,可以避免不必要的信息泄露,从而可提高用户信息的安全性。According to the embodiments of the present application, unnecessary information leakage can be avoided, thereby improving the security of user information.
在一些实施方式中,通过蓝牙广播信道向第二蓝牙设备发送第一消息,包括:基于确定第二蓝牙设备为已与第一蓝牙设备完成蓝牙配对的设备,且确定第二蓝牙设备满足下述条件的至少之一,向第二蓝牙设备发送第一消息:在第一蓝牙设备的历史通信过程中,第二蓝牙设备与第一蓝牙设备建立蓝牙连接的次数超过设定阈值;第二蓝牙设备被用户指定为接收第一消息的合法设备。In some embodiments, sending the first message to the second Bluetooth device through the Bluetooth broadcast channel includes: based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device, and determining that the second Bluetooth device satisfies the following At least one of the conditions is to send the first message to the second Bluetooth device: in the historical communication process of the first Bluetooth device, the number of times that the second Bluetooth device establishes a Bluetooth connection with the first Bluetooth device exceeds a set threshold; the second Bluetooth device is designated by the user as a legitimate device to receive the first message.
当第二蓝牙设备与第一蓝牙设备建立蓝牙连接的次数超过一定次数时,说明第二蓝牙设备是用户经常使用的设备,从而表示第二蓝牙设备是用户信任的设备。另外,当用户对第二蓝牙设备的合法性进行指定后,说明用户确认第二蓝牙设备是信任设备。因此,本申请实施方式可以进一步保证信息用户信息的安全性。When the number of times that the second Bluetooth device establishes a Bluetooth connection with the first Bluetooth device exceeds a certain number of times, it indicates that the second Bluetooth device is a device frequently used by the user, thereby indicating that the second Bluetooth device is a device trusted by the user. In addition, after the user specifies the validity of the second Bluetooth device, it means that the user confirms that the second Bluetooth device is a trusted device. Therefore, the embodiments of the present application can further ensure the security of information user information.
在一些实施方式中,第一事件为来电事件。In some embodiments, the first event is an incoming call event.
在一些实施方式中,第一蓝牙设备向符合预设条件的的第二蓝牙设备发送事件通知消息。其 中,预设条件可以包括特定条件,例如,预设条件为:第二蓝牙设备已与第一蓝牙设备之外的其他蓝牙设备建立蓝牙连接,和/或,第二蓝牙设备为已与第一蓝牙设备完成蓝牙配对的设备;预设条件也可以不包括额外条件,例如,第二蓝牙设备为任意设备。In some embodiments, the first Bluetooth device sends an event notification message to a second Bluetooth device that meets a preset condition. The preset conditions may include specific conditions, for example, the preset conditions are: the second Bluetooth device has established a Bluetooth connection with other Bluetooth devices other than the first Bluetooth device, and/or, the second Bluetooth device has been connected to the first Bluetooth device. The Bluetooth device is a device that completes Bluetooth pairing; the preset condition may also not include additional conditions, for example, the second Bluetooth device is any device.
第三方面,本申请实施方式提供了一种事件通知方法,用于第二蓝牙设备,方法包括:在蓝牙广播信道上接收来自第一蓝牙设备的第一消息,第一消息用于向第二蓝牙设备通知第一蓝牙设备接收到的第一事件,其中,第二蓝牙设备未与第一蓝牙设备建立蓝牙连接;执行响应于第一消息的响应动作,其中,响应动作至少包括用于向用户提示第一事件的动作。In a third aspect, the embodiments of the present application provide an event notification method for a second Bluetooth device, the method includes: receiving a first message from the first Bluetooth device on a Bluetooth broadcast channel, where the first message is used to notify the second Bluetooth device. The Bluetooth device notifies the first event received by the first Bluetooth device, wherein the second Bluetooth device has not established a Bluetooth connection with the first Bluetooth device; and executes a response action in response to the first message, wherein the response action at least includes an action for sending a message to the user. Action that prompts the first event.
根据本申请实施方式,当第一蓝牙设备接收到第一事件时,可以通过第二蓝牙设备将第一事件通知用户,以避免用户遗漏该第一事件。另外,第一蓝牙通过蓝牙广播信道向第二蓝牙设备发送事件通知消息,第一蓝牙设备和第二蓝牙设备之间无需建立蓝牙连接,因此可以适用各种蓝牙设备(例如,仅支持一条蓝牙连接信道的设备),具有较好的适应性。According to the embodiment of the present application, when the first Bluetooth device receives the first event, the second Bluetooth device may notify the user of the first event, so as to prevent the user from missing the first event. In addition, the first bluetooth sends an event notification message to the second bluetooth device through the bluetooth broadcast channel, and there is no need to establish a bluetooth connection between the first bluetooth device and the second bluetooth device, so it can be applied to various bluetooth devices (for example, only one bluetooth connection is supported) channel equipment), with better adaptability.
在一些实施方式中,第二蓝牙设备与第一蓝牙设备之外的其他设备建立蓝牙连接。In some embodiments, the second Bluetooth device establishes a Bluetooth connection with other devices than the first Bluetooth device.
在一些实施方式中,提示动作包括播放第一事件的提示音频。In some implementations, the prompt action includes playing prompt audio for the first event.
在一些实施方式中,第一消息中包括第一事件的描述信息;以及,第二蓝牙设备播放的提示音频中包括第一音频,提示音频中携带有描述信息。In some embodiments, the first message includes description information of the first event; and the prompt audio played by the second Bluetooth device includes the first audio, and the prompt audio carries the description information.
在一些实施方式中,第二蓝牙设备播放提示音频,包括:第二蓝牙设备确定其当前播放业务的业务类型;当第二蓝牙设备确定其当前播放业务的业务类型为通话业务时,所第二蓝牙设备在当前播放业务结束之后播放第一音频;当蓝牙设备确定其当前播放业务的业务类型为通话业务之外的其他类型时,第二蓝牙设备在当前时刻播放第一音频。In some embodiments, playing the prompt audio by the second Bluetooth device includes: the second Bluetooth device determines the service type of its currently playing service; when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device determines The Bluetooth device plays the first audio after the current playback service ends; when the Bluetooth device determines that the service type of the current playback service is other than the call service, the second Bluetooth device plays the first audio at the current moment.
当第二蓝牙设备的当前音频播放业务是通话业务时,说明用户正在使用第二蓝牙设备与其他用户进行实时通话。如果用户的实时通话被中断,将会产生的不良的体验。因此,本申请实施方式中,第二蓝牙设备暂不播放第一音频,而是待通话业务结束后再播放第一音频。When the current audio playback service of the second Bluetooth device is a call service, it means that the user is using the second Bluetooth device to conduct a real-time call with other users. If the user's real-time call is interrupted, there will be a bad experience. Therefore, in the embodiment of the present application, the second Bluetooth device does not play the first audio for the time being, but plays the first audio after the call service ends.
在一些实施方式中,提示音频包括第二音频,第二音频的时长短于第一音频;并且,当第二蓝牙设备确定其当前播放业务的业务类型为通话业务时,第二蓝牙设备在当前时刻播放第二音频,并在当前播放业务结束之后播放第一音频。In some embodiments, the prompt audio includes a second audio, and the duration of the second audio is shorter than that of the first audio; and, when the second Bluetooth device determines that the service type of its currently playing service is a call service, the second Bluetooth device is currently playing The second audio is played at all times, and the first audio is played after the current playing service ends.
根据本申的实施方式,不仅可以起到一定的提示作用,也可以避免影响用户的正常通话。According to the embodiments of the present application, it can not only play a certain prompting role, but also avoid affecting the normal conversation of the user.
在一些实施方式中,第一事件的描述信息包括第一设备的设备标识信息、第一设备的设备类型信息、第一事件的事件类型信息和/或第一设备接收到第一事件的时间信息。In some embodiments, the description information of the first event includes device identification information of the first device, device type information of the first device, event type information of the first event, and/or time information when the first device receives the first event .
在一些实施方式中,执行响应于第一消息的响应动作,进一步包括:向第一蓝牙设备发送对第一消息的应答消息。这样,有利于第一蓝牙设备确认第二蓝牙设备接收到第一消息。In some embodiments, performing a response action in response to the first message further includes: sending a response message to the first message to the first Bluetooth device. In this way, it is beneficial for the first Bluetooth device to confirm that the second Bluetooth device has received the first message.
在一些实施方式中,执行响应于第一消息的响应动作,包括:第二蓝牙设备基于确定自身是第一消息的目标接收设备,执行响应动作。In some embodiments, performing the response action in response to the first message includes: the second Bluetooth device performing the response action based on determining that it is a target receiving device of the first message.
根据本申请实施方式,第二蓝牙设备确定自身是第一消息的目标接收设备时,才执行响应动作;否则,第二蓝牙设备忽略第一消息,以避免错误泄露用户信息。According to the embodiment of the present application, the second Bluetooth device performs the response action only when it determines that it is the target receiving device of the first message; otherwise, the second Bluetooth device ignores the first message to avoid erroneously leaking user information.
在一些实施方式中,第一消息中携带有第一消息的目标接收设备的设备标识;第二蓝牙设备确定自身是第一消息的目标接收设备,包括:第二蓝牙设备将自身的设备标识与第一消息中携带的设备标识进行匹配,以确定自身是第一消息的目标接收设备。In some embodiments, the first message carries the device identifier of the target receiving device of the first message; the second Bluetooth device determines that it is the target receiving device of the first message, including: the second Bluetooth device matches its own device identifier with the device identifier. The device identifier carried in the first message is matched to determine that it is the target receiving device of the first message.
在一些实施方式中,第一事件为来电事件。In some embodiments, the first event is an incoming call event.
在一些实施方式中,第二蓝牙设备为蓝牙耳机、蓝牙音箱或可穿戴设备。In some embodiments, the second Bluetooth device is a Bluetooth headset, a Bluetooth speaker, or a wearable device.
第四方面,本申请实施方式提供了一种蓝牙设备,包括:存储器,用于存储由所述蓝牙设备的一个或多个处理器执行的指令;处理器,当所述处理器执行所述存储器中的所述指令时,可使得所述蓝牙设备执行本申请第二方面任一实施方式提供的事件通知方法。第四方面能达到的有益效果可参考第二方面任一实施方式的有益效果,此处不再赘述。In a fourth aspect, embodiments of the present application provide a Bluetooth device, including: a memory for storing instructions executed by one or more processors of the Bluetooth device; a processor, when the processor executes the memory When the instruction in , the Bluetooth device can be made to execute the event notification method provided by any one of the implementation manners of the second aspect of this application. For the beneficial effects that can be achieved in the fourth aspect, reference may be made to the beneficial effects of any implementation manner of the second aspect, which will not be repeated here.
第五方面,本申请实施方式提供了一种蓝牙设备,包括:存储器,用于存储由所述蓝牙设备的一个或多个处理器执行的指令;处理器,当所述处理器执行所述存储器中的所述指令时,可使得所述蓝牙设备执行本申请第三方面任一实施方式提供的事件通知方法。第五方面能达到的有益效果可参考第三方面任一实施方式的有益效果,此处不再赘述。In a fifth aspect, embodiments of the present application provide a Bluetooth device, including: a memory for storing instructions executed by one or more processors of the Bluetooth device; a processor, when the processor executes the memory When the instruction in , the Bluetooth device can be made to execute the event notification method provided by any one of the implementation manners of the third aspect of the present application. For the beneficial effects that can be achieved in the fifth aspect, reference may be made to the beneficial effects of any embodiment of the third aspect, which will not be repeated here.
第六方面,本申请实施方式提供了一种蓝牙系统,包括相互之间未建立蓝牙连接的第一蓝牙设备和第二蓝牙设备,其中,第一蓝牙设备用于执行本申请第二方面任一实施方式提供的事件通知方法,第二蓝牙设备用于执行本申请第三方面任一实施方式提供的事件通知方法。第六方面能达到的有益效果可参考本申请第二方面任一实施方式的有益效果或本申请第三方面任一实施方式的有益效果,此处不再赘述。In a sixth aspect, an embodiment of the present application provides a Bluetooth system, including a first Bluetooth device and a second Bluetooth device that do not establish a Bluetooth connection with each other, wherein the first Bluetooth device is used to perform any one of the second aspects of the present application. In the event notification method provided by the embodiment, the second Bluetooth device is configured to execute the event notification method provided by any embodiment of the third aspect of the present application. For the beneficial effects that can be achieved in the sixth aspect, reference may be made to the beneficial effects of any embodiment of the second aspect of the present application or the beneficial effects of any embodiment of the third aspect of the present application, which will not be repeated here.
第七方面,本申请实施方式提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,该指令在计算机上执行时,可使计算机执行本申请第二方面任一实施方式或本申请第三方面任一方式提供的的事件通知方法。第七方面能达到的有益效果可参考本申请第二方面任一实施方式的有益效果或本申请第三方面任一实施方式的有益效果,此处不再赘述。In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and when the instruction is executed on a computer, the computer can execute any one of the embodiments of the second aspect of the present application or The event notification method provided by any method of the third aspect of the present application. For the beneficial effects that can be achieved in the seventh aspect, reference may be made to the beneficial effects of any embodiment of the second aspect of the present application or the beneficial effects of any embodiment of the third aspect of the present application, which will not be repeated here.
附图说明Description of drawings
图1a为本申请实施方式提供的事件通知方法的应用场景示意图;FIG. 1a is a schematic diagram of an application scenario of an event notification method provided by an embodiment of the present application;
图1b为本申请实施方式提供的用于开启事件通知功能的终端界面示意图;1b is a schematic diagram of a terminal interface for enabling an event notification function provided by an embodiment of the present application;
图2a为本申请实施例提供的蓝牙设备的构造示意图;2a is a schematic structural diagram of a Bluetooth device provided by an embodiment of the application;
图2b为本申请实施例提供的蓝牙设备的软件架构图;FIG. 2b is a software architecture diagram of a Bluetooth device provided by an embodiment of the application;
图3为本申请实施例提供的蓝牙广播数据包的示例性结构图;3 is an exemplary structural diagram of a Bluetooth broadcast data packet provided by an embodiment of the present application;
图4为本申请实施例提供的事件通知方法的示例性流程图一;FIG. 4 is an exemplary flowchart 1 of an event notification method provided by an embodiment of the present application;
图5为本申请实施例提供的用于指定用户信任设备的界面图一;FIG. 5 is an interface diagram 1 for specifying a user-trusted device provided by an embodiment of the present application;
图6为本申请实施例提供的用于指定用户信任设备的界面图二;FIG. 6 is an interface diagram 2 for specifying a user-trusted device provided by an embodiment of the present application;
图7为本申请实施例提供的第一蓝牙设备发送的广播包示意图;7 is a schematic diagram of a broadcast packet sent by a first Bluetooth device according to an embodiment of the present application;
图8为本申请实施例提供的第二蓝牙设备回复的广播包示意图;FIG. 8 is a schematic diagram of a broadcast packet replied by a second Bluetooth device according to an embodiment of the present application;
图9为本申请实施例提供的第二蓝牙设备播放提示音频的流程示意图;9 is a schematic flowchart of a second Bluetooth device playing a prompt audio provided by an embodiment of the present application;
图10为本申请实施例提供的事件通知方法的示例性流程图二;FIG. 10 is an exemplary flowchart 2 of an event notification method provided by an embodiment of the present application;
图11为本申请实施例提供的蓝牙系统的模块结构示意图;11 is a schematic diagram of a module structure of a Bluetooth system provided by an embodiment of the application;
图12示出了本申请实施方式提供的电子设备的框图;FIG. 12 shows a block diagram of an electronic device provided by an embodiment of the present application;
图13示出了本申请实施方式提供的片上系统(System on Chip,SOC)的结构示意图。FIG. 13 shows a schematic structural diagram of a system on chip (System on Chip, SOC) provided by an embodiment of the present application.
具体实施方式Detailed ways
以下将参考附图详细说明本申请的具体实施方式。Specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
随着通信技术的发展,例如,基于IP的语音传输(Voice over Internet Protocol,VoIP)技术的发展,当前具备电话功能的电子设备越来越多。例如,除了传统的手机之外,用户还可以通过 平板、笔记本电脑等进行通话。理论上,电子设备只要能够访问互联网,并具备麦克风(Microphone,MIC)和听筒,均可实现电话功能。所以,用户往往可以拥有多台具备电话功能的电子设备。With the development of communication technology, for example, the development of voice over IP (Voice over Internet Protocol, VoIP) technology, more and more electronic devices currently have telephone functions. For example, in addition to traditional mobile phones, users can also make calls through tablets, laptops, etc. Theoretically, as long as the electronic device can access the Internet and has a microphone (Microphone, MIC) and an earpiece, the telephone function can be realized. Therefore, users can often have multiple electronic devices with telephone functions.
参考图1a,用户拥有手机100、平板110、笔记本电脑130等多台电子设备,各电子设备通过自身的WiFi模块连接到网关140上,以形成局域网150。另外,图1a中还包括蓝牙耳机120,蓝牙耳机120通过与平板110进行蓝牙连接以加入到局域网150中。当蓝牙耳机120与平板110进行蓝牙连接之后之后,用户可以通过蓝牙耳机120收听平板110上的音频内容(例如,音乐,接听语音通话等)。但是,如果此时手机100接收到了来电,手机100的来电铃声可能被蓝牙耳机120播放的声音所遮盖,因此,用户可能会听不到手机100上的来电铃声,从而会漏接手机100上的来电。Referring to FIG. 1 a , a user has multiple electronic devices such as a mobile phone 100 , a tablet 110 , and a notebook computer 130 , and each electronic device is connected to the gateway 140 through its own WiFi module to form a local area network 150 . In addition, FIG. 1 a also includes a Bluetooth headset 120 , and the Bluetooth headset 120 is added to the local area network 150 through a Bluetooth connection with the tablet 110 . After the Bluetooth headset 120 and the tablet 110 are connected via Bluetooth, the user can listen to audio content (eg, music, answer voice calls, etc.) on the tablet 110 through the Bluetooth headset 120 . However, if the mobile phone 100 receives an incoming call at this time, the ringtone of the incoming call on the mobile phone 100 may be covered by the sound played by the Bluetooth headset 120 . Therefore, the user may not hear the incoming call on the mobile phone 100 , and thus may miss the call on the mobile phone 100 . call.
本申请实施方式用于解决该技术问题。具体地,本申请实施方式用于提供一种事件通知方法,当手机100(作为第一蓝牙设备)接收到来电事件(作为第一事件或待通知事件)时,通过蓝牙广播信道向蓝牙耳机120(作为第二蓝牙设备)发送事件通知消息(作为第一消息),该事件通知消息用于向蓝牙耳机120通知来电事件。蓝牙耳机120在蓝牙广播信道上接收手机100发送的事件通知消息,并执行响应于该事件通知消息的响应动作,其中,响应动作包括用于向用户提示来电事件的动作(例如,播放提示音频)。The embodiments of the present application are used to solve this technical problem. Specifically, the embodiments of the present application are used to provide an event notification method. When the mobile phone 100 (as the first Bluetooth device) receives an incoming call event (as the first event or the event to be notified), the mobile phone 100 (as the first event or the event to be notified) sends a notification to the Bluetooth headset 120 through the Bluetooth broadcast channel. (as the second Bluetooth device) sends an event notification message (as the first message), the event notification message is used to notify the Bluetooth headset 120 of an incoming call event. The Bluetooth headset 120 receives the event notification message sent by the mobile phone 100 on the Bluetooth broadcast channel, and executes a response action in response to the event notification message, wherein the response action includes an action for prompting the user of an incoming call event (eg, playing a prompt audio) .
因此,根据本申请实施方式,当手机100接收到来电事件时,可以通过蓝牙耳机120将该来电事件通知到用户,以避免用户漏接来电。Therefore, according to the embodiment of the present application, when the mobile phone 100 receives an incoming call event, the mobile phone 100 can notify the user of the incoming call event through the Bluetooth headset 120 to prevent the user from missing an incoming call.
另外,受频率资源和硬件配置的限制,蓝牙设备支持的点对点蓝牙连接的数量往往是有限的。尤其是对于蓝牙耳机120这样的硬件配置比较简单的设备,其可能仅支持一条点对点蓝牙通信信道。本申请实施方式中,第一蓝牙设备通过蓝牙广播信道向第二蓝牙设备发送事件通知消息,第一蓝牙设备和第二蓝牙设备之间无需建立蓝牙连接,因此可以适用各种蓝牙设备,具有较好的适应性。In addition, limited by frequency resources and hardware configuration, the number of point-to-point Bluetooth connections supported by Bluetooth devices is often limited. Especially for a device with a relatively simple hardware configuration such as the Bluetooth headset 120, it may only support one point-to-point Bluetooth communication channel. In the embodiment of the present application, the first Bluetooth device sends an event notification message to the second Bluetooth device through the Bluetooth broadcast channel, and there is no need to establish a Bluetooth connection between the first Bluetooth device and the second Bluetooth device, so it can be applied to various Bluetooth devices. good adaptability.
另外,图1a中虽然以手机100作为第一蓝牙设备(或终端设备)的示例,但本申请不限于此。在其他示例中,第一蓝牙设备可以为平板、笔记本电脑、智慧屏、智能家电(例如,微波炉、智能门锁、闹钟)、车机等,只要具有蓝牙通信功能即可。In addition, although the mobile phone 100 is used as an example of the first Bluetooth device (or terminal device) in FIG. 1a, the present application is not limited to this. In other examples, the first Bluetooth device may be a tablet, a notebook computer, a smart screen, a smart home appliance (eg, a microwave oven, a smart door lock, an alarm clock), a car machine, etc., as long as it has a Bluetooth communication function.
图1a虽然以蓝牙耳机作为第二蓝牙设备的示例,但本申请不限于此。在其他示例中,第二蓝牙设备可以为蓝牙音箱、可穿戴设备(例如,智能手环/手表,智能眼镜,智能头盔等)等,只要具备音频播放功能和蓝牙通信功能即可。Although FIG. 1a uses a Bluetooth headset as an example of the second Bluetooth device, the present application is not limited to this. In other examples, the second Bluetooth device may be a Bluetooth speaker, a wearable device (eg, a smart bracelet/watch, smart glasses, smart helmet, etc.), etc., as long as it has an audio playback function and a Bluetooth communication function.
图1a中虽然以来电事件作为第一事件的示例,但本申请不限于此。在其他示例中,第一事件可以为来电事件之外的其他待通知事件,例如,智能音箱播放日程提醒事件,门铃响铃事件,洗衣机洗涤程序完成事件,定时器计时结束事件等。Although the incoming electricity event is used as an example of the first event in FIG. 1a, the present application is not limited to this. In other examples, the first event may be an event to be notified other than an incoming call event, for example, a smart speaker playing schedule reminder event, a doorbell ringing event, a washing machine washing program completion event, a timer ending event, and the like.
进一步地,第一蓝牙设备是否开启向外发送事件通知消息的功能,可以由用户进行设定。例如,参考图1b,第一蓝牙设备(例如,手机100)的下拉菜单中包括事件通知开关100a,如果用户开启事件通知开关100a,当第一蓝牙设备接收到第一事件后,向第二蓝牙设备发送事件通知消息;如果用户关闭事件通知开关100a,当第一蓝牙设备接收到第一事件后,不向外发送事件通知消息。又如,当第一蓝牙设备不包括显示屏时(例如,门铃),用户可以通过安装在智能终端(例如,手机)上的用于对该设备进行管理的设备管理应用(例如,智慧生活 TM),设定是否开启该设备向外发送事件通知消息的功能。 Further, whether the first Bluetooth device enables the function of sending an event notification message to the outside may be set by the user. For example, referring to FIG. 1b, the pull-down menu of the first Bluetooth device (eg, mobile phone 100) includes an event notification switch 100a. If the user turns on the event notification switch 100a, when the first Bluetooth device receives the first event, it sends a notification to the second Bluetooth device. The device sends an event notification message; if the user turns off the event notification switch 100a, after the first Bluetooth device receives the first event, it does not send the event notification message to the outside. For another example, when the first Bluetooth device does not include a display screen (for example, a doorbell), the user can manage the device through a device management application (for example, Smart LifeTM ) installed on a smart terminal (for example, a mobile phone). ) to set whether to enable the device to send event notification messages to the outside world.
另外,当第一蓝牙设备接收到第一事件时,其可以播放与第一事件相关联的提示音,例如, 手机接收到来电事件时,播放来电铃声;其也可以不播放与第一事件相关联的提示音,例如,当手机被设置为静音模式时,即使接收到来电事件,手机也不会播放来电铃声。In addition, when the first Bluetooth device receives the first event, it can play a prompt tone associated with the first event. For example, when the mobile phone receives an incoming call event, it will play the incoming call ringtone; it may also not play the sound associated with the first event. For example, when the phone is set to silent mode, the phone will not play the ringtone even if it receives an incoming call event.
以下结合图1a示出的场景介绍本申请的具体实施例。Specific embodiments of the present application are described below with reference to the scenario shown in FIG. 1a.
图2a示出了手机100的结构示意图。手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接头130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 2 a shows a schematic structural diagram of the mobile phone 100 . The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user Identity module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现手机100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, so as to realize the touch function of the mobile phone 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在 串行通信并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。 The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication . In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现手机100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现手机100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the shooting function of the mobile phone 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the mobile phone 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机100的结构限定。在本申请另一些实施例中,手机100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that, the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in handset 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile phone 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在手机100上的包括无线局域网(wireless local area networks, WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,手机100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone 100 realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the handset 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the mobile phone 100 may include one or N cameras 193 , where N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the mobile phone 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and the like.
视频编解码器用于对数字视频压缩或解压缩。手机100可以支持一种或多种视频编解码器。这样,手机100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The handset 100 may support one or more video codecs. In this way, the mobile phone 100 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the mobile phone 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行手机100的各种功能应用以及数据处理。存储器121中存储的指令可以包括:由处理器中的至少一个执行时导致手机100实施本申请实施例提供的事件通知方法中由手机实施的步骤的指令。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the mobile phone 100 by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor. The instructions stored in the memory 121 may include instructions that, when executed by at least one of the processors, cause the mobile phone 100 to perform the steps performed by the mobile phone in the event notification method provided in the embodiment of the present application.
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机100可以通过扬声器170A收听音乐,或收听免提通话。 Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The mobile phone 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the mobile phone 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机100可以设置至少一个麦克风170C。在另一些实施例中,手机100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The mobile phone 100 may be provided with at least one microphone 170C. In other embodiments, the mobile phone 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the mobile phone 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接头130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D may be a USB connector 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
手机100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明手机100的软件结构。The software system of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present invention take an Android system with a layered architecture as an example to illustrate the software structure of the mobile phone 100 as an example.
图2b是本发明实施例的手机100的软件结构框图。FIG. 2b is a block diagram of the software structure of the mobile phone 100 according to the embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通 信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The communication between the layers is through the software interface. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图2b所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2b, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2b所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2b, the application framework layer may include a window manager, content provider, view system, telephony manager, resource manager, notification manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供手机100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the mobile phone 100 . For example, the management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
为便于理解本申请实施例的技术方案,首先对蓝牙通信方式进行简要介绍。蓝牙通信方式分 为两种,一种是点对点通信方式,另一种是广播通信方式。In order to facilitate the understanding of the technical solutions of the embodiments of the present application, a brief introduction to the Bluetooth communication method is given first. There are two types of Bluetooth communication methods, one is point-to-point communication and the other is broadcast communication.
对于点对点通信方式,通信的双方在正式通信之前需要首先建立蓝牙连接,建立蓝牙连接的过程可以包括发送/确认连接请求、和/或协商连接参数(例如,连接间隔)等步骤。在建立好蓝牙连接之后,通信的双方在一条专属的物理通道(具有专属的通信时隙和通信频率)上进行通信,因此,该物理通道又称为“点对点蓝牙通信信道”。通常而言,一台电子设备支持的蓝牙连接(或点对点蓝牙通信信道)的数量是有限的,例如,某些蓝牙耳机可能仅支持一条蓝牙连接。For point-to-point communication, both parties in the communication need to establish a Bluetooth connection before formal communication. The process of establishing a Bluetooth connection may include steps such as sending/confirming a connection request, and/or negotiating connection parameters (eg, connection interval). After the Bluetooth connection is established, the two communicating parties communicate on a dedicated physical channel (with dedicated communication time slot and communication frequency). Therefore, the physical channel is also called "point-to-point Bluetooth communication channel". Generally speaking, the number of Bluetooth connections (or peer-to-peer Bluetooth communication channels) supported by an electronic device is limited, for example, some Bluetooth headsets may only support one Bluetooth connection.
对于广播通信方式,通信的双方之间没有专属的物理通道,通信的一方在若干个固定的物理通道上(该物理通道即为蓝牙广播信道,每个物理通道均具有固定的频率,该频率由蓝牙协议规定)上发送数据,通信的另一方在蓝牙广播信道上进行监听,以接收广播数据。其中,发送数据的一方称作“广播设备(advertiser)”,接收数据的一方称作“扫描设备(observer)”。一对蓝牙设备在建立蓝牙连接之前,可以在蓝牙广播信道上进行通信。例如,在建立蓝牙连接的过程中,通信的双方可以在蓝牙广播信道上发送/确认连接请求,协商连接参数等。For the broadcast communication method, there is no dedicated physical channel between the two communicating parties, and the communicating party is on several fixed physical channels (the physical channel is the Bluetooth broadcast channel, and each physical channel has a fixed frequency, which is determined by The Bluetooth protocol stipulates that the data is sent over the Bluetooth broadcast channel, and the other party of the communication listens on the Bluetooth broadcast channel to receive the broadcast data. Among them, the party sending data is called "advertiser", and the party receiving data is called "observer". A pair of Bluetooth devices can communicate on a Bluetooth broadcast channel before establishing a Bluetooth connection. For example, in the process of establishing a Bluetooth connection, both parties of the communication can send/confirm a connection request on the Bluetooth broadcast channel, negotiate connection parameters, and so on.
当蓝牙设备以广播通信方式进行通信时,其通过在蓝牙广播信道上发送蓝牙广播数据包(以下简称:广播包)来与其他蓝牙设备进行数据交互。其中,广播包需符合一定的格式(由蓝牙协议规定),以使得广播包中的内容可以被其他设备识别。When a Bluetooth device communicates in a broadcast communication manner, it performs data interaction with other Bluetooth devices by sending a Bluetooth broadcast data packet (hereinafter referred to as a broadcast packet) on a Bluetooth broadcast channel. Among them, the broadcast packet needs to conform to a certain format (specified by the Bluetooth protocol), so that the content in the broadcast packet can be recognized by other devices.
图3给出了广播包的示意性结构图。参考图3,广播包包括类型字段,广播设备地址字段以及数据字段。Figure 3 shows a schematic structural diagram of a broadcast packet. Referring to FIG. 3, the broadcast packet includes a type field, a broadcast device address field, and a data field.
其中,“类型”字段(Adv PDU Type)用于写入广播包的类型,蓝牙协议规定了多种类型的广播包,不同类型的广播包通过不同的类型值进行标识。例如,当类型值为0000时,表示该广播包为通用类型的广播包(ADV_IND),任何一台蓝牙设备向外发送广播数据时均可采用该类型的数据包;当类型字段的值为0100,表示该广播包为扫描回复数据包(ADV_SCAN_RSP),当扫描设备接收到广播消息时,可采用该类型的数据包向广播设备发送回复消息。Among them, the "type" field (Adv PDU Type) is used to write the type of the broadcast packet. The Bluetooth protocol specifies multiple types of broadcast packets, and different types of broadcast packets are identified by different type values. For example, when the type value is 0000, it means that the broadcast packet is a general type of broadcast packet (ADV_IND), and any Bluetooth device can use this type of data packet when sending broadcast data to the outside world; when the value of the type field is 0100 , indicating that the broadcast packet is a scan reply data packet (ADV_SCAN_RSP). When the scan device receives a broadcast message, it can use this type of data packet to send a reply message to the broadcast device.
“广播设备地址”字段(AdvA)用于写入广播设备的物理地址,该地址可以是广播设备的公共地址,也可以是广播设备的随机地址;The "Broadcasting device address" field (AdvA) is used to write the physical address of the broadcasting device, which can be either the public address of the broadcasting device or the random address of the broadcasting device;
“数据”字段(Data)用于写入业务数据。例如,当手机100向蓝牙耳机120发送事件通知消息时,可在广播包的“数据”字段写入来电事件的描述信息。The "Data" field (Data) is used to write business data. For example, when the mobile phone 100 sends an event notification message to the Bluetooth headset 120, the description information of the incoming call event may be written in the "data" field of the broadcast packet.
需要说明的是,图3仅示出了广播包中的部分字段,广播包中的其他字段可参考蓝牙协议的规定,不作赘述。It should be noted that FIG. 3 only shows some fields in the broadcast packet, and other fields in the broadcast packet may refer to the provisions of the Bluetooth protocol, and will not be repeated.
以下结合图1a示出的场景介绍本申请的具体实施例,但可以理解,本申请不限于此。在图1a所示的场景中,蓝牙耳机120与平板110建立蓝牙连接,终端设备(例如,手机100)与蓝牙耳机120未建立蓝牙连接。此时,终端设备接收到了来电事件E(图示为10086来电)。Specific embodiments of the present application will be described below with reference to the scenario shown in FIG. 1a, but it can be understood that the present application is not limited thereto. In the scenario shown in FIG. 1 a , the Bluetooth headset 120 establishes a Bluetooth connection with the tablet 110 , and the terminal device (eg, mobile phone 100 ) does not establish a Bluetooth connection with the Bluetooth headset 120 . At this time, the terminal device receives the incoming call event E (the figure is 10086 incoming calls).
【实施例一】[Example 1]
本实施例用于提供一种事件通知方法。以下结合图1a中的场景介绍本实施例的具体技术方案。参考图1a,用户正在通过蓝牙耳机120收听平板110上的音频内容时,终端设备(例如,手机100)接收到来电事件E。为避免用户漏接来电,终端设备通过蓝牙耳机120将来电事件E通知到用户。This embodiment is used to provide an event notification method. The specific technical solution of this embodiment is described below with reference to the scene in FIG. 1a. Referring to FIG. 1a, when the user is listening to the audio content on the tablet 110 through the Bluetooth headset 120, the terminal device (eg, the mobile phone 100) receives the incoming call event E. In order to prevent the user from missing an incoming call, the terminal device notifies the user of the incoming call event E through the Bluetooth headset 120 .
具体地,参考图4,本实施例提供的事件通知方法包括以下步骤:Specifically, referring to FIG. 4 , the event notification method provided by this embodiment includes the following steps:
S110:终端设备(作为第一蓝牙设备)接收到来电事件E(作为第一事件)。其中,终端设备为具备电话功能的设备(例如,手机100)。示例性地,终端设备通过其安装的通话应用来实现电话功能,通话应用可以为系统电话应用,也可以为第三方应用(例如,微信 TM)。 S110: The terminal device (as the first Bluetooth device) receives the incoming call event E (as the first event). The terminal device is a device with a telephone function (for example, the mobile phone 100 ). Exemplarily, the terminal device implements the phone function through a call application installed on the terminal device, and the call application may be a system phone application or a third-party application (for example, WeChat TM ).
本实施例中,“来电”可以是语音来电,也可以是视频来电;可以是系统电话应用接收到的来电,也可以是第三方应用(例如,微信 TM,Facetime TM等)接收到的来电;可以是基于电路交换(Circuit Switching,CS)接收到的来电,也可以是基于VoIP接收到的来电等。 In this embodiment, the "incoming call" can be a voice call or a video call; it can be an incoming call received by the system phone application, or an incoming call received by a third-party application (for example, WeChat TM , Facetime TM , etc.); It may be an incoming call received based on circuit switching (Circuit Switching, CS), or it may be an incoming call received based on VoIP.
当终端设备接收到来电事件后,会播放来电铃声,以提示用户接听该来电。但是,参考图1a,如果用户正在使用蓝牙耳机120收听平板110上的音乐,终端设备上的来电铃声可能被蓝牙耳机120中播放的音乐声音所覆盖,这样,用户可能会听不到来电铃声,从而会漏接终端设备上的来电。When the terminal device receives the incoming call event, it will play the incoming call ringtone to prompt the user to answer the incoming call. However, referring to FIG. 1a, if the user is using the Bluetooth headset 120 to listen to the music on the tablet 110, the incoming call ringtone on the terminal device may be covered by the music sound played in the Bluetooth headset 120, so the user may not hear the incoming call ringtone, As a result, incoming calls on the terminal device will be missed.
为此,本实施例中,终端设备将其接收到来电事件的消息推送至蓝牙耳机120,以通过蓝牙耳机120提醒用户该来电事件,避免用户漏接终端设备上的来电。以下步骤S120~S150对该过程进行具体介绍。To this end, in this embodiment, the terminal device pushes the incoming call event message to the Bluetooth headset 120 to remind the user of the incoming call event through the Bluetooth headset 120 to prevent the user from missing an incoming call on the terminal device. The following steps S120 to S150 will introduce the process in detail.
S120:终端设备响应于接收到来电事件E,查询终端设备所在的局域网150中是否存在处于蓝牙连接状态的蓝牙耳机。如果存在,则执行步骤S130,以进一步对判断该蓝牙耳机是否是用户信任设备;如果不存在,则本方法结束。当蓝牙耳机处于蓝牙连接状态时,说明用户正在使用蓝牙耳机,因此,本步骤有利于保证通过蓝牙耳机将来电事件E通知至用户。S120: In response to receiving the incoming call event E, the terminal device queries whether there is a Bluetooth headset in a Bluetooth connection state in the local area network 150 where the terminal device is located. If it exists, step S130 is executed to further judge whether the Bluetooth headset is a user-trusted device; if not, the method ends. When the Bluetooth headset is in the Bluetooth connection state, it means that the user is using the Bluetooth headset. Therefore, this step is beneficial to ensure that the incoming call event E is notified to the user through the Bluetooth headset.
示例性地,终端设备可以通过下述任一方法查询局域网150中是否存在处于蓝牙连接状态的蓝牙耳机120:Exemplarily, the terminal device can query whether there is a Bluetooth headset 120 in the Bluetooth connection state in the local area network 150 by any of the following methods:
示例一:终端设备向蓝牙耳机120发送蓝牙连接请求,由于蓝牙耳机120已与平板110进行蓝牙连接,因此,蓝牙耳机120向手机发送拒绝连接请求的回复。该回复中携带有拒绝连接请求的原因,例如指示已与其他设备建立起连接的信息。这样,终端设备可获知蓝牙耳机120处于蓝牙连接状态。Example 1: The terminal device sends a Bluetooth connection request to the Bluetooth headset 120. Since the Bluetooth headset 120 has already connected with the tablet 110, the Bluetooth headset 120 sends a reply rejecting the connection request to the mobile phone. The reply carries the reason for rejecting the connection request, such as information indicating that a connection has been established with other devices. In this way, the terminal device can know that the Bluetooth headset 120 is in the Bluetooth connection state.
示例二:蓝牙耳机120在与平板110建立蓝牙连接后,通过蓝牙广播的形式对外公开自身的通信状态信息,例如指示蓝牙耳机自身已与特定的设备(例如平板200)建立蓝牙连接的信息。这样,终端设备通过监听蓝牙广播,可获知蓝牙耳机120处于蓝牙连接状态。Example 2: After the Bluetooth headset 120 establishes a Bluetooth connection with the tablet 110, it discloses its own communication status information in the form of Bluetooth broadcast, such as information indicating that the Bluetooth headset itself has established a Bluetooth connection with a specific device (eg, tablet 200). In this way, the terminal device can learn that the Bluetooth headset 120 is in the Bluetooth connection state by monitoring the Bluetooth broadcast.
示例三:蓝牙耳机120在与平板110建立蓝牙连接后,平板110将该连接事件汇报至局域网150中的枢纽设备——网关140,这样,网关140可以记录蓝牙耳机120的通信状态信息:“与平板110建立蓝牙连接”。当终端设备接收到来电事件E后,向网关140发送查询请求,以查询局域网150是否有处于蓝牙连接状态的蓝牙耳机。网关140在接收到查询请求后,向终端设备回复蓝牙耳机120的设备标识(例如,蓝牙耳机120的设备名称,MAC地址等)以及蓝牙耳机120的通信状态信息:“与平板110建立蓝牙连接”,这样,终端设备可获知蓝牙耳机120处于蓝牙连接状态。Example 3: After the Bluetooth headset 120 establishes a Bluetooth connection with the tablet 110, the tablet 110 reports the connection event to the gateway 140, the hub device in the local area network 150, so that the gateway 140 can record the communication status information of the Bluetooth headset 120: "with Tablet 110 establishes a Bluetooth connection". After receiving the incoming call event E, the terminal device sends a query request to the gateway 140 to query whether the local area network 150 has a Bluetooth headset in a Bluetooth connection state. After receiving the query request, the gateway 140 replies to the terminal device the device identification of the Bluetooth headset 120 (for example, the device name of the Bluetooth headset 120, the MAC address, etc.) and the communication status information of the Bluetooth headset 120: "establish a Bluetooth connection with the tablet 110" , in this way, the terminal device can know that the Bluetooth headset 120 is in the Bluetooth connection state.
终端设备还可以通过其他方式查询局域网150中是否存在处于蓝牙连接状态的蓝牙耳机,不一一赘述。The terminal device may also query whether there is a Bluetooth headset in the Bluetooth connection state in the local area network 150 in other ways, which will not be described in detail.
S130:终端设备判断蓝牙耳机120是否是用户信任设备。如果蓝牙耳机120是用户信任设备,则执行步骤S140,以将终端设备接收到来电事件E的消息(以下称为“来电时间通知消息”或“通知消息”)通知至蓝牙耳机120;如果蓝牙耳机120不是用户信任设备,则终端设备不会发送通知消息,本方法结束。因此,本实施例可以避免不必要的信息泄露,从而可提高用户信息的安全性。S130: The terminal device determines whether the Bluetooth headset 120 is a device trusted by the user. If the Bluetooth headset 120 is a user-trusted device, step S140 is executed to notify the Bluetooth headset 120 that the terminal device has received a message of the incoming call event E (hereinafter referred to as "incoming call time notification message" or "notification message"); if the Bluetooth headset 120 If 120 is not a user trusted device, the terminal device will not send a notification message, and the method ends. Therefore, this embodiment can avoid unnecessary information leakage, thereby improving the security of user information.
以下示例性地给出终端设备判断蓝牙耳机120是否为用户信任设备的方法。The following exemplarily provides a method for the terminal device to determine whether the Bluetooth headset 120 is a device trusted by the user.
示例一:当蓝牙耳机120是已与终端设备完成蓝牙配对的设备时,终端设备认为蓝牙耳机120 是用户信任设备;否则,终端设备认为蓝牙耳机120不是用户信任的设备。本实施例中,终端设备通过将蓝牙耳机120的设备标识(例如,步骤S120中获取到的蓝牙耳机120的MAC地址)与终端设备中存储的已配对设备的设备名单进行匹配,确定蓝牙耳机120为已与终端设备完成蓝牙配对的设备。Example 1: When the Bluetooth headset 120 is a device that has completed Bluetooth pairing with the terminal device, the terminal device considers the Bluetooth headset 120 to be a user-trusted device; otherwise, the terminal device considers that the Bluetooth headset 120 is not a user-trusted device. In this embodiment, the terminal device determines the Bluetooth headset 120 by matching the device identifier of the Bluetooth headset 120 (for example, the MAC address of the Bluetooth headset 120 obtained in step S120 ) with the device list of paired devices stored in the terminal device. For the device that has completed Bluetooth pairing with the end device.
示例二:当蓝牙耳机120是已与终端设备完成蓝牙配对的设备,且蓝牙耳机120满足下述条件的至少之一时,终端设备才认为蓝牙耳机120是用户信任设备;否则,终端设备认为蓝牙耳机120不是用户信任的设备。Example 2: When the Bluetooth headset 120 is a device that has completed Bluetooth pairing with the terminal device, and the Bluetooth headset 120 satisfies at least one of the following conditions, the terminal device considers the Bluetooth headset 120 to be a user-trusted device; otherwise, the terminal device considers the Bluetooth headset The 120 is not a device that users trust.
条件A:在终端设备的历史通信过程中,蓝牙耳机120与终端设备成功建立蓝牙连接的次数超过设定阈值M1。当蓝牙耳机120与终端设备建立蓝牙连接的次数超过一定次数时,说明蓝牙耳机120是用户经常使用的设备,从而表示蓝牙耳机120是用户信任的设备。本实施例对该设定阈值M1的取值不作限定,例如,设定阈值M1可以为3次,10次等。可以理解,设定阈值M1的取值越大,越有利于提高信息的安全性。Condition A: During the historical communication process of the terminal device, the number of times that the Bluetooth headset 120 successfully establishes a Bluetooth connection with the terminal device exceeds the set threshold M1. When the number of times that the Bluetooth headset 120 establishes a Bluetooth connection with the terminal device exceeds a certain number of times, it indicates that the Bluetooth headset 120 is a device frequently used by the user, thus indicating that the Bluetooth headset 120 is a device trusted by the user. This embodiment does not limit the value of the set threshold M1, for example, the set threshold M1 may be 3 times, 10 times, or the like. It can be understood that the larger the value of the set threshold M1 is, the more beneficial it is to improve the security of information.
本实施例中,在终端设备的历史通信过程中,当终端设备与蓝牙耳机120建立蓝牙连接后,终端设备记录其与蓝牙耳机120建立蓝牙连接的次数。终端设备通过将记录的次数与设定阈值M1相比较,确定其与蓝牙耳机120建立蓝牙连接的次数大于设定阈值M1。因此,蓝牙耳机120满足条件A。In this embodiment, in the historical communication process of the terminal device, after the terminal device establishes a Bluetooth connection with the Bluetooth headset 120 , the terminal device records the number of times that the terminal device establishes the Bluetooth connection with the Bluetooth headset 120 . By comparing the recorded times with the set threshold M1, the terminal device determines that the number of times it establishes a Bluetooth connection with the Bluetooth headset 120 is greater than the set threshold M1. Therefore, the Bluetooth headset 120 satisfies the condition A.
条件B:蓝牙耳机120被用户指定为接收“来电事件通知消息”的合法设备。当用户对蓝牙耳机120的合法性进行指定后,说明用户确认蓝牙耳机120是信任设备。图5和图6给出了用户将某设备指定为接收“来电事件通知消息”的合法设备的示例性方法。Condition B: The Bluetooth headset 120 is designated by the user as a legitimate device to receive the "incoming call event notification message". After the user specifies the validity of the Bluetooth headset 120, it means that the user confirms that the Bluetooth headset 120 is a trusted device. Figures 5 and 6 illustrate exemplary methods for a user to designate a device as a legitimate device to receive an "incoming call event notification message".
参考图5。图5(a)为终端设备设置应用中的蓝牙设置界面。当用户开启该界面后,界面的区域A显示已配对蓝牙设备的设备名单,区域B显示可用蓝牙设备的设备名单。当用户点击区域A中的某一设备(设备“HUAWEI FreeBuds Pro”)时,终端设备弹出如图5(b)所示的选择框160。当用户点击选择框160中的“允许”按钮后,终端设备将该设备的设备标识(例如,MAC地址)加入信任名单,以将该设备(设备“HUAWEI FreeBuds Pro”)指定为接收“来电事件通知消息”的合法设备。Refer to Figure 5. Figure 5(a) is the Bluetooth setting interface in the terminal device setting application. When the user opens the interface, area A of the interface displays the device list of paired Bluetooth devices, and area B displays the device list of available Bluetooth devices. When the user clicks on a certain device (device "HUAWEI FreeBuds Pro") in the area A, the terminal device pops up a selection box 160 as shown in Figure 5(b). When the user clicks the “Allow” button in the selection box 160, the terminal device adds the device identification (eg, MAC address) of the device to the trust list, so as to designate the device (device “HUAWEI FreeBuds Pro”) as receiving the “Incoming Call Event” Notify message" legitimate device.
参考图6。图6(a)为与图5(a)相同的界面,即,图6(a)中区域A和区域B的含义与图5(a)相同,不再赘述。当用户点击区域B中的某一设备(设备“S3”)时,终端设备弹出如图6(b)所示的配对提示框170。当用户点击配对提示框170中的“配对”按钮后,终端设备弹出如图6(c)所示的选择框180。与图5(b)相同,当用户点击选择框180中的“允许”按钮后,终端设备将该设备的设备标识(例如,MAC地址)加入信任名单,以将该设备(设备“S3”)指定为接收“来电事件通知消息”的合法设备。Refer to Figure 6. FIG. 6( a ) is the same interface as FIG. 5( a ), that is, the meanings of area A and area B in FIG. 6( a ) are the same as those of FIG. 5( a ), and will not be repeated. When the user clicks on a certain device (device "S3") in the area B, the terminal device pops up a pairing prompt box 170 as shown in FIG. 6(b). After the user clicks the "pairing" button in the pairing prompt box 170, the terminal device pops up a selection box 180 as shown in Fig. 6(c). Same as FIG. 5(b), when the user clicks the “Allow” button in the selection box 180, the terminal device adds the device identification (eg, MAC address) of the device to the trust list, so as to add the device (device “S3”) to the trust list Designated as a legitimate device to receive Incoming Call Event Notification Messages.
另外,当用户没有调出图5(b)和图6(c)所示界面,或者,用户在提示框160、提示框180上点击“拒绝”或“关闭”按钮时,终端设备不会将对应设备添加至信任名单。也就是说,终端设备的默认设置是不将设备指定为接收“来电事件通知消息”的合法设备,只有在用户明确允许的情况下,才将设备指定为接收“来电事件通知消息”的合法设备,从而可以进一步保证信息的安全性。另外,终端设备还可以对信任名单进行加密,以进一步保证信息的安全性。In addition, when the user does not call up the interfaces shown in Fig. 5(b) and Fig. 6(c), or the user clicks the "Reject" or "Close" button on the prompt box 160 and the prompt box 180, the terminal device will not The corresponding device is added to the trusted list. That is to say, the default setting of the terminal device is not to designate the device as a legitimate device to receive "incoming call event notification messages", and to designate the device as a legitimate device to receive "incoming call event notification messages" only with the explicit permission of the user , so as to further ensure the security of information. In addition, the terminal device can also encrypt the trust list to further ensure the security of the information.
本实施例中,终端设备通过将蓝牙耳机120的设备标识与信任名单进行匹配,确定蓝牙耳机120为被用户指定为接收“来电事件通知消息”的合法设备。因此,蓝牙耳机120满足条件B。In this embodiment, the terminal device determines that the Bluetooth headset 120 is a legitimate device designated by the user to receive the "incoming call event notification message" by matching the device identifier of the Bluetooth headset 120 with the trust list. Therefore, the Bluetooth headset 120 satisfies the condition B.
在示例二中,增加对条件A和条件B进行判断的理由为:在一些场景中,用户可能会借用他 人的蓝牙耳机120,此时,用户需要将他人的蓝牙耳机与自己的设备(例如,终端设备)进行配对。因此,如果仅依据“已配对”这一条件将蓝牙耳机120确定为用户信任设备,还是有可能出现将个人信息发送至其他用户的蓝牙耳机的可能。为此,在示例二中,通过增加对条件A和/或条件B进行判断,以进一步保证蓝牙耳机120是用户信任的设备。In Example 2, the reason for adding judgment on condition A and condition B is: in some scenarios, the user may borrow other people's Bluetooth headset 120, at this time, the user needs to connect other people's Bluetooth headset with his own device (for example, terminal device) to pair. Therefore, if the Bluetooth headset 120 is determined to be a user-trusted device only based on the condition of "paired", it is still possible to send personal information to the Bluetooth headsets of other users. For this reason, in Example 2, the judgment of condition A and/or condition B is added to further ensure that the Bluetooth headset 120 is a device trusted by the user.
S140:终端设备在蓝牙广播信道上发送来电事件通知消息(作为第一消息),以将“来电事件E”通知至蓝牙耳机120(作为第二蓝牙设备)。S140: The terminal device sends an incoming call event notification message (as the first message) on the Bluetooth broadcast channel to notify the Bluetooth headset 120 (as the second Bluetooth device) of the "incoming call event E".
具体地,终端设备通过在蓝牙广播信道上发送广播包A来发送来电事件通知消息。其中,广播包A中写有来电事件E的描述信息,从而,当蓝牙耳机120接收到该广播包A时,可以获知来电事件E。Specifically, the terminal device sends the incoming call event notification message by sending the broadcast packet A on the Bluetooth broadcast channel. The description information of the incoming call event E is written in the broadcast packet A, so that when the Bluetooth headset 120 receives the broadcast packet A, the incoming call event E can be known.
本实施例中,待通知事件的描述信息包括下述一个或多个:In this embodiment, the description information of the event to be notified includes one or more of the following:
第一蓝牙设备的设备标识信息:例如为设备名称(例如,最靓的仔),设备的MAC地址(例如,手机蓝牙芯片的MAC地址),设备在局域网中的编号(例如,Node 001);Device identification information of the first Bluetooth device: for example, the device name (for example, the most handsome boy), the MAC address of the device (for example, the MAC address of the Bluetooth chip of the mobile phone), and the serial number of the device in the local area network (for example, Node 001);
第一蓝牙设备的设备类型信息:例如为手机、平板、车机、智能音箱、智能家电(例如,洗衣机,微波炉、智能门锁等)、智能摆件(例如,闹钟,温度计等)。Device type information of the first Bluetooth device: for example, a mobile phone, a tablet, a car device, a smart speaker, a smart home appliance (eg, a washing machine, a microwave oven, a smart door lock, etc.), and a smart ornament (eg, an alarm clock, a thermometer, etc.).
事件时间信息:待通知事件发生的时间,例如,终端设备接收到来电事件E的时间“12点08分”。Event time information: the time when the event to be notified occurs, for example, the time "12:08" when the terminal device receives the incoming call event E.
事件类型信息:例如为来电事件、日程提醒事件、门铃时间、任务完成事件(例如,洗衣机的洗涤程序完成,定时器计时完成)等。Event type information: for example, an incoming call event, a schedule reminder event, a doorbell time, a task completion event (for example, the washing program of the washing machine is completed, the timer is completed), and the like.
图7给出了广播包A的一个示例。其中,广播包A为通用类型的广播包(ADV_IND),其“数据”字段中写有来电事件E的描述信息,具体包括:终端设备的设备名称“最靓的仔”,终端设备接收到来电事件E的时间“12点08分”以及事件类型“来电事件”。在其他示例中,广播包A中的事件描述信息可以多于或少于上述信息。An example of broadcast packet A is given in FIG. 7 . Among them, the broadcast packet A is a general type of broadcast packet (ADV_IND), and the description information of the incoming call event E is written in the "data" field, which specifically includes: the device name of the terminal device "the most beautiful boy", the terminal device receives an incoming call Time "12:08" of event E and event type "Incoming call event". In other examples, the event description information in the broadcast packet A may be more or less than the above-mentioned information.
S150:蓝牙耳机120接收到来电事件通知消息,并判断自身是否为来电事件通知消息的目标接收设备。S150: The Bluetooth headset 120 receives the incoming call event notification message, and determines whether it is the target receiving device of the incoming call event notification message.
具体地,蓝牙耳机120通过对蓝牙广播信道进行扫描,以接收到终端设备发送的来电事件通知消息(即广播包A)。蓝牙耳机120在接收到来电事件通知消息后,进一步判断自身是否为来电事件通知消息的目标接收设备。Specifically, the Bluetooth headset 120 scans the Bluetooth broadcast channel to receive an incoming call event notification message (ie, broadcast packet A) sent by the terminal device. After receiving the incoming call event notification message, the Bluetooth headset 120 further determines whether it is the target receiving device of the incoming call event notification message.
参考图7,本实施例中,来电事件通知消息的发送载体——广播包A的“数据”字段中还写有蓝牙耳机120的设备标识(具体为蓝牙耳机120的MAC地址),蓝牙耳机120根据广播包A中的MAC地址确定自身是否为来电事件通知消息的目标接收设备。具体地,当蓝牙耳机120的MAC地址与广播包A中的MAC地址相同时,蓝牙耳机120确定自身为来电事件通知消息的目标接收设备;否则,蓝牙耳机120确定自身不是来电事件通知消息的目标接收设备。Referring to FIG. 7 , in the present embodiment, the device identifier of the Bluetooth headset 120 (specifically, the MAC address of the Bluetooth headset 120 ) is written in the “data” field of the broadcast packet A, which is the transmission carrier of the incoming call event notification message, and the Bluetooth headset 120 Determine whether it is the target receiving device of the incoming call event notification message according to the MAC address in the broadcast packet A. Specifically, when the MAC address of the Bluetooth headset 120 is the same as the MAC address in the broadcast packet A, the Bluetooth headset 120 determines that it is the target receiving device of the incoming call event notification message; otherwise, the Bluetooth headset 120 determines that it is not the target of the incoming call event notification message receiving device.
当蓝牙耳机120确定自身是来电事件通知消息的目标接收设备时,进一步执行步骤S160,以对来电事件通知消息进行响应(例如,播放用于提示来电事件E的提示音频);否则,蓝牙耳机120忽略接收到的来电事件通知消息,以避免错误泄露用户信息。When the Bluetooth headset 120 determines that it is the target receiving device of the incoming call event notification message, step S160 is further performed to respond to the incoming call event notification message (for example, play the prompt audio for prompting the incoming call event E); otherwise, the Bluetooth headset 120 Ignore incoming call event notification messages to avoid false disclosure of user information.
另外,如果终端设备周边存在多个符合步骤S120和S130所述条件的第二蓝牙设备,那么终端设备会依此方式准备多个广播包A,每个广播包A的“数据”字段中写入其中一个第二蓝牙设备的MAC地址,并将多个广播包A依次发送,但本申请不限于此。在其他实施例中,广播包A中可以包括多个符合步骤S120和S130所述条件的第二蓝牙设备的MAC地址(即广播包A的“数 据”字段中包括多个MAC地址)。当蓝牙耳机120接收到广播包A后,只要自身的MAC地址是多个MAC地址的其中之一,即可执行步骤S160。In addition, if there are multiple second Bluetooth devices that meet the conditions described in steps S120 and S130 around the terminal device, the terminal device will prepare multiple broadcast packets A in this way, and the "data" field of each broadcast packet A is written in The MAC address of one of the second Bluetooth devices, and the multiple broadcast packets A are sent in sequence, but the present application is not limited to this. In other embodiments, the broadcast packet A may include multiple MAC addresses of the second Bluetooth device that meet the conditions described in steps S120 and S130 (that is, the "data" field of the broadcast packet A includes multiple MAC addresses). After the Bluetooth headset 120 receives the broadcast packet A, as long as its own MAC address is one of the multiple MAC addresses, step S160 can be executed.
另外,如果终端设备周围存在多个符合步骤步骤S120和S130所述条件的蓝牙设备(称为“可用蓝牙设备”),终端设备可以选择其一作为广播包A的目标接收设备(作为第二蓝牙设备),并在广播包A的“数据”字段写入该目标接收设备的MAC地址。本实施例对终端设备从多个可用蓝牙设备中选择目标接收设备的方法不作限定,以下给出几个示例。In addition, if there are multiple Bluetooth devices (referred to as "available Bluetooth devices") that meet the conditions described in steps S120 and S130 around the terminal device, the terminal device can select one of them as the target receiving device of the broadcast packet A (as the second Bluetooth device) device), and write the MAC address of the target receiving device in the "Data" field of the broadcast packet A. This embodiment does not limit the method for the terminal device to select a target receiving device from a plurality of available Bluetooth devices, and several examples are given below.
示例一:终端设备在多个可用蓝牙设备中,选择距离最近的设备作为目标接收设备。具体地,终端设备可通过蓝牙近接(proximity)感知技术,获取到终端设备与多个可用蓝牙设备之间的距离,并从中选择距离最小的设备作为目标接收设备。Example 1: The terminal device selects the nearest device among multiple available Bluetooth devices as the target receiving device. Specifically, the terminal device can obtain the distance between the terminal device and multiple available Bluetooth devices through the Bluetooth proximity sensing technology, and select the device with the smallest distance among them as the target receiving device.
示例二:终端设备在多个可用蓝牙设备中,选择与终端设备建立蓝牙连接次数最多的设备作为目标接收设备。可以理解,与终端设备建立蓝牙连接次数最多的设备,应为用户最常用的设备。本示例将该设备作为目标接收设备,有利于保证将来电事件E通知到的用户。Example 2: The terminal device selects the device that has established the most Bluetooth connections with the terminal device from among multiple available Bluetooth devices as the target receiving device. It can be understood that the device that establishes the most Bluetooth connections with the terminal device should be the device most commonly used by the user. In this example, the device is used as the target receiving device, which is beneficial to ensure the user who is notified of the incoming call event E.
示例三:终端设备在多个可用蓝牙设备中,选择与终端设备适配性最好的设备作为目标接收设备,例如,将与终端设备属于同一个品牌(例如,HUAWEI TM)的设备作为目标接收设备。具体地,终端设备中还可以存储有多个可用蓝牙设备的使用优先级(例如,根据各可用蓝牙设备与终端设备的适配性确定的使用优先级),当终端设备接收到来电事件E后,从多个可用的第二蓝牙设备中选择使用优先级最高的设备作为目标接收设备。 Example 3: The terminal device selects the device with the best compatibility with the terminal device among multiple available Bluetooth devices as the target receiving device. For example, the device belonging to the same brand (for example, HUAWEI TM ) as the terminal device is used as the target receiving device. equipment. Specifically, the terminal device may also store the usage priorities of multiple available Bluetooth devices (for example, the usage priorities determined according to the compatibility of each available Bluetooth device and the terminal device). When the terminal device receives the incoming call event E , and select the device with the highest priority from the multiple available second Bluetooth devices as the target receiving device.
S160:终端设备执行响应于来电事件通知消息的响应动作。具体地,参考图4,蓝牙耳机120执行响应动作的过程包括:S160: The terminal device performs a response action in response to the incoming call event notification message. Specifically, referring to FIG. 4 , the process of performing the response action by the Bluetooth headset 120 includes:
S161:蓝牙耳机120向终端设备发送应答消息。S161: The Bluetooth headset 120 sends a response message to the terminal device.
具体地,蓝牙耳机120通过在蓝牙广播信道上向终端设备发送广播包B以向终端设备发送应答消息。图8给出了广播包B的一个示例。Specifically, the Bluetooth headset 120 sends a response message to the terminal device by sending a broadcast packet B to the terminal device on the Bluetooth broadcast channel. An example of broadcast packet B is given in FIG. 8 .
参考图8,蓝牙耳机120通过扫描回复数据包向终端设备发送应答消息,因此,广播包B的“类型”字段(Adv PDU Type)的值0100;广播包B的“广播设备地址”字段(AdvA)的值为终端设备的MAC地址(该MAC地址可以从终端设备发送的广播包A中解析得到),因此广播包B为回复给终端设备的数据包;广播包B的“数据”字段中包括确收报文“NOTICE ACKNOWLEDGE”,当终端设备接收到广播包B时,可确定蓝牙耳机120已收到广播包A。Referring to FIG. 8 , the Bluetooth headset 120 sends a response message to the terminal device by scanning the reply data packet. Therefore, the value of the “Type” field (Adv PDU Type) of the broadcast packet B is 0100; ) is the MAC address of the terminal device (the MAC address can be parsed from the broadcast packet A sent by the terminal device), so the broadcast packet B is the data packet replied to the terminal device; the "data" field of the broadcast packet B includes The acknowledgment message "NOTICE ACKNOWLEDGE", when the terminal device receives the broadcast packet B, can determine that the Bluetooth headset 120 has received the broadcast packet A.
图8为广播包B的示例性说明,本领域技术人员可以进行其他变形。例如,在其他实施例中,广播包B的“数据”字段中不仅包括“NOTICE ACKNOWLEDGE”,还可以包括广播包A的“数据”字段中的内容。这样,终端设备可以更为准确地确认广播包B为对广播包A的回复。FIG. 8 is an exemplary illustration of broadcast packet B, and other modifications may be made by those skilled in the art. For example, in other embodiments, the "Data" field of the broadcast packet B not only includes "NOTICE ACKNOWLEDGE", but may also include the content in the "Data" field of the broadcast packet A. In this way, the terminal device can more accurately confirm that the broadcast packet B is a reply to the broadcast packet A.
S162:蓝牙耳机120播放提示音频,提示音频用于向用户提示“来电事件E”。具体地,参考图9,蓝牙耳机120播放提示音频的过程包括以下步骤:S162: The Bluetooth headset 120 plays a prompt audio, and the prompt audio is used to prompt the user of "call event E". Specifically, referring to FIG. 9 , the process of playing the prompt audio by the Bluetooth headset 120 includes the following steps:
S162a:蓝牙耳机120判断其当前的音频播放业务是否为通话业务。S162a: The Bluetooth headset 120 determines whether its current audio playback service is a call service.
蓝牙协议支持两种类型的音频播放业务,分别为通话业务和通信业务。平板110在向蓝牙耳机120输出音频时,会向蓝牙耳机120提供该音频播放业务的业务标识,例如,通话业务的业务标识为MODE_IN_CALL,通信业务的业务标识为MODE_IN_COMMUNICATION,蓝牙耳机120根据平板110发送的业务标识可以判断当前音频播放业务的业务类型。The Bluetooth protocol supports two types of audio playback services, namely call service and communication service. When the tablet 110 outputs audio to the Bluetooth headset 120, it will provide the Bluetooth headset 120 with the service identifier of the audio playback service. For example, the service identifier of the call service is MODE_IN_CALL, the service identifier of the communication service is MODE_IN_COMMUNICATION, and the Bluetooth headset 120 sends the service identifier according to the tablet 110. The service identifier of the current audio playback service can determine the service type of the current audio playback service.
当蓝牙耳机120的当前音频播放业务是通话业务时,说明用户正在使用蓝牙耳机120与其他用户进行实时通话。如果用户的实时通话被中断,将会产生的不良的体验。因此,在该场景下, 蓝牙耳机120暂不播放提示音频,而是执行步骤S162e~S162g,以延迟播放提示音频。When the current audio playback service of the Bluetooth headset 120 is a call service, it means that the user is using the Bluetooth headset 120 to make a real-time call with other users. If the user's real-time call is interrupted, there will be a bad experience. Therefore, in this scenario, the Bluetooth headset 120 does not play the prompt audio for the time being, but executes steps S162e to S162g to delay playing the prompt audio.
当蓝牙耳机120的当前音频播放业务是通话业务之外的其他业务(例如,通信业务,未播放音频)时,蓝牙耳机120执行步骤S162b~S162d,以在当前时刻播放提示音频。When the current audio playback service of the Bluetooth headset 120 is other than the call service (eg, communication service, no audio is played), the Bluetooth headset 120 performs steps S162b to S162d to play the prompt audio at the current moment.
S162b:蓝牙耳机120向平板110发送暂停播放指令,以使得平板110暂停当前音频播放业务。S162b: The Bluetooth headset 120 sends a playback pause instruction to the tablet 110, so that the tablet 110 pauses the current audio playback service.
具体地,蓝牙耳机120通过其与平板110之间的点对点蓝牙通信信道,向平板110发送暂停播放指令。平板110在接收到该指令后,暂停当前运行的音频播放应用(例如,优酷视频 TM,酷我音乐 TM),以暂停向蓝牙耳机120输出音频信号。另外,当蓝牙耳机120当前未播放音频时,蓝牙耳机120可省略该步骤。 Specifically, the Bluetooth headset 120 sends a pause play instruction to the tablet 110 through the point-to-point Bluetooth communication channel between the Bluetooth headset 120 and the tablet 110 . After receiving the instruction, the tablet 110 suspends the currently running audio playback application (eg, Youku Video TM , Kuwo Music TM ) to suspend the output of audio signals to the Bluetooth headset 120 . In addition, when the Bluetooth headset 120 is not currently playing audio, the Bluetooth headset 120 may omit this step.
S162c:蓝牙耳机120播放提示音频(作为第一音频),提示音频用于向用户提示“来电事件E”。S162c: The Bluetooth headset 120 plays a prompt audio (as the first audio), and the prompt audio is used to prompt the user of "call event E".
蓝牙耳机120在暂停当前的音频播放业务后,启动播放提示音频。本实施例中,提示音频携带有一项或多项事件描述信息。After suspending the current audio playing service, the Bluetooth headset 120 starts playing the prompt audio. In this embodiment, the prompt audio carries one or more items of event description information.
在一些示例中,提示音频为预置在蓝牙耳机120中的音频。例如,蓝牙耳机120中预置有多条提示音频,不同的提示音频对应于不同的事件类型。当蓝牙耳机120接收到广播包A后,对广播包A进行解析,以确定数据包A中携带的事件类型信息。进而,蓝牙耳机120播放与数据包A携带的事件类型信息相对应的提示音频。In some examples, the prompt audio is audio preset in the Bluetooth headset 120 . For example, a plurality of prompt audios are preset in the Bluetooth headset 120, and different prompt audios correspond to different event types. After receiving the broadcast packet A, the Bluetooth headset 120 parses the broadcast packet A to determine the event type information carried in the data packet A. Furthermore, the Bluetooth headset 120 plays the prompt audio corresponding to the event type information carried by the data packet A.
在另一些示例中,蓝牙耳机120中具有预置的语音库。蓝牙耳机120在接收到广播包A后,解析得到广播包A中包含的事件描述信息,并根据预置语音库将事件描述信息的文本转换为提示语音。In other examples, the Bluetooth headset 120 has a preset voice library. After receiving the broadcast packet A, the Bluetooth headset 120 parses and obtains the event description information contained in the broadcast packet A, and converts the text of the event description information into a prompt voice according to a preset voice library.
在此基础上,本实施例中对提示音频的内容不作限定,以下给出部分示例。On this basis, the content of the prompt audio is not limited in this embodiment, and some examples are given below.
示例一:提示音频中携带有事件类型信息。例如,当事件类型为来电事件时,提示音频为预置的电话铃声;当事件类型为定时器任务完成时,播放预设的提示音频,或者播放包括语音内容“定时器时间到”的提示音;Example 1: The prompt audio carries event type information. For example, when the event type is an incoming call event, the prompt audio is the preset phone ringtone; when the event type is the timer task completion, the preset prompt audio is played, or the prompt tone including the voice content "timer is up" is played. ;
示例二:提示音频中携带有设备标识信息和事件类型信息。例如,参考图7,当设备标识为“最靓的仔”,事件类型为“来电事件时”,提示音频中包括语音内容“最靓的仔接收到来电,请及时处理”;Example 2: The prompt audio carries device identification information and event type information. For example, referring to Figure 7, when the device is identified as "the most beautiful boy" and the event type is "incoming call event", the prompt audio includes the voice content "the most beautiful boy has received an incoming call, please deal with it in time";
示例三:提示音频中携带有设备类型信息。例如,当设备类型为“笔记本电脑”时,提示音频中包括语音内容“笔记本电脑上有新消息,请查看”。Example 3: The prompt audio carries the device type information. For example, when the device type is "laptop", the prompt audio includes the voice content "new message on laptop, please check".
本实施例中,提示音频中携带有一项或多项事件描述信息,但本申请不限于此。在其他实施例中,提示音频可以是与事件描述信息无关的格式化音频(例如,提示音频为格式化语音“请查看新消息”);又如,为提高用户体验,提示音频还可以为具有趣味性的音频(例如,个性音频,搞笑音频)等。另外,蓝牙耳机120播放的提示音频可以是从终端设备侧下载的音频。In this embodiment, the prompt audio carries one or more pieces of event description information, but the application is not limited to this. In other embodiments, the prompt audio may be formatted audio unrelated to the event description information (for example, the prompt audio is a formatted voice "please check the new message"); for another example, in order to improve user experience, the prompt audio may also have Interesting audio (eg, personality audio, funny audio), etc. In addition, the prompt audio played by the Bluetooth headset 120 may be audio downloaded from the terminal device side.
S162d:蓝牙耳机120向平板110发送恢复播放指令,以使得平板110恢复音频播放业务。S162d: The Bluetooth headset 120 sends a playback resume instruction to the tablet 110, so that the tablet 110 resumes the audio playback service.
蓝牙耳机120在播放完提示音频后,向平板110发送恢复播放的指令。平板110在接收到该指令后,平板110上的音频播放应用(步骤S162b中被暂停的应用)恢复向蓝牙耳机120输出音频信号。After playing the prompt audio, the Bluetooth headset 120 sends an instruction to resume playing to the tablet 110 . After the tablet 110 receives the instruction, the audio playback application on the tablet 110 (the application suspended in step S162b ) resumes outputting audio signals to the Bluetooth headset 120 .
S162e:蓝牙耳机120在任务队列中添加提示音频播放任务,以在当前通话业务完成之后播放提示音频。S162e: The Bluetooth headset 120 adds a prompt audio playback task to the task queue, so as to play the prompt audio after the current call service is completed.
S162f:蓝牙耳机120接收到通话结束的信令。S162f: The Bluetooth headset 120 receives a signaling that the call ends.
当平板110上的通话业务结束之后(例如,用户挂断平板110上的当前通话之后),平板110向耳机发送通话结束的信令,从而,终端设备终端设备接收到通话结束的信令。After the call service on the tablet 110 ends (for example, after the user hangs up the current call on the tablet 110), the tablet 110 sends a call end signaling to the headset, so that the terminal device terminal device receives the call end signaling.
S162g:蓝牙耳机120播放提示音频。S162g: The Bluetooth headset 120 plays the prompt audio.
蓝牙耳机120在接收到通话结束的信令后,启动播放提示音频。其中,提示音频的内容可以参考步骤S162c中的描述,不再赘述。After receiving the signaling of the end of the call, the Bluetooth headset 120 starts to play the prompt audio. For the content of the prompt audio, reference may be made to the description in step S162c, and details are not repeated here.
另外,本步骤中,由于提示音频是延迟播放的(即提示音频是在通话业务结束后播放的),因此,可以在提示音频中加入来电事件E的时间信息,以使用户获知来电事件E的发生时间。示例性地,提示音频中包括语音“最靓的仔在12点08分接收到来电,请及时处理”。In addition, in this step, since the prompt audio is played with a delay (that is, the prompt audio is played after the end of the call service), the time information of the incoming call event E can be added to the prompt audio, so that the user is informed of the incoming call event E. Time of occurrence. Exemplarily, the prompt audio includes a voice "the most beautiful boy received a call at 12:08, please deal with it in time".
上述步骤S162a~S162g对蓝牙耳机120播放提示音频的过程进行了介绍,但本申请不以此为限,本领域技术人员可以在此基础上进行其他变形。The above steps S162a-S162g describe the process of playing the prompt audio by the Bluetooth headset 120, but the present application is not limited to this, and those skilled in the art can make other modifications on this basis.
例如,在步骤S162a中,如果蓝牙耳机120判断其当前的音频播放业务是通话业务,可以先播放一个较短的音频(作为第二音频,短于步骤S162c或步骤S162g中的提示音频),例如,“滴滴滴”的声音,以提示用户有新事件发生。在当前通话业务结束之后,再播放步骤S162g中确定的提示音频。这样,不仅可以起到一定的提示作用,也可以避免影响用户的正常通话。For example, in step S162a, if the Bluetooth headset 120 judges that its current audio playback service is a call service, it can first play a shorter audio (as the second audio, shorter than the prompt audio in step S162c or step S162g), for example , "Di Di Di Di" sound to alert the user that there is a new event. After the current call service ends, the prompt audio determined in step S162g is played again. In this way, it can not only play a certain prompting role, but also avoid affecting the normal conversation of the user.
综上,本实施例提供了一种事件通知方法,当终端设备上接收到来电事件E时,通过蓝牙广播信道向蓝牙耳机120发送来电事件通知消息。蓝牙耳机120在接收到通知消息后,播放提示音频,以向用户提示“来电事件E”,从而可避免用户漏接来电。To sum up, this embodiment provides an event notification method. When an incoming call event E is received on the terminal device, an incoming call event notification message is sent to the Bluetooth headset 120 through a Bluetooth broadcast channel. After receiving the notification message, the Bluetooth headset 120 plays a prompt audio to prompt the user of "incoming call event E", so as to prevent the user from missing an incoming call.
另外,终端设备通过蓝牙广播信道向蓝牙耳机120发送来电事件通知消息,从而,终端设备和蓝牙耳机120之间不需要建立蓝牙连接,因此可以适用于各种蓝牙设备(例如,仅支持一条蓝牙连接通道的蓝牙耳机),具有较好的适应性。In addition, the terminal device sends an incoming call event notification message to the Bluetooth headset 120 through the Bluetooth broadcast channel, so that a Bluetooth connection does not need to be established between the terminal device and the Bluetooth headset 120, so it can be applied to various Bluetooth devices (for example, only one Bluetooth connection is supported) channel Bluetooth headset), with better adaptability.
需要说明的是,本实施例为本申请技术方案的示例性说明,本领域技术人员可以进行其他变形。It should be noted that this embodiment is an exemplary illustration of the technical solution of the application, and those skilled in the art can make other modifications.
例如,本实施例中,终端设备向符合预设条件的蓝牙耳机120发送来电事件通知消息,其中,预设条件包括步骤S120所述的条件(即蓝牙耳机120为处于蓝牙连接状态的耳机),以及步骤S130所述的条件(即蓝牙耳机120为用户信任的设备),本申请不以此为限。在其他实施例中,预设条件可以仅包括步骤S120所述条件和步骤S130所述条件的其中之一;或者,预设条件可以不包括额外条件,例如,终端设备向任意蓝牙设备发送来电事件通知消息。For example, in this embodiment, the terminal device sends an incoming call event notification message to the Bluetooth headset 120 that meets the preset condition, where the preset condition includes the conditions described in step S120 (that is, the Bluetooth headset 120 is a headset in a Bluetooth connection state), As well as the conditions described in step S130 (that is, the Bluetooth headset 120 is a device trusted by the user), the present application is not limited to this. In other embodiments, the preset condition may only include one of the conditions described in step S120 and the condition described in step S130; or, the preset condition may not include additional conditions, for example, the terminal device sends an incoming call event to any Bluetooth device notification message.
例如,在其他实施例中,蓝牙耳机120通过“播放提示音频”之外的其他方式来向用户提示“来电事件E”。例如,蓝牙耳机120上设置有闪光灯或者振动马达,当蓝牙耳机120接收到来电事件通知消息后,通过闪烁闪光灯或者振动马达的方式向用户提示“来电事件E”。For example, in other embodiments, the Bluetooth headset 120 prompts the user "incoming call event E" by means other than "playing prompt audio". For example, the Bluetooth headset 120 is provided with a flashlight or a vibration motor. When the Bluetooth headset 120 receives the incoming call event notification message, it prompts the user "calling event E" by flashing the flashlight or vibrating the motor.
例如,在其他实施例中,当终端设备在步骤S130中判断蓝牙耳机120是用户信任设备后,向蓝牙耳机120提供密钥B,其中,密钥B是与终端设备自身保存的密钥A相配对的密钥。当终端设备向蓝牙耳机120发送广播包A时,通过密钥A对广播包A中的蓝牙耳机120的MAC地址,和/或,来电事件E的描述信息进行加密。由于只有蓝牙耳机120才有与密钥A相配对的密钥B,因此,只有蓝牙耳机120才能对广播包A中的有效信息进行解密,其他设备无法获知广播包A中的有效信息,从而可进一步保证信息的安全性。For example, in other embodiments, after the terminal device determines in step S130 that the Bluetooth headset 120 is a user-trusted device, it provides the Bluetooth headset 120 with a key B, where the key B matches the key A stored by the terminal device itself right key. When the terminal device sends the broadcast packet A to the Bluetooth headset 120, the key A is used to encrypt the MAC address of the Bluetooth headset 120 in the broadcast packet A and/or the description information of the incoming call event E. Since only the Bluetooth headset 120 has the key B paired with the key A, only the Bluetooth headset 120 can decrypt the valid information in the broadcast package A, and other devices cannot know the valid information in the broadcast package A, so that they can decrypt the valid information in the broadcast package A. To further ensure the security of information.
例如,在其他实施例中,可以变更部分步骤的执行次序,例如,变更步骤S120和步骤S130的执行次序;或者省略执行部分步骤,例如,省略执行步骤S161等。For example, in other embodiments, the execution order of some steps may be changed, for example, the execution order of steps S120 and S130 may be changed; or some steps may be omitted, for example, step S161 and the like may be omitted.
【实施例二】[Example 2]
本实施例在实施例一的基础上,对终端设备侧的动作进行了改进,具体为增加了终端设备的消息重发机制。本实施例中,终端设备在发送来电事件通知消息后,如果在设定时间内未接收到来自蓝牙耳机120的应答消息,则重新发送来电事件通知消息。本实施例有利于保证蓝牙耳机120不遗漏来自终端设备的通知消息。On the basis of the first embodiment, this embodiment improves the actions on the side of the terminal device, specifically, adding a message retransmission mechanism of the terminal device. In this embodiment, after sending the incoming call event notification message, the terminal device resends the incoming call event notification message if it does not receive a response message from the Bluetooth headset 120 within the set time. This embodiment is beneficial to ensure that the Bluetooth headset 120 does not miss the notification message from the terminal device.
具体地,参考图10,本实施例包括以下步骤:Specifically, referring to FIG. 10 , this embodiment includes the following steps:
S210:终端设备接收到来电事件E。S210: The terminal device receives the incoming call event E.
S220:终端设备响应于接收到来电事件E,查询终端设备所在的局域网中是否存在处于蓝牙连接状态的蓝牙耳机120。如果存在,则执行步骤S230,以进一步对判断该蓝牙耳机120是否是用户信任设备;如果不存在,则本方法结束。S220: In response to receiving the incoming call event E, the terminal device queries whether there is a Bluetooth headset 120 in a Bluetooth connection state in the local area network where the terminal device is located. If it exists, step S230 is executed to further judge whether the Bluetooth headset 120 is a user-trusted device; if not, the method ends.
S230:终端设备判断蓝牙耳机120是否是用户信任设备。如果蓝牙耳机120是用户信任设备,则执行步骤S240,以将终端设备接收到来电事件E的消息通知至蓝牙耳机120;如果蓝牙耳机120不是用户信任设备,则终端设备不会发送通知消息,本方法结束。S230: The terminal device determines whether the Bluetooth headset 120 is a device trusted by the user. If the Bluetooth headset 120 is a user-trusted device, step S240 is executed to notify the Bluetooth headset 120 that the terminal device has received the incoming call event E; if the Bluetooth headset 120 is not a user-trusted device, the terminal device will not send a notification message. method ends.
S240:终端设备在蓝牙广播信道上发送来电事件通知消息,以将“来电事件E”通知至蓝牙耳机120。另外,本实施例中,终端设备中记录有终端设备发送来电事件通知消息的次数i,终端设备在每次发送来电事件通知消息后,在发送次数i上加1。S240: The terminal device sends an incoming call event notification message on the Bluetooth broadcast channel to notify the Bluetooth headset 120 of the "incoming call event E". In addition, in this embodiment, the terminal device records the number of times i that the terminal device sends an incoming call event notification message, and the terminal device adds 1 to the number of times i after each sending an incoming call event notification message.
步骤S210~S240与实施例一中的步骤S110~S140实质相同,因此,步骤中的未述细节可参考实施例一中的描述,不再赘述。Steps S210 to S240 are substantially the same as steps S110 to S140 in the first embodiment. Therefore, the details not described in the steps may refer to the description in the first embodiment, and will not be repeated.
S250:终端设备启动定时器。终端设备在发送广播消息后,启动一个定时器程序。本实施例对定时器的计时时长不作限定,例如,3s,7s等。S250: The terminal device starts a timer. The terminal device starts a timer program after sending the broadcast message. This embodiment does not limit the time duration of the timer, for example, 3s, 7s, and the like.
S260:终端设备判断其是否在定时器计时结束之前接收到来自蓝牙耳机120的应答消息,如果接收到,终端设备执行步骤S270,以关闭定时器;如果没有接收到,终端设备执行步骤S280。S260: The terminal device determines whether it has received a response message from the Bluetooth headset 120 before the timer expires. If so, the terminal device executes step S270 to close the timer; if not, the terminal device executes step S280.
S270:终端设备关闭定时器。终端设备终止在步骤S250中启动的定时器程序,本方法结束。S270: The terminal device closes the timer. The terminal device terminates the timer program started in step S250, and the method ends.
S280:终端设备判断来电事件通知消息的发送次数是否达到设定阈值M2。如果达到,终端设备不再重发通知消息,本方法结束;如果未达到,终端设备返回执行步骤S240,以重发通知消息。本实施例对设定阈值M2的具体数值不作限定,例如,设定阈值M2可以为2次,5次等。S280: The terminal device determines whether the number of times the incoming call event notification message is sent reaches the set threshold M2. If it is reached, the terminal device does not re-send the notification message, and the method ends; if not, the terminal device returns to step S240 to re-send the notification message. This embodiment does not limit the specific value of the set threshold value M2. For example, the set threshold value M2 may be set to 2 times, 5 times, or the like.
也就是说,终端设备执行有限次的消息重发。当终端设备发送通知消息的次数达到设定阈值M2时,即使没有接收到来自蓝牙耳机120的应答消息,也不再重发通知消息,从而节省终端设备能耗。That is, the terminal device performs a limited number of message retransmissions. When the number of times the terminal device sends the notification message reaches the set threshold M2, even if no response message from the Bluetooth headset 120 is received, the notification message will not be resent, thereby saving energy consumption of the terminal device.
综上,本实施例中,终端设备在发送来电事件通知消息后,如果未接收到来自蓝牙耳机120的应答消息,则执行消息重发。因而,本实施例有利于保证蓝牙耳机120不遗漏来自终端设备的通知消息。To sum up, in this embodiment, after the terminal device sends an incoming call event notification message, if it does not receive a response message from the Bluetooth headset 120, it performs message retransmission. Therefore, this embodiment is beneficial to ensure that the Bluetooth headset 120 does not miss the notification message from the terminal device.
以下结合图11说明根据本申请实施例提供的蓝牙系统结构图200。蓝牙系统200包括蓝牙设备210(例如,手机)和蓝牙设备220(例如,蓝牙耳机)。The following describes a structural diagram 200 of a Bluetooth system provided according to an embodiment of the present application with reference to FIG. 11 . The Bluetooth system 200 includes a Bluetooth device 210 (eg, a mobile phone) and a Bluetooth device 220 (eg, a Bluetooth headset).
其中,蓝牙设备210包括:Wherein, the Bluetooth device 210 includes:
系统框架层211:用于接收来电事件,并将接收到的来电事件通知电话应用212;以及,确定局域网中存在处于蓝牙连接状态,且已与蓝牙设备210配对的蓝牙设备220;以及,生成来电事件通知消息,并通过蓝牙模块213发送来电事件通知消息。系统框架层211所执行的功能可以与图4中的步骤S110~S140,图10中的步骤S210~S280相对应。System framework layer 211: for receiving incoming call events, and notifying the phone application 212 of the incoming incoming call events; and, determining that there is a Bluetooth device 220 in a Bluetooth connection state and paired with the Bluetooth device 210 in the local area network; and, generating an incoming call event notification message, and send the incoming call event notification message through the Bluetooth module 213 . The functions performed by the system framework layer 211 may correspond to steps S110 to S140 in FIG. 4 and steps S210 to S280 in FIG. 10 .
电话应用212:用于生成来电呼叫界面(例如,图1a中手机100显示的界面)。Phone application 212: used to generate an incoming call interface (eg, the interface displayed by the mobile phone 100 in FIG. 1a).
蓝牙模块213:用于通过蓝牙广播信道向蓝牙设备220发送来电事件通知消息。蓝牙模块213执行的功能可以与图4中的步骤S140,图10中的步骤S240相对应。Bluetooth module 213: used to send an incoming call event notification message to the Bluetooth device 220 through a Bluetooth broadcast channel. The functions performed by the Bluetooth module 213 may correspond to step S140 in FIG. 4 and step S240 in FIG. 10 .
蓝牙设备220包括: Bluetooth device 220 includes:
蓝牙模块221:用于在蓝牙广播信道上接收来电事件通知消息;以及,判断蓝牙设备220是否为来电事件通知消息的目标接收设备;以及,在蓝牙广播信道上向蓝牙设备210发送应答消息。蓝牙模块221执行的功能可以与图4中的步骤S150、S161相对应。Bluetooth module 221: used for receiving incoming call event notification messages on the Bluetooth broadcast channel; and determining whether the Bluetooth device 220 is the target receiving device of the incoming call event notification message; and, sending a response message to the Bluetooth device 210 on the Bluetooth broadcast channel. The functions performed by the Bluetooth module 221 may correspond to steps S150 and S161 in FIG. 4 .
音频播放模块222:用于播放提示音频。音频播放模块222执行的功能可以与图4中的步骤S162,图9中的步骤S162a~S162g相对应。Audio playing module 222: used to play prompt audio. The functions performed by the audio playback module 222 may correspond to step S162 in FIG. 4 and steps S162a˜S162g in FIG. 9 .
现在参考图12,所示为根据本申请的一个实施例的电子设备400的框图。电子设备400可以包括耦合到控制器中枢403的一个或多个处理器401。对于至少一个实施例,控制器中枢403经由诸如前端总线(Front Side Bus,FSB)之类的多分支总线、诸如快速通道连(QuickPath Interconnect,QPI)之类的点对点接口、或者类似的连接406与处理器401进行通信。处理器401执行控制一般类型的数据处理操作的指令。在一实施例中,控制器中枢403包括,但不局限于,图形存储器控制器中枢(Graphics&Memory Controller Hub,GMCH)(未示出)和输入/输出中枢(Input Output Hub,IOH)(其可以在分开的芯片上)(未示出),其中GMCH包括存储器和图形控制器并与IOH耦合。Referring now to FIG. 12, shown is a block diagram of an electronic device 400 according to one embodiment of the present application. Electronic device 400 may include one or more processors 401 coupled to controller hub 403 . For at least one embodiment, the controller hub 403 is connected to 406 via a multidrop bus such as a Front Side Bus (FSB), a point-to-point interface such as a QuickPath Interconnect (QPI), or the like The processor 401 communicates. Processor 401 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 403 includes, but is not limited to, a Graphics & Memory Controller Hub (GMCH) (not shown) and an Input/Output Hub (IOH) (which may be on a separate chip) (not shown), where the GMCH includes the memory and graphics controller and is coupled to the IOH.
电子设备400还可包括耦合到控制器中枢403的协处理器402和存储器404。或者,存储器和GMCH中的一个或两者可以被集成在处理器内(如本申请中所描述的),存储器404和协处理器402直接耦合到处理器401以及控制器中枢403,控制器中枢403与IOH处于单个芯片中。 Electronic device 400 may also include a coprocessor 402 and memory 404 coupled to controller hub 403 . Alternatively, one or both of the memory and GMCH may be integrated within the processor (as described in this application), with the memory 404 and coprocessor 402 coupled directly to the processor 401 and to the controller hub 403, the controller hub 403 and IOH are in a single chip.
存储器404可以是例如动态随机存取存储器(Dynamic Random Access Memory,DRAM)、相变存储器(Phase Change Memory,PCM)或这两者的组合。存储器404中可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性计算机可读介质。计算机可读存储介质中存储有指令,具体而言,存储有该指令的暂时和永久副本。The memory 404 may be, for example, Dynamic Random Access Memory (DRAM), Phase Change Memory (PCM), or a combination of the two. Memory 404 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. The computer-readable storage medium stores instructions, in particular temporary and permanent copies of the instructions.
如图12所示的电子设备400可以被分别被实现为第一蓝牙设备和第二蓝牙设备。当电子设备400被实现为第一蓝牙设备时,存储器404中存储的指令可以包括:由处理器中的至少一个执行时导致第一蓝牙设备实施如图4、图9、图10所示的方法中由终端设备实施的步骤的指令。当电子设备400被实现为第二蓝牙设备时,存储器404中存储的指令可以包括:由处理器中的至少一个执行时致使第二蓝牙设备实施如图4、图9、图10所示的方法中由蓝牙耳机实施的步骤的指令。The electronic device 400 shown in FIG. 12 may be implemented as a first Bluetooth device and a second Bluetooth device, respectively. When the electronic device 400 is implemented as the first Bluetooth device, the instructions stored in the memory 404 may include: when executed by at least one of the processors, causing the first Bluetooth device to implement the methods shown in FIG. 4 , FIG. 9 , and FIG. 10 Instructions for the steps performed by the terminal device in . When the electronic device 400 is implemented as a second Bluetooth device, the instructions stored in the memory 404 may include: when executed by at least one of the processors, causing the second Bluetooth device to implement the methods shown in FIG. 4 , FIG. 9 , and FIG. 10 Instructions for the steps implemented by the Bluetooth headset.
在一个实施例中,协处理器402是专用处理器,诸如例如高吞吐量集成众核(Many Integrated Core,MIC)处理器、网络或通信处理器、压缩引擎、图形处理器、图形处理单元上的通用计算(General-purpose computing on graphics processing units,GPGPU)、或嵌入式处理器等等。协处理器402的任选性质用虚线表示在图12中。In one embodiment, the coprocessor 402 is a special purpose processor, such as, for example, a high-throughput Many Integrated Core (MIC) processor, a network or communications processor, a compression engine, a graphics processor, a graphics processing unit General-purpose computing on graphics processing units (GPGPU), or embedded processors, etc. Optional properties of the coprocessor 402 are shown in Figure 12 with dashed lines.
在一个实施例中,电子设备400可以进一步包括网络接口(Network Interface Controller,NIC)406。网络接口406可以包括收发器,用于为电子设备400提供无线电接口,进而与任何其他合适的设备(如前端模块,天线等)进行通信。在各种实施例中,网络接口406可以与电子设备400的其他组件集成。网络接口406可以实现上述实施例中的通信单元的功能。In one embodiment, the electronic device 400 may further include a network interface (Network Interface Controller, NIC) 406 . The network interface 406 may include a transceiver for providing a radio interface for the electronic device 400 to communicate with any other suitable devices (eg, front-end modules, antennas, etc.). In various embodiments, network interface 406 may be integrated with other components of electronic device 400 . The network interface 406 can implement the functions of the communication unit in the above-mentioned embodiments.
电子设备400可以进一步包括输入/输出(Input/Output,I/O)设备405。I/O405可以包括:用户界面,该设计使得用户能够与电子设备400进行交互;外围组件接口的设计使得外围组件也能够与电子设备400交互;和/或传感器设计用于确定与电子设备400相关的环境条件和/或位置信 息。The electronic device 400 may further include an input/output (I/O) device 405 . I/O 405 may include: a user interface designed to enable a user to interact with electronic device 400 ; a peripheral component interface designed to enable peripheral components to also interact with electronic device 400 ; and/or sensors designed to determine association with electronic device 400 environmental conditions and/or location information.
值得注意的是,图12仅是示例性的。即虽然图12中示出了电子设备400包括处理器401、控制器中枢403、存储器404等多个器件,但是,在实际的应用中,使用本申请各方法的设备,可以仅包括电子设备400各器件中的一部分器件,例如,可以仅包含处理器401和网络接口406。图12中可选器件的性质用虚线示出。It is worth noting that Figure 12 is exemplary only. That is, although FIG. 12 shows that the electronic device 400 includes multiple devices such as the processor 401, the controller center 403, the memory 404, etc., in practical applications, the device using each method of the present application may only include the electronic device 400 Some of the devices, for example, may include only the processor 401 and the network interface 406 . The properties of the optional device in Figure 12 are shown in dashed lines.
现在参考图13,所示为根据本申请的一实施例的片上系统(System on Chip,SoC)500的框图。在图13中,相似的部件具有同样的附图标记。另外,虚线框是更先进的SoC的可选特征。在图13中,SoC500包括:互连单元550,其被耦合至处理器510;系统代理单元580;总线控制器单元590;集成存储器控制器单元540;一组或一个或多个协处理器520,其可包括集成图形逻辑、图像处理器、音频处理器和视频处理器;静态随机存取存储器(Static Random access Memory,SRAM)单元530;直接存储器存取(Direct Memory Access,DMA)单元560。在一个实施例中,协处理器520包括专用处理器,诸如例如网络或通信处理器、压缩引擎、图形处理单元上的通用计算(General-purpose computing on graphics processing units,GPGPU)、高吞吐量MIC处理器、或嵌入式处理器等。Referring now to FIG. 13, shown is a block diagram of a System on Chip (SoC) 500 according to an embodiment of the present application. In Figure 13, similar components have the same reference numerals. Also, the dotted box is an optional feature of more advanced SoCs. In FIG. 13 , SoC 500 includes: interconnect unit 550 coupled to processor 510 ; system proxy unit 580 ; bus controller unit 590 ; integrated memory controller unit 540 ; , which may include integrated graphics logic, image processor, audio processor and video processor; Static Random Access Memory (SRAM) unit 530; Direct Memory Access (Direct Memory Access, DMA) unit 560. In one embodiment, coprocessor 520 comprises a special purpose processor, such as, for example, a network or communications processor, a compression engine, general-purpose computing on graphics processing units (GPGPU), a high-throughput MIC processor, or embedded processor, etc.
静态随机存取存储器单元530可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性计算机可读介质。计算机可读存储介质中存储有指令,具体而言,存储有该指令的暂时和永久副本。Static random access memory unit 530 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. The computer-readable storage medium stores instructions, in particular temporary and permanent copies of the instructions.
如图13所示的SoC可以被分别设置在第一蓝牙设备和第二蓝牙设备中。当SoC被设置在第一蓝牙设备中时,静态随机存取存储器单元530中存储有指令,该指令可以包括:由处理器中的至少一个执行时导致第一蓝牙设备实施如图4、图9、图10所示的方法中由终端设备实施的步骤的指令。当SoC被设置在第二蓝牙设备中时,静态随机存取存储器单元530中存储有指令,该指令可以包括:由处理器中的至少一个执行时致使第二蓝牙设备实施如图4、图9、图10所示的方法中由蓝牙耳机实施的步骤的指令。The SoC shown in FIG. 13 may be provided in the first Bluetooth device and the second Bluetooth device, respectively. When the SoC is disposed in the first Bluetooth device, the static random access memory unit 530 stores instructions, the instructions may include: when executed by at least one of the processors, causing the first Bluetooth device to implement as shown in FIG. 4 and FIG. 9 . Instructions for steps implemented by the terminal device in the method shown in FIG. 10 . When the SoC is disposed in the second Bluetooth device, the static random access memory unit 530 stores instructions, the instructions may include: when executed by at least one of the processors, causing the second Bluetooth device to implement as shown in FIG. 4 and FIG. 9 . Instructions for steps implemented by the Bluetooth headset in the method shown in FIG. 10 .
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases.
本申请的各方法实施方式均可以以软件、磁件、固件等方式实现。Each method implementation of the present application can be implemented by means of software, magnetic components, firmware, and the like.
可将程序代码应用于输入指令,以执行本文描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(Digital Signal Processor,DSP)、微控制器、专用集成电路(ASIC)或微处理器之类的处理器的任何系统。Program code may be applied to input instructions to perform the functions described herein and to generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本文中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. The program code may also be implemented in assembly or machine language, if desired. In fact, the mechanisms described herein are not limited to the scope of any particular programming language. In either case, the language may be a compiled language or an interpreted language.
至少一个实施例的一个或多个方面可以由存储在计算机可读存储介质上的表示性指令来实现,指令表示处理器中的各种逻辑,指令在被机器读取时使得该机器制作用于执行本文所述的技术的逻辑。被称为“知识产权(Intellectual Property,IP)核”的这些表示可以被存储在有形的计算机可读存储介质上,并被提供给多个客户或生产设施以加载到实际制造该逻辑或处理器的制造机器中。One or more aspects of at least one embodiment may be implemented by representative instructions stored on a computer-readable storage medium, the instructions representing various logic in a processor, the instructions, when read by a machine, cause the machine to make Logic that implements the techniques described herein. These representations, known as "Intellectual Property (IP) cores," may be stored on tangible computer-readable storage media and provided to multiple customers or production facilities for loading into the actual manufacturing of the logic or processor in the manufacturing machine.
在一些情况下,指令转换器可用来将指令从源指令集转换至目标指令集。例如,指令转换器可以变换(例如使用静态二进制变换、包括动态编译的动态二进制变换)、变形、仿真或以其它 方式将指令转换成将由核来处理的一个或多个其它指令。指令转换器可以用软件、硬件、固件、或其组合实现。指令转换器可以在处理器上、在处理器外、或者部分在处理器上且部分在处理器外。In some cases, an instruction converter may be used to convert instructions from a source instruction set to a target instruction set. For example, an instruction translator may transform (e.g., using static binary transform, dynamic binary transform including dynamic compilation), warp, emulate, or otherwise convert an instruction into one or more other instructions to be processed by the core. Instruction translators can be implemented in software, hardware, firmware, or a combination thereof. The instruction translator may be on-processor, off-processor, or partially on-processor and partially off-processor.

Claims (22)

  1. 一种蓝牙系统,其特征在于,所述蓝牙系统包括相互之间未建立蓝牙连接的第一蓝牙设备和第二蓝牙设备,其中:A Bluetooth system, characterized in that the Bluetooth system includes a first Bluetooth device and a second Bluetooth device that do not establish a Bluetooth connection with each other, wherein:
    所述第一蓝牙设备配置为,接收到第一事件;并且,响应于接收到所述第一事件,通过蓝牙广播信道向所述第二蓝牙设备发送第一消息,所述第一消息用于向所述第二蓝牙设备通知所述第一事件;The first Bluetooth device is configured to receive a first event; and, in response to receiving the first event, send a first message to the second Bluetooth device through a Bluetooth broadcast channel, where the first message is used for notifying the second Bluetooth device of the first event;
    所述第二蓝牙设备配置为,在所述蓝牙广播信道上接收所述第一消息,并执行响应于所述第一消息的响应动作,其中,所述响应动作至少包括用于向用户提示所述第一事件的动作。The second Bluetooth device is configured to receive the first message on the Bluetooth broadcast channel, and perform a response action in response to the first message, wherein the response action at least includes prompting the user that the Describe the action of the first event.
  2. 根据权利要求1所述的系统,其特征在于,所述通过蓝牙广播信道向所述第二蓝牙设备发送第一消息,包括:The system according to claim 1, wherein the sending the first message to the second Bluetooth device through a Bluetooth broadcast channel comprises:
    所述第一蓝牙设备基于确定所述第二蓝牙设备已与所述第一蓝牙设备之外的其他蓝牙设备建立蓝牙连接,向所述第二蓝牙设备发送所述第一消息。The first Bluetooth device sends the first message to the second Bluetooth device based on determining that the second Bluetooth device has established a Bluetooth connection with another Bluetooth device other than the first Bluetooth device.
  3. 根据权利要求1或2所述的系统,所述响应动作包括播放所述第一事件的提示音频。The system of claim 1 or 2, the response action comprising playing a prompt audio for the first event.
  4. 根据权利要求3所述的系统,其特征在于,所述第一蓝牙设备发送的所述第一消息中包括所述第一事件的描述信息;以及,The system according to claim 3, wherein the first message sent by the first Bluetooth device includes description information of the first event; and,
    所述第二蓝牙设备播放的所述提示音频中包括第一音频,所述提示音频中携带有所述描述信息。The prompt audio played by the second Bluetooth device includes the first audio, and the prompt audio carries the description information.
  5. 一种事件通知方法,用于第一蓝牙设备,其特征在于,所述方法包括:An event notification method for a first Bluetooth device, characterized in that the method includes:
    接收到第一事件;received the first event;
    响应于接收到所述第一事件,通过蓝牙广播信道向第二蓝牙设备发送第一消息,所述第一消息用于向所述第二蓝牙设备通知所述第一事件,其中,所述第二蓝牙设备未与所述第一蓝牙设备建立蓝牙连接。In response to receiving the first event, a first message is sent to a second Bluetooth device through a Bluetooth broadcast channel, where the first message is used to notify the second Bluetooth device of the first event, wherein the first message is The second Bluetooth device has not established a Bluetooth connection with the first Bluetooth device.
  6. 根据权利要求5所述的方法,其特征在于,所述通过蓝牙广播信道向所述第二蓝牙设备发送第一消息,包括:The method according to claim 5, wherein the sending the first message to the second Bluetooth device through a Bluetooth broadcast channel comprises:
    基于确定所述第二蓝牙设备已与所述第一蓝牙设备之外的其他蓝牙设备建立蓝牙连接,向所述第二蓝牙设备发送所述第一消息。The first message is sent to the second Bluetooth device based on determining that the second Bluetooth device has established a Bluetooth connection with a Bluetooth device other than the first Bluetooth device.
  7. 根据权利要求5或6所述的方法,其特征在于,所述第一消息包括所述第一事件的描述信息。The method according to claim 5 or 6, wherein the first message includes description information of the first event.
  8. 根据权利要求7所述的方法,其特征在于,所述第一事件的描述信息包括所述第一蓝牙设备的设备标识信息、所述第一蓝牙设备的设备类型信息、所述第一事件的事件类型信息和/或所述第一蓝牙设备接收到所述第一事件的时间信息。The method according to claim 7, wherein the description information of the first event comprises device identification information of the first Bluetooth device, device type information of the first Bluetooth device, and information of the first event. Event type information and/or time information when the first Bluetooth device receives the first event.
  9. 根据权利要求5~8任一项所述的方法,其特征在于,所述通过蓝牙广播信道向所述第二蓝牙设备发送第一消息,进一步包括:The method according to any one of claims 5 to 8, wherein the sending the first message to the second Bluetooth device through a Bluetooth broadcast channel further comprises:
    若在发送所述第一消息后的预定时间内未接收到来自所述第二蓝牙设备的应答消息,则按照设定的时间间隔逐次重发所述第一消息,直至接收到来自所述第二蓝牙设备的应答消息,或者直至重发所述第一消息的次数超过设定阈值。If the response message from the second Bluetooth device is not received within a predetermined time after sending the first message, the first message will be retransmitted successively according to a set time interval until a response message from the second Bluetooth device is received. Two response messages from the Bluetooth device, or until the number of times of retransmitting the first message exceeds the set threshold.
  10. 根据权利要求5~9任一项所述的方法,其特征在于,所述通过蓝牙广播信道向所述第二蓝牙设备发送第一消息,包括:The method according to any one of claims 5 to 9, wherein the sending the first message to the second Bluetooth device through a Bluetooth broadcast channel comprises:
    基于确定所述第二蓝牙设备为已与所述第一蓝牙设备完成蓝牙配对的设备,向所述第二蓝牙 设备发送所述第一消息。The first message is sent to the second Bluetooth device based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device.
  11. 根据权利要求5~9任一项所述的方法,其特征在于,所述通过蓝牙广播信道向所述第二蓝牙设备发送第一消息,包括:The method according to any one of claims 5 to 9, wherein the sending the first message to the second Bluetooth device through a Bluetooth broadcast channel comprises:
    基于确定所述第二蓝牙设备为已与所述第一蓝牙设备完成蓝牙配对的设备,且确定所述第二蓝牙设备满足下述条件的至少之一,向所述第二蓝牙设备发送所述第一消息:Based on determining that the second Bluetooth device is a device that has completed Bluetooth pairing with the first Bluetooth device, and determining that the second Bluetooth device satisfies at least one of the following conditions, sending the second Bluetooth device the First message:
    在所述第一蓝牙设备的历史通信过程中,所述第二蓝牙设备与所述第一蓝牙设备建立蓝牙连接的次数超过设定阈值;During the historical communication process of the first Bluetooth device, the number of times that the second Bluetooth device establishes a Bluetooth connection with the first Bluetooth device exceeds a set threshold;
    所述第二蓝牙设备被用户指定为接收所述第一消息的合法设备。The second Bluetooth device is designated by the user as a legitimate device to receive the first message.
  12. 根据权利要求5~11任一项所述的方法,其特征在于,所述第一事件为来电事件。The method according to any one of claims 5 to 11, wherein the first event is an incoming call event.
  13. 一种事件通知方法,用于第二蓝牙设备,其特征在于,所述方法包括:An event notification method for a second Bluetooth device, characterized in that the method includes:
    在蓝牙广播信道上接收来自第一蓝牙设备的第一消息,所述第一消息用于向所述第二蓝牙设备通知所述第一蓝牙设备接收到的第一事件,其中,所述第二蓝牙设备未与所述第一蓝牙设备建立蓝牙连接;A first message from a first Bluetooth device is received on a Bluetooth broadcast channel, the first message being used to notify the second Bluetooth device of a first event received by the first Bluetooth device, wherein the second Bluetooth device The Bluetooth device has not established a Bluetooth connection with the first Bluetooth device;
    执行响应于所述第一消息的响应动作,其中,所述响应动作至少包括用于向用户提示所述第一事件的动作。A response action is performed in response to the first message, wherein the response action includes at least an action for prompting the user of the first event.
  14. 根据权利要求13所述的方法,其特征在于,所述响应动作包括播放所述第一事件的提示音频。14. The method of claim 13, wherein the response action comprises playing a prompt audio of the first event.
  15. 根据权利要求14所述的方法,其特征在于,所述第一消息中包括所述第一事件的描述信息;以及,The method according to claim 14, wherein the first message includes description information of the first event; and,
    所述第二蓝牙设备播放的所述提示音频中包括第一音频,所述提示音频中携带有所述描述信息。The prompt audio played by the second Bluetooth device includes the first audio, and the prompt audio carries the description information.
  16. 根据权利要求15所述的方法,其特征在于,所述第二蓝牙设备播放所述提示音频,包括:The method according to claim 15, wherein the second Bluetooth device playing the prompt audio comprises:
    所述第二蓝牙设备确定其当前播放业务的业务类型;The second Bluetooth device determines the service type of its current broadcast service;
    当所述第二蓝牙设备确定其当前播放业务的业务类型为通话业务时,所第二蓝牙设备在所述当前播放业务结束之后播放所述第一音频;当所述蓝牙设备确定其当前播放业务的业务类型为通话业务之外的其他类型时,所述第二蓝牙设备在当前时刻播放所述第一音频。When the second Bluetooth device determines that the service type of its current playback service is a call service, the second Bluetooth device plays the first audio after the current playback service ends; when the Bluetooth device determines that its current playback service is When the service type is other than the call service, the second Bluetooth device plays the first audio at the current moment.
  17. 根据权利要求16所述的方法,其特征在于,所述提示音频包括第二音频,所述第二音频的时长短于所述第一音频;并且,The method of claim 16, wherein the prompt audio comprises a second audio, and the duration of the second audio is shorter than that of the first audio; and,
    当所述第二蓝牙设备确定其当前播放业务的业务类型为通话业务时,所述第二蓝牙设备在当前时刻播放所述第二音频,并在当前播放业务结束之后播放所述第一音频。When the second Bluetooth device determines that the service type of its current playing service is a call service, the second Bluetooth device plays the second audio at the current moment, and plays the first audio after the current playing service ends.
  18. 根据权利要求13~17任一项所述的方法,其特征在于,所述响应动作进一步包括:The method according to any one of claims 13 to 17, wherein the response action further comprises:
    向所述第一蓝牙设备发送对所述第一消息的应答消息。A reply message to the first message is sent to the first Bluetooth device.
  19. 根据权利要求13~18任一项所述的方法,其特征在于,所述执行响应于所述第一消息的响应动作,包括:The method according to any one of claims 13 to 18, wherein the performing a response action in response to the first message comprises:
    所述第二蓝牙设备基于确定自身是所述第一消息的目标接收设备,执行所述响应动作。The second Bluetooth device performs the response action based on determining that it is a target recipient device of the first message.
  20. 根据权利要求19所述的方法,其特征在于,所述第一消息中携带有所述第一消息的目标接收设备的设备标识;The method according to claim 19, wherein the first message carries a device identifier of a target receiving device of the first message;
    所述第二蓝牙设备确定自身是所述第一消息的目标接收设备,包括:The second Bluetooth device determines that it is the target receiving device of the first message, including:
    所述第二蓝牙设备将自身的设备标识与所述第一消息中携带的设备标识进行匹配,以确定自 身是所述第一消息的目标接收设备。The second Bluetooth device matches its own device identification with the device identification carried in the first message to determine that it is the target receiving device of the first message.
  21. 根据权利要求13~20任一项所述的方法,其特征在于,所述第二蓝牙设备为蓝牙耳机、蓝牙音箱或可穿戴设备。The method according to any one of claims 13 to 20, wherein the second Bluetooth device is a Bluetooth headset, a Bluetooth speaker or a wearable device.
  22. 一种蓝牙设备,包括:A Bluetooth device comprising:
    存储器,用于存储由所述蓝牙设备的一个或多个处理器执行的指令;memory for storing instructions executed by one or more processors of the Bluetooth device;
    处理器,当所述处理器执行所述存储器中的所述指令时,可使得所述蓝牙设备执行权利要求5~12任一项所述的事件通知方法,或执行权利要求13~21任一项所述的事件通知方法。a processor, when the processor executes the instructions in the memory, it can cause the Bluetooth device to execute the event notification method according to any one of claims 5 to 12, or to execute any one of claims 13 to 21 The event notification method described in item.
PCT/CN2022/075512 2021-02-22 2022-02-08 Event notification method, bluetooth device and bluetooth system WO2022174746A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110198696.3A CN114979352A (en) 2021-02-22 2021-02-22 Event notification method, Bluetooth device and Bluetooth system
CN202110198696.3 2021-02-22

Publications (1)

Publication Number Publication Date
WO2022174746A1 true WO2022174746A1 (en) 2022-08-25

Family

ID=82932087

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/075512 WO2022174746A1 (en) 2021-02-22 2022-02-08 Event notification method, bluetooth device and bluetooth system

Country Status (2)

Country Link
CN (1) CN114979352A (en)
WO (1) WO2022174746A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499818B (en) * 2022-11-16 2023-06-02 荣耀终端有限公司 Data processing method, system, electronic device, bluetooth peripheral device and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001186566A (en) * 1999-12-24 2001-07-06 Toshiba Corp Communication system and communication method between mobile terminal and device
CN1744451A (en) * 2004-09-02 2006-03-08 固昌通讯股份有限公司 Blue-tooth earphone capable of externally connecting acoustic device and its blue tooth device
CN2862555Y (en) * 2005-10-25 2007-01-24 郑信慧 Compound functional bluetooth earphone
US20070263804A1 (en) * 2006-05-09 2007-11-15 Inventec Appliances Corp. Telephone with ability to communicate with mobile phones
CN102075891A (en) * 2009-11-24 2011-05-25 中兴通讯股份有限公司 Mobile phone answering method and system based on personal network
CN103716070A (en) * 2013-12-27 2014-04-09 深圳市国华光电科技有限公司 Method, device, facility and system for outputting alarm prompt
CN105187664A (en) * 2015-09-29 2015-12-23 努比亚技术有限公司 Control device and method for audio output equipment
CN105282338A (en) * 2015-10-30 2016-01-27 东莞酷派软件技术有限公司 Message prompting method and system of mobile terminal
CN105897311A (en) * 2016-03-25 2016-08-24 上海斐讯数据通信技术有限公司 Apparatus and method for receiving different electronic devices synchronously by earphone
CN207531028U (en) * 2017-11-27 2018-06-22 中山市易达电子商务有限公司 A kind of bluetooth headset
CN108377482A (en) * 2016-11-07 2018-08-07 中兴通讯股份有限公司 A kind of method, apparatus, system and the equipment of terminal connection bluetooth equipment
CN111464689A (en) * 2020-01-22 2020-07-28 华为技术有限公司 Audio output method and terminal equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001186566A (en) * 1999-12-24 2001-07-06 Toshiba Corp Communication system and communication method between mobile terminal and device
CN1744451A (en) * 2004-09-02 2006-03-08 固昌通讯股份有限公司 Blue-tooth earphone capable of externally connecting acoustic device and its blue tooth device
CN2862555Y (en) * 2005-10-25 2007-01-24 郑信慧 Compound functional bluetooth earphone
US20070263804A1 (en) * 2006-05-09 2007-11-15 Inventec Appliances Corp. Telephone with ability to communicate with mobile phones
CN102075891A (en) * 2009-11-24 2011-05-25 中兴通讯股份有限公司 Mobile phone answering method and system based on personal network
CN103716070A (en) * 2013-12-27 2014-04-09 深圳市国华光电科技有限公司 Method, device, facility and system for outputting alarm prompt
CN105187664A (en) * 2015-09-29 2015-12-23 努比亚技术有限公司 Control device and method for audio output equipment
CN105282338A (en) * 2015-10-30 2016-01-27 东莞酷派软件技术有限公司 Message prompting method and system of mobile terminal
CN105897311A (en) * 2016-03-25 2016-08-24 上海斐讯数据通信技术有限公司 Apparatus and method for receiving different electronic devices synchronously by earphone
CN108377482A (en) * 2016-11-07 2018-08-07 中兴通讯股份有限公司 A kind of method, apparatus, system and the equipment of terminal connection bluetooth equipment
CN207531028U (en) * 2017-11-27 2018-06-22 中山市易达电子商务有限公司 A kind of bluetooth headset
CN111464689A (en) * 2020-01-22 2020-07-28 华为技术有限公司 Audio output method and terminal equipment

Also Published As

Publication number Publication date
CN114979352A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US20230094272A1 (en) Notification Processing System, Method, and Electronic Device
WO2020224486A1 (en) Calling method, device and system
US11683850B2 (en) Bluetooth reconnection method and related apparatus
WO2022257977A1 (en) Screen projection method for electronic device, and electronic device
EP4132098A1 (en) Implementation method for wi-fi peer-to-peer service and related device
WO2021082829A1 (en) Bluetooth connection method and related apparatus
WO2020132818A1 (en) Wireless short-distance audio sharing method and electronic device
EP3968670A1 (en) Bluetooth-based object searching method and electronic device
EP4109891A1 (en) Device interaction method and electronic device
WO2022033296A1 (en) Bluetooth communication method, wearable device, and system
US20230129780A1 (en) Wi-Fi Aware Link Establishment Method and System, Electronic Device, and Storage Medium
WO2021052204A1 (en) Address book-based device discovery method, audio and video communication method, and electronic device
WO2021017894A1 (en) Method for using remote sim module, and electronic apparatus
EP3923617A1 (en) Method for reducing power consumption of mobile terminal and mobile terminal
US20230297414A1 (en) Task Processing Method and Related Apparatus
US11895215B2 (en) Application server access method and terminal
WO2022048371A1 (en) Cross-device audio playing method, mobile terminal, electronic device and storage medium
US20230125956A1 (en) Wireless Communication System and Method
CN115665670A (en) Wireless audio system, audio communication method and equipment
WO2022174746A1 (en) Event notification method, bluetooth device and bluetooth system
US20220311700A1 (en) Method for multiplexing http channels and terminal
CN113678481B (en) Wireless audio system, audio communication method and equipment
CN114697438B (en) Method, device, equipment and storage medium for carrying out call by utilizing intelligent equipment
WO2024067110A1 (en) Card updating method and related apparatus
WO2023051204A1 (en) Cross-device connection method, electronic device and storage medium

Legal Events

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

Ref document number: 22755519

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22755519

Country of ref document: EP

Kind code of ref document: A1