CN115942253B - Prompting method and related device - Google Patents

Prompting method and related device Download PDF

Info

Publication number
CN115942253B
CN115942253B CN202310050589.5A CN202310050589A CN115942253B CN 115942253 B CN115942253 B CN 115942253B CN 202310050589 A CN202310050589 A CN 202310050589A CN 115942253 B CN115942253 B CN 115942253B
Authority
CN
China
Prior art keywords
bluetooth peripheral
bluetooth
data
prompting
prompt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310050589.5A
Other languages
Chinese (zh)
Other versions
CN115942253A (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

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

Landscapes

  • Telephone Function (AREA)

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 the electronic equipment obtains the searching operation aiming at the Bluetooth peripheral equipment, an SCO link is established with the Bluetooth peripheral equipment, first prompt data are sent to the Bluetooth peripheral equipment through the SCO link, the Bluetooth peripheral equipment prompts a user of the position of the Bluetooth peripheral equipment according to the first prompt data, and meanwhile, the Bluetooth peripheral equipment sends second prompt data to the electronic equipment through the SCO link; and the electronic equipment prompts the user of 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, an SCO link is established, the task of prompting the position of the Bluetooth peripheral equipment is realized based on the SCO link, and the SCO link is defined in a Bluetooth protocol, so that the method can be suitable for the electronic equipment and the Bluetooth peripheral equipment among different brands, and the compatibility and the suitability of the SCO link with a third party are improved.

Description

Prompting method and related device
Technical Field
The application relates to the technical field of bluetooth, in particular to a prompting method and a related device.
Background
The Bluetooth technology is a radio technology supporting short-distance communication of equipment, and can support wireless information interaction among a plurality of equipment including smart phones, wireless headphones, notebook computers, bluetooth sound equipment, smart watches and the like. Communication between mobile communication terminal devices can be effectively simplified by using the Bluetooth technology. Along with development of scientific technology, in order to facilitate daily use and carrying of users, the volume of the bluetooth peripheral is smaller (such as a bluetooth headset, a smart watch and the like), but due to the smaller volume of the bluetooth peripheral, the situation that the bluetooth peripheral is lost often occurs, and the users are difficult to find the bluetooth peripheral.
In the prior art, when an electronic device and a bluetooth peripheral are in a bluetooth connection state (wherein the electronic device uses a mobile phone and the bluetooth peripheral uses an intelligent watch as examples), a common method for prompting the position of the bluetooth peripheral is that the mobile phone sends a private AT instruction to the intelligent watch through an HFP protocol (handles-Free Profile), the intelligent watch responds to the private AT instruction and plays a specific ring preset in the intelligent watch, and a user can search for a lost intelligent watch according to the specific ring played by the intelligent watch. However, the private AT instructions used by the electronic device and the bluetooth peripheral device of different brands are different, so that when the electronic device and the bluetooth peripheral device of other brands are in a bluetooth connection state, the method for prompting the position of the bluetooth peripheral device cannot be executed.
Therefore, the current commonly used method for prompting the Bluetooth peripheral position is difficult to be compatible with a third party, and has poor suitability.
Disclosure of Invention
The prompting method and the related device can improve compatibility and suitability of the method for searching the Bluetooth peripheral device and a third party.
In order to achieve the above purpose, the present application adopts the following technical scheme:
a first aspect of the present application provides a prompting method, where the method 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: acquiring a search operation aiming at the Bluetooth peripheral, establishing an SCO link with the Bluetooth peripheral in response to the search operation aiming at the Bluetooth peripheral, and sending first prompt data to the Bluetooth peripheral through the SCO link, so that the Bluetooth peripheral prompts the position of the Bluetooth peripheral for a user according to the received first prompt data, and meanwhile, receiving second prompt data sent by the Bluetooth peripheral through the SCO link and prompting the position of the Bluetooth peripheral according to the second prompt data. When the electronic equipment and the Bluetooth peripheral equipment are in a Bluetooth connection state, an SCO link is established, and a prompt task is completed based on the SCO link, and the SCO link is a basic link defined in a Bluetooth protocol, so that the method can be suitable for the electronic equipment and the Bluetooth peripheral equipment between different brands, and the compatibility and the suitability of the SCO link with a third party are improved. And SCO link can realize the real-time two-way transmission of data, and electronic equipment can receive the second suggestion data that bluetooth peripheral hardware sent when sending first suggestion data to bluetooth peripheral hardware, according to the second suggestion data, the position of suggestion bluetooth peripheral hardware has improved the accuracy and the speed of the position of suggestion bluetooth peripheral hardware, has further improved the efficiency of looking for bluetooth peripheral hardware.
In one possible implementation, the second prompt data is second real-time audio data obtained by capturing the surrounding environment by a microphone of the bluetooth peripheral. The microphone of the Bluetooth peripheral collects audio data of surrounding environment and obtains relevant data about the position of the Bluetooth peripheral.
In one possible implementation, the electronic device plays the second real-time audio data, thereby prompting the user for the location of the bluetooth peripheral. And playing the second real-time audio data, so that the related information of the surrounding environment of the Bluetooth peripheral can be determined according to the second real-time audio data, and the task of prompting the user of the position of the Bluetooth peripheral is realized.
In one possible implementation, the first alert 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, thereby alerting a user of the location 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 peripheral.
In one possible implementation, the first prompting data is prompting audio data pre-stored in the electronic device, the electronic device sends the prompting audio data to a bluetooth peripheral with a speaker through an SCO link, and the bluetooth peripheral plays the prompting audio data through the speaker, so that a user is prompted on the position of the bluetooth peripheral. The prompting audio data stored in the electronic equipment is not limited by the memory size of the Bluetooth peripheral equipment, and does not occupy the memory of the Bluetooth peripheral equipment, so that the running speed is influenced.
In one possible implementation, the first prompting data is vibration control data carrying a preset vibration frequency, and the electronic device sends the vibration control data to the bluetooth peripheral with the motor through the SCO link so as to control the motor of the bluetooth peripheral to generate vibration with the preset frequency, thereby prompting the user of the position of the bluetooth peripheral. Vibration cues may be suitable for special scenarios, such as: the method has the advantages that the applicability of the method is improved, and the experience of a user is also improved in scenes such as conferences and lessons.
In one possible implementation, the first prompting data is interface control data, and the electronic device sends the interface control data to the bluetooth peripheral with the display screen through the SCO link to control interface display of the display screen of the bluetooth peripheral, so as to prompt a user of the position of the bluetooth peripheral.
In one possible implementation, the first prompting data is light control data, and the electronic device sends the light control data to the bluetooth peripheral with the flash through the SCO link to control the flash of the bluetooth peripheral, thereby prompting the user of the location of the bluetooth peripheral.
In one possible implementation, after the electronic device obtains the ending of the search operation, the SCO link is disconnected from the bluetooth peripheral device. And restoring 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 corresponding functions.
In a second aspect, the present application provides a prompting method applied to a bluetooth peripheral, where the bluetooth peripheral is in a bluetooth connection state with an electronic device, 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 prompting data sent by the electronic equipment through the SCO link, and prompting the position of a user according to the first prompting data; meanwhile, second prompt data are sent to the electronic equipment through the SCO link, so that the electronic equipment prompts a user of the position of the Bluetooth peripheral according to the second prompt data. When the electronic equipment and the Bluetooth peripheral equipment are in a Bluetooth connection state, an SCO link is established, and a prompt task is completed based on the SCO link, and the SCO link is a basic link defined in a Bluetooth protocol, so that the method can be suitable for the electronic equipment and the Bluetooth peripheral equipment between different brands, and the compatibility and the suitability of the SCO link with a third party are improved. And SCO link can realize the real-time two-way transmission of data, and electronic equipment can receive the second suggestion data that bluetooth peripheral hardware sent when sending first suggestion data to bluetooth peripheral hardware, according to the second suggestion data, the position of suggestion bluetooth peripheral hardware has improved the accuracy and the speed of the position of suggestion bluetooth peripheral hardware, has further improved the efficiency of looking for bluetooth peripheral hardware.
In one possible implementation, the first alert data is first real-time audio data, and the bluetooth peripheral plays the first real-time audio data through a speaker, thereby alerting the user of the location of the bluetooth peripheral. The method has the advantages that the position task of the Bluetooth peripheral is guaranteed to be presented, 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, the first prompting data is prompting audio data pre-stored in the electronic device, and the bluetooth peripheral device plays the prompting audio data through a speaker, so as to prompt the user of the location of the bluetooth peripheral device. The memory is stored in the electronic equipment, so that the memory is not limited by the memory size of the Bluetooth peripheral, and the memory of the Bluetooth peripheral is not required to be occupied, thereby eliminating the influence on the running speed of the Bluetooth peripheral.
In one possible implementation, the first prompting 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 position of the bluetooth peripheral is prompted to a user. Vibration cues may be suitable for special scenarios, such as: meeting, scene such as being in class, guaranteed to realize the suggestion task under special scene promptly, also improved user's experience sense.
In one possible implementation, the first prompting data is interface control data, and the bluetooth peripheral device controls interface display of a display of the bluetooth peripheral device according to the interface control data, so as to prompt a user for a position of the bluetooth peripheral device.
In one possible implementation, the first prompting data is light control data, and the bluetooth peripheral device controls a flash of the bluetooth peripheral device according to the light control data, so as to prompt a user of the location of the bluetooth peripheral device.
In one possible implementation manner, the second prompting data is second real-time audio data obtained by collecting the surrounding 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 that the user is prompted to the position of the bluetooth peripheral device. And playing the second real-time audio data, so that the related information of the surrounding environment of the Bluetooth peripheral can be determined according to the second real-time audio data, the task of prompting the Bluetooth peripheral position of the user is realized, and the accuracy of prompting the Bluetooth peripheral position is improved.
In one possible implementation, after the electronic device obtains the ending of the search operation, the SCO link is disconnected from the bluetooth peripheral device. And restoring 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 corresponding functions.
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 the computer-executable instructions stored in 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 computer-executable instructions stored in 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 having stored therein a computer program or instructions which, when executed, implement the methods of the first and second aspects described above.
In a sixth aspect, the present application provides a computer program product comprising a computer program or instructions which, when executed by a processor, implement the methods of the first and second aspects described above.
Drawings
Fig. 1 is a schematic flow chart of a method for searching for bluetooth peripheral devices in an existing electronic device according to an embodiment of the present application;
Fig. 2A is a diagram illustrating a composition example of an electronic device according to an embodiment of the present application;
fig. 2B is a diagram illustrating a software structure of an electronic device according to an embodiment of the present application;
fig. 3 is an application scenario schematic diagram of a prompting method provided in an embodiment of the present application;
fig. 4 is a flow chart of a prompting method provided in 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 application;
fig. 5B is an interface schematic diagram of a bluetooth peripheral application searching for an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a scenario in which 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 flow chart of another prompting method provided in an embodiment of the present application;
fig. 8 is an interface schematic diagram of another electronic device for searching for a bluetooth peripheral application according to an embodiment of the present application;
fig. 9 is an interface schematic diagram of another electronic device for searching for a bluetooth peripheral application according to an embodiment of the present application;
fig. 10 is a flow chart of another prompting method provided in an embodiment of the present application.
Detailed Description
The terms first, second, third and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for limiting the specified sequence.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
For clarity and conciseness in the description of the following embodiments, a brief description of the related art will be given first:
the Hands-Free Profile (HFP) of a telephone may also be referred to directly as a Hands-Free protocol. The bluetooth peripheral controls the electronic device through an AT command (AT command) defined by the HPF protocol, for example: answering an incoming call, hanging up a call, rejecting the answering of the incoming call, etc.
AT (attention) instruction. The AT command refers to a control command used in the bluetooth communication protocol. For example, a private AT command may be preset to instruct the smart watch to play a pre-stored specific ring tone.
Connection-oriented asynchronous transmission links (Asynchronous Connection less, ACL links) are the basic connection technology for bluetooth, generally used to transmit connection-like negotiation signaling for maintaining bluetooth connections. ACL links also support unidirectional transmission of audio data. For example: when the mobile phone can send 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.
The connection oriented synchronous transmission link (Synchronous Connection Oriented, SCO link) is a bluetooth baseband supported connection technology that utilizes reserved time slots to transmit data. The SCO link supports bi-directional transmission of audio data. For example: when the mobile phone sends 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: basic SCO links and extended SCO links (Extended Synchronous Connection-ordered, eSCO links). The eSCO link uses reserved slots to transmit data, and is provided with a retransmission window with which data can be retransmitted. The eSCO link also supports bi-directional transmission of audio data.
The following is a comparison of the advantages of a prompting method provided by the application with the existing method for prompting the position of the Bluetooth peripheral.
For easy understanding, the following describes in detail a method of prompting bluetooth peripheral device in the prior art with reference to fig. 1. The following electronic device will be described by taking the mobile phone 10 as an example, and taking the smart watch 20 as an example by using a bluetooth peripheral, where the mobile phone 10 and the smart watch 20 are the same brand device, and a private AT instruction for prompting the location of the smart watch 20 is preset.
First, it is necessary to ensure that the mobile phone 10 and the smart watch 20 are in a bluetooth connection state, that is, ACL links of the mobile phone 10 and the smart watch 20 are in a connection state. In a state where the mobile phone 10 and the smart watch 20 are in bluetooth connection, the user performs an operation of searching for the smart watch 20 (bluetooth peripheral), for example: the user clicks on a particular icon on the desktop of the handset 10 that looks up the bluetooth peripheral application. The mobile phone 10 transmits a private AT command to the smart phone 20 through an HFP protocol (also referred to as ACL link) in response to an operation of the user, the smart watch 20 plays a specific bell sound preset in the smart watch in response to the private AT command, and AT the same time, the smart watch 20 returns reply information to the private AT command to the mobile phone 10 in response to the private AT command. The user may prompt the user for the location of smart watch 20 based on the particular ring tone played by smart watch 20, thereby performing a lookup of smart watch 20.
The private AT instruction in the above method is preset for the mobile phone 10 and the smart watch 20, for example: the mobile phone 10 and the intelligent watch 20 preset a private AT instruction A as a private AT instruction for searching the intelligent watch 20 by the mobile phone 10; the first mobile phone and the first smart watch preset a private AT instruction B as a private AT instruction for the first mobile phone to search for the first smart watch (wherein the first mobile phone is a mobile phone different from the mobile phone 10; the first smart watch is a smart watch different from the smart watch 20), and if the first mobile phone sends the private AT instruction a to the first smart watch, the purpose of searching for 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 first smart watch, the purpose of searching for the bluetooth peripheral (the first smart watch) cannot be achieved. The private AT instruction is unique to different brands/different devices, and the private AT instruction cannot be adapted to all bluetooth peripherals, so that the suitability of the existing method for searching for the bluetooth peripherals by the electronic device is low, and a plurality of electronic devices and bluetooth peripherals cannot use the searching function, so that the problem of bluetooth peripheral loss cannot be solved.
Further, in the above method, the smart watch 20 plays a specific ring preset in the smart watch 20 in response to the private AT command, and prompts the user that the location of the smart watch 20 is too single, for example: a specific bell sound is preset in the smart watch 20, and then the smart watch 20 plays the preset specific bell sound in response to the private AT instruction; the specific vibration frequency preset in the smart watch 20, the smart watch 20 generates vibration of the specific vibration frequency preset in response to the private AT command.
Although a plurality of ring tones can be preset in the smart watch 20, and the preset ring tones can be played circularly, the specific ring tones and the specific vibration data are stored in the bluetooth peripheral (the smart watch 20), the storage space of the bluetooth peripheral is limited, and the mode of prompting the user of the position of the bluetooth peripheral is limited. When the Bluetooth peripheral is an intelligent watch, the storage space of the intelligent watch is generally 1-2G, and the storage space of the intelligent watch can limit the number of preset ringtones and the number of modes for prompting the position of the intelligent watch of a user; if a plurality of ringtones are preset in the intelligent watch, a part of storage space of the intelligent watch can be occupied, and even the running speed of the intelligent watch can be influenced. When the Bluetooth peripheral is a Bluetooth earphone, the storage space of the Bluetooth earphone with the storage function is limited, and the number of stored preset ringtones is limited, so that the mode of prompting the user of the position of the Bluetooth peripheral is limited. Furthermore, the Bluetooth headset commonly used in daily life generally has no storage function, and for the Bluetooth headset without the storage function, the method cannot be realized at all, so that the limitation of the current common method for prompting the Bluetooth peripheral position is further reflected, the Bluetooth headset cannot be completely adapted, and the suitability is low.
The application provides a prompting method, which comprises the following steps: in the state that the electronic equipment and the Bluetooth peripheral are in Bluetooth connection, in response to search operation of a user on 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, after the Bluetooth peripheral receives the first prompt data, the Bluetooth peripheral prompts the user of the position of the Bluetooth peripheral according to 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 user of the position of the Bluetooth peripheral according to the second prompt data. When the electronic equipment and the Bluetooth peripheral equipment are in a Bluetooth connection state, an SCO link is established, and a prompt task is completed based on the SCO link, and the SCO link is a basic link defined in a Bluetooth protocol, so that the method can be suitable for the electronic equipment and the Bluetooth peripheral equipment between different brands, and the compatibility and the suitability of the SCO link with a third party are improved.
Further, the SCO link can realize real-time bidirectional transmission of data, and the electronic equipment can receive second prompt data sent by the Bluetooth peripheral while sending the first prompt data to the Bluetooth peripheral, and prompt 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 data stored in the electronic equipment side can be transmitted to the Bluetooth peripheral through the SCO link, so that a prompt task is realized, the limitation of the storage space of the Bluetooth peripheral side is avoided, and the running speed of the Bluetooth peripheral is not influenced; and the storage space of the electronic equipment side is larger, and the data of multiple modes can be stored while the running speed is not influenced, so that the variety of prompts is realized.
In some embodiments, the electronic device may be a cell phone, tablet, desktop, laptop, notebook, ultra mobile personal computer (Ultra-mobile Personal Computer, UMPC), handheld computer, netbook, personal digital assistant (Personal Digital Assistant, PDA), wearable electronic device, smart watch, etc., 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 shown in fig. 2A, and fig. 2A is a schematic structural diagram of the electronic device according to the 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, keys 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 configuration illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus. In other embodiments, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, in the application, a search operation for the bluetooth peripheral device can be obtained, and based on the search operation, an SCO link is established with the bluetooth peripheral device with search, so that real-time bidirectional transmission of subsequent data is realized.
The controller can be a neural center and a command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the 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 the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 150, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 150 through an I2C interface, such that the processor 110 communicates with the touch sensor 150 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, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 120 through the I2S interface, to implement a function of answering a call through a bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 120 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 120 through the PCM interface to implement a 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 for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 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 an audio signal to the wireless communication module 120 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as the display 130. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and display 130 communicate via a DSI interface to implement display functionality of an electronic device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, GPIO interfaces may be used to connect processor 110 with camera 193, display 130, wireless communication module 120, audio module 170, touch sensor 150, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The wireless communication function of the electronic device may be implemented by the antenna 1, the wireless communication module 120, a modem processor, a baseband processor, and the like.
The antenna 1 is used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into 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 including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on an electronic device. The wireless communication module 120 may be one or more devices that integrate at least one communication processing module. The wireless communication module 120 receives electromagnetic waves via the antenna 1, modulates the electromagnetic wave signals, filters the 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, frequency modulate the signal, amplify the signal, and convert the signal into electromagnetic waves to radiate the electromagnetic waves through the antenna 1.
In some embodiments, the antenna 1 and the wireless communication module 120 are coupled such that the electronic device may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device implements display functions through the GPU, the display 130, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display 130 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 130 is used to display images, videos, and the like. The display 130 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro-led, a quantum dot light-emitting diode (quantum dot light emitting diodes, 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 (graphical user interface, GUIs) may be displayed on the display screen 130 of the electronic device, all of which are home screens of the electronic device. Generally, the size of the display 130 of an electronic device is fixed and only limited controls can be displayed in the display 130 of the electronic device. A control is a GUI element that is a software component contained within an application program that controls all data processed by the application program and interactive operations on that data, and a user can interact with the control by direct manipulation (direct manipulation) to read or edit information about the application program. In general, controls may include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, selection popups, and the like.
The internal memory 140 may be used to store computer executable program code that 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 bidirectional directional connection link with the bluetooth peripheral by executing the instructions stored in the internal memory 140, thereby implementing bidirectional transmission of audio data. The internal memory 140 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 140 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs 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 an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device may listen to music, or to hands-free conversations, through speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the electronic device picks up a phone call or voice message, the voice can be picked up by placing the receiver 170B close to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. 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, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The touch sensor 150, 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 acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the display screen 130. In other embodiments, the touch sensor 150 may also be disposed on a surface of the electronic device at a different location than the display 130.
The keys 160 include a power-on key, a volume key, etc. The key 160 may be a mechanical key. Or may be a touch key. The electronic device may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device.
The motor 180 may generate a vibration alert. The motor 180 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 180 may also correspond to different vibration feedback effects by 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 vibration of a corresponding frequency. The touch vibration feedback effect may also support customization.
In addition, an operating system is run on the components. Such as the iOS operating system developed by apple corporation, the Android open source operating system developed by google corporation, the Windows operating system developed by microsoft corporation, etc. An operating 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 microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of an electronic device is illustrated.
Fig. 2B is a software architecture block diagram of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 2B, the application package may include applications for searching for bluetooth peripherals, talk, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 2B, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire 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 such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message prompt, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, 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, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of 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. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
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 for explanation, the basic principle of the embodiment of the present application is equally applicable to electronic devices based on iOS, windows and other operating systems.
The following describes a method for searching for bluetooth peripheral devices according to an embodiment of the present application with reference to specific embodiments. The following embodiments may be combined with each other and some embodiments may not be repeated for intended or similar concepts or processes.
Embodiment one:
a prompting method according to an embodiment of the present application is described in detail below with reference to FIGS. 3-6.
An application scenario schematic diagram of a prompting method provided in an embodiment of the present application as shown in fig. 3, where the scenario includes: the electronic device 100, the bluetooth peripheral 200 and the cup-shaped object 300 made of opaque materials, wherein the electronic device 100 and the bluetooth peripheral 200 are in a bluetooth connection state, which can be said to be that the electronic device 100 and the bluetooth peripheral 200 establish an ACL link and keep the ACL link in a connection state. The bluetooth peripheral 200 is placed within the opaque cup-shaped object 300 with no means to be readily apparent to the user where the bluetooth peripheral 200 is currently located. In the example of the electronic device 100, a mobile phone is taken as an example, and the bluetooth peripheral 200 is taken as a smart watch.
It should be noted that, only the use scenario of one prompting mode described in fig. 3 is taken as an example for illustration, in an actual scenario, the bluetooth peripheral may be exposed in the field of view of the user, but the user does not notice the location of the bluetooth peripheral, so the bluetooth device cannot be found, which is not specifically limited in this application.
Under the use scenario of a prompting method as shown in fig. 3, a user performs a search operation on the bluetooth peripheral at the end of the electronic device 100, a preset search application/service of the electronic device 100 invokes a bluetooth module, an SCO channel between the electronic device 100 and the bluetooth peripheral 200 is established, the electronic device 100 configures own sound receiving and sound emitting adjustment, and enters a transmission mode, in the transmission mode, the electronic device 100 acquires first real-time audio data, the acquired first real-time audio data is sent to the bluetooth peripheral 200, and the bluetooth peripheral 200 plays the received first real-time audio data, so that the position of the bluetooth peripheral 200 is prompted; while the electronic device 100 collects the first real-time audio data, the bluetooth peripheral 200 also collects 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, so that the position of the bluetooth peripheral 200 is prompted. The specific steps are specifically described with reference to fig. 4, and the method includes:
S401, the user performs searching operation.
The search operation is an operation for starting the electronic device 100 to search for the bluetooth peripheral 200.
For ease of understanding, the following describes the search operation by the user in detail with reference to the interface diagrams of the electronic device 100 shown in fig. 5A-5B.
As shown in fig. 5A, when the user unlocks the electronic device 100, the electronic device 100 may present the user with a desktop interface 500, where the desktop interface 500 includes icons of various applications, such as a phone icon, a contact icon, an internet icon, a text message icon, an icon 510 for searching for a bluetooth peripheral application, and so on. The user may trigger an operation on the icon of the application, such as clicking, long pressing, sliding, etc. And after the electronic equipment receives the operation triggered by the user, starting the corresponding application. The user clicks the icon 510 for searching for the bluetooth peripheral application on the desktop interface 500 of the electronic device 100, and then enters the bluetooth peripheral application searching interface 520, where the bluetooth peripheral application searching interface 520 includes a start searching icon 521, an end searching icon 522, and so on. Clicking on the start find icon 521 on the find bluetooth peripheral application interface 520 of the electronic device 100 by the user initiates the task of the electronic device 100 to find the bluetooth peripheral 200. The user clicks on the begin lookup icon 510 as a lookup operation. The application for searching for the bluetooth peripheral is a generic term of a preset application for searching for 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 clicking an icon for starting search, or may be clicking an icon set by bluetooth, so long as the operation is preset for starting a task of searching for bluetooth peripheral, which is not specifically limited in the embodiment of the present application.
S402, the electronic device 100 responds to the search 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 bi-directional data transfer, so that the electronic device 100 can transfer data to the bluetooth peripheral 200 in real-time through the SCO link, and at the same time, the bluetooth peripheral 200 can also transfer data to the electronic device 100 in real-time through the SCO link.
In particular, connection-oriented synchronous transmission links (SCO links) include basic SCO links and extended connection-oriented synchronous links (eSCO links).
For ease of understanding, the process by which the electronic device 100 establishes an SCO link with the bluetooth peripheral 200 is described in detail below.
The electronic device 100 sends a request to the bluetooth peripheral 200 to establish an SCO link; 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 receives and outputs the configuration itself.
Specifically, the sound receiving state of the electronic device 100 after configuration is: the audio data collected by the microphone is sent by the electronic device 100 directly to the bluetooth peripheral 200 via the synchronous directional connection link. The sound emitting state of the electronic device after configuration is that the electronic device 100 directly plays the audio data sent by the Bluetooth peripheral 200 through a loudspeaker, wherein the Bluetooth peripheral 200 acquires the audio data through microphone acquisition and directly sends the audio data to the electronic device 100 through a synchronous directional connection link.
Specifically, the states of sound receiving and sound emitting of the electronic device 100 are configured so that the electronic device is in a voice transmission mode.
Specifically, in the voice transmission mode, the electronic device 100 acquires predetermined audio data (for example, preset music, audio of the current environment, etc.), the electronic device 100 transmits the acquired audio data to the bluetooth peripheral 200, and the bluetooth peripheral 200 directly plays the audio data transmitted 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 schematic diagram of a scenario in which a mobile phone and a bluetooth headset are 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 in general, 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 also does not play cloud/other devices to send the audio data. For example: the mobile phone 10 and the bluetooth headset 30 realize a recording function. The bluetooth headset 30 is required to collect audio data of the surrounding environment through the microphone of the bluetooth headset 30, the bluetooth headset 30 sends the collected audio data to the mobile phone 10, the mobile phone 10 stores the audio data (can be stored in a cloud server or in a storage space of the mobile phone 10 itself), the mobile phone 10 plays the audio data without receiving the audio data, if the mobile phone 10 plays the audio data, the audio data is obtained from the storage space/the cloud server, then the audio data is transmitted to the bluetooth headset 30, and the bluetooth headset 30 plays the audio data through a loudspeaker.
After the mobile phone 10 and the bluetooth headset 30 establish the SCO link, the mobile phone 10 configures the own sound receiving and emitting states, and the configured sound receiving and emitting states are: the Bluetooth headset 30 sends the audio data acquired 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 a loudspeaker; the audio data collected by the microphone is directly sent to the bluetooth headset 30 by the mobile phone 10, and the bluetooth headset 30 plays the audio data by the loudspeaker/speaker.
S404, the electronic device 100 acquires first real-time audio data through microphone acquisition.
Through the configuration of the radio reception state of the electronic device 100 in step 403, the electronic device 100 may perform the radio reception processing through the microphone, that is, may collect real-time audio data of the surrounding environment through the microphone of the electronic device 100, 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 device 200 plays the first real-time audio data.
Specifically, when the bluetooth peripheral device 200 receives the first real-time audio data sent by the electronic device 100, the bluetooth peripheral device 200 directly plays the audio data through a speaker (speaker) to prompt the user that the bluetooth peripheral device 200 is currently located.
The user may prompt the user to further find the bluetooth peripheral 200 according to the first real-time audio data played by the bluetooth peripheral 200, where the bluetooth peripheral 200 is currently located. The electronic device 100 directly transmits 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.
Further, the bluetooth peripheral 200 can play the first real-time audio data without storing preset audio data in the bluetooth peripheral 200, so as to prompt the current position of the bluetooth peripheral 200, avoid storing preset audio data in the bluetooth peripheral in the current existing method, occupy the memory of the bluetooth peripheral, and further influence the running speed of the bluetooth peripheral.
S407, the Bluetooth peripheral 200 acquires second real-time audio data through a microphone.
The bluetooth peripheral 200 is in a bluetooth connection state with the electronic device 100, and when processing a specific service/implementing a specific function, the bluetooth peripheral 200 itself can collect audio data of the surrounding environment, so as to obtain second real-time audio data, for example: the electronic equipment A and the electronic equipment B are in a voice call, the Bluetooth headset C and the electronic equipment A are in a Bluetooth connection state, the Bluetooth headset C collects second real-time audio data such as surrounding environment sounds and voices of users through the microphone, and the audio data are transmitted to the electronic equipment A, so that the electronic equipment A can conveniently realize the voice call with the electronic equipment B through the Bluetooth headset C.
Specifically, the electronic device 100 and the bluetooth peripheral 200 are in a bluetooth connection state, and when the service of searching for the bluetooth peripheral is performed, the bluetooth peripheral 200 may directly acquire the second audio data through the 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 pass-through mode, the bluetooth peripheral 200 transmits the second real-time audio data to the electronic device 100 over an SCO link (eSCO) link.
It should be noted that, the electronic device 100 acquires the first real-time audio data through the 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 the 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, without specific sequence, the reference numerals of the related steps are only for convenience of description of the embodiments, and the sequence is not specifically limited.
S409, the electronic device 100 plays the second real-time audio data sent by the bluetooth peripheral 200.
Specifically, in the voice 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 acquire the surrounding environment through the microphone according to the Bluetooth peripheral 200, so as to obtain 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 put on a bed which is at rest at ordinary times by a user and is covered by the quilt, at the moment, when the user performs the task of searching for the Bluetooth peripheral equipment, the user also performs some searching actions (such as walking, picking up an obstacle, putting down the obstacle and the like), corresponding sounds can be generated, 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, so that the position of the Bluetooth headset can be prompted in an auxiliary mode according to the characteristics of the second real-time audio data. Further, efficiency and accuracy of searching for 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, and in addition, whether the electronic device 100 plays the second real-time audio data through a speaker/receiver or the like may be determined based on whether the user allows the operation of playing the real-time audio data for the electronic device 100, which is not limited in this application.
Further, in the prompting method provided by the embodiment of the application, the audio data is transmitted through the SCO link. On the one hand, SCO link mainly transmits audio data with strict time requirements, so that real-time transmission of audio data can be realized, delay is not generated basically, the Bluetooth peripheral can play the first real-time audio data sent by the electronic equipment in time, and the second real-time audio data collected by the Bluetooth peripheral can be sent to the electronic equipment in time, so that the accuracy of prompting the position of the Bluetooth peripheral is improved, and the speed and accuracy of searching the Bluetooth peripheral are improved. On the other hand, when the electronic equipment transmits the acquired audio data to the Bluetooth peripheral, the Bluetooth peripheral can also transmit the acquired second real-time audio data to the Bluetooth peripheral. The method and the device realize the simultaneous acquisition and transmission of the bidirectional audio data, reduce the time for acquiring the audio data for prompting and the transmission time of the audio data, further reduce the time consumed for searching the Bluetooth peripheral and improve the efficiency of searching the Bluetooth peripheral.
S410, the user finishes the searching operation.
Specifically, the operation for ending the search for the bluetooth peripheral 200 is ended when the search operation is ended.
For ease of understanding, the following describes in detail the user's ending search operation in connection with the search bluetooth application interface diagram of the electronic device 100 shown in fig. 5B.
As shown in fig. 5B, the bluetooth application interface diagram of the electronic device 100, the bluetooth application interface 520 includes a start search icon 521, an end search icon 522, a search mode icon 523, and the like. Clicking on the start find icon 522 on the find bluetooth application interface 520 of the electronic device 100 by the user ends the task of the electronic device 100 to find the bluetooth peripheral 200.
It should be noted that, the operation of ending the search may be an icon for ending the search displayed by clicking the bluetooth searching interface of the electronic device 100, or may be an ending search image displayed by clicking the interface of the bluetooth peripheral 200, which is only required to be a preset operation for ending the task of searching the bluetooth peripheral, and is not specifically limited in this embodiment of the present application.
S411, in response to ending the search operation, the electronic device 100 disconnects the SCO link with the bluetooth peripheral 200.
Further, after the synchronous directional link is disconnected, the state of receiving and outputting sound of the electronic device 100 is restored to the initial state, which may also be referred to as leaving the voice transparent mode, so as to facilitate other functions, such as: and carrying out voice communication 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 search operation, an SCO link is arranged between the electronic equipment and the Bluetooth peripheral equipment, the receiving and sounding states of the electronic equipment are configured, the electronic equipment is in a voice transmission mode, the electronic equipment acquires first real-time audio data through microphone acquisition 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 acquires second real-time audio data through microphone acquisition 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 the Bluetooth protocol, and can be established as long as the electronic equipment and the Bluetooth peripheral are in a Bluetooth connection state, so that the task of prompting the position of the Bluetooth peripheral is realized through the SCO link, and the task of searching the Bluetooth peripheral is further realized. The method can be suitable for electronic equipment and Bluetooth peripherals among different brands, and improves compatibility and suitability with a third party, namely, the method can be suitable for all the places 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 higher time requirements, so that the transmission speed of audio data transmitted to the Bluetooth peripheral by the electronic equipment is higher, delay is basically avoided, the audio data is ensured to be played in time by the Bluetooth peripheral, the current position of the Bluetooth peripheral is prompted, and the accuracy of searching the Bluetooth peripheral is improved;
furthermore, the SCO link realizes simultaneous bidirectional transmission of the audio data between the electronic equipment and the Bluetooth peripheral, thereby not only increasing the accuracy of prompting the position of the Bluetooth peripheral, but also reducing the time for acquiring the audio data for prompting and the transmission time of the audio data, thereby reducing the time consumed for searching the Bluetooth peripheral and improving the efficiency of searching the Bluetooth peripheral.
Further, in the implementation of the prompting method provided in the embodiment of the present application, the bluetooth peripheral device does not need to do additional special actions, but only needs to complete corresponding conventional interactions, for example: the SCO link is established with the electronic equipment, and the SCO link is also required to be established by the Bluetooth peripheral and the electronic equipment when other specific functions (such as playing music by the Bluetooth headset) are realized.
Embodiment two:
in the following, referring to fig. 7 to fig. 9, another prompting method provided in the embodiment of the present application is described in detail. 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 bluetooth peripheral 200 at least includes: processor, wireless communication module, microphone, speaker, display screen, flash lamp, motor, etc.
S701, the user performs a search operation in a specific mode.
Specifically, there are various alert 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: real-time voice prompt mode, prompt audio prompt mode, vibration control prompt mode, interface display prompt mode, flash lamp prompt mode, etc.
The real-time voice prompt mode is that the electronic device 100 controls the bluetooth peripheral device 200 to play real-time user voice, so as to prompt the user of the current location of the bluetooth peripheral device 200.
The prompting audio prompting mode is that the electronic device 100 controls the bluetooth peripheral device 200 to play a searching prompting sound preset by the electronic device 100 and stored in the electronic device, so as to prompt a user of the current position of the bluetooth peripheral device 200.
The vibration control prompting mode is that the electronic device 100 controls the bluetooth peripheral 200 to vibrate at a specific frequency, so as to prompt a user of the current location of the bluetooth peripheral 200.
The interface display prompting mode is that the electronic device 100 controls the interface display of the bluetooth peripheral device 200, so as to prompt the user of the current location of the bluetooth peripheral device 200. For example: the interface controlling the bluetooth peripheral 200 suddenly increases in brightness, the interface controlling the bluetooth peripheral 200 displays user-defined text, and the like.
The flash prompting mode is that the electronic device 100 controls the flash of the bluetooth peripheral device 200, so as to prompt the user of the current location of the bluetooth peripheral device 200. For example: the flash lamp controlling the bluetooth peripheral 200 maintains a constant lighting with a strong brightness, the flash lamp controlling the bluetooth peripheral 200 flashes, etc.
It should be noted that there are a plurality of prompt modes, and other prompt modes may exist besides the five modes illustrated in the embodiments of the present application, and the embodiments of the present application are not limited specifically.
For ease of understanding, a specific mode of lookup operation is illustrated below in connection with an interface diagram of a bluetooth peripheral application in yet another lookup of the electronic device 100 described in connection with fig. 8.
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 phone icons, contact icons, internet icons, text message icons, find bluetooth application icons, and the like. The user may trigger an operation on the icon of the application, such as clicking, long pressing, sliding, etc. And after the electronic equipment receives the operation triggered by the user, starting the corresponding application. The user clicks on the search bluetooth application icon on the desktop interface of the electronic device 100, and then enters another search bluetooth peripheral application interface 800 as shown in fig. 8, where the search bluetooth application interface 800 includes a start search icon for a prompt mode (including a start search icon 810 for a real-time voice prompt mode, a start search icon 820 for a prompt audio prompt mode, a start search icon 830 for a vibration control prompt mode, a start search icon 840 for an interface display prompt mode, a start search icon 850 for a flash prompt mode), an end search icon 860, and so on. Clicking the start search icon of the prompting mode on the search bluetooth peripheral application interface 800 of the electronic device 100 by the user starts the task of the electronic device 100 to search the bluetooth peripheral 200 through the specific prompting mode. Taking the prompt mode as an example, the user clicks the start search icon 820 for starting the prompt audio prompt mode as a search operation for the prompt audio prompt mode.
It should be noted that, the searching operation in the specific mode may be to click an icon corresponding to the specific mode and start searching, or may be to click 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 search operation in the specific mode, and the electronic device 100 establishes an SCO link with the bluetooth peripheral 200.
S703, the electronic device 100 configures the first alert data acquisition channel and the play state.
Specifically, when the specific mode is the real-time voice prompt mode, the first prompt data acquisition channel of the electronic device 100 is configured to be: the electronic device 100 collects audio data through a microphone to obtain first real-time audio data and transmits the first real-time audio data directly 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 the loudspeaker.
Specifically, when the specific mode is the alert audio alert mode, the first alert data acquiring channel of the electronic device 100 is configured to be: the electronic device 100 obtains pre-stored hint audio data from its own memory space, and sends the hint 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 the loudspeaker.
Specifically, when the specific mode is the vibration control prompt mode, the first prompt data acquisition channel of the electronic device 100 is configured to be: the microphone of the electronic device 100 does not collect audio data of the surrounding environment, the electronic device 100 acquires vibration control information, the vibration control information carries a preset vibration frequency, and the vibration control information is sent 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 the loudspeaker.
Specifically, when the specific mode is the interface display prompt mode, the first prompt data acquisition channel of the electronic device 100 is configured as follows: the microphone of the electronic device 100 does not collect audio data of the surrounding environment, the electronic device 100 acquires interface control data, and the interface control data is transmitted 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 the loudspeaker.
Specifically, when the specific mode is a flash prompting mode, the method for configuring the electronic device 100 to acquire the first prompting data is as follows: the microphone of the electronic device 100 does not collect audio data of the surrounding environment, the electronic device 100 obtains light control information, and the light control data is sent 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 the loudspeaker.
S704, the electronic device 100 acquires the first prompt data based on the first data acquisition 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 the first real-time audio data acquired through the microphone.
Specifically, when the specific mode is the alert audio alert mode, the first alert data acquired by the electronic device 100 is alert audio data stored in advance 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 the vibration control data including the 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 prompting mode, the first prompting data acquired by the electronic device 100 is the light control data.
S705, the electronic device 100 sends the obtained corresponding first prompting data to the bluetooth peripheral device 200 through the SCO link.
S706, the bluetooth peripheral 200 executes the 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 device 200 receives the first real-time audio data acquired by the electronic device 100, the bluetooth peripheral device 200 immediately plays the first real-time audio data through the speaker, thereby prompting the user of the location of the bluetooth peripheral device.
Specifically, when the specific mode is the alert audio alert mode, after the bluetooth peripheral 200 receives the alert audio data acquired by the electronic device 100, the bluetooth peripheral 200 immediately plays the alert audio data through the speaker, thereby alerting the user of the location of the bluetooth peripheral.
Specifically, when the specific mode is the vibration control prompting mode, after the bluetooth peripheral device 200 receives the vibration control data including the preset vibration frequency obtained by the electronic device 100, the bluetooth peripheral device 200 controls the motor thereof to generate the vibration of the preset vibration frequency, thereby prompting the user of the position of the bluetooth peripheral device.
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 the display screen thereof according to the interface control data, thereby prompting the user of the position of the bluetooth peripheral.
Specifically, when the specific mode is the flash light prompting mode, after the bluetooth peripheral device 200 receives the light control data acquired by the electronic device 100, the bluetooth peripheral device 200 controls the 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 to make the flash light flash at a specific frequency, and the bluetooth peripheral 200 controls the flash light of itself to flash at the specific frequency.
There are various prompt modes, which can be better suitable for various scenes, for example: in a scene where the user is in a meeting or 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, audio data do not need to be played, and the meeting or quiet scene is prevented from being influenced by playing the audio data.
S707, the Bluetooth peripheral 200 acquires second real-time audio data through the 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, and in addition, whether the electronic device 100 plays the real-time audio data through a speaker/receiver or the like may be determined based on whether the user allows the operation of playing the real-time audio data for the electronic device 100, which is not specifically limited in this application.
For ease of understanding, the following describes in detail, with reference to an interface schematic diagram of yet another search bluetooth peripheral application of the electronic device 100 shown in fig. 9, 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 regarding whether the electronic device 100 allows playing the real-time audio data.
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 is jumped out from the search bluetooth peripheral application interface 800 currently displayed by the electronic device 100, and the selection popup window 910 includes an icon 911 allowing play and an icon 912 prohibiting play. The user clicks the play permission icon 911, and the electronic device 100 plays the real-time audio data; the user clicks the play inhibit icon 912 and the electronic device 100 does not play the real-time audio data.
S710, the user finishes the searching operation.
S711, in response to ending 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 between the electronic device 100 and the bluetooth peripheral 200, the user may perform an operation of changing the prompting mode, and the electronic device 100 may reconfigure the manner and the sounding state of acquiring the first prompting data by itself in response to the operation of changing the prompting mode, so as to implement the task of prompting the position of the bluetooth peripheral in the changed prompting mode.
The embodiment of the application provides a prompting method, which comprises the following steps: responding to the searching operation of the specific mode, the electronic equipment establishes an SCO link with the Bluetooth peripheral equipment, the electronic equipment configures the mode of acquiring the first prompting data and the sounding state to be the state corresponding to the specific mode, the electronic equipment acquires the corresponding first prompting data according to the corresponding mode and sends the first prompting data to the Bluetooth peripheral equipment through the SCO link, and the Bluetooth peripheral equipment executes the corresponding action based on the received first prompting data; meanwhile, the Bluetooth peripheral device sends second real-time audio data to the electronic device, and the electronic device plays the second real-time audio data. The SCO link is a basic connection link under the Bluetooth protocol, and data is transmitted through the SCO link, so that the method can be suitable for electronic equipment and Bluetooth peripherals between different brands, and the compatibility and suitability of the method with a third party are improved.
Further, there are multiple prompt modes, that is, corresponding to multiple types of first prompt data, the method can be suitable for the prompt effect under specific scenes, so as to meet the requirements of users in various scenes. Further, the prestored prompting audio data, vibration control data and the like are sent to the Bluetooth peripheral through the SCO link, so that the 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 rich, limited memory outside the Bluetooth is not occupied, and the running speed of the Bluetooth peripheral is influenced.
Further, the prompt mode can be replaced in response to the replacement prompt mode operation, namely, after the scene where the user is located is changed, the prompt mode can be directly switched in the process, so that the flexibility of the Bluetooth peripheral searching method is improved.
Embodiment III:
a prompting method described in the 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 performs a search 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 prompting data to the bluetooth peripheral 200 through the SCO link.
The first prompt data is obtained by the electronic device 100 through the first prompt data obtaining channel after automatic configuration.
S1004, the Bluetooth peripheral 200 prompts the user of the position of the Bluetooth peripheral 200 according to the first prompting data.
Specifically, when the first prompting data is the first real-time audio data, the bluetooth peripheral device 200 plays the first real-time audio data, and prompts the user of the position of the bluetooth peripheral device 200 according to the sound played by the audio data.
Specifically, when the first prompting data is the prompting audio data stored in advance, the bluetooth peripheral device 200 plays the prompting audio data, and prompts the user of the position of the bluetooth peripheral device 200 according to the sound played by the audio data.
Specifically, when the first prompting data is vibration control data carrying a preset vibration frequency, the bluetooth peripheral device 200 controls the motor of the bluetooth peripheral device 200 to generate vibration of the preset vibration frequency according to the vibration control data, and prompts the user of the position of the bluetooth peripheral device 200 according to the generated vibration.
Specifically, when the first prompting data is interface control data, the bluetooth peripheral device 200 controls the interface display of the display screen of the bluetooth peripheral device 200 according to the interface control data, so as to prompt the user of the position of the bluetooth peripheral device 200.
Specifically, when the first prompting data is the light control data, the bluetooth peripheral device 200 controls the flash lamp of the bluetooth peripheral device 200 according to the light control data, thereby prompting the user of the position of the bluetooth peripheral device 200.
S1005, the bluetooth peripheral 200 sends the second prompting data to the electronic device through the SCO link.
The second prompting data is data that the bluetooth peripheral 200 sends to the electronic device 100 for prompting the electronic device 100 to the user that the bluetooth peripheral 200 is located.
In this embodiment, the second prompting data is exemplified by the second real-time audio data obtained by the bluetooth peripheral 200 through the microphone collecting the surrounding environment.
It should be noted that, in this embodiment of the present application, the second prompting data is real-time audio data of the surrounding environment acquired by the bluetooth peripheral 200 through the microphone, in addition to this, the second prompting data may also be an image/video of the surrounding environment captured by the bluetooth peripheral 200 through the camera, which is not specifically limited in this application.
S1006, the electronic device 100 prompts the user of the position of the Bluetooth peripheral device 200 according to the second prompting data sent by the Bluetooth peripheral device 200.
Taking the example of the second real-time audio data obtained by the bluetooth peripheral 200 through the microphone collecting the surrounding environment as the second prompting data, the electronic device 100 plays the second real-time audio data to prompt the user for 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 prompting data is that the bluetooth peripheral 200 shoots an image/video of the surrounding environment through the camera, the electronic device 100 may display the image/video obtained by shooting the bluetooth peripheral 200 through the display screen to prompt the user of the position of the bluetooth peripheral 200, which is not specifically limited in this application.
S1007, the user performs the end search operation.
The ending search operation may be performed on the electronic device 100 side or on 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 prompting data to the bluetooth peripheral device 200 and the bluetooth peripheral device 200 sends the second prompting data to the electronic device 100 at the same time, and the reference signs of the related steps are only for convenience of description of the embodiments, and the sequence is not specifically limited.
The embodiment of the application provides a prompting method, which comprises the following steps: the user performs a search operation of 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 transmits first prompting data to the bluetooth peripheral 200 through the SCO link, the bluetooth peripheral 200 prompts the user of the location of the bluetooth peripheral 200 according to the first prompting data, meanwhile, the bluetooth peripheral 200 transmits second prompting data to the electronic device through the SCO link, the electronic device 100 prompts the user of the location of the bluetooth peripheral 200 according to the second prompting data transmitted by the bluetooth peripheral 200, the user performs an ending 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 the Bluetooth protocol, and can be established as long as the electronic equipment is in a Bluetooth connection state with the Bluetooth peripheral, so that the task of prompting the Bluetooth peripheral position is realized through the SCO link in the embodiment of the application, and the task of searching the Bluetooth peripheral is realized. The method can be suitable for electronic equipment and Bluetooth peripherals among different brands, and improves compatibility and suitability with a third party, namely, the method can be suitable for all the places with Bluetooth functions without ensuring that the electronic equipment and the Bluetooth peripherals have private AT instructions/private instructions for prompting.
Further, the SCO link can realize bidirectional transmission of data, and the electronic equipment also receives second prompt data sent by the Bluetooth peripheral while the electronic equipment sends the first prompt data to the Bluetooth peripheral. The position of the Bluetooth peripheral device can be prompted in an auxiliary mode through the second prompting data, and therefore accuracy of searching the Bluetooth peripheral device is improved.
Embodiments of the present application also provide a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the relevant method steps of fig. 4, 7 and 10 to implement the method in the above embodiments.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the relevant method steps as in fig. 4, 7 and 10 to implement the methods of the above embodiments.
The foregoing is merely a specific embodiment of the present application, but the protection 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 in the protection 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. A prompting method, which is applied to an electronic device, wherein the electronic device and a bluetooth peripheral are in a bluetooth connection state, the method comprising:
acquiring a search operation aiming at the Bluetooth peripheral;
establishing an SCO link with the Bluetooth peripheral based on the search operation;
sending first prompt data to the Bluetooth peripheral through the SCO link so that the Bluetooth peripheral prompts a user of the position of the Bluetooth peripheral according to the first prompt data; receiving second prompting data sent by the Bluetooth peripheral through the SCO link, and prompting a user of the position of the Bluetooth peripheral according to the second prompting data; wherein, the first prompt data includes: real-time audio data, vibration control data, interface control data, or light control data.
2. The method of claim 1, wherein the bluetooth peripheral device further comprises: a microphone;
the second hint data includes: and second real-time audio data acquired by the microphone.
3. The method of claim 2, wherein prompting the 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 a user of the position of the Bluetooth peripheral.
4. The method of claim 1, wherein the bluetooth peripheral device 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 device further comprises: a speaker; the first prompt data includes: pre-stored hint audio data;
the prompting 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.
6. The method of claim 1, wherein the bluetooth peripheral device further comprises: a motor; the first prompt data includes: carrying vibration control data of 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 device 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 a user of the position of the Bluetooth peripheral.
8. The method of claim 1, wherein the bluetooth peripheral device further comprises: a flash lamp; the first prompt data includes: light control data;
the light control data are used for controlling the 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 and ending the searching operation;
and disconnecting the SCO link based on the ending search operation.
10. A prompting method, characterized in that it is applied to a bluetooth peripheral, where the bluetooth peripheral is in a bluetooth connection state with an electronic device, the method comprising:
receiving first prompt data sent by the electronic equipment through an SCO link; the SCO link is established with the Bluetooth peripheral by the electronic equipment based on the search operation aiming at the Bluetooth peripheral;
prompting a user of the position of the Bluetooth peripheral 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 a user of the position of the Bluetooth peripheral according to the second prompt data.
11. The method of claim 10, wherein the bluetooth peripheral device further comprises: a speaker; the first prompt data includes: first real-time audio data;
prompting the user of the position of the Bluetooth peripheral according to the first prompting data, including:
and playing the first real-time audio data to prompt a user of the position of the Bluetooth peripheral.
12. The method of claim 10, wherein the bluetooth peripheral device further comprises: a speaker; the first prompt data includes: prompting audio data pre-stored in the electronic equipment;
prompting the user of the position of the Bluetooth peripheral according to the first prompting data, including:
and playing the prompting audio data to prompt a user of the position of the Bluetooth peripheral.
13. The method of claim 10, wherein the bluetooth peripheral device further comprises: a motor; the first prompt data includes: carrying vibration control data of preset vibration frequency;
prompting the user of the position of the Bluetooth peripheral according to the first prompting data, including:
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 device further comprises: a display screen; the first prompt data includes: interface control data;
prompting the user of the position of the Bluetooth peripheral according to the first prompting data, including:
and controlling the interface display of the display screen according to the interface control data command so as to prompt a user of the position of the Bluetooth peripheral.
15. The method of claim 10, wherein the bluetooth peripheral device further comprises: a flash lamp; the first prompt data includes: light control data;
prompting the user of the position of the Bluetooth peripheral according to the first prompting data, including:
and controlling the flash lamp according to the light control data so as to prompt a user of the position of the Bluetooth peripheral.
16. The method of claim 10, wherein the bluetooth peripheral device further comprises: a microphone;
the second hint 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 to prompt a user of the position of the Bluetooth peripheral.
17. The method according to any one of claims 10-16, wherein the method further comprises:
Obtaining and ending the searching operation;
and disconnecting the SCO link based on the ending search operation.
18. An electronic device comprising a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-9.
19. A bluetooth peripheral device comprising a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 10-17.
20. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or instructions, which when executed, implement the method of any 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 CN115942253A (en) 2023-04-07
CN115942253B true 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848704B2 (en) * 2005-03-04 2010-12-07 Broadcom Corporation Location system for bluetooth enabled devices
US10771898B2 (en) * 2017-01-09 2020-09-08 Apple Inc. Locating wireless devices

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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 (1)

* Cited by examiner, † Cited by third party
Title
基于蓝牙技术耳机的软件设计方案的研究;马欣;;武汉船舶职业技术学院学报(第06期);全文 *

Also Published As

Publication number Publication date
CN115942253A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN113613238B (en) SIM module management method and electronic equipment
CN113169760B (en) Wireless short-distance audio sharing method and electronic equipment
CN110602686B (en) Method for using remote SIM module and electronic equipment
JP7268275B2 (en) Method and electronic device for presenting video on electronic device when there is an incoming call
CN113225423B (en) Contact person recommendation method and electronic device
CN116360725B (en) Display interaction system, display method and device
WO2020006711A1 (en) Message playing method and terminal
CN112887926B (en) Calling method and device
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
CN114079892A (en) Bluetooth communication method, wearable device and system
CN112237031B (en) Method for accessing intelligent household equipment to network and related equipment
CN114258671A (en) Call method and device
CN116137639A (en) Cross-equipment audio data transmission method and electronic equipment
CN114640747A (en) Call method, related device and system
CN114064160A (en) Application icon layout method and related device
CN115942253B (en) Prompting method and related device
CN112335294A (en) Emergency call method and user terminal
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
CN117014884A (en) Number using method and related equipment
CN117255154A (en) Incoming call display method and electronic equipment
CN116264600A (en) Incoming call reminding method, electronic device and computer readable storage medium
CN115857964A (en) Application program installation method and related equipment
CN117118970A (en) File downloading method and 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