CN115942253A - Prompting method and related device - Google Patents

Prompting method and related device Download PDF

Info

Publication number
CN115942253A
CN115942253A CN202310050589.5A CN202310050589A CN115942253A CN 115942253 A CN115942253 A CN 115942253A CN 202310050589 A CN202310050589 A CN 202310050589A CN 115942253 A CN115942253 A CN 115942253A
Authority
CN
China
Prior art keywords
bluetooth peripheral
prompt
bluetooth
data
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310050589.5A
Other languages
Chinese (zh)
Other versions
CN115942253B (en
Inventor
栗银伟
牛永民
胡晓慧
王福凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310050589.5A priority Critical patent/CN115942253B/en
Publication of CN115942253A publication Critical patent/CN115942253A/en
Application granted granted Critical
Publication of CN115942253B publication Critical patent/CN115942253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a prompting method and a related device, and relates to the technical field of Bluetooth. When the electronic equipment and the Bluetooth peripheral are in a Bluetooth connection state, the method comprises the following steps: after obtaining the searching operation aiming at the Bluetooth peripheral equipment, the electronic equipment establishes an SCO link with the Bluetooth peripheral equipment, and sends first prompt data to the Bluetooth peripheral equipment through the SCO link; and the electronic equipment prompts the position of the Bluetooth peripheral equipment to the user according to the second prompt data. The SCO link is established when the electronic equipment and the Bluetooth peripheral equipment are in a Bluetooth connection state, and a task of prompting the position of the Bluetooth peripheral equipment is realized based on the SCO link.

Description

Prompting method and related device
Technical Field
The present application relates to the field of bluetooth technologies, and in particular, to a method and an apparatus for prompting.
Background
The Bluetooth technology is a radio technology supporting short-distance communication of equipment, and can support wireless information interaction among a plurality of pieces of equipment such as smart phones, wireless earphones, notebook computers, bluetooth sound equipment, smart watches and the like. The use of bluetooth technology can effectively simplify the communication between mobile communication terminal devices. With the development of science and technology, the volume of the Bluetooth peripheral is small (such as a Bluetooth headset and a smart watch) for the convenience of daily use and carrying of a user, but the Bluetooth peripheral is often lost due to the small volume of the Bluetooth peripheral, and the user can hardly find the Bluetooth peripheral.
In the prior art, when the electronic device and the bluetooth peripheral are in a bluetooth connection state (where the electronic device is a mobile phone and the bluetooth peripheral is an intelligent watch, for example), a common method for prompting the location of the bluetooth peripheral is that the mobile phone sends a private AT instruction to the intelligent watch through an HFP protocol (Hands-Free Profile), the intelligent watch responds to the private AT instruction to play a specific ringtone preset in the intelligent watch, and a user can search for a lost intelligent watch according to the specific ringtone played by the intelligent watch. However, the private AT commands used by electronic devices and bluetooth peripherals of different brands are different, so when the electronic devices and bluetooth peripherals of other brands are in a bluetooth connection state, the method for prompting the location of the bluetooth peripherals cannot be executed.
Therefore, the currently common method for prompting the position of the Bluetooth peripheral is difficult to be compatible with a third party and has poor adaptability.
Disclosure of Invention
The prompting method and the related device provided by the application can improve the compatibility and the adaptability of the method for searching the Bluetooth peripheral and a third party.
In order to achieve the purpose, the following technical scheme is adopted in the application:
a first aspect of the present application provides a prompting method, which is applied to an electronic device, and the electronic device and a bluetooth peripheral to be searched are in a bluetooth connection state, and the method includes: the method comprises the steps of obtaining a searching operation aiming at the Bluetooth peripheral, responding to the searching operation aiming at the Bluetooth peripheral, establishing an SCO link with the Bluetooth peripheral, and sending first prompting data to the Bluetooth peripheral through the SCO link, so that the Bluetooth peripheral prompts the position of the Bluetooth peripheral of a user according to the received first prompting data, meanwhile, receiving second prompting data sent by the Bluetooth peripheral through the SCO link, and prompting the position of the Bluetooth peripheral according to the second prompting data. When the electronic equipment and the Bluetooth peripheral equipment are in a Bluetooth connection state, the SCO link is established, and a prompt task is completed based on the SCO link. And the SCO link can realize real-time bidirectional transmission of data, the electronic equipment can receive second prompt data sent by the Bluetooth peripheral while sending the first prompt data to the Bluetooth peripheral, and prompts the position of the Bluetooth peripheral according to the second prompt data, so that the accuracy and speed of prompting the position of the Bluetooth peripheral are improved, and the efficiency of searching the Bluetooth peripheral is further improved.
In a possible implementation manner, the second prompt data is second real-time audio data obtained by collecting an ambient environment through a microphone of the bluetooth peripheral device. The microphone of the Bluetooth peripheral collects the audio data of the surrounding environment and acquires the related data related to the position of the Bluetooth peripheral.
In one possible implementation, the electronic device plays the second real-time audio data to prompt the user of the location of the bluetooth peripheral. And playing the second real-time audio data so as to determine the related information of the surrounding environment of the Bluetooth peripheral equipment according to the second real-time audio data, thereby realizing the task of prompting the position of the Bluetooth peripheral equipment of a user.
In a possible implementation manner, the first prompt data is first real-time audio data, the electronic device sends the first real-time audio data to a bluetooth peripheral having a speaker through an SCO link, and the bluetooth peripheral plays the first real-time audio data through the speaker, so as to prompt a user of a position of the bluetooth peripheral. The Bluetooth peripheral plays the real-time audio data acquired by the electronic equipment and is not influenced by other Bluetooth peripherals.
In a possible implementation manner, the first prompt data is prompt audio data pre-stored in the electronic device, the electronic device sends the prompt audio data to a bluetooth peripheral having a speaker through an SCO link, and the bluetooth peripheral plays the prompt audio data through the speaker, so as to prompt a user of a position of the bluetooth peripheral. Because the prompt audio data is stored in the electronic equipment, the prompt audio data is not limited by the size of the memory of the Bluetooth peripheral equipment and does not occupy the memory of the Bluetooth peripheral equipment, so that the running speed is influenced.
In a possible implementation manner, the first prompt data is vibration control data carrying a preset vibration frequency, and the electronic device sends the vibration control data to a bluetooth peripheral having a motor through an SCO link to control the motor of the bluetooth peripheral to generate vibration of the preset frequency, so as to prompt a user of a position of the bluetooth peripheral. The vibration cues may be adapted to particular scenarios, such as: the method has the advantages that the applicability of the method is improved and the experience of the user is improved in the scenes of meetings, classes and the like.
In a possible implementation manner, the first prompt data is interface control data, and the electronic device sends the interface control data to a bluetooth peripheral having a display screen through an SCO link to control interface display of the display screen of the bluetooth peripheral, so as to prompt a user of a position of the bluetooth peripheral.
In a possible implementation manner, the first prompt data is light control data, and the electronic device sends the light control data to a bluetooth peripheral with a flash lamp through an SCO link to control the flash lamp of the bluetooth peripheral, so as to prompt a user of a position of the bluetooth peripheral.
In a possible implementation manner, after the electronic device finishes the search operation, the SCO link is disconnected from the bluetooth peripheral. And recovering the Bluetooth connection state of the initial electronic equipment and the Bluetooth peripheral equipment, wherein the electronic equipment and the Bluetooth peripheral equipment can normally realize Bluetooth data transmission, thereby realizing the corresponding function.
In a second aspect, the present application provides a prompting method, applied to a bluetooth peripheral, where the bluetooth peripheral and an electronic device are in a bluetooth connection state, and the method includes: after the electronic equipment responds to the searching operation and establishes an SCO link with the Bluetooth peripheral equipment, receiving first prompt data sent by the electronic equipment through the SCO link, and prompting the position of a user according to the first prompt data; meanwhile, second prompt data are sent to the electronic equipment through the SCO link, so that the electronic equipment prompts the position of the Bluetooth peripheral equipment of the user according to the second prompt data. When the electronic equipment and the Bluetooth peripheral are ensured to be in a Bluetooth connection state, the SCO link is established, and a prompt task is completed based on the SCO link. And the SCO link can realize real-time bidirectional transmission of data, the electronic equipment can receive second prompt data sent by the Bluetooth peripheral while sending the first prompt data to the Bluetooth peripheral, and prompts the position of the Bluetooth peripheral according to the second prompt data, so that the accuracy and speed of prompting the position of the Bluetooth peripheral are improved, and the efficiency of searching the Bluetooth peripheral is further improved.
In one possible implementation, the first prompt data is first real-time audio data, and the bluetooth peripheral plays the first real-time audio data through a speaker, so as to prompt a user of a location of the bluetooth peripheral. The task of prompting the position of the Bluetooth peripheral is ensured, and meanwhile, the memory of the Bluetooth peripheral is not required to be occupied, so that the influence on the running speed of the Bluetooth peripheral is eliminated.
In one possible implementation manner, the first prompt data is prompt audio data pre-stored in the electronic device, and the bluetooth peripheral plays the prompt audio data through a speaker, so as to prompt a user of a position of the bluetooth peripheral. The Bluetooth data is stored in the electronic equipment, so that the Bluetooth data is not limited by the size of the memory of the Bluetooth peripheral equipment and does not need to occupy the memory of the Bluetooth peripheral equipment, and the influence on the running speed of the Bluetooth peripheral equipment is eliminated.
In a possible implementation manner, the first prompt data is vibration control data carrying a preset vibration frequency, and the motor of the bluetooth peripheral is controlled to generate vibration of the preset vibration frequency according to the vibration control data, so that the user is prompted about the position of the bluetooth peripheral. The vibration cues may be adapted to particular scenarios, such as: meeting, class and other scenes, namely, the prompt task is guaranteed to be realized in special scenes, and the experience of the user is improved.
In a possible implementation manner, the first prompt data is interface control data, and the bluetooth peripheral controls an interface display of a display of the bluetooth peripheral according to the interface control data, so as to prompt a user of a position of the bluetooth peripheral.
In one possible implementation manner, the first prompt data is light control data, and the bluetooth peripheral controls a flash lamp of the bluetooth peripheral according to the light control data, so that the user is prompted about the position of the bluetooth peripheral.
In a possible implementation manner, the second prompt data is second real-time audio data obtained by collecting an ambient environment by a microphone of the bluetooth peripheral device and sending the second real-time audio data to the electronic device through the SCO link, and the electronic device plays the second real-time audio data, so as to prompt the user of the location of the bluetooth peripheral device. And playing the second real-time audio data so as to determine the relevant information of the surrounding environment of the Bluetooth peripheral equipment according to the second real-time audio data, thereby realizing the task of prompting the position of the Bluetooth peripheral equipment of a user and improving the accuracy of prompting the position of the Bluetooth peripheral equipment.
In a possible implementation manner, after the electronic device obtains the end of the search operation, the SCO link is disconnected with the bluetooth peripheral. And recovering the Bluetooth connection state of the initial electronic equipment and the Bluetooth peripheral equipment, wherein the electronic equipment and the Bluetooth peripheral equipment can normally realize Bluetooth data transmission, thereby realizing the corresponding function.
In a third aspect, the present application provides an electronic device comprising a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored by the memory to cause the processor to perform the method of the first aspect described above.
In a fourth aspect, the present application provides a bluetooth peripheral comprising a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer executable instructions stored by the memory to cause the processor to perform the method of the second aspect described above.
In a fifth aspect, the present application provides a computer-readable storage medium, in which a computer program or instructions are stored, which, when executed, implement the method of the first and second aspects.
In a sixth aspect, the present application provides a computer program product comprising a computer program or instructions which, when executed by a processor, implements the method of the first or second aspect.
Drawings
Fig. 1 is a schematic flowchart illustrating a conventional method for an electronic device to search for a bluetooth peripheral according to an embodiment of the present application;
fig. 2A is a diagram illustrating an exemplary composition of an electronic device according to an embodiment of the disclosure;
fig. 2B is a diagram illustrating a software structure of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic view of an application scenario of a prompt method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a prompting method according to an embodiment of the present application;
fig. 5A is a schematic diagram of a desktop interface of an electronic device according to an embodiment of the present disclosure;
fig. 5B is a schematic interface diagram of an electronic device searching for a bluetooth peripheral application according to an embodiment of the present application;
fig. 6 is a schematic view of a scenario that a mobile phone and a bluetooth headset are in a bluetooth connection state according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another prompting method provided in the embodiment of the present application;
fig. 8 is a schematic interface diagram of another electronic device for finding a bluetooth peripheral application according to an embodiment of the present application;
fig. 9 is a schematic interface diagram of another electronic device for finding a bluetooth peripheral application according to an embodiment of the present application;
fig. 10 is a flowchart illustrating another prompting method according to an embodiment of the present application.
Detailed Description
The terms "first", "second" and "third", etc. in the description and claims of this application and the description of the drawings are used for distinguishing between different objects and not for limiting a particular order.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
For clarity and conciseness of the following descriptions of the various embodiments, a brief introduction to the related art is first given:
the telephone Hands-Free protocol (HFP), which may also be referred to directly as Hands-Free protocol. The bluetooth peripheral controls the electronic device through an AT command (AT command) defined by the HPF protocol, for example: answering the incoming call, hanging up the call, refusing to answer the incoming call, etc.
AT (entry) instruction. The AT command refers to a control command used in the bluetooth communication protocol. For example, a private AT instruction may be preset for instructing the smart watch to play a pre-stored specific ring tone.
Connection-oriented Asynchronous transmission link (ACL link) is a basic Connection technology of bluetooth, and is generally used for transmitting negotiation signaling of Connection class and maintaining bluetooth Connection. ACL links also support unidirectional transmission of audio data. For example: when the mobile phone can send the audio data to the bluetooth headset through the ACL link, the bluetooth headset cannot send the audio data to the mobile phone at the same time.
A Connection-Oriented Synchronous transmission link (SCO link) is a Connection technology supported by a bluetooth baseband, and transmits data using reserved time slots. The SCO link supports bi-directional transfer of audio data. For example: when the mobile phone sends the audio data to the bluetooth headset through the SCO link, the bluetooth headset can also send the audio data to the mobile phone through the SCO link.
Further, the SCO link specifically includes: a basic SCO link and an Extended SCO link (eSCO link). The eSCO link transmits data using reserved slots, has a retransmission window, and can retransmit data using the retransmission window. The eSCO link also supports bi-directional transmission of audio data.
The following description will be made by comparing the advantages of the present invention with the existing method for prompting the position of the bluetooth peripheral.
For ease of understanding, the existing method for prompting a bluetooth peripheral is described in detail below with reference to fig. 1. In the following description, the electronic device is exemplified by a mobile phone 10, and the bluetooth peripheral is exemplified by a smart watch 20, where the mobile phone 10 and the smart watch 20 are devices of the same brand, and a private AT command for prompting the location of the smart watch 20 is preset.
First, it is required to ensure that the mobile phone 10 and the smart watch 20 are in the bluetooth connection state, that is, the ACL link of the mobile phone 10 and the smart watch 20 is in the connection state. In the bluetooth connection state between the mobile phone 10 and the smart watch 20, the user performs an operation of searching for the smart watch 20 (bluetooth peripheral), for example: the user clicks on a specific icon on the desktop of the handset 10 that finds a bluetooth peripheral application. The mobile phone 10 transmits a private AT instruction to the smart phone 20 through the HFP protocol (also referred to as through an ACL link) in response to the operation of the user, and the smart watch 20 plays a specific ringtone preset in the smart watch in response to the private AT instruction, and AT the same time, the smart watch 20 returns reply information to the mobile phone 10 for the private AT instruction in response to the private AT instruction. The user may prompt the user about the location of the smart watch 20 based on the particular ring tone played by the smart watch 20, thereby performing a search of the smart watch 20.
The private AT command in the above method is preset for the mobile phone 10 and the smart watch 20, for example: a private AT instruction A is preset in the mobile phone 10 and the smart watch 20 and is used as a private AT instruction for the mobile phone 10 to search the smart watch 20; the mobile phone 11 and the smart watch 21 preset a private AT instruction B as a private AT instruction for the mobile phone 11 to search the smart watch 21, and if the mobile phone 11 sends the private AT instruction A to the smart watch 21, the purpose of searching the Bluetooth peripheral (the smart watch 20) cannot be achieved; if the mobile phone 10 sends the private AT command a or the private AT command B to the smart watch 21, the purpose of finding the bluetooth peripheral (the smart watch 21) cannot be achieved. The private AT instruction is peculiar to different brands/different devices, and the private AT instruction cannot adapt to all Bluetooth peripherals, so that the adaptability of the existing method for searching the Bluetooth peripherals by the electronic device is low, a plurality of electronic devices and the Bluetooth peripherals cannot use the searching function, and the problem of loss of the Bluetooth peripherals cannot be solved.
Further, in the above method, the smart watch 20, in response to the private AT command, plays a specific ring preset in the smart watch 20, and prompts the user that the location of the smart watch 20 is too single, for example: a specific ring is preset in the smart watch 20, and the smart watch 20 plays the preset specific ring in response to the private AT instruction; a specific vibration frequency is preset in the smart watch 20, and the smart watch 20 generates a vibration of the preset specific vibration frequency in response to the private AT command.
Although a plurality of ring tones may be preset in the smart watch 20, and the preset ring tones may be played in a circulating manner, the data of the specific ring tones and the specific vibration are stored in the bluetooth peripheral (the smart watch 20), the storage space of the bluetooth peripheral is limited, and the manner of prompting the location of the bluetooth peripheral may also be limited. When the Bluetooth is externally set as the smart watch, the storage space of the smart watch is generally 1-2G, the storage space of the smart watch can limit the number of preset ringtones and the number of ways for prompting the position of the smart watch of a user; if a plurality of rings are preset in the smart watch, a part of storage space of the smart watch can be occupied, and even the running speed of the smart watch can be influenced. When the Bluetooth is externally arranged as the Bluetooth headset, the storage space of the Bluetooth headset with the storage function is limited, and the number of the preset ring tones can be limited, so that the mode of prompting the position of the Bluetooth peripheral of the user is limited. Furthermore, the commonly used bluetooth headset in daily life generally does not have a storage function, and for the bluetooth headset without the storage function, the method cannot be realized at all, so that the limitation of the currently common method for prompting the position of the bluetooth peripheral is further embodied, complete adaptation cannot be realized, and the adaptability is low.
The application provides a prompting method, which comprises the following steps: when the electronic equipment and the Bluetooth peripheral are in Bluetooth connection, in response to the searching operation of a user for the Bluetooth peripheral, the electronic equipment and the Bluetooth peripheral establish an SCO link, the electronic equipment sends first prompt data to the Bluetooth peripheral through the SCO link, the Bluetooth peripheral prompts the position of the Bluetooth peripheral of the user according to the first prompt data after receiving the first prompt data, meanwhile, the Bluetooth peripheral sends second prompt data to the electronic equipment through the SCO link, and the electronic equipment prompts the position of the Bluetooth peripheral of the user according to the second prompt data. When the electronic equipment and the Bluetooth peripheral are ensured to be in a Bluetooth connection state, the SCO link is established, and a prompt task is completed based on the SCO link.
Furthermore, the SCO link can realize real-time bidirectional transmission of data, the electronic equipment can receive second prompt data sent by the Bluetooth peripheral while sending the first prompt data to the Bluetooth peripheral, and prompts the position of the Bluetooth peripheral according to the second prompt data, so that the accuracy and the speed of prompting the position of the Bluetooth peripheral are improved, and the efficiency of searching the Bluetooth peripheral is further improved.
Furthermore, the storage space of the electronic equipment side is relatively large, and the data stored in the electronic equipment side can be transmitted to the Bluetooth peripheral equipment through the SCO link, so that a prompt task is realized, the limitation of the storage space of the Bluetooth peripheral equipment side cannot be received, and the running speed of the Bluetooth peripheral equipment cannot be influenced; and the storage space of the electronic equipment side is large, so that the data of various modes can be stored while the running speed is not influenced, and the diversity of prompts is realized.
In some embodiments, the electronic device may be a mobile phone, a tablet Computer, a desktop Computer, a laptop Computer, a notebook Computer, an Ultra-mobile Personal Computer (UMPC), a handheld Computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device, a smart watch, or the like, and the specific form of the electronic device is not particularly limited in this application. In this embodiment, the structure of the electronic device may be as shown in fig. 2A, and fig. 2A is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
As shown in fig. 2A, the electronic device may include a processor 110, an antenna 1, a wireless communication module 120, a display 130, an internal memory 140, a touch sensor 150, a key 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a motor 180, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. For example, in the present application, a search operation with a bluetooth peripheral may be obtained, and based on the search operation, an SCO link may be established with the bluetooth peripheral with the search, thereby implementing real-time bidirectional transmission of subsequent data.
The controller can be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 150, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 150 through an I2C interface, so that the processor 110 and the touch sensor 150 communicate through an I2C bus interface to implement a touch function of the electronic device.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 120 through the I2S interface, so as to implement a function of answering a call through a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, audio module 170 and wireless communication module 120 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit the audio signal to the wireless communication module 120 through the PCM interface, so as to implement the function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 120. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 120 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 120 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
A MIPI interface may be used to connect processor 110 with peripheral devices such as display screen 130. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and display screen 130 communicate via a DSI interface to implement display functionality of the electronic device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 130, the wireless communication module 120, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, and the like.
The wireless communication function of the electronic device may be implemented by the antenna 1, the wireless communication module 120, the modem processor, the baseband processor, and the like.
The antenna 1 is used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The wireless communication module 120 may provide solutions for wireless communication applied to electronic devices, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 120 may be one or more devices integrating at least one communication processing module. The wireless communication module 120 receives electromagnetic waves via the antenna 1, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 120 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 and the wireless communication module 120 are coupled such that the electronic device can communicate with a network and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device implements display functions via the GPU, the display screen 130, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 130 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 130 is used to display images, video, and the like. The display screen 130 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-OLED, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 130, N being a positive integer greater than 1.
A series of Graphical User Interfaces (GUIs) may be displayed on the display screen 130 of the electronic device, and these GUIs are the main screens of the electronic device. Generally, the size of the display 130 of the electronic device is fixed, and only limited controls can be displayed in the display 130 of the electronic device. A widget is a GUI element, which is a software component included in an application program, controls all data processed by the application program and interactive operations on the data, and a user can interact with the widget through direct manipulation (direct manipulation) to read or edit information related to the application program. Generally, a control may include a visual interface element such as an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, widget, selection popup, and the like.
The internal memory 140 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 140. For example, in the present embodiment, the processor 110 may implement the bi-directional connection link with the bluetooth peripheral device by executing instructions stored in the internal memory 140, thereby implementing the bi-directional transmission of audio data. The internal memory 140 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic equipment. In addition, the internal memory 140 may include a high speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a Universal Flash Storage (UFS), and the like. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 140 and/or instructions stored in a memory provided in the processor.
The electronic device may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into analog audio signals for output, and also used to convert analog audio inputs into digital audio signals. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic device receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking near the microphone 170C through the mouth. The electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
The touch sensor 150 is also referred to as a "touch device". The touch sensor 150 may be disposed on the display screen 130, and the touch sensor 150 and the display screen 130 form a touch screen, which is also called a "touch screen". The touch sensor 150 is used to detect a touch operation applied thereto or nearby. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 130. In other embodiments, the touch sensor 150 may be disposed on a surface of the electronic device at a different position than the display screen 130.
The keys 160 include a power-on key, a volume key, and the like. The keys 160 may be mechanical keys. Or may be touch keys. The electronic device may receive a key input, and generate a key signal input related to user settings and function control of the electronic device.
The motor 180 may generate a vibration cue. The motor 180 may be used for incoming call vibration prompts, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 180 may also respond to different vibration feedback effects in response to touch operations applied to different areas of the display screen 130. For example: based on the data carrying the vibration frequency, the electronic device generates a vibration of the corresponding frequency. The touch vibration feedback effect may also support customization.
In addition, an operating system runs on the above components. Such as the iOS operating system developed by apple, the Android open source operating system developed by google, the Windows operating system developed by microsoft, and so on. A running application may be installed on the operating system.
The operating system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of an electronic device.
Fig. 2B is a software structure block diagram of the electronic device according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 2B, the application package may include applications such as find bluetooth peripherals, talk, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 2B, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message prompts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide a fusion of the 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Although the Android system is taken as an example in the embodiment of the present application for description, the basic principle is also applicable to electronic devices based on operating systems such as iOS and Windows.
The following describes a method for finding a bluetooth peripheral device according to an embodiment of the present application with reference to a specific embodiment. The following embodiments may be combined, and details of a desired or similar concept or process may not be repeated in some embodiments.
The first embodiment is as follows:
a prompting method according to an embodiment of the present application is described in detail below with reference to fig. 3 to 6.
Fig. 3 is a schematic view of an application scenario of a prompting method provided in an embodiment of the present application, where the scenario includes: electronic device 100, bluetooth peripheral 200 and opaque material cup 300, electronic device 100 and bluetooth peripheral 200 are in bluetooth connection state, also can say that electronic device 100 establishes the ACL link with bluetooth peripheral 200, and keeps the ACL link in connection state. Bluetooth peripheral 200 is placed in an opaque cup 300, and there is no way for the user to visibly perceive where Bluetooth peripheral 200 is currently located. The electronic device 100 is a mobile phone, and the bluetooth peripheral 200 is a smart watch.
It should be noted that, only the usage scenario of a prompt manner described in fig. 3 is taken as an example for description, in an actual scenario, the bluetooth peripheral may also be exposed in the visual field of the user, but the user does not notice the location of the bluetooth peripheral, so the bluetooth device cannot be found, and is not specifically limited in this application.
In a usage scenario of a prompting method as shown in fig. 3, a user performs a search operation for the bluetooth peripheral at the electronic device 100, a search application/service preset in the electronic device 100 invokes a bluetooth module, establishes an SCO channel with the bluetooth peripheral 200, the electronic device 100 configures a receiving and speaking adjustment of itself, and enters a transparent transmission mode, in the transparent transmission mode, the electronic device 100 acquires first real-time audio data and sends the acquired first real-time audio data to the bluetooth peripheral 200, and the bluetooth peripheral 200 plays the received first real-time audio data, thereby prompting a position of the bluetooth peripheral 200; when the electronic device 100 collects the first real-time audio data, the bluetooth peripheral 200 also collects the second real-time audio data, and sends the second real-time audio data to the electronic device 100 through the SCO link, and the electronic device 100 plays the second real-time audio data, thereby prompting the position of the bluetooth peripheral 200. The specific steps are specifically described with reference to fig. 4, and the method includes:
s401, the user carries out searching operation.
Wherein the search operation is an operation for starting the electronic device 100 to search the bluetooth peripheral 200.
For ease of understanding, the user performing the search operation will be described in detail below with reference to the interface diagrams of the electronic device 100 shown in fig. 5A-5B.
As shown in the desktop interface diagram of the electronic device 100 in fig. 5A, after the user unlocks the electronic device 100, the electronic device 100 may present the desktop interface 500 to the user, where the desktop interface 500 includes icons of various applications, such as a phone icon, a contact icon, an internet icon, a short message icon, an icon 510 for finding a bluetooth peripheral application, and the like. The user may trigger an operation, such as a click, long press, swipe, etc., on an icon of the application. And after receiving the operation triggered by the user, the electronic equipment starts the corresponding application. The user clicks the icon 510 for finding the bluetooth peripheral application on the desktop interface 500 of the electronic device 100, and enters a find bluetooth peripheral application interface 520, where the find bluetooth peripheral application interface 520 includes a start finding icon 521, an end finding icon 522, and the like. The user clicks the start find icon 521 on the find bluetooth peripheral application interface 520 of the electronic device 100, and the electronic device 100 starts a task of finding the bluetooth peripheral 200. The user clicks the start seek icon 510 for a seek operation. The finding of the bluetooth peripheral application is a general name of a preset application for finding the bluetooth peripheral, and is not specifically limited in the embodiment of the present application.
It should be noted that the search operation may be to click an icon for starting the search, or may be to double click an icon set by the bluetooth, as long as the preset operation is used to start a task of searching the bluetooth peripheral, which is not specifically limited in the embodiment of the present application.
S402, the electronic device 100 responds to the searching operation, and the electronic device 100 establishes an SCO link with the Bluetooth peripheral 200.
Wherein the connection-oriented synchronous transmission link is a transmission link defined in the bluetooth protocol. The SCO link supports real-time bidirectional data transmission, so that the electronic device 100 can transmit data to the bluetooth peripheral 200 through the SCO link in real time, and meanwhile, the bluetooth peripheral 200 can also transmit data to the electronic device 100 through the SCO link in real time.
Specifically, the connection-oriented synchronous transmission link (SCO link) includes a basic SCO link and an extended connection-oriented synchronous link (eSCO link).
For ease of understanding, the process of the electronic device 100 establishing the SCO link with the Bluetooth peripheral 200 is described in detail below.
The electronic device 100 sends a request for establishing an SCO link to the bluetooth peripheral 200; the bluetooth peripheral 200 receives a request for establishing an SCO link sent by the electronic device 100, and returns response information to the electronic device 100; the electronic device 100 and the bluetooth peripheral 200 complete the establishment of the SCO link.
S403, the electronic device 100 configures the states of sound reception and sound emission of itself.
Specifically, the sound receiving state of the electronic device 100 after configuration is as follows: the audio data collected by the microphone of the electronic device 100 is sent directly to the bluetooth peripheral 200 via the synchronous directional link. The configured sound emitting state of the electronic device is that the electronic device 100 directly plays audio data sent by the bluetooth peripheral 200 through a speaker, wherein the bluetooth peripheral 200 obtains the audio data through a microphone, and directly sends the audio data to the electronic device 100 through a synchronous directional connection link.
Specifically, the sound receiving and sound emitting states of the electronic device 100 are configured so that the electronic device is in the voice through mode.
Specifically, in the voice transparent transmission mode, the electronic device 100 acquires predefined audio data (e.g., preset music, audio of the current environment, etc.), the electronic device 100 sends the acquired audio data to the bluetooth peripheral 200, and the bluetooth peripheral 200 directly plays the audio data sent by the electronic device 100; the bluetooth peripheral 200 collects audio data around the bluetooth peripheral 200 through a microphone and transmits the audio data to the electronic device 100, and the electronic device 100 directly plays the audio data transmitted by the bluetooth peripheral 200.
For ease of understanding, step 403 is illustrated below in conjunction with fig. 6.
Fig. 6 is a scene schematic diagram of a mobile phone and a bluetooth headset in a bluetooth connection state according to an embodiment of the present application. The mobile phone 10 and the bluetooth headset 30 are in a bluetooth connection state, and generally, the microphone of the mobile phone 10 does not collect audio data of the surrounding environment, and the speaker of the first mobile phone 10 does not play the cloud/other devices to send the audio data. For example: the handset 10 and the bluetooth headset 30 implement a recording function. Need bluetooth headset 30 to gather the audio data of surrounding environment through bluetooth headset 30's microphone, bluetooth headset 30 sends the audio data who gathers to cell-phone 10, cell-phone 10 stores this audio data (can save in the high in the clouds server, also can save the memory space of cell-phone 10 itself), cell-phone 10 can not receive audio data and just broadcast this audio data, if cell-phone 10 plays this audio data, acquire this audio data from memory space/high in the clouds server, then transmit this audio data to bluetooth headset 30, bluetooth headset 30 plays this audio data through loudspeaker.
After the mobile phone 10 establishes the SCO link with the bluetooth headset 30, the mobile phone 10 configures the sound receiving and sound emitting states thereof, where the configured sound receiving and sound emitting states are: the bluetooth headset 30 sends the audio data collected by the microphone to the mobile phone 10, and after the mobile phone 10 receives the audio data, the mobile phone 10 directly plays the audio data through the loudspeaker; the audio data collected by the mobile phone 10 through the microphone is directly sent to the bluetooth headset 30, and the bluetooth headset 30 plays the audio data through the speaker/loudspeaker.
S404, the electronic device 100 acquires first real-time audio data through a microphone.
Through the configuration of the sound reception state of the electronic device 100 in step 403, the electronic device 100 may perform sound reception processing through a microphone, that is, may collect real-time audio data of the surrounding environment through a microphone of the electronic device 100 itself, so as to obtain the first real-time audio data.
S405, the electronic device 100 sends the acquired first real-time audio data to the Bluetooth peripheral 200 through the SCO link.
Specifically, in the voice transparent mode, the electronic device 100 transmits the obtained first real-time audio data to the bluetooth peripheral 200 through an SCO link (eSCO link).
S406, the bluetooth peripheral 200 plays the first real-time audio data.
Specifically, when the bluetooth peripheral 200 receives the first real-time audio data sent by the electronic device 100, the bluetooth peripheral 200 directly plays the audio data through a speaker (loudspeaker) to prompt the user of the current position of the bluetooth peripheral 200.
The user can prompt the user of the current position of the bluetooth peripheral 200 according to the first real-time audio data played by the bluetooth peripheral 200, thereby further achieving the purpose of searching the bluetooth peripheral 200. The electronic device 100 directly sends the obtained first real-time audio data to the bluetooth peripheral 200 through the SCO link, and the bluetooth peripheral 200 directly plays the audio data.
Furthermore, the first real-time audio data can be played by the Bluetooth peripheral 200 without storing preset audio data in the Bluetooth peripheral 200, so that the current position of the Bluetooth peripheral 200 is prompted, and the problem that the preset audio data is stored in the Bluetooth peripheral in the existing method at present, the preset audio data occupies the memory of the Bluetooth peripheral, and further the running speed of the Bluetooth peripheral is influenced is avoided.
And S407, acquiring second real-time audio data by the Bluetooth peripheral 200 through a microphone.
When the bluetooth peripheral 200 is in a bluetooth connection state with the electronic device 100, and processes a specific service/implements a specific function, the bluetooth peripheral 200 itself may collect audio data of the surrounding environment, so as to obtain second real-time audio data, for example: electronic equipment A and electronic equipment B are carrying out voice call, and bluetooth headset C and electronic equipment A are in the bluetooth connection state, and bluetooth headset C gathers the real-time audio data of second such as surrounding environment sound and user's pronunciation through the microphone, gives electronic equipment A with audio data transmission to electronic equipment A realizes the voice call with electronic equipment B through bluetooth headset C.
Specifically, the electronic device 100 and the bluetooth peripheral 200 are in a bluetooth connection state, and when a service of searching for the bluetooth peripheral is performed, the bluetooth peripheral 200 may directly acquire the second audio data through a microphone.
S408, the bluetooth peripheral 200 sends the second real-time audio data to the electronic device 100 through the SCO link.
Specifically, in the voice-through mode, the bluetooth peripheral 200 transmits the second real-time audio data to the electronic device 100 through an SCO link (eSCO) link.
It should be noted that, the electronic device 100 acquires first real-time audio data through a microphone, and sends the first real-time audio data acquired by the electronic device 100 to the bluetooth peripheral 200 through the SCO link, and the bluetooth peripheral 200 acquires second real-time audio data through the microphone, and sends the second real-time audio data acquired by the bluetooth peripheral 200 to the electronic device through the SCO link, which may be performed simultaneously, and there is no specific sequence, and the reference numerals of the related steps are only for convenience of description of the embodiment, and do not specifically limit the sequence.
S409, the electronic device 100 plays the second real-time audio data sent by the bluetooth peripheral 200.
Specifically, in the voice transparent transmission mode, when the electronic device 100 receives the second real-time audio data of the bluetooth peripheral 200, the electronic device 100 directly plays the second real-time audio data.
The user can collect the surrounding environment through the microphone according to the bluetooth peripheral 200, so as to obtain the second real-time audio data related to the surrounding environment, prompt the user of the position of the bluetooth peripheral 200, and further assist in confirming the current position of the bluetooth peripheral 200. For example: when the Bluetooth headset is carelessly placed on a bed for rest at ordinary times by a user and covered by a quilt, and the task of searching the Bluetooth peripheral equipment is performed, the user can also perform some searching actions (such as walking, picking up obstacles, putting down obstacles and the like) and generate corresponding sounds, the Bluetooth headset can acquire corresponding second real-time audio data and send the second real-time audio data to the electronic equipment, and the electronic equipment immediately plays the second real-time audio data and can assist in prompting the position of the Bluetooth headset according to the characteristics of the second real-time audio data. Furthermore, the efficiency and the accuracy of finding the Bluetooth peripheral are improved.
It should be noted that, in the embodiment of the present application, after the electronic device 100 receives the second real-time audio data transmitted by the bluetooth peripheral 200 through the SCO link, the second real-time audio data is directly played, in addition, it may also be determined whether the electronic device 100 plays the second real-time audio data through a speaker/earphone or the like based on an operation of a user on whether the electronic device 100 allows playing the real-time audio data, which is not specifically limited in the present application.
Further, the audio data in the prompt method provided by the embodiment of the present application are transmitted through the SCO link. On one hand, the SCO link mainly transmits audio data with tighter time requirement, so that real-time transmission of the audio data can be realized, basically no delay exists, the fact that the Bluetooth peripheral can play first real-time audio data sent by the electronic equipment in time and second real-time audio data collected by the Bluetooth peripheral can be sent to the electronic equipment in time is guaranteed, accuracy of prompting the position of the Bluetooth peripheral is improved, and speed and accuracy of searching the Bluetooth peripheral are improved. On the other hand, when the electronic device transmits the collected audio data to the bluetooth peripheral, the bluetooth peripheral can also transmit the second real-time audio data collected by the bluetooth peripheral to the bluetooth peripheral. The method and the device realize the simultaneous acquisition and transmission of the two-way audio data, and reduce the time for acquiring the audio data used for prompting and the transmission time of the audio data, thereby reducing the time consumed by searching the Bluetooth peripheral and improving the efficiency of searching the Bluetooth peripheral.
And S410, finishing the searching operation by the user.
Specifically, the operation of searching the bluetooth peripheral 200 is ended when the search operation is ended.
For ease of understanding, the end finding operation performed by the user is described in detail below with reference to the finding bluetooth application interface diagram of the electronic device 100 shown in fig. 5B.
As shown in the lookup bluetooth application interface diagram of the electronic device 100 in fig. 5B, the lookup bluetooth application interface 520 includes a start lookup icon 521, an end lookup icon 522, a lookup mode icon 523, and the like. The user clicks the start look-up icon 522 on the look-up bluetooth app interface 520 of the electronic device 100, and the electronic device 100 ends the task of looking up the bluetooth peripheral device 200.
It should be noted that the operation of ending the search may be to click an icon for ending the search displayed on the search bluetooth interface of the electronic device 100, or click an image for ending the search displayed on the interface of the bluetooth peripheral 200, as long as the operation is preset to end the task of searching the bluetooth peripheral, which is not specifically limited in the embodiment of the present application.
S411, in response to the end of the searching operation, the electronic device 100 disconnects the SCO link with the Bluetooth peripheral 200.
Further, after the synchronous directional connection link is disconnected, the sound receiving and sound emitting states of the electronic device 100 are restored to the initial state, which may also be referred to as leaving the voice through mode, so as to implement other functions subsequently, for example: and carrying out voice call with other electronic equipment through the Bluetooth headset.
The embodiment of the application provides a prompting method, which comprises the following steps: the electronic equipment responds to the searching operation, an SCO link between the electronic equipment and the Bluetooth peripheral equipment is configured, the sound receiving and sound emitting states of the electronic equipment are configured, the electronic equipment is in a voice transparent transmission mode, the electronic equipment acquires first real-time audio data through a microphone and sends the first real-time audio data to the Bluetooth peripheral equipment through the SCO link, the Bluetooth peripheral equipment immediately plays the first real-time audio data, meanwhile, the Bluetooth peripheral equipment also acquires second real-time audio data through the microphone and sends the second real-time audio data to the electronic equipment through the SCO link, and the electronic equipment immediately plays the second real-time audio data. The SCO link is a basic link defined in a Bluetooth protocol, and can be established as long as the electronic equipment and the Bluetooth peripheral equipment are in a Bluetooth connection state, so that the task of prompting the position of the Bluetooth peripheral equipment is realized through the SCO link, and the task of searching the Bluetooth peripheral equipment is further realized. The method can be suitable for electronic equipment and Bluetooth peripherals among different brands, and improves the compatibility and the adaptability with a third party, namely the method can be suitable for all electronic equipment and Bluetooth peripherals with Bluetooth functions without ensuring that the electronic equipment and the Bluetooth peripherals have private AT instructions/private instructions for prompting.
Furthermore, the SCO link is mainly used for transmitting data with high time requirements, so that the transmission speed of audio data transmitted to the Bluetooth peripheral equipment by the electronic equipment is high, basically no delay exists, the audio data can be timely played by the Bluetooth peripheral equipment, the current position of the Bluetooth peripheral equipment is prompted, and the accuracy of searching the Bluetooth peripheral equipment is improved;
furthermore, the SCO link realizes simultaneous bidirectional transmission of audio data between the electronic equipment and the Bluetooth peripheral equipment, so that the accuracy of prompting the position of the Bluetooth peripheral equipment is improved, and the time for acquiring the audio data for prompting and the transmission time of the audio data are reduced, thereby reducing the time consumed by searching the Bluetooth peripheral equipment and improving the efficiency of searching the Bluetooth peripheral equipment.
Further, in the implementation of the prompting method provided in the embodiment of the present application, the bluetooth peripheral does not need to perform additional special actions, and only needs to complete corresponding conventional interaction, for example: the SCO link is established with the electronic equipment, and the SCO link is also required to be established between the Bluetooth peripheral equipment and the electronic equipment when other specific functions (such as music playing of a Bluetooth headset) are realized.
Example two:
a further prompting method provided by the embodiment of the present application is described in detail below with reference to fig. 7 to 9. The electronic device 100 is exemplified by a mobile phone, and the bluetooth peripheral 200 is exemplified by a smart watch. It should be noted that, in the embodiment of the present application, the components of the bluetooth peripheral 200 at least include: a processor, a wireless communication module, a microphone, a speaker, a display screen, a flashlight, a motor, and the like.
S701, the user conducts searching operation of a specific mode.
Specifically, there are multiple prompt modes between the electronic device 100 and the bluetooth peripheral 200, so as to be suitable for searching the bluetooth peripheral 200 in various scenarios, for example: a real-time voice prompt mode, a prompt audio prompt mode, a vibration control prompt mode, an interface display prompt mode, a flash lamp prompt mode and the like.
The real-time voice prompt mode is that the electronic device 100 controls the bluetooth peripheral 200 to play real-time user voice, so as to prompt the user of the current position of the bluetooth peripheral 200.
The prompt audio prompt mode is that the electronic device 100 controls the bluetooth peripheral 200 to play a search prompt tone preset and stored in the electronic device 100, so as to prompt the user of the current position of the bluetooth peripheral 200.
In the vibration control prompting mode, the electronic device 100 controls the bluetooth peripheral 200 to vibrate at a specific frequency, so as to prompt the user of the current position of the bluetooth peripheral 200.
The interface display prompting mode is that the electronic device 100 controls the interface display of the bluetooth peripheral 200, so as to prompt the user of the current position of the bluetooth peripheral 200. For example: control the interface brightness of the bluetooth peripheral 200 to increase suddenly, control the interface of the bluetooth peripheral 200 to display user-defined text, and the like.
In the flash prompt mode, the electronic device 100 controls a flash of the bluetooth peripheral 200, so as to prompt the user of the current location of the bluetooth peripheral 200. For example: controlling the flash lamp of the bluetooth peripheral 200 to maintain constant brightness with strong brightness, controlling the flash lamp of the bluetooth peripheral 200 to flash, and the like.
It should be noted that there are multiple prompting modes, and besides five prompting modes illustrated in the embodiment of the present application, there may also be other prompting modes, and the embodiment of the present application is not specifically limited.
For convenience of understanding, the interface diagram of the electronic device 100 for finding the bluetooth peripheral application in another embodiment described below in conjunction with fig. 8 illustrates a specific mode of finding operation.
After the user unlocks the electronic device 100, the electronic device 100 may present the user with a desktop interface that includes icons for various applications, such as a phone icon, a contacts icon, an internet icon, a short message icon, a find bluetooth application icon, and the like. The user may trigger an operation on an icon of the application, such as clicking, long pressing, sliding, and the like. And after receiving the operation triggered by the user, the electronic equipment starts the corresponding application. The user clicks the find bluetooth application icon on the desktop interface of the electronic device 100, and enters another find bluetooth peripheral application interface 800 as shown in fig. 8, where the find bluetooth application interface 800 includes a start find icon of a prompt mode (including a start find icon 810 of a real-time voice prompt mode, a start find icon 820 of a prompt audio prompt mode, a start find icon 830 of a vibration control prompt mode, a start find icon 840 of an interface display prompt mode, a start find icon 850 of a flash prompt mode), an end find icon 860, and the like. The user clicks the start finding icon of the prompt mode on the find bluetooth peripheral application interface 800 of the electronic device 100, and then starts the task of the electronic device 100 for finding the bluetooth peripheral 200 through the specific prompt mode. Taking the prompt mode as the prompt audio prompt mode as an example, the user clicks the start search icon 820 of the start prompt audio prompt mode to perform the search operation of the prompt audio prompt mode.
It should be noted that the search operation in the specific mode may be to click on an icon corresponding to the specific mode to start searching, or to click on a specific button with a preset action, which is not specifically limited in the embodiment of the present application.
S702, the electronic device 100 responds to the specific mode searching operation, and the electronic device 100 establishes an SCO link with the bluetooth peripheral 200.
S703, the electronic device 100 configures a first prompt data acquisition channel and a sound output state.
Specifically, when the specific mode is the real-time voice prompt mode, the first prompt data obtaining channel configured for the electronic device 100 is as follows: the electronic device 100 acquires audio data through a microphone, so as to obtain first real-time audio data, and directly sends the first real-time audio data to the bluetooth peripheral 200 through the SCO link. The configured sound output state of the electronic device is that the electronic device 100 plays the received audio data through a speaker.
Specifically, when the specific mode is the prompt audio prompt mode, the first prompt data acquiring channel configured for the electronic device 100 is: the electronic device 100 obtains pre-stored prompt audio data from its own storage space, and sends the prompt audio data to the bluetooth peripheral 200 through the SCO link. The sound emitting state of the electronic device after configuration is that the electronic device 100 plays the received audio data through a speaker.
Specifically, when the specific mode is the vibration control prompt mode, the first prompt data acquisition channel configured for the electronic device 100 is: the microphone of the electronic device 100 does not collect audio data of the surrounding environment, and the electronic device 100 acquires vibration control information, which carries a preset vibration frequency, and sends the vibration control information to the bluetooth peripheral 200 through the SCO link. The sound emitting state of the electronic device after configuration is that the electronic device 100 plays the received audio data through a speaker.
Specifically, when the specific mode is the interface display prompt mode, the first prompt data acquisition channel configured for the electronic device 100 is: the microphone of the electronic device 100 does not collect audio data of the surrounding environment, and the electronic device 100 acquires the interface control data and transmits the interface control data to the bluetooth peripheral 200 through the SCO link. The sound emitting state of the electronic device after configuration is that the electronic device 100 plays the received audio data through a speaker.
Specifically, when the specific mode is the flash alert mode, the method for configuring the electronic device 100 to acquire the first alert data includes: the microphone of the electronic device 100 does not collect audio data of the surrounding environment, and the electronic device 100 acquires the light control information and transmits the light control data to the bluetooth peripheral 200 through the SCO link. The sound emitting state of the electronic device after configuration is that the electronic device 100 plays the received audio data through a speaker.
S704, the electronic device 100 obtains first prompt data based on the first data obtaining channel corresponding to the specific mode.
Specifically, when the specific mode is the real-time voice prompt mode, the first prompt data acquired by the electronic device 100 is first real-time audio data acquired by a microphone.
Specifically, when the specific mode is the prompt audio prompt mode, the first prompt data acquired by the electronic device 100 is the prompt audio data pre-stored on the electronic device 100 side.
Specifically, when the specific mode is the vibration control prompting mode, the first prompting data acquired by the electronic device 100 is vibration control data including a preset vibration frequency.
Specifically, when the specific mode is the interface display prompt mode, the first prompt data acquired by the electronic device 100 is interface control data.
Specifically, when the specific mode is the flash prompt mode, the first prompt data acquired by the electronic device 100 is the light control data.
S705, the electronic device 100 sends the obtained corresponding first prompt data to the bluetooth peripheral 200 through the SCO link.
S706, the bluetooth peripheral 200 executes a corresponding action based on the received first prompt data.
Specifically, when the specific mode is the real-time voice prompt mode, after the bluetooth peripheral 200 receives the first real-time audio data acquired by the electronic device 100, the bluetooth peripheral 200 immediately plays the first real-time audio data through the speaker, thereby prompting the user of the location of the bluetooth peripheral.
Specifically, when the specific mode is the prompt audio prompt mode, after the bluetooth peripheral 200 receives the prompt audio data acquired by the electronic device 100, the bluetooth peripheral 200 immediately plays the prompt audio data through the speaker, thereby prompting the user of the location of the bluetooth peripheral.
Specifically, when the specific mode is the vibration control prompting mode, after the bluetooth peripheral 200 receives the vibration control data including the preset vibration frequency acquired by the electronic device 100, the bluetooth peripheral 200 controls the motor of the bluetooth peripheral to generate vibration of the preset vibration frequency, so as to prompt the user of the position of the bluetooth peripheral.
Specifically, when the specific mode is the interface display prompting mode, after the bluetooth peripheral 200 receives the interface control data acquired by the electronic device 100, the bluetooth peripheral 200 controls the interface display of its own display screen according to the interface control data, thereby prompting the user of the location of the bluetooth peripheral.
Specifically, when the specific mode is the flash light prompt mode, after the bluetooth peripheral 200 receives the light control data acquired by the electronic device 100, the bluetooth peripheral 200 controls its own flash light according to the light control data, so that the current state of the flash light corresponds to the received light control data. For example: the light control data is such that the flash lamp flashes at a specific frequency, and the bluetooth peripheral 200 controls the flash lamp to flash at the specific frequency.
There are multiple prompt modes that can be better adapted to multiple scenarios, such as: under the scene that a user is in a meeting/needs to keep relatively quiet, the user can select a vibration control prompt mode to enable the Bluetooth peripheral to vibrate at a specific frequency without playing audio data, so that the meeting/quiet scene is prevented from being influenced by playing the audio data.
And S707, the Bluetooth peripheral 200 acquires second real-time audio data through a microphone.
S708, the bluetooth peripheral 200 sends the second real-time audio data to the electronic device 100 through the SCO link.
S709, the electronic device 100 plays the second real-time audio data sent by the bluetooth peripheral 200.
It should be noted that, in the embodiment of the present application, after the electronic device 100 receives the second real-time audio data transmitted by the bluetooth peripheral 200 through the SCO link, the real-time audio data is directly played, in addition, it may also be determined whether the electronic device 100 plays the real-time audio data through a speaker/earphone or the like based on an operation of a user on whether the electronic device 100 allows playing the real-time audio data, which is not limited in this application.
For convenience of understanding, the following description, in conjunction with the interface diagram of the electronic device 100 for finding the bluetooth peripheral application shown in fig. 9, will describe in detail whether the electronic device 100 plays the second real-time audio data through a speaker/earpiece or the like based on the operation of the user on whether the electronic device 100 allows the real-time audio data to be played.
When the electronic device 100 receives real-time audio data sent by the bluetooth peripheral 200 through the SCO link, a selection popup window 910 may jump out of the currently displayed bluetooth peripheral search application interface 800 of the electronic device 100, and the selection popup window 910 includes an icon 911 allowing to be played and an icon 912 prohibiting to be played. The user clicks the play permission icon 911, and the electronic device 100 plays the real-time audio data; the user clicks the play disable icon 912 and the electronic device 100 does not play the real-time audio data.
And S710, the user finishes the searching operation.
S711, in response to the end of the search operation, the electronic device 100 disconnects the SCO link with the bluetooth peripheral 200.
Further, in the process of implementing the prompting method of the specific prompting mode by the electronic device 100 and the bluetooth peripheral 200, the user may perform an operation of replacing the prompting mode, and the electronic device 100 may reconfigure a manner of obtaining the first prompting data and a sound emitting state thereof in response to the operation of replacing the prompting mode, thereby implementing a task of prompting the location of the bluetooth peripheral in the replaced prompting mode.
The prompt method provided by the embodiment of the application comprises the following steps: responding to the searching operation of the specific mode, the electronic equipment and the Bluetooth peripheral establish an SCO link, the electronic equipment configures a mode for acquiring first prompt data and a sounding state into a state corresponding to the specific mode, the electronic equipment acquires the corresponding first prompt data according to the corresponding mode and sends the first prompt data to the Bluetooth peripheral through the SCO link, and the Bluetooth peripheral executes corresponding action based on the received first prompt data; meanwhile, the Bluetooth peripheral sends second real-time audio data to the electronic equipment, and the electronic equipment plays the second real-time audio data. The SCO link is a basic connection link under a Bluetooth protocol and transmits data through the SCO link, so that the method can be suitable for electronic equipment and Bluetooth peripherals among different brands, and the compatibility and the adaptability with a third party are improved.
Furthermore, multiple prompt modes exist, namely, the prompt modes correspond to multiple types of first prompt data and can be suitable for the prompt action in a specific scene, so that the requirements of users in various scenes are met. Furthermore, the pre-stored prompting audio data, vibration control data and the like are sent to the Bluetooth peripheral through the SCO link, so that a prompting task can be realized without storing the prompting audio data, the vibration control data and the like in the Bluetooth peripheral, prompting modes are abundant, a limited memory of the Bluetooth peripheral cannot be occupied, and the running speed of the Bluetooth peripheral is influenced.
Furthermore, the prompt mode can be changed in response to the prompt mode changing operation, namely, after the scene where the user is located is changed, the prompt mode can be directly switched in the process, and the flexibility of the method for searching the Bluetooth peripheral equipment is improved.
Example three:
a prompting method according to an embodiment of the present application is described in detail below with reference to fig. 10. The electronic device 100 is exemplified by a mobile phone, and the bluetooth peripheral 200 is exemplified by a smart watch. Wherein the electronic device 100 and the bluetooth peripheral 200 are in a bluetooth connection state.
S1001, the user conducts searching operation of the Bluetooth peripheral 200.
S1002, the electronic device 100 establishes an SCO link with the Bluetooth peripheral 200 based on the search operation.
S1003, the electronic device 100 sends the first prompt data to the bluetooth peripheral 200 through the SCO link.
The first prompt data is obtained by the electronic device 100 through the automatically configured first prompt data obtaining channel.
And S1004, the Bluetooth peripheral 200 prompts the position of the Bluetooth peripheral 200 for the user according to the first prompt data.
Specifically, when the first prompt data is the first real-time audio data, the bluetooth peripheral 200 plays the first real-time audio data, and prompts the user about the position of the bluetooth peripheral 200 according to the sound of the audio data.
Specifically, when the first prompt data is the pre-stored prompt audio data, the bluetooth peripheral 200 plays the prompt audio data, and prompts the user of the position of the bluetooth peripheral 200 according to the sound of the audio data.
Specifically, when the first prompt data is the vibration control data carrying the preset vibration frequency, the bluetooth peripheral 200 controls the motor of the bluetooth peripheral 200 to generate the vibration of the preset vibration frequency according to the vibration control data, and prompts the position of the bluetooth peripheral 200 of the user according to the generated vibration.
Specifically, when the first prompt data is interface control data, the bluetooth peripheral 200 controls the interface display of the display screen of the bluetooth peripheral 200 according to the interface control data, so as to prompt the user of the position of the bluetooth peripheral 200.
Specifically, when the first prompt data is the light control data, the bluetooth peripheral 200 controls the flash of the bluetooth peripheral 200 according to the light control data, thereby prompting the user of the position of the bluetooth peripheral 200.
S1005, the Bluetooth peripheral 200 sends the second prompt data to the electronic device through the SCO link.
The second prompting data is data sent by the bluetooth peripheral 200 to the electronic device 100, and is used by the electronic device 100 to prompt the user of the location of the bluetooth peripheral 200.
In the embodiment of the present application, the second prompt data is exemplified by second real-time audio data obtained by the bluetooth peripheral 200 collecting the surrounding environment through a microphone.
It should be noted that, in this embodiment of the application, the second prompt data is real-time audio data of the surrounding environment acquired by the bluetooth peripheral 200 through a microphone, and in addition, the second prompt data may also be an image/video of the surrounding environment captured by the bluetooth peripheral 200 through a camera, which is not limited in this application.
S1006, the electronic device 100 prompts the user of the location of the bluetooth peripheral 200 according to the second prompt data sent by the bluetooth peripheral 200.
When the second prompt data is, for example, second real-time audio data obtained by the bluetooth peripheral 200 collecting an ambient environment through a microphone, the electronic device 100 plays the second real-time audio data to prompt the user of the position of the bluetooth peripheral 200.
It should be noted that, in addition to playing the second real-time audio data, when the second prompt data is an image/video of the surrounding environment captured by the bluetooth peripheral 200 through the camera, the electronic device 100 may further display the image/video captured by the bluetooth peripheral 200 through the display screen to prompt the user of the position of the bluetooth peripheral 200, which is not limited in this application.
And S1007, the user performs the searching ending operation.
The end of the search operation may be performed on the electronic device 100 side or the bluetooth peripheral 200 side.
S1008, the electronic device 100 and the bluetooth peripheral 200 disconnect the SCO link.
It should be noted that, the electronic device 100 sends the first prompt data to the bluetooth peripheral 200 and the bluetooth peripheral 200 sends the second prompt data to the electronic device 100 simultaneously, and the reference numerals of the relevant steps are only for convenience of description of the embodiment, and do not specifically limit the sequence.
The embodiment of the application provides a prompting method, which comprises the following steps: the user searches the Bluetooth peripheral 200, the electronic device 100 establishes an SCO link with the Bluetooth peripheral 200 based on the search operation, the electronic device 100 sends first prompt data to the Bluetooth peripheral 200 through the SCO link, the Bluetooth peripheral 200 prompts the user of the position of the Bluetooth peripheral 200 according to the first prompt data, meanwhile, the Bluetooth peripheral 200 sends second prompt data to the electronic device through the SCO link, the electronic device 100 prompts the user of the position of the Bluetooth peripheral 200 according to the second prompt data sent by the Bluetooth peripheral 200, the user finishes the search operation, and the electronic device 100 and the Bluetooth peripheral 200 disconnect the SCO link. The SCO link is a basic link defined in a Bluetooth protocol, and the establishment of the SCO link can be realized as long as the electronic equipment and the Bluetooth peripheral equipment are in a Bluetooth connection state, so that the task of prompting the position of the Bluetooth peripheral equipment is realized through the SCO link in the embodiment of the application, and the task of searching the Bluetooth peripheral equipment is realized. The method can be suitable for electronic equipment and Bluetooth peripherals among different brands, and improves the compatibility and the adaptability with a third party, namely the method can be suitable for all electronic equipment and Bluetooth peripherals with Bluetooth functions without ensuring that private AT instructions/private instructions for prompting exist in the electronic equipment and the Bluetooth peripherals.
Further, the SCO link can realize bidirectional data transmission, and when the electronic device sends the first prompt data to the bluetooth peripheral, the electronic device also receives the second prompt data sent by the bluetooth peripheral. The position of the Bluetooth peripheral can be prompted by the aid of the second prompting data, and therefore accuracy of finding the Bluetooth peripheral is improved.
Embodiments of the present application further provide a computer-readable storage medium, which includes instructions that, when executed on an electronic device, cause the electronic device to perform the relevant method steps of fig. 4, fig. 7, and fig. 10, so as to implement the method in the foregoing embodiments.
Embodiments of the present application also provide a computer program product containing instructions, which when run on an electronic device, cause the electronic device to perform the relevant method steps as in fig. 4, fig. 7 and fig. 10, so as to implement the method in the above embodiments.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. The prompting method is applied to an electronic device, wherein the electronic device and a Bluetooth peripheral are in a Bluetooth connection state, and the method comprises the following steps:
obtaining a search operation for the Bluetooth peripheral;
establishing an SCO link with the Bluetooth peripheral based on the search operation;
sending first prompt data to the Bluetooth peripheral equipment through the SCO link so that the Bluetooth peripheral equipment can prompt a user of the position of the Bluetooth peripheral equipment according to the first prompt data; and receiving second prompt data sent by the Bluetooth peripheral equipment through the SCO link, and prompting the position of the Bluetooth peripheral equipment to a user according to the second prompt data.
2. The method of claim 1, wherein the bluetooth peripheral further comprises: a microphone;
the second prompt data includes: second real-time audio data collected by the microphone.
3. The method of claim 2, wherein prompting a user for the location of the bluetooth peripheral device based on the second prompting data comprises:
and playing the second real-time audio data to prompt the user of the position of the Bluetooth peripheral.
4. The method of claim 1, wherein the bluetooth peripheral further comprises: a speaker; the first prompt data includes: first real-time audio data;
the first real-time audio data is used for being played by the Bluetooth peripheral through the loudspeaker so as to prompt a user of the position of the Bluetooth peripheral.
5. The method of claim 1, wherein the bluetooth peripheral further comprises: a speaker; the first prompt data includes: pre-stored cue audio data;
the prompt audio data is used for being played by the Bluetooth peripheral through the loudspeaker so as to prompt the user of the position of the Bluetooth peripheral.
6. The method of claim 1, wherein the bluetooth peripheral further comprises: a motor; the first prompt data includes: carrying vibration control data of a preset vibration frequency;
the vibration control data is used for controlling the motor to generate vibration with the preset vibration frequency so as to prompt a user of the position of the Bluetooth peripheral.
7. The method of claim 1, wherein the bluetooth peripheral further comprises: a display screen; the first prompt data includes: interface control data;
the interface control data is used for controlling the interface display of the display screen so as to prompt the user of the position of the Bluetooth peripheral.
8. The method of claim 1, wherein the bluetooth peripheral further comprises: a flash lamp; the first prompt data includes: light control data;
the light control data is used for controlling a flash lamp of the Bluetooth peripheral device so as to prompt a user of the position of the Bluetooth peripheral device.
9. The method according to any one of claims 1-8, further comprising:
obtaining the end searching operation;
disconnecting the SCO link based on the end lookup operation.
10. A prompting method is applied to a Bluetooth peripheral, the Bluetooth peripheral and an electronic device are in a Bluetooth connection state, and the method comprises the following steps:
receiving first prompt data sent by the electronic equipment through an SCO link; the SCO link is established between the electronic equipment and the Bluetooth peripheral equipment based on the search operation aiming at the Bluetooth peripheral equipment;
prompting the position of the Bluetooth peripheral equipment of a user according to the first prompting data;
and sending second prompt data to the electronic equipment through the SCO link so that the electronic equipment prompts the position of the Bluetooth peripheral equipment of the user according to the second prompt data.
11. The method of claim 10, wherein the bluetooth peripheral further comprises: a speaker; the first prompt data includes: first real-time audio data;
the prompting the user of the position of the Bluetooth peripheral equipment according to the first prompting data comprises the following steps:
and playing the first real-time audio data to prompt the user of the position of the Bluetooth peripheral.
12. The method of claim 10, wherein the bluetooth peripheral further comprises: a speaker; the first prompt data includes: prompting audio data pre-stored in the electronic equipment;
the prompting the user of the position of the Bluetooth peripheral according to the first prompting data comprises the following steps:
and playing the prompt audio data to prompt the user of the position of the Bluetooth peripheral.
13. The method of claim 10, wherein the bluetooth peripheral further comprises: a motor; the first prompt data includes: carrying vibration control data of a preset vibration frequency;
the prompting the user of the position of the Bluetooth peripheral according to the first prompting data comprises the following steps:
and controlling the motor to generate vibration with the preset vibration frequency according to the vibration control data so as to prompt a user of the position of the Bluetooth peripheral.
14. The method of claim 10, wherein the bluetooth peripheral further comprises: a display screen; the first prompt data includes: interface control data;
the prompting the user of the position of the Bluetooth peripheral according to the first prompting data comprises the following steps:
and controlling the interface display of the display screen according to the interface control data order so as to prompt the user of the position of the Bluetooth peripheral.
15. The method of claim 10, wherein the bluetooth peripheral further comprises: a flash lamp; the first prompt data includes: light control data;
the prompting the user of the position of the Bluetooth peripheral according to the first prompting data comprises the following steps:
and controlling the flash lamp according to the light control data to prompt a user of the position of the Bluetooth peripheral.
16. The method of claim 10, wherein the bluetooth peripheral further comprises: a microphone;
the second prompt data includes: second real-time audio data collected by the microphone; the second real-time audio data is used for being played by the electronic equipment so as to prompt a user of the position of the Bluetooth peripheral.
17. The method according to any one of claims 10-16, further comprising:
obtaining the end of the search operation;
disconnecting the SCO link based on the end lookup operation.
18. An electronic device comprising a processor and a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the method of any of claims 1-9.
19. A bluetooth peripheral comprising a processor and a memory;
the memory stores computer execution instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of any of claims 10-17.
20. A computer-readable storage medium, in which a computer program or instructions are stored which, when executed, implement the method of any one of claims 1-17.
CN202310050589.5A 2023-02-01 2023-02-01 Prompting method and related device Active CN115942253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310050589.5A CN115942253B (en) 2023-02-01 2023-02-01 Prompting method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310050589.5A CN115942253B (en) 2023-02-01 2023-02-01 Prompting method and related device

Publications (2)

Publication Number Publication Date
CN115942253A true CN115942253A (en) 2023-04-07
CN115942253B CN115942253B (en) 2023-08-04

Family

ID=86654509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310050589.5A Active CN115942253B (en) 2023-02-01 2023-02-01 Prompting method and related device

Country Status (1)

Country Link
CN (1) CN115942253B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060199534A1 (en) * 2005-03-04 2006-09-07 Broadcom Corporation Location system for bluetooth enabled devices
CN104010384A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 Device searching method and apparatus
CN107306312A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 A kind of method and terminal for finding terminal
US20180199138A1 (en) * 2017-01-09 2018-07-12 Apple Inc. Locating wireless devices
CN108337306A (en) * 2018-01-31 2018-07-27 广东欧珀移动通信有限公司 Equipment finding method, device, system, terminal and storage medium
CN207835738U (en) * 2018-02-06 2018-09-07 北京纽曼腾飞科技有限公司 A kind of bluetooth headset of the two-way loss prevention function of band
CN108877181A (en) * 2018-07-18 2018-11-23 深圳市茁壮网络股份有限公司 Seeking for remote controller method, remote controler and electronic equipment
CN111132101A (en) * 2019-11-22 2020-05-08 华为技术有限公司 Positioning interaction method and device
CN111225366A (en) * 2019-12-27 2020-06-02 宇龙计算机通信科技(深圳)有限公司 Equipment searching method and device, storage medium and terminal
CN112583973A (en) * 2020-12-17 2021-03-30 广东思派康电子科技有限公司 Method for preventing communication between Bluetooth earphone and Bluetooth terminal from entering narrow band
CN113329381A (en) * 2021-04-28 2021-08-31 荣耀终端有限公司 Method for establishing Bluetooth connection and electronic equipment
CN113766482A (en) * 2021-09-15 2021-12-07 荣耀终端有限公司 Method for searching Bluetooth device, electronic device and storage medium
CN115273431A (en) * 2022-09-26 2022-11-01 荣耀终端有限公司 Device retrieving method and device, storage medium and electronic device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060199534A1 (en) * 2005-03-04 2006-09-07 Broadcom Corporation Location system for bluetooth enabled devices
CN104010384A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 Device searching method and apparatus
CN107306312A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 A kind of method and terminal for finding terminal
US20180199138A1 (en) * 2017-01-09 2018-07-12 Apple Inc. Locating wireless devices
CN108337306A (en) * 2018-01-31 2018-07-27 广东欧珀移动通信有限公司 Equipment finding method, device, system, terminal and storage medium
CN207835738U (en) * 2018-02-06 2018-09-07 北京纽曼腾飞科技有限公司 A kind of bluetooth headset of the two-way loss prevention function of band
CN108877181A (en) * 2018-07-18 2018-11-23 深圳市茁壮网络股份有限公司 Seeking for remote controller method, remote controler and electronic equipment
CN111132101A (en) * 2019-11-22 2020-05-08 华为技术有限公司 Positioning interaction method and device
WO2021098442A1 (en) * 2019-11-22 2021-05-27 荣耀终端有限公司 Positioning interaction method and apparatus
CN111225366A (en) * 2019-12-27 2020-06-02 宇龙计算机通信科技(深圳)有限公司 Equipment searching method and device, storage medium and terminal
CN112583973A (en) * 2020-12-17 2021-03-30 广东思派康电子科技有限公司 Method for preventing communication between Bluetooth earphone and Bluetooth terminal from entering narrow band
CN113329381A (en) * 2021-04-28 2021-08-31 荣耀终端有限公司 Method for establishing Bluetooth connection and electronic equipment
CN113766482A (en) * 2021-09-15 2021-12-07 荣耀终端有限公司 Method for searching Bluetooth device, electronic device and storage medium
CN115273431A (en) * 2022-09-26 2022-11-01 荣耀终端有限公司 Device retrieving method and device, storage medium and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杜庆伟 等: "《无线通信中的移动计算》" *
马欣;: "基于蓝牙技术耳机的软件设计方案的研究", 武汉船舶职业技术学院学报, no. 06 *

Also Published As

Publication number Publication date
CN115942253B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
JP7473101B2 (en) Application display method and electronic device
CN113613238B (en) SIM module management method and electronic equipment
CN113169760B (en) Wireless short-distance audio sharing method and electronic equipment
JP7268275B2 (en) Method and electronic device for presenting video on electronic device when there is an incoming call
CN112154640B (en) Message playing method and terminal
CN110602686B (en) Method for using remote SIM module and electronic equipment
CN110225176B (en) Contact person recommendation method and electronic device
CN112995727A (en) Multi-screen coordination method and system and electronic equipment
JP7234379B2 (en) Methods and associated devices for accessing networks by smart home devices
CN114079892A (en) Bluetooth communication method, wearable device and system
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
CN111556479B (en) Information sharing method and related device
CN114258671A (en) Call method and device
CN113472477A (en) Wireless communication system and method
CN116137639A (en) Cross-equipment audio data transmission method and electronic equipment
WO2021042881A1 (en) Message notification method and electronic device
CN114640747A (en) Call method, related device and system
CN112335294A (en) Emergency call method and user terminal
CN115942253B (en) Prompting method and related device
CN113835802A (en) Device interaction method, system, device and computer readable storage medium
CN113676902A (en) System and method for providing wireless internet access and electronic equipment
WO2020062308A1 (en) Location information processing method and related device
CN114449103B (en) Reminding method, graphical user interface and terminal
WO2023036001A1 (en) Call method and electronic device
CN114697438A (en) Method and device for carrying out call by using intelligent device

Legal Events

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